/* ============================================================
   Components — Yod Thip Tham Law Office
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--on-navy-muted);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--topbar-h); gap: 16px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left .ti { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left .ti svg { width: 14px; height: 14px; color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-socials { display: flex; gap: 12px; }
.topbar-socials a svg { width: 15px; height: 15px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; letter-spacing: .04em; }
.lang-switch button { padding: 3px 8px; border-radius: var(--r-sm); color: var(--on-navy-muted); transition: .2s; font-size: var(--fs-xs); }
.lang-switch button.active { color: var(--navy-900); background: var(--gold); }
.lang-switch .sep { opacity: .4; }
@media (max-width: 760px) { .topbar-left .ti.hide-sm { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(246,244,239,.88);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule-gold); opacity: .45; pointer-events: none; }
.header.scrolled { box-shadow: var(--sh-md); background: rgba(246,244,239,.97); border-color: var(--line-strong); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .b-th { font-family: var(--serif-th); font-weight: 600; font-size: 1.1rem; color: var(--navy); letter-spacing: .01em; }
.brand-text .b-en { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 2px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 1px; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 11px; font-size: 0.875rem; font-weight: 500;
  color: var(--ink); border-radius: var(--r-sm); position: relative;
  transition: color .2s; white-space: nowrap;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > li > a:hover, .nav > li > a.active { color: var(--navy); }
.nav > li > a:hover::after, .nav > li > a.active::after { transform: scaleX(1); }
.nav .chev { width: 13px; height: 13px; transition: transform .25s; }

/* Dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(640px, 78vw);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  z-index: 90;
}
.dropdown::before { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 13px; height: 13px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.has-drop.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-drop.open .chev { transform: rotate(180deg); }
.drop-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); transition: background .2s; }
.drop-item:hover { background: var(--ivory); }
.drop-item .di-ic { flex: 0 0 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ivory-deep); color: var(--gold); transition: .25s; }
.drop-item:hover .di-ic { background: var(--navy); color: var(--gold-soft); }
.drop-item .di-ic svg { width: 20px; height: 20px; }
.drop-item .di-t { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.drop-item .di-d { font-size: var(--fs-xs); color: var(--slate); line-height: 1.45; margin-top: 2px; }
.drop-foot { grid-column: 1 / -1; margin-top: 8px; padding: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drop-foot span { font-size: var(--fs-sm); color: var(--slate); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 12px 22px; min-height: 46px; font-size: 0.875rem; }
.hamburger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.hamburger svg { width: 26px; height: 26px; color: var(--navy); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13,24,41,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; z-index: 95; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 88vw);
  background: var(--ivory); z-index: 96; box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head .x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); }
.drawer-head .x svg { width: 24px; height: 24px; }
.drawer-nav { padding: 12px var(--gutter) 24px; }
.drawer-nav a { display: block; padding: 15px 4px; font-size: 1.12rem; font-family: var(--serif-th); color: var(--navy); border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer-acc-panel { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.drawer-acc-panel a { font-family: var(--sans-th); font-size: .98rem; font-weight: 500; color: var(--slate); padding: 11px 4px 11px 18px; border-bottom: 1px dashed var(--line); }
.drawer-acc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.drawer-acc-toggle svg { width: 18px; height: 18px; transition: transform .3s; color: var(--gold); }
.drawer-acc.open .drawer-acc-toggle svg { transform: rotate(180deg); }
.drawer-foot { margin-top: auto; padding: 20px var(--gutter) 28px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

@media (max-width: 1160px) {
  .nav, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero — monumental cinematic stage (full-bleed) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-ink); color: var(--on-navy); }
.hero-grid { position: relative; display: block; min-height: min(90vh, 880px); }
/* full-bleed cinematic plate */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
/* navy wash — deepest behind the copy (left), clearing to reveal the room on the right */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, var(--navy-ink) 0%, rgba(7,14,28,.93) 30%, rgba(7,14,28,.56) 62%, rgba(7,14,28,.80) 100%),
    var(--vignette);
}
/* warm gold light from the upper-right */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(58% 50% at 86% 6%, rgba(184,144,47,.20), transparent 56%);
}
/* engraved gold frame around the whole stage */
.hero::after {
  content: ""; position: absolute; inset: clamp(14px, 2vw, 30px); z-index: 2; pointer-events: none;
  border: 1px solid rgba(217,197,139,.26);
}
.hero-copy {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  min-height: min(90vh, 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(92px, 13vh, 160px) var(--gutter) clamp(72px, 10vh, 124px);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(1.95rem, 1.18rem + 3.4vw, 4.1rem); line-height: 1.16; margin-top: 22px;
  color: #F4F0E7; text-wrap: balance; word-break: normal; max-width: 21ch;
  text-shadow: 0 2px 44px rgba(0,0,0,.45);
}
:lang(en) .hero h1 { line-height: 1.08; letter-spacing: var(--track-display); }
.hero h1 .accent { color: var(--gold-soft); font-style: normal; }
.hero .title-rule { display: block; width: 92px; height: 2px; background: var(--grad-gold-h); border-radius: 3px; margin-top: 26px; }
.hero .lead { margin-top: 24px; max-width: 52ch; color: #D7DCE5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(217,197,139,.20); max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-sm); color: #D7DCE5; font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
/* secondary button must read on the dark stage */
.hero .btn-outline { border-color: rgba(255,255,255,.55); color: #F4F0E7; background: rgba(255,255,255,.05); }
.hero .btn-outline:hover { border-color: var(--gold-soft); background: rgba(184,144,47,.18); color: #fff; transform: translateY(-2px); }

@media (max-width: 760px) {
  .hero-grid { min-height: auto; }
  .hero-copy { min-height: auto; padding-top: clamp(60px, 16vh, 116px); padding-bottom: clamp(48px, 10vh, 84px); }
  .hero-media::after { background: linear-gradient(180deg, rgba(7,14,28,.72) 0%, rgba(7,14,28,.84) 58%, var(--navy-ink) 100%), var(--vignette); }
  .hero h1 { max-width: 100%; }
  .hero::after { inset: 10px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); color: var(--on-navy); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: clamp(28px,3.4vw,44px) clamp(20px,2.4vw,38px); border-left: 1px solid rgba(255,255,255,.1); }
.trust-item:first-child { border-left: none; }
.trust-item .ti-ic { display: block; width: 42px; height: 42px; color: var(--gold-soft); margin-bottom: 16px; }
.trust-item h3 { color: var(--white); font-size: 1.16rem; font-family: var(--serif-th); overflow-wrap: anywhere; }
.trust-item .ti-ic svg { display: block; width: 100%; height: 100%; }
.trust-item p { color: var(--on-navy-muted); font-size: var(--fs-sm); margin-top: 7px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(3) { border-left: none; } .trust-item:nth-child(odd){ border-left:none;} .trust-item { border-top: 1px solid rgba(255,255,255,.1); } .trust-item:nth-child(-n+2){border-top:none;} }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { border-left: none; border-top: 1px solid rgba(255,255,255,.1);} .trust-item:first-child{border-top:none;} }

/* ---------- Core services (4 featured) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.svc-card { padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; }
.svc-card .num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .12em; }
.svc-card .svc-ic { width: 52px; height: 52px; color: var(--navy); margin: 6px 0 20px; }
.svc-card .svc-ic svg { width: 100%; height: 100%; stroke-width: 1.4; }
.svc-card h3 { font-size: var(--fs-h3); }
.svc-card p { color: var(--slate); margin-top: 12px; font-size: var(--fs-body); }
.svc-card .more { margin-top: auto; padding-top: 22px; color: var(--navy); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 8px; }
.svc-card .more svg { width: 16px; transition: transform .25s; }
.svc-card:hover .more svg { transform: translateX(5px); }
.svc-card .more { color: var(--gold); }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Practice areas (8) ---------- */
.areas { background: var(--ivory-deep); }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 18px; margin-top: 50px; }
.area-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.area-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.area-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-gold); }
.area-card:hover::before { transform: scaleY(1); }
.area-card .a-ic { width: 36px; height: 36px; color: var(--gold); margin-bottom: 14px; }
.area-card .a-ic svg { width: 100%; height: 100%; stroke-width: 1.5; }
.area-card h3 { font-size: 1.075rem; font-family: var(--serif-th); line-height: 1.32; }
.area-card p { font-size: var(--fs-xs); color: var(--slate); margin-top: 8px; line-height: 1.55; }
.area-card .a-more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-weight: 600; font-size: var(--fs-xs); font-family: var(--sans-th); }
.area-card .a-more svg { width: 14px; height: 14px; transition: transform .25s; }
.area-card:hover .a-more svg { transform: translateX(4px); }
.area-card .a-link { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 980px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Why us (split with image) ---------- */
.why { background: var(--ivory); }
.why-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.why-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/5; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media .badge-float { position: absolute; left: 20px; bottom: 20px; right: 20px; background: rgba(13,24,41,.78); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 18px 20px; color: var(--on-navy); }
.why-media .badge-float .bf-t { font-family: var(--serif-th); font-size: 1.05rem; color: var(--white); }
.why-media .badge-float .bf-d { font-size: var(--fs-xs); color: var(--on-navy-muted); margin-top: 3px; }
.why-list { margin-top: 38px; display: grid; gap: 4px; }
.why-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.why-item:first-child { border-top: none; padding-top: 6px; }
.why-item .wi-ic { flex: 0 0 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--navy); color: var(--gold-soft); }
.why-item .wi-ic svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.18rem; font-family: var(--serif-th); }
.why-item p { color: var(--slate); font-size: var(--fs-sm); margin-top: 5px; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } .why-media { aspect-ratio: 16/10; max-height: 440px; } }

