/* Puente Law Firm · preview home
   Identity: logo palette (black, graphite, white), navy only for details.
   Motif: square inside a square. Mobile first. */

:root {
  --black: #231F20;
  --graphite: #58595B;
  --gray: #8A8B8D;           /* auxiliary text on dark only (4.7:1 on black); decorative on light */
  --paper: #F7F5F2;          /* warm off-white: page background */
  --soft: #EFECE7;           /* alternate sections */
  --card: #FBFAF8;           /* surfaces on top of paper */
  --white: #FFFFFF;          /* text on dark only */
  --navy: #2E3550;           /* primary action buttons only */
  --navy-dark: #232842;

  --ink: var(--black);
  --ink-2: var(--graphite);  /* auxiliary text on light (6.6:1 on paper, 6:1 on soft) */
  --on-dark: var(--white);
  --on-dark-2: var(--gray);
  --line: rgba(35, 31, 32, .14);
  --line-strong: rgba(35, 31, 32, .32);
  --line-dark: rgba(255, 255, 255, .18);
  --field: #7E7F81;          /* input borders (3.6:1 on card) */
  --error: #A12A1F;

  --font-title: "Libre Caslon Display", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --font-accent: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.06rem + .3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 3rem);
  --caps: clamp(1.65rem, 1.2rem + 2vw, 3.1rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --offset: clamp(8px, .4rem + .6vw, 16px);
  --shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 10px 28px rgba(35, 31, 32, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* mobile call bar */
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.12; margin: 0; }
h3 { font-size: var(--step-2); }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 + .lead { margin-top: 1.2rem; }
.title-caps { font-size: var(--caps); text-transform: uppercase; letter-spacing: .06em; line-height: 1.12; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.fine-print { margin-top: 2rem; font-size: var(--step--1); color: var(--ink-2); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--black); color: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Square motif ---------- */
/* Frame: photo with an offset outline square behind and a hairline square inside */
.frame { position: relative; margin: 0; }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border: 1px solid var(--black); transform: translate(var(--offset), var(--offset));
}
.frame--dark::before { border-color: rgba(255, 255, 255, .45); }
.frame-img { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1 / 1; background: var(--soft); }
.frame-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1)); transform-origin: 50% 40%; will-change: transform; }
.frame-img::after { content: ""; position: absolute; inset: var(--offset); border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }
.frame--sm { --offset: 6px; }
.frame--sm .frame-img::after { display: none; }
.frame-tag {
  position: absolute; z-index: 2; left: 0; bottom: calc(-1 * var(--offset) * 1.5);
  display: flex; flex-direction: column; gap: .1rem;
  padding: .7rem 1rem; background: var(--black); color: var(--white);
}
.frame-tag-name { font-family: var(--font-title); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.frame-tag-role { font-size: .78rem; color: var(--gray); letter-spacing: .02em; }

/* Square marker: square inside a square */
.sq-mark { position: relative; flex: none; width: 14px; height: 14px; border: 1px solid currentColor; margin-top: .42em; }
.sq-mark::after { content: ""; position: absolute; inset: 3px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--black); --fg: var(--white); --bd: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.35rem;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 0;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-dark:hover { --bg: var(--graphite); --bd: var(--graphite); }
.btn-primary { --bg: var(--navy); --fg: var(--white); --bd: var(--navy); }
.btn-primary:hover { --bg: var(--navy-dark); --bd: var(--navy-dark); }
.hero .btn-primary { --bd: rgba(255, 255, 255, .28); }
.btn-outline { --bg: transparent; --fg: var(--black); --bd: var(--black); }
.btn-outline:hover { --bg: var(--black); --fg: var(--white); }
.btn-light { --bg: var(--white); --fg: var(--black); --bd: var(--white); }
.btn-light:hover { --bg: var(--soft); --bd: var(--soft); }
.btn-ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .5); }
.btn-ghost:hover { --bg: var(--white); --fg: var(--black); --bd: var(--white); }

/* ---------- Preview strip ---------- */
.preview-strip { background: var(--soft); color: var(--ink-2); border-bottom: 1px solid var(--line); text-align: center; font-size: .74rem; letter-spacing: .04em; padding: .35rem 1rem; }
.preview-strip a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.preview-strip a:hover { text-decoration-color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(35, 31, 32, .08); }
.site-header.is-scrolled .header-inner { height: 56px; }

