/* ============================================================
   STRATTON FAMILY LAW — DESIGN TOKENS
   ------------------------------------------------------------
   COLOR: These values are sampled directly from the real logo
   file (logo.png) — dominant blue ≈ #0b59a0, plus black and
   white. If the site uses this exact blue elsewhere (links,
   buttons) on the live pages, this should already match. Spot
   check against the live site and adjust if any element uses a
   different shade.
   ============================================================ */

:root {
  /* --- Brand colors (sampled from logo.png) --- */
  --color-navy-900: #14181c;   /* near-black, header/footer/primary text on light */
  --color-navy-800: #1c2126;
  --color-navy-700: #232a31;
  --color-gold-600: #0b59a0;   /* brand blue — sampled from logo, primary accent/CTAs/links */
  --color-gold-500: #1f6fc0;   /* lighter blue for hover states */
  --color-gold-100: #e7f1fb;   /* light blue tint for icon backgrounds */
  --color-cream-50: #fafbfc;   /* page background */
  --color-white: #ffffff;
  --color-ink-900: #1c1e22;    /* body text */
  --color-ink-600: #4a4f57;    /* secondary text */
  --color-line: #e2e6ea;
  --color-success: #2f6f4e;

  /* --- Type --- */
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-utility: "Public Sans", Arial, sans-serif;

  /* --- Scale --- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1180px;

  --shadow-card: 0 1px 2px rgba(16, 27, 48, 0.06), 0 8px 24px rgba(16, 27, 48, 0.08);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--color-ink-900);
  background: var(--color-cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-navy-900); line-height: 1.15; margin: 0 0 var(--space-sm); font-weight: 600; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-sm); }
ul { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-gold-600);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-navy-900); color: var(--color-white);
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   UTILITY BAR (top strip)
   ============================================================ */
.utility-bar {
  background: var(--color-navy-900);
  color: var(--color-gold-100);
  font-size: var(--step--1);
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.5rem; padding-bottom: 0.5rem; gap: var(--space-sm); flex-wrap: wrap;
}
.utility-bar a { color: var(--color-gold-100); }
.utility-bar__social { display: flex; gap: 0.9rem; align-items: center; }
.utility-bar__social a { display: inline-flex; align-items: center; gap: 0.35rem; }
.utility-bar__social svg { width: 15px; height: 15px; fill: currentColor; }
.utility-bar__phone a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.utility-bar__phone svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-sm); padding-bottom: var(--space-sm); gap: var(--space-md);
}
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-header__brand img { height: 56px; width: auto; }
.site-header__brand-text { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-navy-900); font-weight: 600; }
.site-header__brand-text span { display: block; font-family: var(--font-utility); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-600); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: var(--space-md); }
.main-nav ul { list-style: none; display: flex; gap: 1.35rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav a {
  color: var(--color-navy-900); font-weight: 600; font-size: 0.94rem; text-decoration: none;
  padding: 0.4rem 0.1rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--color-gold-600); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta__phone { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--color-navy-900); white-space: nowrap; }
.header-cta__phone small { display: block; font-family: var(--font-utility); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-600); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-utility); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-gold-600); color: var(--color-white); }
.btn-primary:hover { background: var(--color-gold-500); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--color-navy-900); color: var(--color-navy-900); }
.btn-outline:hover { background: var(--color-navy-900); color: var(--color-white); }
.btn-outline-light { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy-900); }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--color-navy-900); border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-navy-900); margin: 4px 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(196,154,66,0.06) 0 2px, transparent 2px 120px);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); align-items: center; position: relative; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--color-gold-500); margin-bottom: var(--space-sm); }
.hero h1 { color: var(--color-white); margin-bottom: var(--space-sm); }
.hero p.lead { font-size: var(--step-1); color: rgba(255,255,255,0.85); max-width: 46ch; margin-bottom: var(--space-md); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__portrait {
  background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-sm);
  box-shadow: var(--shadow-card);
}
.hero__portrait img { border-radius: var(--radius-sm); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero__portrait figcaption { text-align: center; padding-top: 0.75rem; font-weight: 600; color: var(--color-navy-900); }
.hero__portrait figcaption small { display: block; font-weight: 400; color: var(--color-ink-600); font-size: 0.85rem; }

.page-hero {
  background: var(--color-navy-900); color: var(--color-white); padding: var(--space-xl) 0 var(--space-lg);
}
.page-hero .hero__eyebrow { color: var(--color-gold-500); }
.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 65ch; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-sm); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--color-white); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--color-white); border-bottom: 1px solid var(--color-line); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; align-items: center; padding-top: var(--space-md); padding-bottom: var(--space-md); }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--color-navy-900); font-size: 0.95rem; }
.trust-item svg { width: 22px; height: 22px; fill: var(--color-gold-600); flex-shrink: 0; }

/* ============================================================
   CARDS / GRID (Areas of practice)
   ============================================================ */
