/* Law Office of Giancarlo A. Pinto, P.A. — site styles
   Mobile first. Breakpoints: 768px (tablet), 1024px (desktop).
   Accessibility target: WCAG 2.2 Level AA. Contrast ratios noted beside colors. */

:root {
  --navy: #082A40;
  --navy-900: #051D2E;
  --navy-700: #0E3A57;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --ink: #0B2234;
  --muted: #4E6170;        /* 6.4:1 on white */
  --line: #DCE3E8;         /* decorative dividers only */
  --control: #7A8E9D;      /* form-control borders: 3.4:1 on white (WCAG 1.4.11) */
  --green: #7ED957;        /* fills only, with navy text: 9.8:1 */
  --green-hover: #8FEA45;
  --green-ink: #2E7D16;    /* green text/borders on light: 5.2:1 */
  --green-wash: #F1FAEA;
  --disabled: #5C6E7C;
  --danger: #B42318;       /* 6.4:1 on white */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 20px;
  --r-tile: 14px;
  --r-ctl: 10px;

  --gutter: 20px;
  --header-h: 64px;
  --shadow-float: 0 30px 70px -24px rgba(2, 14, 24, .6), 0 2px 6px rgba(2, 14, 24, .12);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep focused/targeted content clear of the fixed header and mobile bar (WCAG 2.4.11) */
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (max-width: 767px) { html { scroll-padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* Focus: navy ring on light surfaces, green ring on dark surfaces (both ≥ 3:1) */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero-copy :focus-visible, .section-navy :focus-visible,
.final :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--green); }
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 16px var(--gutter); background: var(--white); text-align: center; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.i-lg { width: 36px; height: 36px; }

/* ── Monogram: G and P share font, size and baseline; only the rule differs ── */
.monogram {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1;
  font-variant-numeric: lining-nums;
}
.monogram > span { display: inline-block; line-height: 1; }
.monogram-rule { align-self: center; width: 1.5px; height: 1.05em; margin: 0 .3em; background: var(--green); }
/* Flex centering uses the font's full box (ascent + descent), which sits below the
   capitals. Lift the rule so its midpoint matches the midpoint of G and P (cap height ≈ .69em). */
.monogram-rule { transform: translateY(-.12em); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--navy-900); }
.btn-primary:hover { background: var(--green-hover); }
.btn-primary:disabled { background: var(--disabled); color: #fff; cursor: progress; transform: none; }
.btn-block { display: flex; width: 100%; border-radius: var(--r-ctl); min-height: 54px; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost-dark { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--control); }

.text-link { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy); }

/* ── Header ── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white); transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-solid, .site-header.is-open, .site-header.is-static { background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand .monogram { font-size: 1.7rem; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.wordmark-top { font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.wordmark-name { font-family: var(--serif); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; margin: 2px 0; padding-bottom: 2px; border-bottom: 1px solid var(--green); }
.wordmark-pa { font-size: .5rem; letter-spacing: .2em; opacity: .9; }
@media (max-width: 359px) { .wordmark { display: none; } }

.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover { border-bottom-color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Language switch: text labels, each written in its own language */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 4px 8px; border-radius: 8px;
  text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  opacity: .75;
}
.lang-switch a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.lang-switch a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--green); border-radius: 8px 8px 2px 2px; }

.btn-call { min-height: 44px; min-width: 44px; padding: 0 12px; background: var(--green); color: var(--navy-900); white-space: nowrap; }
.btn-call:hover { background: var(--green-hover); }
.btn-call .btn-call-num { display: none; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: inherit; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.is-open .menu-bars { background: transparent; }
.is-open .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: var(--navy); padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.1); }