.logo { display: inline-flex; flex: none; align-items: center; margin-right: auto; text-decoration: none; }
.logo img { height: 34px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .logo img { height: 30px; }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.logo, .header-actions { position: relative; z-index: 2; }
.header-call { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); padding: 2px; }
.lang-btn { min-width: 42px; min-height: 38px; border: 0; background: none; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); transition: background-color .25s var(--ease), color .25s var(--ease); }
.lang-btn[aria-pressed="true"] { background: var(--black); color: var(--white); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--black); background: var(--soft); }

.menu-toggle { width: 46px; height: 46px; border: 0; background: none; display: grid; place-items: center; }
.menu-bars { position: relative; width: 22px; height: 14px; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; transition: transform .4s var(--ease-out), opacity .2s var(--ease), top .4s var(--ease-out); }
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile nav panel */
.nav {
  position: fixed; inset: 0; z-index: 1;
  background: var(--paper);
  padding: calc(var(--nav-top, 96px) + 1.5rem) var(--gutter) 6rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2rem;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .45s var(--ease-out), visibility 0s .45s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease-out), visibility 0s; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-title); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  transition: color .2s var(--ease), padding-left .3s var(--ease);
}
.nav.is-open .nav-list li { animation: navIn .5s var(--ease-out) both; }
.nav.is-open .nav-list li:nth-child(2) { animation-delay: .05s; }
.nav.is-open .nav-list li:nth-child(3) { animation-delay: .1s; }
.nav.is-open .nav-list li:nth-child(4) { animation-delay: .15s; }
@keyframes navIn { from { opacity: 0; transform: translateY(12px); } }
.nav-list a:hover { color: var(--graphite); padding-left: .4rem; }
.nav-call { align-self: stretch; }
body.nav-locked { overflow: hidden; }

/* ---------- Intro (above the fold: CSS only, never opacity 0) ---------- */
.intro { animation: introUp .9s var(--ease-out) both; }
.intro--2 { animation-delay: .08s; }
.intro--3 { animation-delay: .18s; }
.intro--4 { animation-delay: .28s; }
@keyframes introUp { from { transform: translateY(18px); } }
.intro-square { animation: squareOpen 1.3s var(--ease-out) both; }
@keyframes squareOpen { from { clip-path: inset(9% 9% 9% 9%); } to { clip-path: inset(-40px -40px -40px -40px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--on-dark);
  padding-top: clamp(1.5rem, 1rem + 3vw, 5rem);
  padding-bottom: calc(clamp(170px, 9rem + 10vw, 260px) * .9 + 1.5rem);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.6rem; }
.hero-photo { margin-right: var(--offset); }
.hero-photo .frame-img { aspect-ratio: 5 / 4; }
.hero-photo .frame-img img { object-position: 22% 30%; }
.hero-kicker { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(1.95rem, 1.1rem + 3.6vw, 4.1rem); text-transform: uppercase; letter-spacing: .045em; line-height: 1.1; max-width: 18ch; }
.hero-title em { display: block; margin-top: .35em; font-family: var(--font-accent); font-style: italic; text-transform: none; letter-spacing: 0; font-size: .82em; }
.hero-sub { margin-top: 1.5rem; max-width: 36rem; font-size: var(--step-1); color: #C9CACB; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-ctas .btn { flex: 1 1 100%; }
.hero-note { margin-top: 1rem; font-size: .86rem; color: var(--gray); }

.hero-bridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(170px, 9rem + 10vw, 260px); fill: none; stroke-linecap: square; pointer-events: none; }
.hero-bridge .deck { stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.hero-bridge .deck-2 { stroke: var(--gray); stroke-width: 1; }
.hero-bridge .arch { stroke: rgba(255, 255, 255, .85); stroke-width: 2.4; }
.hero-bridge .cables { stroke: var(--gray); stroke-width: .9; }
.hero-bridge .foot, .hero-bridge .piers { stroke: var(--graphite); stroke-width: 1.4; }
.hero-bridge .water { stroke: var(--graphite); stroke-width: 1; opacity: .6; }
.hero-bridge .span-main { transform: translateX(380px); }
.hero-bridge .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 2s var(--ease) .3s forwards; }
.hero-bridge .deck { animation-duration: 1.6s; }
.hero-bridge .arch { animation-delay: .7s; animation-duration: 1.9s; }
.hero-bridge .cables .draw { animation-duration: 1s; animation-delay: calc(1.3s + var(--d, 0s)); }
.hero-bridge .foot, .hero-bridge .piers { animation-delay: 1.1s; }
.js .hero-bridge:not(.is-drawing) .draw { animation-play-state: paused; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ---------- Trust ---------- */
.trust { background: var(--paper); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem; }
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat-num { font-family: var(--font-title); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .88rem; color: var(--ink-2); line-height: 1.4; max-width: 17ch; }

/* ---------- Awards + press bands ---------- */
.band-label { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 1.2rem; }
/* Badges: real image when the file exists (main.js adds .has-img), text badge otherwise */
.award-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; align-items: center; justify-items: center; }
.award { display: flex; align-items: center; justify-content: center; height: 56px; }
.award img { display: none; height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.award.has-img img { display: block; }
.award.has-img .award-ph { display: none; }
.award-ph { display: grid; place-items: center; align-content: center; width: 56px; height: 56px; border: 1px solid var(--black); outline: 1px solid var(--black); outline-offset: -5px; text-align: center; line-height: 1.05; }
.award-ph-top, .award-ph-year { font-size: .44rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); max-width: 50px; }
.award-ph-big { font-family: var(--font-title); font-size: 1rem; line-height: 1.05; margin: .05rem 0; }

.trust .stats { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.press { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.press-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; color: var(--graphite); }
.press-item { display: flex; align-items: center; min-height: 52px; }
.press-item img { display: none; height: 30px; width: auto; filter: grayscale(1) brightness(.5) contrast(1.15); opacity: .6; transition: opacity .3s var(--ease); }
/* optical sizing: stacked logos need more height to read at the same weight */
.press-item--univision img, .press-item--telemundo img { height: 50px; }
.press-item--cbs img { height: 38px; }
.press-item--dmag img { height: 40px; }
.press-item img:hover { opacity: 1; }
.press-item.has-img img { display: block; }
.press-item.has-img .press-logo { display: none; }
.press-logo { font-family: var(--font-body); font-size: 1.25rem; line-height: 1; white-space: nowrap; }
.press-logo--univision { font-weight: 700; text-transform: lowercase; letter-spacing: -.02em; }
.press-logo--telemundo { font-weight: 600; font-style: italic; letter-spacing: -.01em; }
.press-logo--fox { font-weight: 800; letter-spacing: .04em; }
.press-logo--fox span, .press-logo--cbs span { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: .15em; border: 1.5px solid currentColor; font-size: .78em; }
.press-logo--cbs { font-weight: 700; letter-spacing: .08em; }
.press-logo--dmag { font-family: var(--font-title); font-size: 1.35rem; }

/* ---------- Span lines (bridge, secondary) ---------- */
.span-line { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(40px, 2rem + 3vw, 80px); fill: none; stroke: var(--gray); stroke-width: 1; pointer-events: none; overflow: visible; }
.span-line path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.span-line--top { top: 0; bottom: auto; }

/* ---------- Steps ---------- */
.steps { background: var(--soft); padding-bottom: calc(var(--section) + 1.5rem); }
.step-list { display: grid; gap: 1rem; }
.step {
  display: flex; flex-direction: column;
  position: relative; background: var(--card); border: 1px solid var(--line);
  padding: 1.8rem 1.6rem 1.9rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--black); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--black); margin-bottom: 1.4rem; }
