/* =================================================================
   GLONIX 이민법인 — 글로벌 스타일시트
   디자인 토큰은 로고(02_GLONIX LOGO.png)에서 추출한 컬러 기준.
   TODO: 폰트 self-host 서브셋 적용(현재 CDN + preconnect + display:swap)
   ================================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
  /* Brand — 로고 스틸 블루 */
  --c-primary: #43809E;
  --c-primary-light: #5A9DBE;
  --c-primary-dark: #2F6580;

  /* Deep — 로고 배경 잉크 (중성 그라파이트: 로고 스틸블루가 부각되도록 파란 톤 제거) */
  --c-ink: #0E0F11;
  --c-ink-pure: #000000;
  --c-ink-2: #191B1D;

  /* Silver — 로고 글로브 네트워크 */
  --c-silver: #757C81;
  --c-silver-light: #828B90;

  /* Base surfaces */
  --c-base: #F5F6F7;     /* 쿨 화이트 섹션 배경 */
  --c-surface: #FFFFFF;

  /* Text */
  --c-text: #1C2124;      /* 차콜 */
  --c-text-2: #5A656B;    /* 보조 */
  --c-text-on-dark: #EEF1F3;
  --c-text-on-dark-2: #9BA6AD;

  /* Line */
  --c-line: #E3E6E8;
  --c-line-dark: rgba(255, 255, 255, .12);

  /* Gradients — 중성 그라파이트 다크(파란 톤 배제) → 스틸블루 강조색이 부각됨 */
  --grad-hero: linear-gradient(115deg, rgba(11,12,14,.9) 0%, rgba(13,14,16,.62) 45%, rgba(24,27,30,.42) 100%);
  --grad-deep: linear-gradient(160deg, #0E0F11 0%, #18191C 58%, #24272B 100%);

  /* Typography */
  --ff-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ff-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --ff-display: "Cormorant Garamond", "Noto Serif KR", serif;
  --ff-mono: "Pretendard", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing / layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 6px;
  --radius-lg: 10px;
  --section-y: clamp(72px, 11vw, 152px);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14,18,22,.04), 0 2px 8px rgba(14,18,22,.05);
  --shadow-md: 0 8px 30px rgba(14,18,22,.08), 0 2px 8px rgba(14,18,22,.04);
  --shadow-lg: 0 24px 60px rgba(14,18,22,.16);

  --header-h: 90px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg, picture { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--c-primary-light); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--base { background: var(--c-base); }
.section--deep { background: var(--grad-deep); color: var(--c-text-on-dark); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--ff-sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--c-primary);
  margin-bottom: 18px;
}
.section--deep .eyebrow { color: var(--c-primary-light); }
.hairline { width: 56px; height: 2px; background: var(--c-primary); border: 0; margin: 0 0 26px; }
.center { text-align: center; }
.center .hairline { margin-inline: auto; }

