/* ============================================================
   NOORI EYECARE — stylesheet
   "Where precise eye care meets luxury eyewear."
   ------------------------------------------------------------
   톤: 클리닉의 정밀함(딥 네이비/화이트 여백) +
       럭셔리 아이웨어의 온기(웜 브라스 악센트)
   ============================================================ */

:root {
  /* 색 */
  --ink:        #10202f;   /* 딥 네이비 — 본문/다크섹션 */
  --ink-soft:   #3d5266;
  --muted:      #6b7f92;
  --line:       #e2e8ee;
  --paper:      #ffffff;
  --paper-warm: #f7f5f2;   /* 웜 오프화이트 */
  --brass:      #a8813f;   /* 악센트 — 럭셔리 */
  --brass-lite: #c9a86a;

  /* 타이포 */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* 레이아웃 */
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* 스크린리더 전용 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* 포커스 링 — 접근성 */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   헤더
   ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.logo {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; line-height: 1.1;
  display: flex; flex-direction: column;
}
.logo .logo-img { height: 46px; width: auto; display: block; }
.logo .logo-sub {
  font-family: var(--sans);
  font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .02em; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width .28s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); }
/* CTA 버튼은 .nav a 규칙(어두운 글자색·밑줄바)에서 제외 —
   안 빼면 남색 배경에 남색 글자가 돼 안 보인다(실측 확인) */
.nav a.btn { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.nav a.btn::after { display: none; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 2px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brass); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 12px; }

/* 모바일 메뉴 토글 */
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  margin: 5px 0; transition: transform .3s ease, opacity .3s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   히어로
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(520px, 76vh, 760px);
  /* 히어로 본문과 하단 바를 세로로 쌓는다.
     ⚠️ row flex로 두면 .wrap의 margin:0 auto가 무력화돼
        히어로 텍스트가 좌측 끝(x=0)에 붙는다 — 실측으로 확인된 함정 */
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,32,47,.94) 0%, rgba(16,32,47,.74) 46%, rgba(16,32,47,.34) 100%);
}
/* 이미지 없을 때 플레이스홀더 그라디언트 */
.hero-media.is-placeholder {
  background:
    radial-gradient(120% 90% at 15% 20%, #1d3a50 0%, transparent 60%),
    radial-gradient(100% 80% at 85% 75%, rgba(168,129,63,.28) 0%, transparent 62%),
    linear-gradient(140deg, #0d1b28 0%, #16293a 55%, #1f3646 100%);
}
.hero-inner {
  position: relative; z-index: 2; color: #fff;
  padding: clamp(64px, 8vw, 96px) var(--gut);
  width: 100%; flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass-lite); margin: 0 0 22px; font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 26px; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--brass-lite); }
.hero-lede {
  font-size: clamp(15.5px, 1.9vw, 18.5px);
  color: rgba(255,255,255,.82);
  max-width: 46ch; margin: 0 0 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 히어로 하단 정보 바 */
.hero-bar {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
}
.hero-bar-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 22px 0;
}
.hero-bar-item { color: rgba(255,255,255,.9); font-size: 13.5px; }
.hero-bar-item strong {
  display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-lite); font-weight: 600; margin-bottom: 5px;
}
.hero-bar-item a { text-decoration: none; }
.hero-bar-item a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   섹션 공통
   ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-warm { background: var(--paper-warm); }
.section-dark { background: var(--ink); color: #fff; }

.section-head { max-width: 68ch; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin: 0 0 16px;
}
.section-dark .eyebrow { color: var(--brass-lite); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 400; line-height: 1.15; margin: 0 0 18px;
}
.section-lede { font-size: clamp(15px, 1.7vw, 17.5px); color: var(--muted); margin: 0; }
.section-dark .section-lede { color: rgba(255,255,255,.74); }

/* ─────────────────────────────────────────────
   서비스 카드
   ───────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(16,32,47,.11);
  border-color: transparent;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; flex: 1; }
.card-num {
  font-size: 10.5px; letter-spacing: .24em; color: var(--brass);
  font-weight: 700; margin-bottom: 12px;
}
.card h3 {
  font-family: var(--serif); font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 500; margin: 0 0 12px; line-height: 1.25;
}
.card p { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; }
.card-link {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.card-link svg { transition: transform .25s ease; }
.card-link:hover { color: var(--brass); }
.card-link:hover svg { transform: translateX(4px); }

/* 이미지 플레이스홀더 (사진 도착 전) */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(16,32,47,.028) 0 12px, transparent 12px 24px),
    var(--paper-warm);
  color: var(--muted);
}
.ph svg { width: 42px; height: 42px; opacity: .3; }
.hero-media .ph { background: transparent; }

/* ─────────────────────────────────────────────
   Gallery duo (매장 사진 2장)
   ───────────────────────────────────────────── */
.gallery-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px);
}
.gallery-duo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; display: block;
}
@media (max-width: 720px) {
  .gallery-duo { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   About (2단)
   ───────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.split-media { aspect-ratio: 5 / 6; overflow: hidden; background: var(--paper-warm); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: 22px; }
.split-body p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.split-body p:last-of-type { margin-bottom: 30px; }

/* 체크 리스트 */
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ticks svg { flex: 0 0 auto; margin-top: 4px; color: var(--brass); }

/* ─────────────────────────────────────────────
   CTA 밴드
   ───────────────────────────────────────────── */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 92px) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--serif); font-size: clamp(27px, 3.6vw, 42px); font-weight: 400; margin: 0 0 10px; }
.cta-inner p { color: rgba(255,255,255,.72); margin: 0; font-size: 15.5px; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   Contact / info 그리드
   ───────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.info-item h3 {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin: 0 0 14px;
}
.info-item p, .info-item a { font-size: 16px; color: var(--ink); margin: 0 0 6px; text-decoration: none; }
.info-item a:hover { color: var(--brass); text-decoration: underline; }
.hours-row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.hours-row:last-child { border-bottom: 0; }

/* 지도 카드 (키 없는 embed 대체) */
.map-card {
  margin-top: clamp(34px, 4vw, 52px);
  display: flex; align-items: center; gap: clamp(18px, 2.5vw, 30px);
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line); background: var(--paper-warm);
  text-decoration: none; color: var(--ink);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.map-card:hover {
  border-color: var(--brass); background: #fff;
  transform: translateY(-2px);
}
.map-card-pin {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--brass-lite);
}
.map-card-pin svg { width: 26px; height: 26px; }
.map-card-text { display: flex; flex-direction: column; gap: 3px; }
.map-card-text strong { font-size: clamp(16px, 1.9vw, 19px); font-weight: 600; }
.map-card-text span { color: var(--muted); font-size: 15px; }
.map-card-text em {
  font-style: normal; margin-top: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--brass);
}

/* ─────────────────────────────────────────────
   푸터
   ───────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(52px, 6vw, 78px) 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,.8); margin: 0; max-width: 34ch; }
.footer-col h4 {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-lite); margin: 0 0 16px; font-weight: 600;
}
.footer-col a, .footer-col p { display: block; text-decoration: none; font-size: 14.5px; margin: 0 0 9px; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ─────────────────────────────────────────────
   진입 애니메이션
   ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   반응형
   ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 22px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; width: 100%; }

  .hero-bar-inner { grid-template-columns: 1fr; gap: 16px; }
  .cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
