/* =========================================================================
   Hale & Briggs Injury Law — Houston PI GBP landing page — DESIGN COMP
   Rebuilt to match a high-converting PI-firm reference layout.
   Original gold + deep-navy system (kept distinct from any real brand).
   ========================================================================= */

:root {
  --navy:        #0F2742;
  --navy-soft:   #15365C;
  --ink:         #16181D;
  --paper:       #F3F3EF;
  --panel:       #EEF1F6;          /* light cool panel for steps/chips */
  --surface:     #0F2742;          /* dark sections */
  --muted:       #6A6F78;
  --white:       #ffffff;

  --line:        #E2DFD8;
  --line-2:      #E7E9EE;
  --line-dark:   rgba(255,255,255,0.13);

  --gold:        #E3A52C;           /* single consistent gold — used everywhere */
  --gold-cta:    #E3A52C;           /* same gold */
  --gold-cta-h:  #f0b53d;           /* hover only: a touch lighter for feedback */
  --gold-soft:   #E3A52C;           /* same gold on dark backgrounds */
  --cta-text:    #20180A;           /* text ON the cta/brand color — dark reads on gold; build.mjs sets #fff for colored brands */
  --cta-edge:    #c08a1a;           /* darker bottom edge/shadow of the cta color; build.mjs derives a darker shade of the brand */

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cond:    "Oswald", "Archivo", sans-serif;       /* condensed heavy */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 56px);

  --shadow-card: 0 1px 2px rgba(15,39,66,0.05), 0 18px 44px -16px rgba(15,39,66,0.26);
  --shadow-soft: 0 1px 2px rgba(15,39,66,0.05), 0 10px 28px -18px rgba(15,39,66,0.3);
  --shadow-pop:  0 30px 70px -22px rgba(0,0,0,0.5);

  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* condensed display utility */
.cond { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.04; }

.eyebrow {
  font-family: var(--font-cond); font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--gold); display: inline-block; border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow.no-rule::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 16px; border: 0; border-radius: var(--radius);
  padding: 16px 26px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; line-height: 1; transition: transform .12s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold-cta); color: var(--cta-text); }