/* Display serif headings */
.display {
  font-family: var(--ff-serif); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.22; font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
.display--xl { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.16; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--c-text-2); max-width: 60ch; }
.section--deep .lead { color: var(--c-text-on-dark-2); }
.muted { color: var(--c-text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 20px rgba(67,128,158,.28); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: 17px 36px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* underline micro-interaction */
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; position: relative; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  /* TOP 상태: 풀블리드 히어로 실사 위에 투명 + 상단 스크림(로고·메뉴 가독성) */
  background: linear-gradient(to bottom, rgba(8,10,12,.62) 0%, rgba(8,10,12,.28) 55%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s, border-color .3s;
}
.site-header.is-solid {
  /* 스크롤 상태: 솔리드 화이트 */
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom-color: var(--c-line); box-shadow: 0 2px 18px rgba(14,18,22,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* 브랜드 락업: [로고 이미지] [글로닉스 ─선─ 이민법인] */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 58px; width: auto; }
/* 락업: [컬러 로고] [글로닉스(블루) / Global Immigration Consultancy] (샘플 4 스타일) */
.brand-lockup { display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; line-height: 1.1; }
@media (min-width: 480px) { .brand-lockup { display: flex; } }
/* 고급 세리프(명조) — 법무 브랜드 격조 */
.brand-name { font-family: var(--ff-serif); font-weight: 700; font-size: 1.46rem; letter-spacing: .04em; color: var(--c-primary); white-space: nowrap; }
.brand-tagline { font-size: .64rem; font-weight: 600; letter-spacing: .1em; color: var(--c-text-on-dark-2); white-space: nowrap; }
.is-solid .brand-tagline { color: var(--c-text-2); }
/* 푸터(다크 배경) 변형 — 로고만 */
.brand--footer { display: flex; margin-bottom: 20px; }

.gnb { display: none; }
@media (min-width: 980px) {
  .gnb { display: flex; align-items: center; gap: 4px; }
  .gnb > a, .gnb .has-sub > button {
    color: #fff; font-size: .95rem; font-weight: 600; padding: 10px 14px;
    background: none; border: 0; display: inline-flex; align-items: center; gap: 5px; border-radius: var(--radius);
    transition: color .2s, background .2s; cursor: pointer;
  }
  .gnb > a:hover, .gnb .has-sub > button:hover { color: var(--c-primary-light); background: rgba(255,255,255,.12); }
  .is-solid .gnb > a, .is-solid .gnb .has-sub > button { color: var(--c-primary); }
  .is-solid .gnb > a:hover, .is-solid .gnb .has-sub > button:hover { color: var(--c-primary-dark); background: var(--c-base); }
  .gnb .has-sub { position: relative; }
  .gnb .submenu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .gnb .has-sub:hover .submenu, .gnb .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .gnb .submenu a { display: block; color: var(--c-primary); padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; font-weight: 500; }
  .gnb .submenu a:hover { background: var(--c-base); color: var(--c-primary-dark); }
  .header-cta { display: inline-flex; }
}
.header-cta { display: none; margin-left: 8px; }

/* hamburger */
.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px;
}
@media (min-width: 980px) { .hamburger { display: none; } }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .2s, background .2s; }
.is-solid .hamburger span { background: var(--c-text); }
.drawer-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-open .hamburger span:nth-child(2) { opacity: 0; }
.drawer-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 95; background: var(--c-ink); color: #fff;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px; overflow-y: auto;
}
.drawer-open .drawer { transform: translateX(0); }
.drawer a, .drawer button { color: #fff; }
.drawer .drawer-nav a { display: block; font-size: 1.25rem; font-family: var(--ff-serif); padding: 14px 0; border-bottom: 1px solid var(--c-line-dark); }
.drawer .drawer-group > p { color: var(--c-primary-light); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 22px 0 4px; }
.drawer .drawer-sub a { font-family: var(--ff-sans); font-size: 1.02rem; padding: 11px 0; color: var(--c-text-on-dark-2); }
.drawer .drawer-foot { margin-top: 28px; }
.drawer .drawer-foot a { display: block; font-size: .95rem; color: var(--c-text-on-dark-2); padding: 4px 0; }
body.drawer-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; padding-top: var(--header-h); overflow: hidden;
  background-color: var(--c-ink);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  /* 실사: 글래스 마천루 (Unsplash License, 상업적 무료) · 블랙→스틸블루 오버레이로 가독성 확보 */
  background-image: var(--grad-hero), url("/images/hero.jpg");
  background-image: var(--grad-hero), -webkit-image-set(url("/images/hero.webp") type("image/webp"), url("/images/hero.jpg") type("image/jpeg"));
  background-image: var(--grad-hero), image-set(url("/images/hero.webp") type("image/webp"), url("/images/hero.jpg") type("image/jpeg"));
}
.hero__inner { padding-block: clamp(60px, 12vh, 120px); max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .hero-accent { color: var(--c-primary-light); font-weight: 700; }
.hero .hero__sub { color: rgba(238,241,243,.86); font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 54ch; margin-bottom: 2em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .98rem; color: rgba(238,241,243,.82); }
.hero__contact b { color: var(--c-primary-light); font-weight: 600; margin-right: 8px; letter-spacing: .04em; }
.hero__contact a { color: rgba(238,241,243,.92); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4dadd; }
.card .card__num { font-family: var(--ff-display); font-size: 2.2rem; color: var(--c-primary); line-height: 1; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 46px; height: 46px; color: var(--c-primary); margin-bottom: 18px; }

/* service summary card (link) */
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.svc-card .svc-card__icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(67,128,158,.1); color: var(--c-primary); }
.svc-card .svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin: 0; font-size: 1.18rem; }
.svc-card p { color: var(--c-text-2); font-size: .98rem; }
.svc-card .link-arrow { margin-top: auto; color: var(--c-primary); }