/* ---------- Process timeline ---------- */
.process { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.process .bg-emblem { position: absolute; right: -60px; top: -40px; width: 380px; opacity: .04; pointer-events: none; }
.process .section-head h2 { color: var(--white); }
.process .section-head p { color: var(--champagne); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; position: relative; }
.proc-grid::before { content: ""; position: absolute; top: 27px; left: 7%; right: 7%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-gold) 0 8px, transparent 8px 16px); }
.proc-step { position: relative; }
.proc-step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-700); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-soft); position: relative; z-index: 2; box-shadow: 0 0 0 6px rgba(20,36,63,1), 0 8px 20px -8px rgba(184,144,47,.5); }
.proc-step h3 { color: var(--white); font-size: 1.2rem; margin-top: 22px; font-family: var(--serif-th); }
.proc-step p { color: var(--champagne); font-size: var(--fs-sm); margin-top: 9px; opacity: .85; }
@media (max-width: 820px) { .proc-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .proc-grid::before { display: none; } }
@media (max-width: 460px) { .proc-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.lawyer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); cursor: pointer; }
.lawyer-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.lawyer-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--navy-900); }
.lawyer-photo picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lawyer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease), filter .5s var(--ease); }
/* premium photo treatment: subtle navy depth gradient (bottom only — faces stay clean) + gold accent on hover */
.lawyer-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(to top, rgba(13,24,41,.40) 0%, rgba(13,24,41,.08) 32%, transparent 56%); transition: opacity .4s var(--ease); }
.lawyer-photo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.lawyer-card:hover .lawyer-photo img { transform: scale(1.05); filter: brightness(1.04) contrast(1.03) saturate(1.04); }
.lawyer-card:hover .lawyer-photo::before { transform: scaleX(1); }
.lawyer-card:hover .lawyer-photo::after { opacity: .82; }
.lawyer-info { padding: 22px 20px 26px; }
.lawyer-info .role { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lawyer-info h3 { font-size: 1rem; margin-top: 8px; white-space: nowrap; letter-spacing: 0; }
.lawyer-info .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.lawyer-info .tag { font-size: var(--fs-xs); color: var(--slate); background: var(--ivory); border: 1px solid var(--line); padding: 4px 11px; border-radius: var(--r-pill); }
.lawyer-info .view { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: var(--fs-sm); }
.lawyer-info .view svg { width: 16px; transition: transform .25s; }
.lawyer-card:hover .view svg { transform: translateX(4px); }
.team-note { margin-top: 26px; font-size: var(--fs-xs); color: var(--slate-light); display: inline-flex; gap: 8px; align-items: center; }
.team-note svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
/* 4-lawyer layout (team page): 4 cols -> 2 -> 1 */
.team-grid.four { grid-template-columns: repeat(4, 1fr); max-width: none; }
@media (max-width: 1080px) { .team-grid.four { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }
@media (max-width: 560px) { .team-grid.four { grid-template-columns: 1fr; max-width: 420px; } }
/* flexible, left-aligned team grid (homepage) — auto-flows for any number of lawyers */
.team-grid.flow { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); justify-content: start; max-width: none; margin-inline: 0; }
@media (max-width: 560px) { .team-grid.flow { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(13,24,41,.62); backdrop-filter: blur(4px); z-index: 120; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .32s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(720px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--ivory); border-radius: var(--r-lg); box-shadow: var(--sh-lg); transform: translateY(20px) scale(.98); transition: transform .4s var(--ease); }
.modal-backdrop.open .modal { transform: none; }
.modal-top { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.modal-photo { position: relative; background: var(--navy-900); }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; min-height: 240px; }
.modal-body { padding: 30px 32px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-sm); display: grid; place-items: center; z-index: 3; }
.modal-close svg { width: 20px; height: 20px; color: var(--navy); }
.modal-body .role { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.modal-body h3 { font-size: 1.8rem; margin-top: 8px; }
.modal-body .m-sub { color: var(--slate); margin-top: 4px; font-size: var(--fs-sm); }
.modal-section { margin-top: 22px; }
.modal-section h4 { font-family: var(--sans-th); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.modal-section ul { margin-top: 10px; display: grid; gap: 8px; }
.modal-section li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--slate); }
.modal-section li svg { width: 17px; flex: none; color: var(--gold); margin-top: 3px; }
.modal-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .modal-top { grid-template-columns: 1fr; } .modal-photo { aspect-ratio: 3/2; } .modal-photo img { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left; padding: 26px 4px; font-family: var(--serif-th); font-size: clamp(1.1rem,1.6vw,1.32rem); font-weight: 600; color: var(--navy); }
.faq-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-gold); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--gold); transition: transform .3s var(--ease); }
.faq-ic::before { width: 14px; height: 1.6px; }
.faq-ic::after { width: 1.6px; height: 14px; }
.faq-item.open .faq-ic { background: var(--gold); border-color: var(--gold); }
.faq-item.open .faq-ic::before, .faq-item.open .faq-ic::after { background: var(--white); }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--slate); font-size: var(--fs-body); max-width: 72ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--on-navy); overflow: hidden; isolation: isolate; }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13,24,41,.95) 30%, rgba(20,36,63,.78)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: clamp(48px,6vw,84px); flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); font-size: var(--fs-h2); max-width: 18ch; }
.cta-inner p { color: var(--on-navy-muted); margin-top: 14px; max-width: 44ch; font-size: var(--fs-lead); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact / appointment ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(32px,4vw,64px); align-items: start; }
.contact-info .ci-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-block:last-of-type { border-bottom: none; }
.ci-ic { flex: 0 0 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ivory-deep); color: var(--gold); }
.ci-ic svg { width: 23px; height: 23px; }
.ci-block .ci-l { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-light); font-weight: 600; }
.ci-block .ci-v { font-size: 1.1rem; color: var(--navy); font-weight: 600; margin-top: 3px; }
.ci-block .ci-v.sm { font-size: .98rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.map-embed { margin-top: 22px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; position: relative; background: var(--ivory-deep); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.02); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: clamp(26px,3vw,42px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--ink);
  background: var(--ivory); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: 14px 16px; min-height: 52px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--champagne-12); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-light); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; font-size: var(--fs-xs); color: var(--slate); line-height: 1.6; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn-primary { width: 100%; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: pop .5s var(--ease); }