.btn-gold:hover { background: var(--gold-cta-h); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #163a63; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* arrow-in-square link */
.arrow-link { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; }
.arrow-link .sq { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--gold-cta); color: var(--cta-text); display: grid; place-items: center; transition: transform .16s ease, background .16s ease; }
.arrow-link .sq svg { width: 15px; height: 15px; }
.arrow-link:hover .sq { transform: translate(2px,-2px); background: var(--gold-cta-h); }
.arrow-link.on-dark { color: #fff; }
.section-cta { text-align: center; margin-top: 48px; }

/* Header logo (client mockups) */
.brand-logo-img { height: 48px; width: auto; max-width: 250px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.site-header.scrolled .brand-logo-img { filter: brightness(0); }

/* Demo chat widget (visual only, GHL look) */
.demo-chat { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.dc-card { position: relative; display: flex; align-items: center; gap: 13px; max-width: 330px; background: #fff; border-radius: 18px; padding: 16px 30px 16px 16px; box-shadow: 0 18px 50px rgba(15,39,66,0.22); }
.dc-card::after { content: ""; position: absolute; right: 28px; bottom: -8px; width: 17px; height: 17px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.dc-close { position: absolute; top: 7px; right: 10px; background: none; border: 0; font-size: 19px; line-height: 1; color: #98a2b3; cursor: pointer; }
.dc-avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden; background: var(--brand, var(--gold-cta)); display: grid; place-items: center; }
.dc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-text { font-size: 15px; line-height: 1.4; color: var(--navy); }
.dc-text b { font-weight: 700; }
.dc-bubble { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand, var(--gold-cta)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(15,39,66,0.28); transition: transform .15s ease; }
.dc-bubble:hover { transform: translateY(-2px); }
.dc-bubble svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .demo-chat { left: 16px; right: 16px; } .dc-card { max-width: none; } .dc-text { font-size: 14px; } }

/* =========================================================================
   Template comp banner
   ========================================================================= */
.comp-banner {
  background: repeating-linear-gradient(135deg, #241906 0 14px, #1f1505 14px 28px);
  color: #f0e2bf; font-size: 12.5px; letter-spacing: 0.03em; text-align: center;
  padding: 9px 48px 9px var(--gutter); position: relative; font-weight: 500;
}
.comp-banner strong { color: var(--gold-soft); font-weight: 800; letter-spacing: 0.08em; }
.comp-banner button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #c9b27e; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; }
.comp-banner button:hover { color: #fff; }

/* =========================================================================
   Header  (transparent over hero → solid white on scroll)
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 78px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 7px; flex: none; background: var(--gold-cta); color: var(--cta-text); display: flex; align-items: center; justify-content: center; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: -0.04em; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; color: #fff; transition: color .25s ease; }
.brand-mark .amp { color: var(--gold-soft); }
.brand-sub { font-family: var(--font-cond); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; transition: color .25s ease; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; position: relative; padding: 6px 0; white-space: nowrap; transition: color .25s ease; }
.main-nav a svg { width: 13px; height: 13px; opacity: 0.9; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-cta); transition: width .2s ease; }
.main-nav a:hover::after { width: 100%; }

/* right cluster: search · lang · phone */
.header-right { display: flex; align-items: center; gap: 16px; }
.hdr-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: transparent; border: 0; cursor: pointer; color: rgba(255,255,255,0.85); transition: background .2s ease, color .25s ease; }
.hdr-icon svg { width: 18px; height: 18px; }
.hdr-icon:hover { background: rgba(255,255,255,0.1); }
.lang { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; cursor: pointer; color: rgba(255,255,255,0.85); font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; transition: color .25s ease; padding: 6px 2px; }
.lang .caret { width: 13px; height: 13px; opacity: 0.7; }
.lang .flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.5); }
.lang .flag svg { width: 22px; height: 22px; display: block; }
.site-header.scrolled .lang .flag { box-shadow: 0 0 0 1.5px rgba(15,39,66,0.2); }
.lang::after { content: ""; }
.btn-review { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #1a73e8; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 0 30px; height: 60px; border-radius: var(--radius); text-decoration: none; box-shadow: 0 12px 26px -12px rgba(26,115,232,0.75); transition: background .18s ease, transform .12s ease; }
.btn-review:hover { background: #1666cf; transform: translateY(-2px); }
.lang-dd { position: relative; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-card); border: 1px solid var(--line); padding: 6px; min-width: 150px; z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 8px; background: transparent; border: 0; cursor: pointer; padding: 10px 12px; border-radius: 7px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--navy); text-align: left; }
.lang-menu button:hover { background: var(--panel); }
/* Google Translate engine: hide its injected banner/tooltip, keep page layout intact */
.goog-te-banner-frame, .goog-te-gadget-icon, body > .skiptranslate { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }
.hdr-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.18); }

.header-phone { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; background: var(--gold-cta); color: var(--cta-text); padding: 11px 20px; border-radius: var(--radius); box-shadow: 0 12px 26px -14px rgba(0,0,0,0.6); transition: background .18s ease, transform .12s ease; }
.header-phone svg { width: 18px; height: 18px; flex: none; }
.header-phone .hp-num { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; }
.header-phone:hover { background: var(--gold-cta-h); transform: translateY(-1px); }

/* scrolled state */
.site-header.scrolled { background: rgba(255,255,255,0.96); backdrop-filter: saturate(160%) blur(12px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,39,66,0.5); }
.site-header.scrolled .brand-mark { color: var(--navy); }
.site-header.scrolled .brand-sub { color: var(--muted); }
.site-header.scrolled .main-nav a { color: var(--ink); }
.site-header.scrolled .hdr-icon { color: var(--navy); }
.site-header.scrolled .hdr-icon:hover { background: rgba(15,39,66,0.07); }
.site-header.scrolled .lang { color: var(--navy); }
.site-header.scrolled .header-phone { color: var(--cta-text); }
.site-header.scrolled .header-phone:hover { color: var(--cta-text); }

.nav-toggle { display: none; }

/* =========================================================================
   Placeholder media slots
   ========================================================================= */
.ph { position: relative; background-color: #e7e4dc; background-image: repeating-linear-gradient(135deg, rgba(15,39,66,0.05) 0 2px, transparent 2px 11px); display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden; color: var(--navy); }
.ph.on-dark { background-color: #1b3a5e; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 11px); color: #cdd9ea; }
.ph::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(15,39,66,0.22); border-radius: 2px; pointer-events: none; }
.ph.on-dark::before { border-color: rgba(255,255,255,0.22); }
.ph .ph-tag { position: relative; margin: 16px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; line-height: 1.45; background: rgba(255,255,255,0.85); backdrop-filter: blur(2px); padding: 8px 11px; border-radius: 3px; max-width: min(88%, 360px); box-shadow: 0 2px 10px -4px rgba(15,39,66,0.4); }
.ph.on-dark .ph-tag { background: rgba(8,20,38,0.82); color: #e5ecfb; }
.ph .ph-tag b { color: var(--gold); display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.ph .ph-tag .req { color: #c0392b; font-weight: 700; }
.ph.on-dark .ph-tag .req { color: #ff8d7a; }
/* filled placeholders — real image / live embed replaces the comp stripe */
.ph.filled { background-image: none; background-color: transparent; }
.ph.filled::before { display: none; }
.ph.filled .ph-tag { display: none; }
.ph.filled img, .ph.filled iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: inherit; display: block; }
.why-portrait .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
image-slot { display: block; color: rgba(15,39,66,0.6); }

/* =========================================================================
   HERO  (headline + image left · FORM right, above the fold)
   ========================================================================= */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; margin-top: -80px; padding-top: 80px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 6vw, 88px); align-items: start; padding-top: clamp(52px, 5.5vw, 76px); padding-bottom: clamp(64px, 7vw, 96px); }

.hero-left { max-width: 600px; }
.hero-eyebrow { font-family: var(--font-cond); font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 24px; }
.hero h1 { color: #fff; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: 0.005em; text-wrap: balance; }
.hero h1 .accent { color: var(--gold-soft); }
.hero-tagline { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: #fff; margin: 34px 0 0; font-family: var(--font-display); }
.hero-tagline u { text-decoration-color: var(--gold-cta); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hero-sub { font-size: 17px; color: #c4d0e2; line-height: 1.6; margin: 26px 0 0; max-width: 520px; }

.hero-media { position: relative; margin: 32px 0 0; width: 446px; max-width: 100%; }
.hero-media .frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-pop); border: 1px solid rgba(255,255,255,0.14); aspect-ratio: 16/10; background: #0a1f33 url(hero-state-bg.webp) center/cover no-repeat; }
.hero-media .frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-media .frame .hero-person { object-position: center bottom; }
.hero-media image-slot { width: 100%; height: 100%; }
.hero-media .result-badge { position: absolute; right: -22px; bottom: -26px; z-index: 3; background: #fff; color: var(--navy); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-pop); border-top: 4px solid var(--gold-cta); }
.hero-media .result-badge .big { font-family: var(--font-cond); font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); }
.hero-media .result-badge .small { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* recognized-by logos */
.recognized { margin-top: 38px; }
.recognized .rec-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a98b4; margin-bottom: 14px; }
.rec-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rec-badge { font-family: var(--font-cond); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #d7deea; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 9px 14px; }

/* ---- hero form card ---- */
.hero-form { position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; padding: clamp(24px, 2.4vw, 34px); backdrop-filter: blur(4px); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); }
.hero-form h2 { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: -0.01em; text-align: center; margin-bottom: 22px; }
.hero-form .nowin-badge { position: absolute; top: -24px; right: 28px; z-index: 6; display: flex; flex-direction: column; align-items: center; line-height: 0.98; padding: 8px 16px; background: var(--gold-cta); color: var(--cta-text); border-radius: 8px; border-bottom: 3px solid var(--cta-edge); transform: rotate(5deg); box-shadow: 0 9px 18px -8px rgba(0,0,0,0.5); font-family: var(--font-display); text-transform: uppercase; }
.hero-form .nowin-badge .nb-1 { font-weight: 900; font-size: 17px; letter-spacing: 0.01em; }
.hero-form .nowin-badge .nb-2 { font-weight: 700; font-size: 10px; letter-spacing: 0.18em; margin-top: 2px; }
.hero-form .hf-sub { color: #b9c5da; font-size: 14px; margin: 10px auto 20px; text-align: center; max-width: 360px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 14px 15px; border: 1.5px solid transparent; border-radius: 9px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.field select { 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='%236A6F78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; color: var(--muted); }
.field select.filled { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #9098a4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-cta); }
.field textarea { resize: vertical; min-height: 64px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e3563f; box-shadow: 0 0 0 3px rgba(227,86,63,0.18); }
.field .err { display: none; color: #ffb3a6; font-size: 11.5px; margin-top: 5px; font-weight: 600; }
.field.invalid .err { display: block; }
.hero-form .consent { font-size: 11px; color: #93a0b8; line-height: 1.5; margin: 14px 0 14px; }
.hero-form .consent a { color: #c9d3e6; text-decoration: underline; }
.hero-form .submit { margin-top: 2px; }
.hero-form .micro { font-size: 11px; color: #8593ad; text-align: center; margin: 12px 0 0; }
.hero-form .trust-mini { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; color: #d7deea; font-size: 13.5px; font-weight: 600; }
.hero-form .trust-mini .stars { color: var(--gold-soft); letter-spacing: 1px; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-cta); color: var(--cta-text); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.form-success p { color: #c4d0e2; font-size: 14.5px; margin: 0; }
.form-success p b { color: #fff; }

/* hero bottom trust bar */
.hero-trust { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); }
.hero-trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; padding-block: 16px; }
.htr-item { display: inline-flex; align-items: center; gap: 9px; color: #dbe2f0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.htr-item .stars { color: var(--gold-soft); letter-spacing: 1px; }
.htr-item b { color: #fff; font-weight: 800; }
.htr-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.25); }

/* =========================================================================
   Section rhythm
   ========================================================================= */
section { scroll-margin-top: 92px; }
.band { padding-block: clamp(60px, 7.5vw, 100px); }
.band.paper { background: var(--paper); }
.band.panel { background: var(--panel); }
.band.dark { background: var(--surface); color: #e8ecf3; }
.band.dark h2, .band.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }
.band.dark .section-head p { color: #aab6cc; }

/* ---------- Promise / pillars / chevrons ---------- */
.promise { background: #fff; text-align: center; }
.promise .promise-head { max-width: 780px; margin: 0 auto 54px; }
.promise .eyebrow { justify-content: center; }
.promise h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.03; }
.promise .promise-head p { font-size: 19px; color: var(--muted); margin-top: 18px; line-height: 1.55; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; max-width: 1000px; margin: 0 auto; }
.pillar-icon { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: color-mix(in srgb, var(--gold-cta) 15%, #fff); color: var(--gold-cta); display: grid; place-items: center; }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.1; color: var(--navy); margin-bottom: 12px; }
.pillar p { font-size: 16px; color: #4a4f59; line-height: 1.55; margin: 0; }
/* ---- firm stat row (clean, editorial) ---- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1060px; margin: 64px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.statc { padding: 30px 26px; text-align: center; position: relative; }
.statc + .statc::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.statc .sv { font-family: var(--font-cond); font-weight: 700; font-size: clamp(34px, 4vw, 50px); line-height: 1; color: var(--navy); letter-spacing: 0; display: inline-flex; align-items: baseline; gap: 4px; }
.statc .sv .su { font-size: 0.42em; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.statc:nth-child(1) .sv, .statc:nth-child(4) .sv { color: var(--gold); }
.statc .sl { font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 600; letter-spacing: 0.01em; }

/* ---------- Results (dark split + featured badge) ---------- */
.results { background: var(--surface); color: #e8ecf3; }
.results-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.results-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; margin: 30px 0 26px; }
.rfig .num { font-family: var(--font-cond); font-weight: 700; color: var(--gold-soft); font-size: clamp(34px, 4vw, 50px); line-height: 1; }
.rfig .cap { font-size: 14px; color: #b6c1d6; margin-top: 8px; line-height: 1.35; }
.results .disclaimer { font-size: 12.5px; color: #8893ab; line-height: 1.5; margin: 0 0 24px; max-width: 560px; }
.results-media { position: relative; }
.results-media .frame { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-pop); background: #e7eaf2; }
.results-media image-slot { width: 100%; height: 100%; }
.results-media .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.results-media .feat { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255,255,255,0.97); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-pop); }
.results-media .feat .ftop { font-size: 12.5px; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.results-media .feat .ftop b { color: var(--gold-cta); }
.results-media .feat .fnar { font-size: 12.5px; color: #475067; line-height: 1.45; margin-bottom: 9px; }
.results-media .feat .frow { display: flex; align-items: baseline; gap: 12px; }
.results-media .feat .off { font-family: var(--font-cond); font-weight: 700; font-size: 22px; color: #8a93a6; }
.results-media .feat .arrow { color: var(--gold); font-size: 18px; }
.results-media .feat .ver { font-family: var(--font-cond); font-weight: 700; font-size: 26px; color: var(--navy); }
.results-media .feat .vlabel { font-size: 11px; color: var(--muted); font-weight: 600; }

/* attorney name badge (hero) */
.hero-media .result-badge .rb-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy); line-height: 1.1; }
.hero-media .result-badge .rb-role { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* results carousel */
.results-media .carousel { position: relative; }
.results-media .cviewport { overflow: hidden; border-radius: 14px; }
.results-media .carousel-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.results-media .cslide { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; }
.results-media .cbtn { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-soft); z-index: 4; transition: background .15s ease, transform .15s ease; }
.results-media .cbtn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.results-media .cbtn svg { width: 20px; height: 20px; }
.results-media .cbtn.prev { left: -16px; }
.results-media .cbtn.next { right: -16px; }
.results-media .cdots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.results-media .cdots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.28); cursor: pointer; padding: 0; transition: background .15s ease, width .15s ease; }
.results-media .cdots button.active { background: var(--gold-soft); width: 24px; border-radius: 100px; }

/* ---------- Silos (SEO practice areas) ---------- */
.silos { background: #fff; }
.silos .section-head { text-align: center; margin-inline: auto; }
.silos .section-head .eyebrow { justify-content: center; }
.silo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(38px, 4.5vw, 56px); border-top: 1px solid var(--line); }
.silo:first-of-type { border-top: 0; }
.silo:nth-child(even) .silo-media { order: 2; }
.silo-media .ph { aspect-ratio: 16/11; border-radius: 12px; box-shadow: var(--shadow-soft); }
.silo-copy { max-width: 520px; }
.silo-kicker { font-family: var(--font-cond); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.silo-copy h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; margin-bottom: 16px; }
.silo-copy p { font-size: 17.5px; line-height: 1.6; color: #3a3e46; }
.silo-copy a.inline-link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.silo-copy a.inline-link:hover { color: var(--gold); border-bottom-color: var(--gold-cta); }

/* ---------- Why us / Faces of Justice ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.why-copy .lead-para { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.62; color: #2a2e36; }
.why-copy .lead-para + .lead-para { margin-top: 18px; }
.why-copy .lead-para strong { color: var(--navy); font-weight: 700; }
.why-sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.why-sign .sig { font-family: "Great Vibes", cursive; font-size: 42px; line-height: 1.3; color: var(--navy); transform: rotate(-3deg); white-space: nowrap; padding-top: 4px; }
.why-sign .who { border-left: 2px solid var(--line); padding-left: 14px; }
.why-sign .who .nm { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 16px; }
.why-sign .who .rl { font-size: 12.5px; color: var(--muted); }
.why-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; }
.why-portrait { position: relative; }
.why-portrait .frame { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); background: #eceae3 url(why-office-bg.webp) center/cover no-repeat; }
.why-portrait .frame .why-person { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.why-portrait image-slot { width: 100%; height: 100%; }
.portrait-cap { position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 8px; padding: 15px 19px; box-shadow: var(--shadow-card); border-left: 4px solid var(--gold-cta); max-width: 230px; }
.portrait-cap .nm { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 17px; }
.portrait-cap .rl { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Compensation chips ---------- */
.comp-band { background: var(--panel); }
.comp-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.comp-copy { max-width: 640px; }
.comp-inner h2 { font-size: clamp(24px, 2.8vw, 34px); }
.comp-sub { margin: 14px 0 0; color: #5a6477; font-size: 17px; line-height: 1.55; }
.comp-chips { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.comp-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 22px; font-weight: 700; color: var(--navy); font-size: 16px; box-shadow: var(--shadow-soft); }
.comp-chip svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- How It Works ---------- */
.how { background: #fff; }
.how .section-head { text-align: center; margin-inline: auto; }
.how .section-head .eyebrow { justify-content: center; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding: 22px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step-visual { background: var(--panel); border-radius: 16px; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.step-visual .ph { position: absolute; inset: 0; background-color: #e9edf4; }
.step:nth-child(even) .step-visual { order: 2; }
.step-body { display: flex; gap: 20px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--navy); color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.step-body h3 { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.06; color: var(--navy); margin-bottom: 12px; }
.step-body p { font-size: 16.5px; color: #3a3e46; line-height: 1.55; margin: 0 0 16px; }

/* ---------- Reviews (dark) ---------- */
.reviews-dark { background: var(--surface); color: #e8ecf3; }
.reviews-dark .section-head { text-align: center; margin-inline: auto; margin-bottom: 40px; }
.reviews-dark .section-head h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.reviews-dark .section-head .eyebrow { justify-content: center; color: var(--gold-soft); }
.review-cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
.google-badge { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); padding: 0 24px; height: 60px; box-shadow: var(--shadow-soft); }
.google-badge .g { font-family: var(--font-body); font-weight: 800; font-size: 20px; line-height: 1; background: conic-gradient(from -45deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.google-badge .gb-rating { font-weight: 800; font-size: 17px; color: var(--ink); }
.google-badge .gb-stars { color: #F4B400; letter-spacing: 1px; font-size: 14px; }
.google-badge .gb-count { font-size: 12.5px; color: var(--muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { position: relative; background: #fff; border-radius: 12px; padding: 52px 24px 24px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 14px; }
.review-card::after { content: ""; position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E") no-repeat center/contain; }
.review-card .quote { position: absolute; top: 18px; left: 24px; font-family: Georgia, serif; font-size: 60px; line-height: 0.7; color: var(--gold); opacity: 0.85; }
.review-card .rc-top { display: flex; align-items: center; gap: 12px; }
.review-card .rc-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.review-card .rc-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.review-card .rc-meta { font-size: 12px; color: var(--muted); }
.review-card .rc-stars { color: #F4B400; letter-spacing: 1px; font-size: 14px; }
.review-card .rc-body { font-size: 14.5px; color: #3a3e46; line-height: 1.55; margin: 0; }
.review-card .rc-g { margin-top: auto; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.review-card .rc-g b { font-weight: 800; color: #5f6368; }
.reviews-note { color: #9fabc8; font-size: 12.5px; text-align: center; margin: 22px 0 0; }

/* ---------- Serving Houston ---------- */
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.serve-copy p { font-size: 18px; line-height: 1.66; color: #3a3e46; }
.serve-map .ph { aspect-ratio: 5/4; border-radius: 12px; box-shadow: var(--shadow-soft); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.area-chips span { font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; }

/* ---------- Map / office ---------- */
.map-band { background: var(--paper); }
.map-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: stretch; }
.map-embed { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); min-height: 380px; }
.map-embed .ph { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-100%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin .dot { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold-cta); border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(0,0,0,0.5); }
.map-pin .lbl { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.map-card-info { display: flex; flex-direction: column; justify-content: center; }
.map-card-info h3 { font-size: clamp(25px, 3.2vw, 36px); margin-bottom: 18px; }
.map-card-info p { font-size: 16.5px; color: #3a3e46; line-height: 1.6; }
.nap-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 16px; color: var(--ink); }
.nap-line svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.nap-line b { font-weight: 700; }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-band { background: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 48px; }
.faq-item { padding: 26px 0; border-top: 1px solid var(--line); }
.faq-item:first-child, .faq-item:nth-child(2) { border-top: 0; }
.faq-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 18.5px; color: var(--navy); display: flex; gap: 12px; margin-bottom: 10px; line-height: 1.3; }
.faq-item h3 .q { color: var(--gold); font-family: var(--font-cond); font-weight: 700; flex: none; }
.faq-item p { font-size: 16px; color: #3a3e46; line-height: 1.6; margin: 0; padding-left: 30px; }

/* ---------- Final CTA (split, repeated form) ---------- */
.final { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.final-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.final h2 { color: #fff; }
.final-left h2 { color: #fff; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; }
.final-left h2 .accent { color: var(--gold-soft); }
.final-left p { font-size: 19px; color: #c6d2e4; max-width: 460px; margin: 22px 0 28px; }
.final-call { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.final-call svg { width: 24px; height: 24px; color: var(--gold-soft); }
.final-call span { white-space: nowrap; }
.final-call small { display: block; font-family: var(--font-body); font-size: 12px; color: #9fabc8; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { background: #ffffff; color: #3b4658; padding-block: 56px 30px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-mark { color: var(--navy); font-size: 22px; }
.footer-brand .brand-mark .amp { color: var(--gold-cta); }
.footer-nap { color: #3b4658; line-height: 1.7; margin: 16px 0 0; }
.footer-nap b { color: var(--navy); }
.footer-nap .fcall { color: var(--navy); font-weight: 700; text-decoration: none; }
.footer-nap p { margin: 0 0 11px; display: flex; align-items: flex-start; gap: 10px; }
.footer-nap .fn-name { display: block; margin-bottom: 13px; }
.footer-nap svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold-cta); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #f4f6f9; border: 1px solid var(--line); color: var(--navy); transition: transform .15s ease, background .15s ease, color .15s ease; }
.footer-social a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-cond); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: #3b4658; transition: color .15s ease; }
.footer-col a:hover { color: var(--navy); }
.footer-disclaimer { padding-top: 26px; font-size: 12.5px; color: #6b7589; line-height: 1.65; }
.footer-disclaimer p { margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12.5px; color: #6b7589; }
.footer-bottom a { color: var(--navy); text-decoration: none; }

/* ---------- Mobile drawer ---------- */
.mobile-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.mobile-drawer.open { visibility: visible; opacity: 1; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(8,16,28,0.55); }
.mobile-drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(82vw, 340px); background: #fff; padding: 26px; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .panel .close { align-self: flex-end; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); line-height: 1; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.mobile-drawer nav a { text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-drawer .drawer-call { margin-top: auto; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-left { max-width: none; }
  .hero-media { max-width: 480px; }
  .results-grid { grid-template-columns: 1fr; }
  .results-media { order: -1; max-width: 520px; }
  .serve-grid, .map-grid, .why-grid { grid-template-columns: 1fr; }
  .why-portrait { max-width: 420px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .final-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 22px; }
  .step:nth-child(even) .step-visual { order: 0; }
}
@media (max-width: 1040px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .statc:nth-child(3)::before, .statc:nth-child(3) ~ .statc::before { } .statc:nth-child(odd)::before { display: none; } .statc:nth-child(3), .statc:nth-child(4) { border-top: 1px solid var(--line); } }

/* collapse the wide desktop nav to the hamburger before it can overflow the header */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2); cursor: pointer; color: #fff; }
  .site-header.scrolled .nav-toggle { background: #fff; border-color: var(--line); color: var(--navy); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .main-nav, .header-phone .hp-sub, .header-phone .hp-num, .lang-dd { display: none; }
  .header-inner { justify-content: flex-end; gap: 10px; }
  .brand { margin-right: auto; }
  .header-phone { padding: 0; width: 44px; height: 44px; justify-content: center; box-shadow: none; }
  .header-phone svg { width: 20px; height: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2); cursor: pointer; color: #fff; }
  .site-header.scrolled .nav-toggle { background: #fff; border-color: var(--line); color: var(--navy); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .silo { grid-template-columns: 1fr; gap: 24px; }
  .silo:nth-child(even) .silo-media { order: 0; }
  .results-figs { grid-template-columns: 1fr 1fr; gap: 22px; }
  .comp-inner { flex-direction: column; align-items: center; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-item:nth-child(2) { border-top: 1px solid var(--line); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .comp-banner { font-size: 11px; padding-right: 40px; }
  .portrait-cap { left: 0; }
  /* mobile: clear the image's overlapping card before the form, keep badges in bounds */
  .hero-grid { gap: 56px; }
  .hero-media { margin: 26px auto 14px; }
  .hero-media .result-badge { right: 8px; bottom: -22px; }
  .hero-form .nowin-badge { right: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ============================ FLOATING WIDGETS ============================ */
/* ---- Accessibility (bottom-left) ---- */
.a11y-widget { position: fixed; left: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.a11y-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: #1c5bd8; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35); transition: transform .18s ease, background .18s ease; }
.a11y-btn:hover { transform: translateY(-2px) scale(1.05); background: #1750c2; }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-panel { width: 230px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 20px 50px -16px rgba(15,39,66,0.4), 0 2px 8px rgba(0,0,0,0.08); border: 1px solid var(--line); transform-origin: bottom left; transform: scale(.92) translateY(8px); opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.a11y-widget.open .a11y-panel { opacity: 1; transform: none; pointer-events: auto; }
.a11y-head { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--navy); padding: 6px 8px 10px; letter-spacing: -0.01em; }
.a11y-opt { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 11px 10px; border-radius: 9px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); transition: background .14s ease; }
.a11y-opt svg { width: 19px; height: 19px; color: #1c5bd8; flex: none; }
.a11y-opt:hover { background: #f0f4fb; }
.a11y-opt.active { background: #e6efff; color: #1750c2; }
.a11y-opt.active svg { color: #1750c2; }
.a11y-opt.a11y-reset { color: var(--muted); }
.a11y-opt.a11y-reset svg { color: var(--muted); }

/* accessibility effects */
html.a11y-bigtext body { zoom: 1.12; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 2px; text-decoration-thickness: 2px !important; }
html.a11y-contrast .site-header,
html.a11y-contrast main,
html.a11y-contrast .site-footer { filter: contrast(1.28) saturate(1.12); }

/* ---- Chat (bottom-right) ---- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 12px; }
.chat-bubble { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; padding: 12px 14px 12px 16px; border-radius: 14px; box-shadow: 0 16px 40px -14px rgba(15,39,66,0.45), 0 2px 8px rgba(0,0,0,0.08); border: 1px solid var(--line); white-space: nowrap; position: relative; transform-origin: right center; animation: chatBubbleIn .4s cubic-bezier(.2,.8,.2,1) both; transition: opacity .18s ease, transform .18s ease; }
.chat-bubble::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(-45deg); }
.chat-widget.bubble-hidden .chat-bubble { opacity: 0; transform: scale(.9) translateX(8px); pointer-events: none; }
.chat-bubble-x { background: transparent; border: 0; cursor: pointer; color: var(--muted); font-size: 17px; line-height: 1; padding: 0 2px; margin-left: 2px; }
.chat-bubble-x:hover { color: var(--navy); }
.chat-fab { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: #eaf0f6; box-shadow: 0 12px 30px -8px rgba(15,39,66,0.6), 0 2px 6px rgba(0,0,0,0.22); transition: transform .18s ease, box-shadow .18s ease; }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9); pointer-events: none; }
.chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 38px -10px rgba(15,39,66,0.7); }
.chat-fab .lawyer-face { width: 100%; height: 100%; display: block; }
.chat-status { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: #2bb673; border: 2.5px solid #fff; }
.chat-fab::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(43,182,115,0.55); animation: chatPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes chatPulse { 0% { transform: scale(.85); opacity: .7; } 70% { transform: scale(1.18); opacity: 0; } 100% { opacity: 0; } }
@keyframes chatBubbleIn { 0% { opacity: 0; transform: scale(.8) translateX(12px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .a11y-widget { left: 14px; bottom: 14px; }
  .chat-widget { right: 14px; bottom: 14px; }
  .a11y-btn { width: 48px; height: 48px; }
  .chat-fab { width: 56px; height: 56px; }
  .chat-bubble { font-size: 13px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab::after, .chat-bubble { animation: none !important; } }