.step-n span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--black); color: var(--white); font-family: var(--font-title); font-size: 1.2rem; }
.step h3 { margin-bottom: .7rem; }
.step p { color: var(--ink-2); }
.store-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.4rem; }
.store-badge { display: inline-flex; border-radius: 7px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.store-badge img { height: 40px; width: auto; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(35, 31, 32, .18); }

/* Pay Now (LawPay) */
.btn-pay { gap: .5rem; }
.nav-list .btn-pay { margin-top: 1.4rem; padding: .8rem 1.2rem; border: 1.5px solid var(--black); justify-content: center; font-family: var(--font-body); font-size: .92rem; text-transform: none; letter-spacing: .04em; }
.nav-list .btn-pay:hover { padding-left: 1.2rem; color: var(--white); }

/* ---------- Practice ---------- */
.practice { background: var(--paper); }
.cards { display: grid; gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  padding: 1.9rem 1.6rem 1.6rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1.6rem;
  border: 1.5px solid var(--black); transition: border-color .3s var(--ease);
}
.card-icon svg {
  box-sizing: content-box; width: 30px; height: 30px; padding: 10px;
  background: var(--soft); fill: none; stroke: var(--black); stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter;
  transition: background-color .3s var(--ease), stroke .3s var(--ease), transform .5s var(--ease-out);
}
.card h3 { margin-bottom: .7rem; }
.card > p { color: var(--ink-2); }
.card-list { margin-top: 1.2rem; display: grid; gap: .45rem; }
.card-list li { position: relative; padding-left: 1.3rem; font-size: .95rem; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border: 1px solid currentColor; }
.card-link {
  margin-top: auto; padding-top: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  font-weight: 600; font-size: .9rem; letter-spacing: .03em; color: var(--black); text-decoration: none; min-height: 44px;
}
.card-link .icon { transition: transform .3s var(--ease); }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--black); }
.card:hover .card-icon svg, .card:focus-within .card-icon svg { background: var(--black); stroke: var(--white); }
.card:hover .card-link .icon, .card:focus-within .card-link .icon { transform: translateX(4px); }
.card-featured { border-color: var(--black); border-top: 5px solid var(--black); }
.card-featured .card-icon svg { background: var(--black); stroke: var(--white); }
.card-featured:hover .card-icon svg, .card-featured:focus-within .card-icon svg { background: var(--soft); stroke: var(--black); }

