/* ============================================================
   Merin Law — Family Law Attorney, Connecticut Shoreline
   ============================================================ */

/* ---------- Design Tokens ---------- */

:root {
  /* Brand palette — nautical without being kitschy */
  --color-navy:        #1a3a5c;
  --color-navy-dark:   #0d2440;
  --color-teal:        #2a6e8a;
  --color-teal-light:  #4a8aa8;
  --color-gold:        #b8893f;
  --color-gold-light:  #d4a35e;
  --color-cream:       #f4f7fa;
  --color-cream-dark:  #e6ecf2;
  --color-white:       #ffffff;
  --color-charcoal:    #1c1c1c;
  --color-text:        #2a3340;
  --color-text-muted:  #5a6a7a;
  --color-border:      #d8e0e8;

  /* Typography */
  --font-serif: 'Spectral', 'Spectral Fallback', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.75rem;
  --fs-6xl:  4.5rem;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:        1200px;
  --content-width:    72ch;
  --header-height:    80px;
  --header-height-sm: 64px;

  /* Effects */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 9999px;

  --shadow-sm:    0 1px 2px rgba(13, 36, 64, 0.05), 0 1px 3px rgba(13, 36, 64, 0.06);
  --shadow-md:    0 4px 8px rgba(13, 36, 64, 0.06), 0 2px 4px rgba(13, 36, 64, 0.08);
  --shadow-lg:    0 12px 28px rgba(13, 36, 64, 0.10), 0 4px 8px rgba(13, 36, 64, 0.08);
  --shadow-xl:    0 24px 48px rgba(13, 36, 64, 0.14);

  --transition-fast: 0.15s ease;
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ---------- Font Loading + Fallback (CLS mitigation) ---------- */

@font-face {
  font-family: 'Spectral Fallback';
  src: local('Georgia');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('-apple-system'), local('Helvetica Neue'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Reset / Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle paper texture overlay — adds warmth without theme-park energy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.14 0 0 0 0 0.25 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* keep texture below content */
header, main, footer { position: relative; z-index: 2; }

img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-navy); text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

button { font: inherit; cursor: pointer; }

::selection { background: var(--color-gold); color: var(--color-navy-dark); }

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-navy-dark);
  margin: 0 0 var(--space-md);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { margin: 0 0 var(--space-md); line-height: var(--lh-relaxed); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-md);
}

.lede {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 60ch;
}

blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--color-navy);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-lg);
  margin: var(--space-2xl) 0;
}

ul, ol { padding-left: 1.25rem; line-height: var(--lh-relaxed); }
li + li { margin-top: var(--space-xs); }

hr {
  border: 0;
  border-top: 1px solid var(--color-gold);
  opacity: 0.5;
  margin: var(--space-3xl) auto;
  max-width: 6rem;
}

/* ---------- Layout Primitives ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}
.section-sm { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.section-cream { background: var(--color-cream); }
.section-white { background: var(--color-white); }
.section-navy {
  background: var(--color-navy-dark);
  color: var(--color-cream);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-white); }

/* hairline gold rule between sections (used as a section-divider element) */
.divider-gold {
  height: 1px;
  background: var(--color-gold);
  opacity: 0.4;
  max-width: 6rem;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(244, 247, 250, 0.4);
}
.btn-ghost:hover {
  background: rgba(244, 247, 250, 0.1);
  border-color: var(--color-cream);
  color: var(--color-white);
  text-decoration: none;
}

.btn-lg { padding: 1.05rem 2.25rem; font-size: var(--fs-md); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: height var(--transition), background var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  height: var(--header-height-sm);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-navy-dark);
}
.brand__logo {
  display: block;
  height: 48px;
  width: auto;
  transition: height var(--transition);
}
.site-header.is-scrolled .brand__logo { height: 38px; }
@media (max-width: 480px) {
  .brand__logo { height: 38px; }
  .site-header.is-scrolled .brand__logo { height: 32px; }
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-navy-dark);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--color-navy-dark);
  letter-spacing: -0.01em;
}
.brand__tagline {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li + li { margin-top: 0; }
.footer__list li + li { margin-top: 0; }
.towns-grid .town-pill + .town-pill { margin-top: 0; }
.faq-list li + li { margin-top: 0; }
.nav__link {
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-xs) 0;
}
.nav__link:hover { color: var(--color-navy); text-decoration: none; }
.nav__link.is-active { color: var(--color-navy); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-gold);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav__cta:hover { background: var(--color-navy-dark); color: var(--color-white); text-decoration: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--space-sm);
  color: var(--color-navy-dark);
}
.nav__toggle svg { display: block; }

/* Spacer below fixed header so content starts in the right place */
.header-spacer { height: var(--header-height); }