.form-success .succ-ic { width: 68px; height: 68px; border-radius: 50%; background: rgba(31,138,91,.12); color: #1F8A5B; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .succ-ic svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--slate); margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--on-navy-muted); position: relative; overflow: hidden; }
.footer .foot-bg { position: absolute; right: -80px; bottom: -40px; width: 460px; opacity: .06; pointer-events: none; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px,6vw,80px); }
.footer-brand .brand-text .b-th { color: var(--white); }
.footer-brand img { width: 60px; height: 60px; background: #fff; border-radius: 15px; padding: 6px; box-sizing: border-box; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(184,144,47,.40); }
.footer-brand p { font-size: var(--fs-sm); margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.foot-social { display: flex; gap: 12px; margin-top: 22px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; transition: .25s; }
.foot-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.foot-social a svg { width: 18px; height: 18px; }
.footer h2 { margin-top: 0; color: var(--white); font-family: var(--sans-th); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: var(--fs-sm); transition: color .2s; }
.footer ul a:hover { color: var(--gold-soft); }
.foot-contact .fc { display: flex; gap: 10px; font-size: var(--fs-sm); margin-bottom: 13px; }
.foot-contact .fc svg { width: 17px; flex: none; color: var(--gold-soft); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Floating + mobile action bar ---------- */
.line-float { position: fixed; right: 24px; bottom: 28px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: #06C755; color: #fff; padding: 14px 22px 14px 18px; border-radius: var(--r-pill); box-shadow: 0 14px 30px -10px rgba(6,199,85,.6); font-weight: 700; font-size: var(--fs-sm); transition: transform .35s var(--ease), opacity .3s var(--ease); }
.line-float:hover { transform: translateY(-3px); }
.line-float svg { width: 24px; height: 24px; }
.line-float.tucked { opacity: 0; transform: translateY(28px); pointer-events: none; }

.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: none; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: 0 -8px 24px -10px rgba(20,36,63,.25); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 11px 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); position: relative; }
.action-bar a + a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.ab-line { color: #06C755; }
.action-bar a.ab-book { color: var(--gold); }
@media (max-width: 1160px) { .action-bar { display: grid; } .line-float { display: none; } body { padding-bottom: 64px; } }

/* tiny helpers */
.mono { font-family: ui-monospace, monospace; }
.nowrap { white-space: nowrap; }

/* ============================================================
   Service-area (Pillar) page
   ============================================================ */
.breadcrumb { background: var(--ivory); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: var(--fs-xs); color: var(--slate); padding-block: 16px; list-style: none; margin: 0; }
.breadcrumb a { color: var(--slate); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--platinum); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.subhero { background: var(--ivory); position: relative; }
.subhero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,64px); align-items: center; padding-block: clamp(40px,5vw,76px); }
.subhero-copy h1 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); line-height: 1.2; margin-top: 18px; }
.subhero-copy .title-rule { display: block; width: 72px; height: 3px; background: var(--gold); border-radius: 3px; margin-top: 20px; }
.subhero-copy .lead { margin-top: 22px; max-width: 50ch; }
.subhero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.subhero-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/3; position: relative; }
.subhero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(13,24,41,.28)); }
@media (max-width: 860px) { .subhero-grid { grid-template-columns: 1fr; } .subhero-media { aspect-ratio: 16/10; order: -1; } }