@media (min-width: 768px) {
  .brand .monogram { font-size: 2.2rem; }
  .wordmark-top { font-size: .58rem; }
  .wordmark-name { font-size: .95rem; letter-spacing: .08em; }
  .wordmark-pa { font-size: .55rem; }
  .btn-call .btn-call-num { display: inline; }
  .btn-call { padding: 0 20px; }
  .header-actions { gap: 12px; }
}
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .header-actions { margin-left: 24px; gap: 16px; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand .monogram { font-size: 2.6rem; }
  .wordmark-name { font-size: 1.05rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .primary-nav ul { gap: 18px; }
  .btn-call .btn-call-num { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--navy-900);
  padding: calc(var(--header-h) + 20px) 0 40px;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,29,46,.9) 0%, rgba(5,29,46,.78) 30%, rgba(5,29,46,.55) 55%, rgba(5,29,46,.8) 100%);
}
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-copy { text-shadow: 0 1px 12px rgba(5,29,46,.6); }
.hero-place { font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 9vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.hero-sub { margin-top: 8px; font-size: 1.02rem; line-height: 1.4; }
.hero-sub span + span::before { content: " "; }
.trust { display: none; }
.trust li { display: flex; align-items: center; gap: 12px; }
.trust .i { color: var(--green); width: 22px; height: 22px; }

@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero-place { font-size: .95rem; margin-bottom: 8px; }
  .hero-sub { font-size: 1.5rem; margin-top: 12px; }
  .hero-sub span { display: block; }
  .hero-sub span + span::before { content: none; }
  .trust { display: grid; gap: 12px; margin-top: 30px; font-size: 1.08rem; }
  .intake { max-width: 560px; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(100vh, 900px); display: flex; align-items: center; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5,29,46,.9) 0%, rgba(5,29,46,.78) 30%, rgba(5,29,46,.55) 48%, rgba(5,29,46,0) 68%),
      linear-gradient(180deg, rgba(5,29,46,.7) 0%, rgba(5,29,46,0) 20%, rgba(5,29,46,0) 72%, rgba(5,29,46,.5) 100%);
  }
  .hero-title { font-size: clamp(3.6rem, 5.4vw, 5rem); }
  .intake { justify-self: end; width: 100%; }
}

/* Photography */
.photo { position: absolute; inset: 0; z-index: -2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: 50% 62%; }
.final-photo img { object-position: 50% 55%; }

/* ── Intake card ── */
.intake { background: var(--white); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-float); padding: 20px 18px 16px; text-shadow: none; }
@media (min-width: 768px) { .intake { padding: 30px 30px 20px; } }

.intake-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; min-height: 28px; }
.intake-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  background: none; border: 0; padding: 4px 8px 4px 0; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--muted);
}
.intake-back:hover { color: var(--navy); }
.intake-step { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); white-space: nowrap; }
.progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 33.33%; background: var(--green-ink); border-radius: inherit; transition: width .45s cubic-bezier(.3,.7,.2,1); }
.progress-fill::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--green-ink); box-shadow: 0 0 0 3px var(--white); }
.progress[aria-valuenow="2"] .progress-fill { width: 66.66%; }
.progress[aria-valuenow="3"] .progress-fill { width: 100%; }
.progress[aria-valuenow="3"] .progress-fill::after { right: 0; }

.intake.has-moved .intake-panel { animation: panel-in .3s ease both; }
.intake.has-moved.is-going-back .intake-panel { animation-name: panel-in-back; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes panel-in-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.intake-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 5.6vw, 2rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; }
.intake-title-center { text-align: center; }
.intake-sub { text-align: center; color: var(--muted); font-size: .95rem; margin: -8px auto 18px; max-width: 36ch; }

.incident-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.incident {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 104px; padding: 14px 8px;
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--control); border-radius: var(--r-tile);
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.incident:hover { border-color: var(--green-ink); background: var(--green-wash); }
.incident[aria-pressed="true"] { border-color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1.5px var(--green-ink); }
.incident[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-ink); color: #fff; font-size: .75rem; line-height: 1;
}
@media (min-width: 768px) { .incident { min-height: 124px; font-size: 1.02rem; } }