/* Detail reveal on hover-capable devices only; touch shows everything */
@media (hover: hover) and (pointer: fine) {
  .card:not(.card-featured) .card-list { grid-template-rows: 0fr; opacity: 0; margin-top: 0; overflow: hidden; display: grid; transition: grid-template-rows .5s var(--ease-out), opacity .4s var(--ease), margin-top .5s var(--ease-out); }
  .card:not(.card-featured) .card-list > li { overflow: hidden; }
  .card:hover .card-list, .card:focus-within .card-list { grid-template-rows: 1fr; opacity: 1; margin-top: 1.2rem; }
}

/* ---------- About ---------- */
.about { background: var(--soft); padding-top: calc(var(--section) + 1.5rem); }
.about-grid { display: grid; gap: 3rem; }
.about-photo { margin-right: var(--offset); }
.about-body h2 { margin-bottom: 1.4rem; }
.about-body > p + p { margin-top: 1rem; }
.about-body > p:not(.lead) { color: var(--ink-2); }

.timeline { position: relative; margin-top: 2.6rem; padding-left: 2rem; display: grid; gap: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--black); transform-origin: top; transform: scaleY(var(--tl, 1)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: .3rem; width: 13px; height: 13px; background: var(--soft); border: 1px solid var(--black); z-index: 1; }
.tl-item::after { content: ""; position: absolute; left: calc(-2rem + 3px); top: calc(.3rem + 3px); width: 7px; height: 7px; background: var(--black); z-index: 2; transform: scale(0); transition: transform .45s var(--ease-out); }
html:not(.js) .tl-item::after, .tl-item.is-in::after { transform: scale(1); }
.tl-tag { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); font-weight: 600; margin-bottom: .3rem; }
.tl-item h3 { font-size: var(--step-1); line-height: 1.3; }
.tl-item p { color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }


.edu { margin: 2.4rem 0 0; padding: 1.3rem 1.5rem; background: var(--card); border: 1px solid var(--line); }
.edu dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .6rem; }
.edu dd { margin: 0; font-size: .93rem; color: var(--ink-2); }
.edu dd + dd { margin-top: .25rem; }

.team { margin-top: 2.6rem; }
.team-title { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1rem; }
.person { display: flex; flex-direction: column; gap: .15rem; }
.person-photo { display: block; margin: 0 6px .7rem 0; }
.person-name { font-family: var(--font-title); font-size: 1.02rem; line-height: 1.25; }
.person-role { font-size: .8rem; color: var(--ink-2); }

/* ---------- Español ---------- */
.espanol { background: var(--soft); color: var(--ink); border-top: 5px solid var(--black); }
.espanol-grid { position: relative; display: grid; gap: 2.5rem; }
.espanol-title { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem); text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.espanol-title em { display: block; font-family: var(--font-accent); font-style: italic; text-transform: none; letter-spacing: 0; font-size: .8em; margin-top: .1em; }
.espanol-en { margin-top: 1.2rem; color: var(--ink-2); font-size: var(--step-1); }
.espanol-photo { margin: 2.4rem var(--offset) var(--offset) 0; }
.espanol-photo .frame-img { aspect-ratio: 3 / 2; }
.espanol .lead { color: var(--ink); font-family: var(--font-title); font-size: var(--step-2); line-height: 1.35; }
.es-list { margin-top: 1.8rem; display: grid; }
.es-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .95rem 0; border-bottom: 1px solid var(--line-strong); }
.es-list .sq-mark { color: var(--black); margin-top: .35em; }
.espanol-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 1rem; }
.accordion { border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line-strong); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-title); font-size: var(--step-1); line-height: 1.3;
  transition: color .25s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--graphite); }
.acc-icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--black); transition: background-color .3s var(--ease), color .3s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .45s var(--ease-out); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc-icon { background: var(--black); color: var(--white); }
.acc[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 3.2rem 1.5rem 0; color: var(--ink-2); max-width: 44rem; }