.section-heading { text-align: center; max-width: 62ch; margin: 0 auto var(--space-lg); }
.section-heading .hero__eyebrow { color: var(--color-gold-600); justify-content: center; }
.section-heading p { color: var(--color-ink-600); }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.practice-card {
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  padding: var(--space-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.practice-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--color-gold-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm);
}
.practice-card__icon svg { width: 24px; height: 24px; fill: var(--color-gold-600); }
.practice-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.practice-card p { color: var(--color-ink-600); font-size: 0.95rem; flex-grow: 1; }
.practice-card a.card-link { font-weight: 700; margin-top: var(--space-sm); display: inline-block; }

/* ============================================================
   SPLIT SECTION (text + image)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.split--top { align-items: start; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.split--top .split__media { align-self: start; }
@media (min-width: 981px) {
  .split--top .split__media { position: sticky; top: 96px; }
}
.split--tint { background: var(--color-white); }

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.img-placeholder {
  background: repeating-linear-gradient(45deg, var(--color-gold-100), var(--color-gold-100) 12px, #fff 12px, #fff 24px);
  border: 1.5px dashed var(--color-gold-600);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--color-navy-900); font-weight: 700; font-size: 0.85rem; padding: var(--space-md);
  min-height: 220px; width: 100%;
}
.img-placeholder span { display: block; font-weight: 400; color: var(--color-ink-600); font-size: 0.78rem; margin-top: 0.4rem; }

/* ============================================================
   PROCESS / NUMBERED LIST (real sequences only)
   ============================================================ */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: var(--space-md);
}
.process-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem;
  background: var(--color-navy-900); color: var(--color-gold-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
}

/* ============================================================
   FAQ (accordion) — matches FAQPage schema
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  cursor: pointer; padding: var(--space-sm) 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; color: var(--color-navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--color-gold-600); flex-shrink: 0; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--color-ink-600); padding-bottom: var(--space-sm); margin: 0; }

/* answer-first blocks for AI answer engines */
.answer-block {
  background: var(--color-white); border-left: 4px solid var(--color-gold-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}
.answer-block strong { color: var(--color-navy-900); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--color-navy-900); color: var(--color-white); }
.testimonials .section-heading p { color: rgba(255,255,255,0.75); }
.testimonials .section-heading .hero__eyebrow { color: var(--color-gold-500); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.review-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: var(--space-md);
}
.review-card__stars { color: var(--color-gold-500); font-size: 1.1rem; margin-bottom: 0.6rem; letter-spacing: 0.1em; }
.review-card p.quote { font-size: 0.98rem; color: rgba(255,255,255,0.9); margin-bottom: var(--space-sm); }
.review-card__name { font-weight: 700; font-size: 0.9rem; }
.review-card__name span { display: block; font-weight: 400; color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.google-rating-badge { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-bottom: var(--space-lg); }
.google-rating-badge img { width: 40px; height: 40px; border-radius: 50%; }
.google-rating-badge strong { font-size: 1.1rem; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.team-card { text-align: center; }
.team-card .img-placeholder { aspect-ratio: 3/4; min-height: 0; margin-bottom: var(--space-sm); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-card__role { color: var(--color-gold-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.team-card ul { list-style: none; padding: 0; text-align: left; font-size: 0.85rem; color: var(--color-ink-600); }
.team-card ul li { margin-bottom: 0.3rem; padding-left: 1rem; position: relative; }
.team-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--color-gold-600); }
.team-card__contact { font-size: 0.85rem; margin-top: 0.5rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--color-gold-600), var(--color-gold-500));
  color: var(--color-navy-900); text-align: center;
}
.cta-banner h2 { color: var(--color-navy-900); }
.cta-banner p { color: rgba(16,27,48,0.85); max-width: 60ch; margin: 0 auto var(--space-md); }
.cta-banner .btn-primary { background: var(--color-navy-900); }
.cta-banner .btn-primary:hover { background: var(--color-navy-800); }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.contact-card {
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  padding: var(--space-lg); box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: var(--space-sm); }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--color-navy-900); }
.form-row input, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--color-cream-50);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-gold-600); outline: none; background: var(--color-white); }
.form-row--checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-row--checkbox input { width: auto; margin-top: 0.25rem; }
.form-row--checkbox label { font-weight: 400; font-size: 0.85rem; color: var(--color-ink-600); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--color-line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.office-hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: var(--space-sm); }
.office-hours td { padding: 0.4rem 0; border-bottom: 1px solid var(--color-line); }
.office-hours td:last-child { text-align: right; color: var(--color-ink-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-navy-900); color: rgba(255,255,255,0.75); }
.site-footer .container { padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand img { height: 40px; margin-bottom: var(--space-sm); background: var(--color-white); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--color-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-sm); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--color-gold-500); }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-sm); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-gold-600); border-color: var(--color-gold-600); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-md);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--color-navy-900); border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem; gap: 0.6rem;
}
.sticky-cta .btn { flex: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 340px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: initial; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 0 0 0 30%; background: var(--color-white); flex-direction: column;
    padding: 5rem var(--space-md) var(--space-md); transform: translateX(100%); transition: transform 0.25s ease;
    z-index: 120; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0.25rem; width: 100%; }
  .main-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-line); }
  .nav-toggle { display: block; }
  .header-cta__phone { display: none; }
  .utility-bar__social span.label { display: none; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
  section { padding: var(--space-lg) 0; }
}
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(16,27,48,0.5); z-index: 110; }
.nav-overlay.is-open { display: block; }