.snippet { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px,3vw,36px); box-shadow: var(--sh-sm); }
.snippet .snippet-q { font-family: var(--serif-th); font-size: var(--fs-h3); color: var(--navy); margin-bottom: 12px; }
.snippet p { font-size: var(--fs-lead); color: var(--ink); line-height: 1.72; }
.prose p { color: var(--slate); margin-top: 20px; max-width: 74ch; }

.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 46px; }
.detail-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; display: flex; gap: 18px; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-gold); }
.detail-card .dc-ic { flex: 0 0 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ivory-deep); color: var(--gold); }
.detail-card .dc-ic svg { width: 24px; height: 24px; stroke-width: 1.5; }
.detail-card h3 { font-size: 1.16rem; font-family: var(--serif-th); }
.detail-card p { font-size: var(--fs-sm); color: var(--slate); margin-top: 6px; line-height: 1.55; }
.detail-grid .detail-card:nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid .detail-card:nth-child(5) { grid-column: auto; } }

.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.related-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.related-card:hover { border-color: var(--line-gold); box-shadow: var(--sh-md); transform: translateY(-3px); }
.related-card .rc-ic { flex: 0 0 40px; height: 40px; color: var(--gold); }
.related-card .rc-ic svg { width: 100%; height: 100%; stroke-width: 1.5; }
.related-card .rc-t { display: block; font-family: var(--serif-th); font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.related-card .rc-d { display: block; font-size: var(--fs-xs); color: var(--slate); margin-top: 4px; line-height: 1.45; }
.related-card .rc-arrow { margin-left: auto; color: var(--gold); flex: none; }
.related-card .rc-arrow svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

.cluster-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--slate-light); font-family: ui-monospace, monospace; }
.cluster-note svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ============================================================
   Added components for new pages (contact / team / faq /
   privacy / disclaimer / 404). Uses only existing tokens —
   no new colors, fonts or spacing introduced.
   ============================================================ */