/* Mobile nav — raised to 1140px so the 7-item desktop nav only shows where it fits */
@media (max-width: 1140px) {
  .nav__list, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--space-lg);
  }
  .nav.is-open .nav__list .nav__link {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-md);
  }
  .nav.is-open .nav__list .nav__link:last-child { border-bottom: 0; }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin-top: var(--space-md);
    align-self: flex-start;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy-dark);
  color: var(--color-white);
}
.hero--short { min-height: 52vh; }
.hero--page { min-height: 44vh; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,36,64,0.25) 0%, rgba(13,36,64,0.55) 60%, rgba(13,36,64,0.85) 100%),
    linear-gradient(90deg, rgba(13,36,64,0.55) 0%, rgba(13,36,64,0.15) 60%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  color: var(--color-white);
}
.hero__content h1 {
  color: var(--color-white);
  max-width: 18ch;
  margin-bottom: var(--space-lg);
}
.hero__content .lede {
  color: rgba(244, 247, 250, 0.92);
  max-width: 50ch;
  font-size: var(--fs-md);
  margin-bottom: var(--space-xl);
}
.hero__eyebrow {
  color: var(--color-gold-light);
  letter-spacing: 0.16em;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* gradient hero (used as fallback when no image, e.g. New London until sourced) */
.hero--gradient .hero__media {
  background: radial-gradient(circle at 30% 30%, var(--color-teal) 0%, var(--color-navy) 50%, var(--color-navy-dark) 100%);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-navy);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--color-navy-dark);
  margin: 0 0 var(--space-sm);
}
.card__copy {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  flex-grow: 1;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-teal);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  margin-top: auto;
}
.card__link:hover { color: var(--color-navy); text-decoration: none; }
.card__link::after {
  content: "→";
  transition: transform var(--transition);
}
.card:hover .card__link::after { transform: translateX(3px); }

/* Service card variant — no image, more compact */
.service-card {
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

/* ---------- Practice / Two-Col Layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.two-col--reverse > :first-child { order: 2; }
.two-col__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col__media img { width: 100%; height: auto; }

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .two-col--reverse > :first-child { order: 0; }
}

/* ---------- FAQ Accordion ---------- */

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--color-gold); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-lg);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: background var(--transition-fast);
}
.faq-item summary:hover { background: var(--color-cream); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  color: var(--color-gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__body {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text);
}
.faq-item__body p:first-child { margin-top: 0; }

/* ---------- Towns List ---------- */

.towns-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.town-pill {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-navy-dark);
  text-decoration: none;
  transition: all var(--transition);
}
.town-pill:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-navy-dark);
}
.town-pill__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-md);
}
.town-pill__district {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.town-pill--inactive {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- CTA Banner ---------- */

.cta-banner {
  background: var(--color-navy-dark);
  color: var(--color-cream);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}
.cta-banner h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.cta-banner p { max-width: 50ch; margin-left: auto; margin-right: auto; color: rgba(244,247,250,0.85); margin-bottom: var(--space-xl); }
.cta-banner .btn-primary { box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(244, 247, 250, 0.78);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}
.site-footer a { color: var(--color-cream); }
.site-footer a:hover { color: var(--color-gold-light); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.footer__tagline {
  color: rgba(244, 247, 250, 0.72);
  max-width: 36ch;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.footer__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  margin-bottom: var(--space-md);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: var(--space-sm); font-size: var(--fs-sm); }

.footer__bottom {
  border-top: 1px solid rgba(244, 247, 250, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(244, 247, 250, 0.55);
}
.footer__disclaimer {
  margin-top: var(--space-xl);
  font-size: var(--fs-xs);
  color: rgba(244, 247, 250, 0.55);
  max-width: 90ch;
  line-height: var(--lh-normal);
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 560px;
}
.form__field { display: flex; flex-direction: column; gap: var(--space-xs); }
.form__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy-dark);
}
.form__input, .form__textarea, .form__select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(42, 110, 138, 0.15);
}
.form__textarea { min-height: 8rem; resize: vertical; }
.form__hint { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4em; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4em; color: var(--color-border); }
.breadcrumbs a { color: var(--color-teal); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* ---------- Reveal-on-scroll (paired with IntersectionObserver in main.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */

.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;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ---------- Page-Specific Bits ---------- */

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 880px) { .contact-block { grid-template-columns: 1fr; } }

.contact-info p { display: flex; align-items: baseline; gap: var(--space-sm); }
.contact-info strong { color: var(--color-navy-dark); min-width: 5rem; }

.headshot {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */

@media print {
  body::before, .site-header, .site-footer, .nav, .hero__overlay { display: none; }
  .hero { min-height: auto; color: var(--color-charcoal); }
  .hero__content { color: var(--color-charcoal); }
  .hero__content h1, .hero__content .lede { color: var(--color-charcoal); }
  a { color: var(--color-charcoal); text-decoration: underline; }
  body { background: white; color: black; }
}