/* ---------- Skyline (Dallas + Reunion Tower), drawn on scroll ---------- */
.skyline-wrap { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); overflow: hidden; }
.skyline { width: 100%; min-width: 760px; height: auto; margin-left: 50%; transform: translateX(-50%); fill: none; stroke: var(--black); stroke-width: 1.2; stroke-linecap: square; stroke-linejoin: miter; }
.skyline path, .skyline circle { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--d, 0); }
.skyline path:first-child { stroke-width: 1.5; }
@media (max-width: 767px) {
  /* keep Reunion Tower and the downtown core in frame on phones */
  .skyline { min-width: 820px; margin-left: 0; transform: translateX(-13%); }
}

/* ---------- Areas we serve ---------- */
.areas { background: var(--soft); padding-bottom: 0; }
.areas-grid { display: grid; gap: 2.5rem; }
.areas-h { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); margin-bottom: .8rem; }
.county-list { display: grid; border-top: 1px solid var(--line-strong); }
.county-list li { display: flex; align-items: flex-start; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line-strong); font-family: var(--font-title); font-size: 1.15rem; }
.county-list .sq-mark { margin-top: .3em; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; border-top: 1px solid var(--line-strong); }
.city-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; gap: 3rem; }
.contact-info h2 { margin-bottom: 1.1rem; }
.info-list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--black); }
.info-icon .icon { width: 20px; height: 20px; }
.info-label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.info-value { display: block; font-size: 1.06rem; text-decoration: none; }
a.info-value { font-family: var(--font-title); font-size: 1.5rem; letter-spacing: .02em; }
a.info-value:hover { color: var(--graphite); }
.info-extra { display: block; font-size: .9rem; color: var(--ink-2); margin-top: .15rem; }
.map { margin: 2.2rem var(--offset) var(--offset) 0; }
.map iframe { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; border: 0; filter: grayscale(1) contrast(1.05); background: #E4E4E4; }

.contact-form { background: var(--card); border: 1px solid var(--line-strong); padding: 1.8rem 1.4rem; align-self: start; }
.form-title { font-size: var(--step-2); margin-bottom: 1.4rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--field); border-radius: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 2px var(--black); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .86rem; margin-top: .35rem; }
.field-radios { display: flex; flex-wrap: wrap; gap: .6rem; }
.field-radios legend { width: 100%; }
.radio { position: relative; display: inline-flex; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--field); font-size: .95rem; transition: all .2s var(--ease); }
.radio input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.radio input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--ink-2); margin: .3rem 0 1.2rem; }
.form-success { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.1rem; background: var(--soft); border-left: 3px solid var(--black); font-size: .95rem; }
.form-success[hidden] { display: none; }
.form-success .icon { margin-top: .15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray); padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); font-size: .95rem; }
.footer-grid { display: grid; gap: 2.2rem; padding-bottom: 2.5rem; }
.logo--footer { margin-right: 0; }
.logo--footer img { height: 42px; width: auto; filter: invert(1); } /* VERIFICAR: trocar pela versão negativa oficial do logo */
.footer-brand p { margin-top: 1.2rem; max-width: 26ch; font-family: var(--font-title); font-size: 1.2rem; color: var(--white); line-height: 1.35; }
.footer-h { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--white); margin-bottom: .9rem; }
.site-footer address, .site-footer p { line-height: 1.7; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: grid; gap: .1rem; }
.footer-links a { display: inline-block; padding: .35rem 0; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 1.8rem; padding-bottom: 2rem; font-size: .84rem; display: grid; gap: .8rem; }
.footer-legal > p { max-width: 62rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; margin-top: .8rem; }
.motion-toggle { background: none; border: 1px solid var(--line-dark); padding: .45rem .95rem; min-height: 40px; font-size: .82rem; color: var(--gray); transition: border-color .2s var(--ease), color .2s var(--ease); }
.motion-toggle:hover { border-color: var(--gray); color: var(--white); }
.footer-a11y { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4) !important; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .4); }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 24px rgba(35, 31, 32, .08);
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="square"] { opacity: 1; transform: none; clip-path: inset(16% 16% 16% 16%); }
.js [data-reveal][data-i="1"] { --i: 1; }
.js [data-reveal][data-i="2"] { --i: 2; }
.js [data-reveal][data-i="3"] { --i: 3; }
.js [data-reveal][data-i="4"] { --i: 4; }
.js [data-reveal][data-i="5"] { --i: 5; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="square"].is-in { clip-path: inset(-40px -40px -40px -40px); }