/* member card */
.member { text-align: center; }
.member__photo {
  /* 가짜 얼굴 생성 금지 — 중립 모노톤 실루엣 플레이스홀더. TODO: 실제 사진/약력 교체 */
  aspect-ratio: 4/5; border-radius: var(--radius-lg); margin-bottom: 18px;
  background: linear-gradient(160deg, #20303a, #0E1216); position: relative; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--c-line-dark);
}
.member__photo svg { width: 58%; height: 58%; color: rgba(130,139,144,.45); }
.member h3 { font-size: 1.16rem; margin-bottom: 2px; }
.member .member__role { color: var(--c-primary); font-weight: 600; font-size: .92rem; letter-spacing: .04em; margin-bottom: 10px; }
.member p { font-size: .94rem; color: var(--c-text-2); margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; font-size: .98rem; }
table.data caption { text-align: left; font-weight: 600; margin-bottom: 10px; color: var(--c-text); }
table.data th, table.data td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
table.data thead th { background: var(--c-ink); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
table.data thead th:first-child { border-top-left-radius: var(--radius); }
table.data thead th:last-child { border-top-right-radius: var(--radius); }
table.data tbody tr:hover { background: var(--c-base); }
table.data strong { color: var(--c-primary-dark); }
.code-ref { font-family: var(--ff-mono); font-size: .92em; letter-spacing: 0; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 4px; }
.steps li {
  position: relative; counter-increment: step; padding: 20px 20px 20px 76px; border-radius: var(--radius);
  transition: background .2s;
}
.steps li:hover { background: var(--c-base); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem;
}
.steps li::after {
  content: ""; position: absolute; left: 39px; top: 56px; bottom: -4px; width: 1.5px; background: var(--c-line);
}
.steps li:last-child::after { display: none; }
.steps li b { display: block; font-size: 1.04rem; color: var(--c-text); margin-bottom: 2px; }
.steps li span { color: var(--c-text-2); font-size: .96rem; }

/* requirement list with checks */
.req-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.req-list li { position: relative; padding-left: 34px; color: var(--c-text); }
.req-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(67,128,158,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343809E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Dhanasar prongs ---------- */
.prongs { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 760px) { .prongs { grid-template-columns: 1fr; } }
.prong { border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary); border-radius: var(--radius-lg); padding: 26px; background: var(--c-surface); }
.prong .prong__tag { font-family: var(--ff-display); color: var(--c-primary); font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prong h4 { font-size: 1.08rem; margin: 6px 0 8px; }
.prong p { font-size: .95rem; color: var(--c-text-2); margin: 0; }

/* ---------- Accordion (nonimmigrant) ---------- */
.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__btn {
  width: 100%; background: none; border: 0; text-align: left; padding: 22px 48px 22px 0; position: relative;
  font-size: 1.12rem; font-weight: 600; color: var(--c-text); font-family: var(--ff-sans);
}
.accordion__btn .vcode { color: var(--c-primary); font-family: var(--ff-mono); font-weight: 600; margin-left: 8px; font-size: .92em; }
.accordion__btn::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-right: 2px solid var(--c-silver); border-bottom: 2px solid var(--c-silver); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.accordion__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.accordion__panel-inner { padding: 0 0 28px; }
.accordion__panel h4 { color: var(--c-primary-dark); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 18px 0 8px; }
.accordion__panel h4:first-child { margin-top: 0; }

/* ---------- Tabs ---------- */
.tabs__list { display: inline-flex; gap: 6px; background: var(--c-base); padding: 6px; border-radius: 999px; margin-bottom: 36px; }
.section--deep .tabs__list { background: rgba(255,255,255,.06); }
.tabs__list button {
  border: 0; background: none; padding: 11px 24px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: var(--c-text-2); transition: background .2s, color .2s;
}
.section--deep .tabs__list button { color: var(--c-text-on-dark-2); }
.tabs__list button[aria-selected="true"] { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.tabpanel[hidden] { display: none; }

/* ---------- Testimonials ---------- */
.disclaimer {
  border-left: 3px solid var(--c-primary); background: rgba(67,128,158,.08); padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-text-2); font-size: .94rem; max-width: 760px; margin: 0 auto 40px;
}
.section--deep .disclaimer { background: rgba(255,255,255,.05); color: var(--c-text-on-dark-2); }
.tcard {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.section--deep .tcard { background: var(--c-ink-2); border-color: var(--c-line-dark); }
.tcard .tcard__tag { display: inline-block; font-family: var(--ff-mono); font-size: .82rem; font-weight: 600; color: var(--c-primary); background: rgba(67,128,158,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.section--deep .tcard .tcard__tag { color: var(--c-primary-light); background: rgba(90,157,190,.14); }
.tcard .tcard__name { font-family: var(--ff-serif); font-size: 1.16rem; margin-bottom: 10px; }
.section--deep .tcard .tcard__name { color: #fff; }
.tcard p { font-size: .96rem; color: var(--c-text-2); margin: 0; }
.section--deep .tcard p { color: var(--c-text-on-dark-2); }

/* ---------- Contact / map blocks ---------- */
.office { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.office__body { padding: 28px; }
.office h3 { font-size: 1.22rem; }
.office dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: .96rem; }
.office dt { color: var(--c-text-2); }
.office dd { margin: 0; }
.office .office__map { aspect-ratio: 16/9; background: var(--c-base); position: relative; }
.office .office__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.12) contrast(1.02); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field > label, .fieldset > legend { font-weight: 600; font-size: .98rem; }
.req-mark { color: var(--c-primary); font-size: .8em; margin-left: 4px; font-weight: 600; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date],
.field input[type=time], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--c-text); background: var(--c-surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(67,128,158,.14); outline: none; }
.field .hint { font-size: .86rem; color: var(--c-text-2); }
.field-error { color: #c0392b; font-size: .86rem; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid .field-error { display: block; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.fieldset legend { padding: 0; margin-bottom: 4px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2,1fr); }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border: 1.5px solid var(--c-line);
  border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; font-size: .97rem;
}
.choice:hover { border-color: var(--c-primary-light); }
.choice input { margin-top: 3px; accent-color: var(--c-primary); width: 17px; height: 17px; flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--c-primary); background: rgba(67,128,158,.06); }
.conditional { margin: 8px 0 0 28px; padding-left: 14px; border-left: 2px solid var(--c-line); display: grid; gap: 10px; }
.conditional[hidden] { display: none; }
.form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-md); }
.form-section-title { font-family: var(--ff-serif); font-size: 1.3rem; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 22px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); z-index: 300;
  background: var(--c-ink); color: #fff; padding: 16px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
  max-width: calc(100vw - 40px); font-size: .96rem; display: flex; align-items: center; gap: 12px;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.is-error { background: #8e2b22; }
.toast .toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-primary-light); flex: 0 0 auto; }
.toast.is-error .toast__dot { background: #f3b6af; }

/* ---------- Floating CTA ---------- */
.floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-weight: 600;
  font-size: .95rem; box-shadow: var(--shadow-lg); border: 0; transition: transform .18s var(--ease), filter .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab--consult { background: var(--c-primary); color: #fff; }
.fab--consult:hover { color: #fff; filter: brightness(1.05); }
.fab--kakao { background: #FAE100; color: #191600; }
.fab svg { width: 19px; height: 19px; }
@media (max-width: 600px) { .fab .fab__label { display: none; } .fab { padding: 14px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-text-on-dark-2); padding-block: clamp(48px, 7vw, 80px) 32px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img.foot-logo { height: 58px; width: auto; margin-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--c-text-on-dark-2); }
.site-footer a:hover { color: var(--c-primary-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .foot-contact p { margin: 0 0 6px; }
.site-footer .foot-contact b { color: var(--c-primary-light); font-weight: 600; margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--c-line-dark); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--c-text-on-dark-2); }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  color: #fff; padding: calc(var(--header-h) + clamp(48px,8vw,96px)) 0 clamp(48px,8vw,88px);
  background-color: var(--c-ink); background-position: center; background-size: cover; background-repeat: no-repeat;
  /* 실사: 스카이라인 (Unsplash License) · 짙은 오버레이로 흰 텍스트 가독성 확보 */
  --ph-ov: linear-gradient(160deg, rgba(12,13,15,.93) 0%, rgba(22,24,27,.86) 55%, rgba(33,37,41,.82) 100%);
  background-image: var(--ph-ov), url("/images/interior-hero.jpg");
  background-image: var(--ph-ov), -webkit-image-set(url("/images/interior-hero.webp") type("image/webp"), url("/images/interior-hero.jpg") type("image/jpeg"));
  background-image: var(--ph-ov), image-set(url("/images/interior-hero.webp") type("image/webp"), url("/images/interior-hero.jpg") type("image/jpeg"));
}
.page-hero .breadcrumb { font-size: .85rem; color: var(--c-text-on-dark-2); margin-bottom: 18px; }
.page-hero .breadcrumb a { color: var(--c-text-on-dark-2); }
.page-hero .breadcrumb a:hover { color: var(--c-primary-light); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: var(--c-text-on-dark-2); }

/* 서비스 카테고리별 히어로 실사 — 카테고리마다 고유 이미지 (짙은 오버레이는 공통) */
/* EB-5는 기존 interior-hero(NYC 스카이라인)를 그대로 사용 — 별도 모디파이어 없음 */
.page-hero--niw    { background-image: var(--ph-ov), url("/images/svc-niw.jpg"); }
.page-hero--eb3    { background-image: var(--ph-ov), url("/images/svc-eb3.jpg"); }
.page-hero--nurse  { background-image: var(--ph-ov), url("/images/svc-nurse.jpg"); }
.page-hero--family { background-image: var(--ph-ov), url("/images/svc-family.jpg"); }
.page-hero--niv    { background-image: var(--ph-ov), url("/images/svc-niv.jpg"); }

/* content prose blocks */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--ff-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--c-primary-dark); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.def-box { background: var(--c-base); border-radius: var(--radius-lg); padding: clamp(22px,3vw,34px); border-left: 3px solid var(--c-primary); }
.note { font-size: .92rem; color: var(--c-text-2); background: var(--c-base); border-radius: var(--radius); padding: 14px 18px; }

.cta-band { background: var(--grad-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; font-family: var(--ff-serif); }
.cta-band p { color: var(--c-text-on-dark-2); max-width: 52ch; margin-inline: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover, .fab:hover { transform: none; }
}

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1em; }
.two-col { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.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; }