/* ---------- Simple page header band ---------- */
.page-head { background: var(--ivory); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .container { padding-block: clamp(34px, 5vw, 66px); position: relative; z-index: 1; }
.page-head.center { text-align: center; }
.page-head.center .eyebrow { justify-content: center; }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); margin-top: 16px; line-height: 1.18; }
.page-head .title-rule { display: block; width: 72px; height: 3px; background: var(--gold); border-radius: 3px; margin-top: 20px; }
.page-head.center .title-rule { margin-inline: auto; }
.page-head .lead { margin-top: 20px; max-width: 62ch; }
.page-head.center .lead { margin-inline: auto; }
.page-head .ph-emblem { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); width: 280px; opacity: .045; pointer-events: none; }

/* ---------- Contact quick-channel cards ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.channel-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-gold); }
.channel-card .cc-ic { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ivory-deep); color: var(--gold); margin-bottom: 14px; transition: .25s; }
.channel-card:hover .cc-ic { background: var(--navy); color: var(--gold-soft); }
.channel-card .cc-ic svg { width: 24px; height: 24px; }
.channel-card .cc-l { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); font-weight: 600; }
.channel-card .cc-v { font-size: 1.05rem; color: var(--navy); font-weight: 600; word-break: break-word; margin-top: 3px; }
.channel-card .cc-note { font-size: var(--fs-xs); color: var(--slate); margin-top: 4px; }
@media (max-width: 900px) { .channel-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .channel-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ category heading ---------- */
.faq-cat { display: flex; align-items: center; gap: 14px; font-family: var(--sans-th); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin: 38px 0 2px; }
.faq-wrap .faq-cat:first-child { margin-top: 0; }
.faq-cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Legal document pages (privacy / disclaimer) ---------- */
.legal-doc { max-width: 824px; margin-inline: auto; }
.legal-doc .doc-meta { font-size: var(--fs-xs); color: var(--slate-light); margin-bottom: 6px; font-family: ui-monospace, monospace; letter-spacing: .02em; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 28px; margin: 10px 0 18px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.legal-toc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-gold-h); }
.legal-toc h2 { font-size: 1.05rem; margin: 0 0 12px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; padding: 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; color: var(--slate); font-size: var(--fs-sm); transition: color .2s; }
.legal-toc a::before { content: counter(toc) "."; color: var(--gold); font-weight: 700; }
.legal-toc a:hover { color: var(--navy); }
.legal-doc h2 { font-size: var(--fs-h3); margin-top: 44px; scroll-margin-top: 100px; }
.legal-doc h2 .num { color: var(--gold); margin-right: 10px; font-family: var(--serif); }
.legal-doc h3 { font-size: 1.1rem; margin-top: 26px; color: var(--navy); }
.legal-doc p { color: var(--slate); margin-top: 16px; line-height: 1.82; }
.legal-doc ul, .legal-doc ol.doc-ol { margin-top: 14px; padding-left: 2px; display: grid; gap: 11px; list-style: none; }
.legal-doc ul li { display: flex; gap: 12px; color: var(--slate); line-height: 1.72; }
.legal-doc ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); }
.legal-doc ol.doc-ol { counter-reset: li; }
.legal-doc ol.doc-ol > li { counter-increment: li; display: flex; gap: 13px; color: var(--slate); line-height: 1.72; }
.legal-doc ol.doc-ol > li::before { content: counter(li); flex: none; width: 25px; height: 25px; font-size: .8rem; font-weight: 700; color: var(--gold); background: var(--ivory-deep); border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.legal-doc a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc .doc-note { background: var(--ivory-deep); border-radius: var(--r-md); padding: 18px 22px; margin-top: 26px; font-size: var(--fs-sm); color: var(--slate); display: flex; gap: 12px; line-height: 1.7; }
.legal-doc .doc-note svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }

/* ---------- Form: validation, honeypot, appointment ---------- */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0392B; background: #fdf3f2; }
.field-error { display: none; color: #C0392B; font-size: var(--fs-xs); margin-top: 6px; }
.field.invalid .field-error { display: block; }
.consent.invalid { color: #C0392B; }
.consent.invalid input { outline: 2px solid #C0392B; outline-offset: 2px; }
.form-banner { display: none; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r-md); font-size: var(--fs-sm); margin-bottom: 18px; line-height: 1.55; }
.form-banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-banner.show.error { display: flex; background: #fdf3f2; color: #C0392B; border: 1px solid #f0c9c4; }
.form-card.sending button[type="submit"] { opacity: .65; pointer-events: none; }
.appt-options { display: grid; gap: 12px; margin: 2px 0 20px; }
.appt-options .field { margin-bottom: 0; }
.appt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){ .appt-row { grid-template-columns: 1fr; } }
.form-intro { font-size: var(--fs-sm); color: var(--slate); margin-bottom: 22px; line-height: 1.6; }

/* ---------- Small shared helpers ---------- */
.note-strip { display: flex; gap: 12px; align-items: flex-start; background: var(--ivory-deep); border-radius: var(--r-md); padding: 16px 20px; font-size: var(--fs-sm); color: var(--slate); line-height: 1.65; }
.note-strip svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.error-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.err-code { font-family: var(--serif); font-size: clamp(4rem, 3rem + 8vw, 9rem); color: var(--gold); line-height: 1; opacity: .9; }

/* ---------- Toast (copy-phone feedback) ---------- */
.ytt-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(18px); z-index: 200; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); background: var(--navy-900); color: var(--on-navy); padding: 13px 22px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--sh-lg); border: 1px solid var(--line-gold); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ytt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ytt-toast svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
@media (max-width: 1160px) { .ytt-toast { bottom: 76px; } } /* clear the mobile action bar */