/* Smooth language switch */
.i18n-fading [data-i18n], .i18n-fading [data-i18n-html] { opacity: 0; }
[data-i18n], [data-i18n-html] { transition: opacity .18s var(--ease); }

/* ======================================================
   Chat assistant
   ====================================================== */
.chat-launcher {
  position: fixed; right: 1rem; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 95;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .45rem 1.1rem .45rem .45rem; min-height: 56px;
  background: var(--navy); color: var(--white);
  border: 1px solid var(--navy);
  box-shadow: 0 14px 34px rgba(35, 31, 32, .3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.chat-launcher:hover { transform: translateY(-3px); background: var(--navy-dark); }
.chat-launcher-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: var(--white); color: var(--navy); }
.chat-launcher-icon::before, .chat-launcher-icon::after {
  content: ""; position: absolute; inset: 0; border: 1.5px solid var(--white);
  opacity: 0; animation: pulse 3s var(--ease) infinite 1.5s;
}
.chat-launcher-icon::after { animation-delay: 3s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.chat-launcher-text { display: flex; flex-direction: column; text-align: left; font-size: .8rem; font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
.chat-launcher-text .sep { display: none; }
.chat-launcher-text [lang="es"] { font-weight: 500; color: #D5D7E0; }
.chat-launcher-badge { display: none; }
@media (max-width: 767px) {
  .frame-tag { padding: .5rem .8rem; }
  .frame-tag-name { font-size: 1rem; }
  .frame-tag-role { font-size: .72rem; }
}
.chat-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-launcher:focus-visible { outline-color: var(--black); outline-offset: 4px; }

@media (max-width: 639px) {
  .chat-launcher { padding: 0; width: 58px; height: 58px; min-height: 0; justify-content: center; }
  .chat-launcher-icon { width: 40px; height: 40px; }
  .chat-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launcher-badge { display: block; position: absolute; top: -9px; left: -9px; padding: .12rem .4rem; background: var(--paper); color: var(--black); border: 1px solid var(--black); font-size: .66rem; font-weight: 700; letter-spacing: .03em; }
}

.chat-panel {
  position: fixed; z-index: 120; inset: 0;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  transform-origin: bottom right;
  animation: chatIn .45s var(--ease-out);
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-closing { animation: chatOut .25s var(--ease) forwards; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes chatOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }

.chat-head { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: var(--paper); color: var(--ink); border-top: 4px solid var(--black); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 42px; height: 42px; flex: none; outline: 1px solid var(--black); outline-offset: 3px; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.chat-status { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--ink-2); margin-top: .1rem; }
.chat-dot { width: 7px; height: 7px; background: var(--black); box-shadow: 0 0 0 3px rgba(35, 31, 32, .15); }
.chat-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); transition: background-color .2s var(--ease); }
.chat-icon-btn:hover { background: var(--soft); }
.chat-icon-btn .icon { width: 22px; height: 22px; }

.chat-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem 1rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.chat-lang { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); background: var(--card); }
.chat-lang-btn { min-height: 34px; padding: 0 .85rem; border: 0; background: none; color: var(--ink-2); font-size: .78rem; font-weight: 600; letter-spacing: .03em; transition: background-color .2s var(--ease), color .2s var(--ease); }
.chat-lang-btn[aria-pressed="true"] { background: var(--black); color: var(--white); }
.chat-replay { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .85rem; border: 1px solid var(--line-strong); background: var(--card); color: var(--black); font-size: .78rem; font-weight: 600; transition: border-color .2s var(--ease), color .2s var(--ease); }
.chat-replay:hover { border-color: var(--black); }
.chat-replay:hover .icon { transform: rotate(-140deg); }
.chat-replay .icon { transition: transform .5s var(--ease-out); }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; background: var(--paper); scroll-behavior: smooth; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-time { align-self: center; margin: .2rem 0 .7rem; padding: .3rem .8rem; background: var(--soft); font-size: .72rem; font-weight: 600; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.msg { max-width: 84%; display: flex; flex-direction: column; gap: .2rem; animation: msgIn .45s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg-bubble { padding: .7rem .95rem; font-size: .94rem; line-height: 1.45; }
.msg-meta { font-size: .7rem; color: var(--ink-2); padding: 0 .2rem; }
.msg--visitor { align-self: flex-end; align-items: flex-end; }
.msg--visitor .msg-bubble { background: var(--black); color: var(--white); }
.msg--bot { align-self: flex-start; }
.msg--bot .msg-bubble { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 2px solid var(--black); }
.msg--bot + .msg--bot { margin-top: -.15rem; }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .85rem 1rem; background: var(--card); border: 1px solid var(--line); animation: msgIn .3s var(--ease-out) both; }
.typing--visitor { align-self: flex-end; background: var(--soft); }
.typing span { width: 6px; height: 6px; background: var(--graphite); opacity: .45; animation: typing 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: .9; } }

.chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .2rem; animation: msgIn .4s var(--ease-out) both; }
.chip { padding: .45rem .85rem; border: 1px solid var(--black); font-size: .82rem; font-weight: 600; color: var(--black); transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease); }
.chip.is-picked { background: var(--black); color: var(--white); }
.chips.is-done .chip:not(.is-picked) { color: var(--ink-2); border-color: var(--line-strong); }