.choice { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.choice legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-row-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .choice-row-4 { grid-template-columns: repeat(4, 1fr); } }
.choice label { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label span {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 50px; padding: 6px 8px;
  border: 1.5px solid var(--control); border-radius: var(--r-ctl);
  font-weight: 600; font-size: .95rem; line-height: 1.15; color: var(--navy);
  cursor: pointer; user-select: none; transition: border-color .15s ease, background-color .15s ease;
}
.choice label:hover span { border-color: var(--green-ink); }
.choice input:checked + span { border-color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1.5px var(--green-ink); }
.choice input:checked + span::before { content: "✓"; color: var(--green-ink); font-weight: 800; }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.choice.is-missing legend { color: var(--danger); }
.choice.is-missing label span { border-color: var(--danger); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--danger); }
.req-note { font-size: .82rem; color: var(--muted); margin: -6px 0 12px; text-align: center; }
.field input {
  width: 100%; height: 54px; padding: 0 14px;
  border: 1.5px solid var(--control); border-radius: var(--r-ctl);
  background: var(--white); font-size: 1.05rem; /* ≥16px avoids iOS zoom */
}
.field input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error, .form-error { color: var(--danger); font-size: .92rem; font-weight: 600; margin-top: 6px; }
.field-error::before { content: "⚠ "; }
.form-error { margin: 0 0 12px; padding: 10px 12px; background: #FEF3F2; border-radius: 8px; }
.form-error a { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.consent a { color: var(--navy); }
[data-continue], [data-submit] { margin-top: 4px; }

.reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 14px; padding-top: 12px; font-size: .78rem; color: var(--muted); }
.reassure li { display: inline-flex; align-items: center; gap: 5px; }
.reassure .i { width: 12px; height: 12px; color: var(--navy); }
.reassure li + li .i { width: 6px; height: 6px; color: var(--green-ink); }
@media (min-width: 768px) { .reassure { font-size: .8rem; gap: 4px 14px; } }

/* ── Thank-you state ── */
.done { text-align: center; max-width: 620px; margin: 0 auto; padding: 12px 0 8px; }
.hero.is-complete .hero-copy, .hero.is-complete .intake { display: none; }
.hero.is-complete .hero-grid { grid-template-columns: 1fr; }
.hero.is-complete .hero-shade { background: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(5,29,46,.9) 0%, rgba(5,29,46,.72) 60%, rgba(5,29,46,.55) 100%); }
.done-check { width: 76px; height: 76px; margin: 0 auto 14px; color: var(--green); }
.done-check circle { stroke-dasharray: 210; stroke-dashoffset: 210; animation: draw .6s ease-out forwards; }
.done-check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .35s .45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1; }
.done-body { margin: 14px auto 0; max-width: 46ch; font-size: 1.08rem; }
.done-card { display: flex; align-items: center; gap: 18px; margin: 30px auto 0; max-width: 480px; padding: 22px; background: var(--white); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.done-phone { width: 40px; height: 40px; color: var(--navy); flex: none; display: none; }
.done-card-main { flex: 1; }
.done-q { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.done-direct { margin-top: 10px; font-size: .88rem; color: var(--muted); }
@media (min-width: 480px) { .done-phone { display: block; } .done-card { text-align: left; } .done-q, .done-direct { text-align: center; } }

/* ── Sections ── */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--green); }
.section-head-center .h2::after { margin-left: auto; margin-right: auto; }
.lede { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.section-navy .lede { color: rgba(255,255,255,.85); }

.pa-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .pa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pa-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pa { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); }
.pa .i-lg { color: var(--navy); margin-bottom: 4px; }
.pa h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.pa p { color: var(--muted); font-size: 1rem; flex: 1; }
.pa .text-link { align-self: flex-start; margin-top: 6px; }