/* ============================================================
   Premium upgrade — refined-luxury motion + components
   ============================================================ */
/* primary button: gold shine sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); transition: left .65s var(--ease); pointer-events: none; }
.btn-primary:hover::after { left: 150%; }

/* homepage hero image: slow cinematic ken-burns */
.hero-media > img, .hero-media > picture > img { animation: ytt-kenburns 22s ease-out both; }
@keyframes ytt-kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media > img, .hero-media > picture > img { animation: none; } .btn-primary::after { display: none; } }

/* centered gold flourish divider */
.flourish-divider { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--gold); padding-block: clamp(8px, 2vw, 18px); }
.flourish-divider::before, .flourish-divider::after { content: ""; height: 1px; width: clamp(48px, 12vw, 130px); }
.flourish-divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish-divider .d { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* trust / credibility band (factual only — ethics-safe) */
.trust-band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.trust-band .bg-emblem { position: absolute; left: -60px; bottom: -60px; width: 320px; opacity: .045; pointer-events: none; }
.trust-band .tb-head { text-align: center; max-width: 64ch; margin-inline: auto; }
.trust-band .tb-head h2 { color: #fff; font-size: var(--fs-h2); margin-top: 16px; }
.trust-band .tb-head p { color: var(--champagne); margin-top: 16px; font-size: var(--fs-lead); text-wrap: pretty; }
.trust-band .eyebrow.center { justify-content: center; }
.trust-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 50px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.tb-stat { background: var(--navy); padding: 34px 20px; text-align: center; transition: background .35s var(--ease); }
.tb-stat:hover { background: var(--navy-700); }
.tb-stat .num { font-family: var(--serif-th); font-weight: 600; color: var(--gold-soft); font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem); line-height: 1; letter-spacing: .01em; }
.tb-stat .lbl { color: var(--on-navy-muted); font-size: var(--fs-sm); margin-top: 13px; line-height: 1.5; }
@media (max-width: 760px) { .trust-grid2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .trust-grid2 { grid-template-columns: 1fr; } }

/* ============================================================
   Phase 2 — deep polish (service / contact / faq / footer / doc)
   ============================================================ */
/* service sub-hero: gold glow + framed media + corner bracket */
.subhero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(640px 280px at 86% 0%, rgba(184,144,47,.08), transparent 62%); }
.subhero .container { position: relative; z-index: 1; }
.subhero-media { box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(184,144,47,.22); }
.subhero-media::before { content: ""; position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-right: 2px solid var(--gold-soft); border-bottom: 2px solid var(--gold-soft); border-bottom-right-radius: 6px; z-index: 3; opacity: .85; }

/* featured snippet: subtle quote flourish */
.snippet { position: relative; overflow: hidden; }
.snippet::before { content: "\201C"; position: absolute; top: -6px; right: 22px; font-family: var(--serif); font-size: 5.2rem; line-height: 1; color: var(--gold); opacity: .13; pointer-events: none; }

/* related cards: gold left accent on hover */
.related-card { position: relative; overflow: hidden; }
.related-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.related-card:hover::before { transform: scaleY(1); }

/* simple page headers (contact/faq/privacy/disclaimer/404): gold glow */
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 230px at 85% 0%, rgba(184,144,47,.06), transparent 60%); }

/* contact form card: gold top accent */
.form-card { position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--champagne)); border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* footer: gold hairline + lift socials */
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(184,144,47,.5), transparent); }
.foot-social a { transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; }
.foot-social a:hover { transform: translateY(-3px); }
.footer ul a { position: relative; }
.footer ul a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold-soft); transition: width .3s var(--ease); }
.footer ul a:hover::after { width: 100%; }

/* ============================================================
   Phase 3 — scroll progress + service hero emblem
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); pointer-events: none; will-change: width; }

.subhero-copy .area-emblem { width: 60px; height: 60px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--navy); color: var(--gold-soft); margin-bottom: 18px; box-shadow: var(--sh-md); }
.subhero-copy .area-emblem svg { width: 32px; height: 32px; stroke-width: 1.5; }

/* ============================================================
   MAGNIFICENT EDITION — dignified-luxury elevation layer
   Navy + Heritage Gold identity preserved; execution raised.
   Cascades over the base; restyles existing hooks, adds depth.
   ============================================================ */

/* ---- Top bar: refined engraved strip ---- */
.topbar { background: var(--navy-ink); position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-gold); opacity: .32; }
.topbar-left .ti svg { color: var(--gold-soft); }