.sys { align-self: center; display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; padding: .5rem .9rem; border: 1px solid var(--line-strong); color: var(--ink); font-size: .76rem; font-weight: 600; text-align: center; animation: msgIn .4s var(--ease-out) both; }
.sys .icon { width: 16px; height: 16px; stroke-width: 2.2; }
/* Team notification (outside the conversation) */
.notify-wrap { align-self: stretch; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); animation: msgIn .5s var(--ease-out) both; }
.notify-label { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-bottom: .8rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.notify-label .icon { width: 14px; height: 14px; }
.notify { padding: .9rem 1rem 1rem; background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 10px 28px rgba(35, 31, 32, .14); }
.notify-head { display: flex; align-items: center; gap: .7rem; padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
.notify-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--black); color: var(--white); }
.notify-icon .icon { width: 18px; height: 18px; }
.notify-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notify-title { font-size: .84rem; font-weight: 600; }
.notify-time { font-size: .72rem; color: var(--ink-2); }
.notify-tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--black); padding: .15rem .4rem; font-weight: 700; }
.notify dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .8rem; }
.notify dt { color: var(--ink-2); }
.notify dd { margin: 0; }

.chat-foot { padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.chat-input { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 .35rem 0 1rem; border: 1px solid var(--field); color: var(--ink-2); font-size: .9rem; }
.chat-send { display: grid; place-items: center; width: 36px; height: 36px; background: var(--soft); color: var(--ink-2); }
.chat-send .icon { width: 16px; height: 16px; }
.chat-disclaimer { margin-top: .5rem; font-size: .72rem; color: var(--ink-2); text-align: center; line-height: 1.4; }

/* ======================================================
   Breakpoints
   ====================================================== */
@media (min-width: 480px) {
  .hero-ctas .btn { flex: 0 0 auto; }
  .chat-launcher-text { flex-direction: row; }
  .chat-launcher-text .sep { display: inline; white-space: pre; }
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .county-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; }
  .chat-panel {
    inset: auto 1rem calc(88px + env(safe-area-inset-bottom)) auto;
    width: 400px; height: min(640px, calc(100vh - 140px));
    box-shadow: 0 30px 80px rgba(35, 31, 32, .35), 0 0 0 1px var(--line);
  }
}