.why-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.pillars { display: grid; gap: 32px 40px; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.pillars h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.pillars p { color: rgba(255,255,255,.85); }

.results-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .results-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.result { padding: 28px 24px; background: var(--white); border-radius: var(--r-tile); border: 1px solid var(--line); }
.result-amount { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--navy); }
.result-type { margin-top: 10px; font-weight: 700; }
.result-note { margin-top: 6px; color: var(--muted); font-size: .98rem; }
.is-placeholder { border-style: dashed; border-color: var(--control); }
.is-placeholder .result-amount { color: var(--muted); }
.tag { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: #FFF4E5; color: #7A4200; font-size: .78rem; font-weight: 600; }
.fine { margin-top: 24px; font-size: .9rem; color: var(--muted); max-width: 80ch; }
.fine-inline { font-size: .85rem; color: var(--muted); }

.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.portrait { max-width: 460px; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-card); object-fit: cover; object-position: 50% 30%; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(8,42,64,.35); }
.about-copy p:not(.lede) { margin-top: 14px; max-width: 62ch; }
.about-copy .btn { margin-top: 28px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 28px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { font-weight: 600; }

.steps { display: grid; gap: 28px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
  .steps::before { content: ""; position: absolute; top: 24px; left: 16.66%; right: 16.66%; height: 1px; background: var(--control); }
}
.steps li { position: relative; text-align: center; padding: 0 8px; }
.step-num { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.4rem; box-shadow: 0 0 0 8px var(--paper); }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 30ch; margin: 0 auto; }

.reviews-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--paper); }
.review blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.review-by { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.reviews-link { margin-top: 24px; }

.faq-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-aside .btn { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--control); }
.faq-list details { border-bottom: 1px solid var(--control); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list summary:hover { color: var(--navy-700); }
.faq-a { padding: 0 0 24px; max-width: 66ch; }
.faq-a p + p, .faq-a ul + p { margin-top: 12px; }
.faq-a ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.confirm { font-size: .9rem; color: #7A4200; background: #FFF4E5; padding: 8px 12px; border-radius: 8px; }

.final { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-900); padding: 88px 0 96px; text-align: center; }
.final-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,29,46,.9) 0%, rgba(5,29,46,.7) 55%, rgba(5,29,46,.65) 100%); }
.final-inner { text-shadow: 0 1px 12px rgba(5,29,46,.6); }
.final-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.02; }
.final-sub { margin-top: 12px; font-size: 1.2rem; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; text-shadow: none; }
@media (max-width: 479px) { .final-actions .btn { width: 100%; } }

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.85); padding: 56px 0 calc(32px + 76px); font-size: .95rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 32px; } }
.site-footer .monogram { color: var(--white); font-size: 2.2rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr; } }
.footer-name { margin-top: 14px; color: var(--white); font-weight: 600; }
.site-footer address { font-style: normal; margin-top: 8px; line-height: 1.9; }
.site-footer a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--green); text-decoration-color: currentColor; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.social { display: grid; gap: 10px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .84rem; color: rgba(255,255,255,.72); display: grid; gap: 8px; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: 0 -6px 24px rgba(5,29,46,.14);
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
.sticky-bar.is-visible { transform: none; visibility: visible; }
.sticky-bar .btn { min-height: 50px; border-radius: var(--r-ctl); }
@media (min-width: 768px) { .sticky-bar { display: none; } }

/* ── Legal / text pages ── */
.page-main { padding: calc(var(--header-h) + 48px) 0 80px; background: var(--white); }
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.08; }
.prose .updated { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin: 40px 0 10px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.prose a { color: var(--navy); font-weight: 600; }
.prose .confirm { margin-top: 16px; }

/* Phone header: larger logo; the two language labels stack to save width */
@media (max-width: 767px) {
  .header-inner { gap: 6px; }
  .brand { gap: 7px; }
  .brand .monogram { font-size: 1.9rem; }
  .wordmark-top { font-size: .42rem; letter-spacing: .15em; }
  .wordmark-name { font-size: .57rem; letter-spacing: .02em; }
  .wordmark-pa { font-size: .42rem; }
  .btn-call, .menu-toggle { min-width: 42px; width: 42px; min-height: 42px; height: 42px; padding: 0; }
  .header-actions { gap: 4px; }
  .lang-switch { flex-direction: column; align-items: stretch; gap: 0; }
  .lang-switch a { min-height: 24px; padding: 2px 4px; font-size: .66rem; letter-spacing: .06em; }
  .lang-switch a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--green); border-radius: 0; }
}