/* ---- Brand wordmark ---- */
.brand img { transition: transform .5s var(--ease-out-expo); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.brand-text .b-en { color: var(--gold-text); }

/* ---- Nav underline → struck gold ---- */
.nav > li > a::after { background: var(--grad-gold-h); height: 2px; }

/* ---- Hero entrance choreography (enhances an already-visible default) ---- */
/* Transform-only entrance: copy is never gated invisible, so the hero can
   never ship blank in a headless renderer or if the animation never fires. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: ytt-rise 1s var(--ease-out-expo) both; }
  .hero-copy > .eyebrow      { animation-delay: .04s; }
  .hero-copy > h1            { animation-delay: .12s; }
  .hero-copy > .title-rule   { animation-delay: .26s; }
  .hero-copy > .lead         { animation-delay: .34s; }
  .hero-copy > .hero-actions { animation-delay: .44s; }
  .hero-copy > .hero-badges  { animation-delay: .54s; }
}
@keyframes ytt-rise { from { transform: translateY(26px); } to { transform: none; } }

/* ============================================================
   Trust band → light "engraved register" (rhythm break after dark hero)
   ============================================================ */
.trust-band { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%); color: var(--ink); }
.trust-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-gold); opacity: .4; }
.trust-band .bg-emblem { opacity: .05; }
.trust-band .eyebrow.center { color: var(--gold-text); }
.trust-band .tb-head h2 { color: var(--navy); }
.trust-band .tb-head p { color: var(--slate); }
.trust-grid2 { background: var(--line); border: 1px solid var(--line-strong); box-shadow: var(--sh-md); }
.tb-stat { background: var(--ivory-warm); padding-block: clamp(34px, 4vw, 48px); }
.tb-stat:hover { background: var(--white); }
.tb-stat .num { color: var(--navy); font-family: var(--serif-th); }
:lang(en) .tb-stat .num { font-family: var(--serif); }
.tb-stat .num::after { content: ""; display: block; width: 36px; height: 2px; margin: 15px auto 0; border-radius: 2px; background: var(--grad-gold-h); }
.tb-stat .lbl { color: var(--slate); margin-top: 12px; }

/* ============================================================
   Core services → editorial "pillars" with engraved numeral watermark
   ============================================================ */
.svc-grid { gap: clamp(18px, 2vw, 26px); }
.svc-card { position: relative; overflow: hidden; background: var(--ivory-warm); padding: clamp(30px, 3.2vw, 48px); }
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-gold-h); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out-expo); }
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--sh-xl); border-color: var(--line-gold); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card .num { position: absolute; top: clamp(16px, 2vw, 26px); right: clamp(20px, 2.4vw, 34px); font-family: var(--serif); font-size: clamp(2.8rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: 0; color: var(--gold); opacity: .15; transition: opacity .4s var(--ease); pointer-events: none; }
.svc-card:hover .num { opacity: .28; }
.svc-card .svc-ic { color: var(--navy); transition: transform .5s var(--ease-out-expo); }
.svc-card:hover .svc-ic { transform: translateY(-2px) scale(1.04); }
.svc-card h3 { font-size: var(--fs-h3); }

/* ============================================================
   Practice areas → refined two-column register (no card-grid monotony)
   ============================================================ */
.areas { background: var(--ivory-deep); }
.area-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 5vw, 72px); row-gap: 0;
  grid-auto-rows: auto; margin-top: clamp(34px, 4vw, 54px);
  counter-reset: area; border-top: 1px solid var(--line-strong);
}
.area-card {
  counter-increment: area;
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; box-shadow: none; height: auto; overflow: visible;
  display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; grid-template-rows: auto auto;
  column-gap: clamp(14px, 1.6vw, 20px); row-gap: 2px; align-items: center;
  padding: clamp(20px, 2.2vw, 28px) clamp(8px, 1.4vw, 16px);
  transition: background .4s var(--ease), padding-left .4s var(--ease-out-expo);
}
.area-card:hover { background: var(--ivory-warm); padding-left: clamp(14px, 1.8vw, 22px); }
.area-card::before {
  content: counter(area, decimal-leading-zero);
  position: static; width: auto; height: auto; transform: none;
  grid-column: 1; grid-row: 1 / span 2; align-self: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1;
  color: var(--gold-text); opacity: 1; font-variant-numeric: tabular-nums; letter-spacing: .03em;
}
.area-card .a-ic { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 30px; height: 30px; margin: 0; color: var(--navy); }
.area-card .a-ic svg { stroke-width: 1.5; }
.area-card h3 { grid-column: 3; grid-row: 1; align-self: end; margin: 0; font-size: 1.1rem; line-height: 1.3; }
.area-card p { grid-column: 3; grid-row: 2; align-self: start; margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--slate); }
.area-card .a-more { grid-column: 4; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 0; font-size: 0; color: var(--gold-text); }
.area-card .a-more svg { width: 19px; height: 19px; }
.area-card:hover .a-more svg { transform: translateX(5px); }
@media (max-width: 720px) { .area-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Why us → framed media + refined list
   ============================================================ */
.why-media { box-shadow: var(--sh-xl); }
.why-media::before { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(217,197,139,.55); pointer-events: none; }
.why-media .badge-float { z-index: 3; background: rgba(7,14,28,.84); border-color: rgba(217,197,139,.28); }
.why-item .wi-ic { background: var(--grad-navy); box-shadow: var(--sh-sm); transition: transform .4s var(--ease-out-expo); }
.why-item:hover .wi-ic { transform: translateY(-3px); }

/* ============================================================
   Process → deep chamber timeline, engraved numerals
   ============================================================ */
.process { background: var(--grad-ink); }
/* dark page-specific sections: keep eyebrow legible (bright gold on dark) */
.process .eyebrow, .tvalues .eyebrow, .sg-hero .eyebrow { color: var(--gold-soft); }
.process .proc-grid::before { background: var(--rule-gold); opacity: .5; height: 1px; }
.proc-step .dot {
  background: radial-gradient(circle at 50% 32%, var(--navy-700), var(--navy-900));
  border: 1.5px solid var(--gold); color: var(--gold-bright);
  box-shadow: 0 0 0 6px var(--navy-ink), var(--glow-gold); transition: transform .45s var(--ease-out-expo);
}
.proc-step:hover .dot { transform: translateY(-4px); }

/* ============================================================
   Team → warm paper cards, deeper lift
   ============================================================ */
.lawyer-card { background: var(--ivory-warm); }
.lawyer-card:hover { box-shadow: var(--sh-xl); }
.lawyer-info .role { color: var(--gold-text); }

/* ============================================================
   FAQ → calmer hairlines, refined toggle
   ============================================================ */
.faq-item { border-bottom-color: var(--line-strong); }
.faq-q:hover { color: var(--gold-deep); }
.faq-item.open .faq-q { color: var(--navy); }

/* ============================================================
   CTA band → deeper cinematic overlay + gold frame
   ============================================================ */
.cta-band::after { background: linear-gradient(100deg, rgba(7,14,28,.95) 26%, rgba(20,36,63,.74)); }
.cta-band .cta-inner { position: relative; }
.cta-inner h2 { font-size: clamp(1.95rem, 1.3rem + 2.3vw, 3.05rem); }
.cta-band .cta-bg img { filter: saturate(.92) contrast(1.02); }

/* ============================================================
   Contact → refined form chamber
   ============================================================ */
.form-card::before { background: var(--grad-gold-h); height: 2px; }
.form-card { box-shadow: var(--sh-lg); }
.ci-ic { background: var(--ivory-deep); transition: background .3s, color .3s; }
.ci-block:hover .ci-ic { background: var(--navy); color: var(--gold-soft); }

/* ============================================================
   Footer → engraved masthead
   ============================================================ */
.footer { background: var(--grad-ink); }
.footer::before { background: var(--rule-gold); opacity: .6; height: 1px; }
.footer-brand .brand-text .b-th { font-size: 1.28rem; }
.footer .brand-text .b-en { color: var(--gold-soft); }

/* ============================================================
   Inner-page heroes (subhero / page-head) → elevated light masthead
   ============================================================ */
.subhero, .page-head { background: var(--paper-tex) 0 0 / 23px 23px, var(--ivory); }
.subhero::after, .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-gold); opacity: .45; }
.subhero { border-bottom: 1px solid var(--line); }
.subhero::before { background: radial-gradient(700px 320px at 88% -8%, rgba(184,144,47,.12), transparent 60%); }
.subhero-copy h1, .page-head h1 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3.2rem); }
.subhero-copy .title-rule, .page-head .title-rule { background: var(--grad-gold-h); height: 2px; width: 84px; }
.subhero-copy .area-emblem { background: var(--grad-navy); box-shadow: var(--sh-md), inset 0 0 0 1px rgba(217,197,139,.25); }