@media (min-width: 768px) {
  .logo img { height: 40px; }
  .hero-photo .frame-img { aspect-ratio: 16 / 10; }
  .step-list { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .contact-form { padding: 2.4rem 2.2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 1.4rem; }
  .espanol-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .team-list { gap: 1.4rem; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .chat-launcher { right: 1.5rem; bottom: 1.5rem; }
  .chat-panel { right: 1.5rem; bottom: 1.5rem; height: min(660px, calc(100vh - 3rem)); }

  .logo img { height: 48px; }
  .site-header.is-scrolled .header-inner { height: 66px; }
  .site-header.is-scrolled .logo img { height: 38px; }
  .menu-toggle { display: none; }
  .header-call { display: inline-flex; min-height: 44px; padding: .55rem 1.1rem; font-size: .86rem; }
  .header-inner { gap: 2rem; }
  .nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 2rem;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-call { display: none; }
  .nav-list { flex-direction: row; gap: 2rem; }
  .nav-list a {
    position: relative; padding: .5rem 0; border: 0;
    font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--ink); white-space: nowrap;
  }
  .nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1.5px; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
  .nav-list a:hover { color: var(--graphite); padding-left: 0; }
  .nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }

  .hero { padding-top: clamp(2rem, 4vh, 4rem); padding-bottom: calc(13.4vw + 1.5rem); }
  .hero-bridge { height: auto; aspect-ratio: 2400 / 360; }
  .hero-title { font-size: clamp(2.6rem, 1rem + 3vw, 4.4rem); }
  .hero-sub { max-width: 40rem; }
  .hero-photo { width: min(100%, calc(100svh - 330px)); min-width: 320px; justify-self: end; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: center; }
  .hero-text { grid-column: 1 / span 7; grid-row: 1; }
  .hero-photo { grid-column: 8 / span 5; grid-row: 1; }
  .hero-photo .frame-img { aspect-ratio: 1 / 1; }
  .hero-photo .frame-img img { object-position: 50% 50%; }

  .stats { gap: 2rem; }
  .step-list { grid-template-columns: repeat(4, 1fr); }
  .award-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .award, .award img { height: 72px; }
  .award-ph { width: 72px; height: 72px; outline-offset: -6px; }
  .award-ph-top, .award-ph-year { font-size: .52rem; max-width: 64px; }
  .award-ph-big { font-size: 1.3rem; }
  .press-list { justify-content: space-between; }
  .areas-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .areas-grid > :first-child { grid-column: 1 / span 5; }
  .areas-grid > :last-child { grid-column: 7 / span 6; }
  .county-list { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { padding: 2rem 1.6rem 2.2rem; }
  .nav-list .btn-pay { margin-top: 0; min-height: 40px; padding: .45rem .9rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--black); }
  .nav-list .btn-pay::after { display: none; }
  .nav-list .btn-pay:hover { color: var(--white); padding-left: .9rem; }

  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; padding: 2.2rem 2rem 1.9rem; }
  .card-featured { grid-column: span 3; }

  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: start; }
  .about-photo { grid-column: 1 / span 5; position: sticky; top: 120px; }
  .about-body { grid-column: 7 / span 6; }

  .faq-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .faq-grid .section-head { grid-column: 1 / span 4; }
  .faq-grid .accordion { grid-column: 6 / span 7; }

  .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .contact-info { grid-column: 1 / span 6; }
  .contact-form { grid-column: 8 / span 5; position: sticky; top: 100px; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .header-call .call-word { display: none; }
  .header-call { padding-inline: .9rem; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .logo img, .site-header.is-scrolled .logo img { height: 36px !important; }
  .nav-list a { font-size: .74rem; letter-spacing: .05em !important; }
  .header-inner, .nav, .nav-list { gap: .9rem !important; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner, .nav, .nav-list { gap: 1.25rem; }
  .nav-list a { letter-spacing: .08em; }
  .logo img { height: 42px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}

/* ======================================================
   Reduced motion / paused animations
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .intro-square { clip-path: none; }
  .hero-bridge .draw { stroke-dashoffset: 0; }
  .span-line path { stroke-dashoffset: 0 !important; }
  .skyline path, .skyline circle { stroke-dashoffset: 0 !important; }
  .timeline::after { transform: none; }
  .frame-img img { transform: none; }
  .chat-launcher-icon::before, .chat-launcher-icon::after { display: none; }
}
.no-motion, .no-motion * { scroll-behavior: auto !important; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.no-motion.js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
.no-motion .intro-square { clip-path: none; }
.no-motion .hero-bridge .draw { stroke-dashoffset: 0; }
.no-motion .span-line path { stroke-dashoffset: 0 !important; }
.no-motion .skyline path, .no-motion .skyline circle { stroke-dashoffset: 0 !important; }
.no-motion .timeline::after { transform: none; }
.no-motion .frame-img img { transform: none; }
.no-motion .chat-launcher-icon::before, .no-motion .chat-launcher-icon::after { display: none; }

/* ---------- Document pages (accessibility statement) ---------- */
.page-doc { padding-bottom: 0; }
.doc-back { min-height: 44px; padding: .5rem 1rem; font-size: .86rem; }
.doc-body { max-width: 48rem; }
.doc-body h1 { margin-bottom: 1.2rem; }
.doc-body h2 { font-size: var(--step-2); margin: 2.4rem 0 .8rem; }
.doc-body h2.title-caps { font-size: var(--caps); margin-top: 0; margin-bottom: 1.2rem; }
.doc-body p + p { margin-top: 1rem; }
.doc-body p:not(.lead) { color: var(--ink-2); }
.doc-body a { color: var(--black); text-underline-offset: 3px; }
.doc-list { display: grid; gap: .6rem; color: var(--ink-2); }
.doc-list li { position: relative; padding-left: 1.4rem; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border: 1px solid var(--black); }
.doc-date { margin-top: 2rem !important; font-size: .86rem; }
.doc-rule { margin: 3.5rem 0; border: 0; border-top: 1px solid var(--line-strong); }
.site-footer--doc { padding-top: 0; }
.site-footer--doc .footer-bottom { padding-block: 1.6rem; margin-top: 0; }