/* ============================================================
   Detail / related / channel cards → refined, no side stripes
   ============================================================ */
.detail-card { background: var(--ivory-warm); }
.detail-card:hover { box-shadow: var(--sh-lg); }
.detail-card .dc-ic { background: var(--ivory-deep); transition: background .3s, color .3s; }
.detail-card:hover .dc-ic { background: var(--navy); color: var(--gold-soft); }
.related-card { background: var(--ivory-warm); overflow: hidden; }
.related-card::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; background: var(--grad-gold-h); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out-expo); }
.related-card:hover::before { transform: scaleX(1); }
.related-card:hover .rc-arrow svg { transform: translateX(4px); transition: transform .3s var(--ease); }
.channel-card { background: var(--ivory-warm); }

/* ---- Toast / scroll progress refinement ---- */
.scroll-progress { background: var(--grad-gold-h); height: 2px; }

/* ============================================================
   Creed frieze — the firm's motto as a dark pedestal under the hero
   ============================================================ */
.creed { background: var(--navy-ink); color: var(--on-navy); position: relative; overflow: hidden; }
.creed::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 140% at 50% 0%, rgba(184,144,47,.10), transparent 70%); }
.creed .container { padding-block: clamp(22px, 3.4vw, 38px); position: relative; z-index: 1; }
.creed-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); text-align: center; margin: 0; }
.creed-line span { font-family: var(--serif-th); font-weight: 500; font-size: clamp(1.18rem, 1rem + 1.05vw, 1.75rem); color: #EFE9DA; letter-spacing: .015em; }
:lang(en) .creed-line span { font-family: var(--serif); font-style: italic; }
.creed-line .cd { width: 8px; height: 8px; flex: none; background: var(--grad-gold); transform: rotate(45deg); box-shadow: 0 0 16px rgba(184,144,47,.55); }
@media (max-width: 600px) { .creed-line { gap: 12px 18px; } .creed-line .cd { width: 6px; height: 6px; } }

/* ---- Honor reduced-motion across new hover transforms ---- */
@media (prefers-reduced-motion: reduce) {
  .svc-card:hover, .why-item:hover .wi-ic, .proc-step:hover .dot, .area-card:hover { transform: none; }
  .hero-copy > *, .hero-media { animation: none !important; }
}
