/* ==========================================================================
   Realigned Coordination - design tokens
   ========================================================================== */

:root {
  /* Color, derived from brand kit (forest/meadow) + supporting neutrals */
  --forest:        #1F3832; /* brand dark green: dark section bg, primary ink on light */
  --forest-deep:    #142822; /* darker variant: footer, vignette */
  --meadow:         #A5E77C; /* brand accent green: used sparingly */
  --meadow-deep:    #7FC653; /* pressed / hover state of meadow */
  --parchment:      #F6F1E7; /* warm canvas, replaces stark white */
  --paper:          #FFFFFF; /* cards, contrast panels */
  --moss:           #55705F; /* muted mid-green: secondary text, borders */
  --ink:            #16221D; /* near-black-green: body copy on light bg */

  --on-dark:        #F2EFE5; /* body text on forest backgrounds */
  --on-dark-muted:  #AFC2B7; /* secondary text on forest backgrounds */

  /* Type */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --fs-hero:    clamp(2.4rem, 1.35rem + 4.6vw, 4.35rem);
  --fs-h2:      clamp(1.9rem, 1.35rem + 2.4vw, 2.85rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-lede:    clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.9rem;
  --fs-eyebrow: 1.25rem;

  /* Space */
  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --max-width: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 24px 48px -24px rgba(20, 40, 34, 0.35);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: inherit; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--meadow);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 1rem; top: 0;
  transform: translateY(-150%);
  background: var(--forest); color: var(--paper);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease);
  z-index: 100;
}
.skip-link:focus { transform: translateY(1rem); }

/* ==========================================================================
   Shared layout helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: "\00BB";
  display: inline-block;
  margin-right: 0.45em;
  font-family: var(--font-display);
  font-weight: 800;
}
.eyebrow-light { color: var(--meadow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  min-height: 44px;
}
.btn-primary {
  background: var(--meadow);
  color: var(--forest);
}
.btn-primary:hover { background: var(--meadow-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--parchment); }
.btn-text {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 239, 229, 0.45);
}
.btn-text:hover {
  background: rgba(242, 239, 229, 0.1);
  border-color: var(--paper);
  transform: translateY(-2px);
}

section { position: relative; }

/*
 * Single orchestrated page-load moment: the hero settles in. Pure CSS
 * (no JS timers) so there's no risk of it getting stuck mid-animation
 * if a browser throttles timers in a backgrounded tab.
 */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual {
    animation: hero-in 0.7s var(--ease) both;
  }
  .hero-visual { animation-delay: 0.12s; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid rgba(31, 56, 50, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.brand-word em { color: var(--moss); font-style: normal; font-weight: 500; }

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:not(.nav-cta) {
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--meadow-deep);
  transition: right 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after { right: 0; }

.nav-cta {
  background: var(--forest);
  color: var(--parchment) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--moss); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  min-height: 44px; min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  width: 22px; height: 2px; background: var(--forest);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  padding: 0 var(--gutter);
}
.mobile-nav.is-open { max-height: 22rem; padding-bottom: 1.25rem; }
.mobile-nav a {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(31,56,50,0.1);
  font-weight: 500;
}
.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 0.75rem;
  text-align: center;
  border-top: none;
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--forest);
  background-image: radial-gradient(120% 100% at 15% 0%, #24463e 0%, var(--forest) 55%);
  color: var(--on-dark);
  padding-top: clamp(3rem, 4vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 5vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(2.5rem, 5vw, 3rem);
  align-items: center;
}

.hero-copy { max-width: 42rem; }

.hero-heading {
  font-size: var(--fs-hero);
  color: var(--paper);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: var(--fs-lede);
  color: var(--on-dark-muted);
  max-width: 36rem;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem 0;
}

.hero-quote {
  position: relative;
  margin: 0;
  max-width: 26rem;
  width: 100%;
  background: rgba(242, 239, 229, 0.08);
  border: 1px solid rgba(242, 239, 229, 0.2);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
}
.hero-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--meadow);
  margin-bottom: 0.35rem;
}
.hero-quote p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--on-dark);
}
.hero-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--meadow);
}
.hero-quote cite span { color: var(--on-dark-muted); margin: 0 0.15em; }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
  .hero-visual { justify-self: center; max-width: 380px; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--meadow);
  color: var(--forest);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.6vw + 0.8rem, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: marquee 55s linear infinite;
  padding-right: 1.1rem;
}
.marquee-track .marquee-sep { font-size: 0.75em; opacity: 0.7; font-family: var(--font-display); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 var(--gutter);
  }
  /* Only one set of 4 phrases (8 nodes: phrase + separator) is shown
     statically; the rest exist purely to keep the scrolling loop fed. */
  .marquee-track > *:nth-child(n + 9) { display: none; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--parchment); padding: var(--space-section) 0; }

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.about-media { max-width: 22rem; margin: 0; }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.about-photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-photo-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--moss);
}

.about-copy h2 { font-size: var(--fs-h2); color: var(--forest); }
.about-copy p { margin-top: 1.15rem; max-width: 42rem; color: var(--ink); }
.about-copy .btn { margin-top: 2rem; }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 22rem 1fr; gap: 4rem; }
}

.about-story {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(31, 56, 50, 0.14);
}
.about-story-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0;
  display: grid;
  gap: 2.5rem;
}

.about-story-quote {
  position: relative;
  align-self: start;
  max-width: 26rem;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.about-story-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--meadow);
  margin-bottom: 0.35rem;
}
.about-story-quote p:first-of-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.35;
}
.about-story-quote-rule {
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--meadow);
  margin: 1.35rem 0;
}
.about-story-quote-sub {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.about-story-main h2 { font-size: var(--fs-h2); color: var(--forest); }
.about-story-copy {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.15rem;
  max-width: 46rem;
  color: var(--ink);
}

@media (min-width: 860px) {
  /* Mirrored from the About block above (photo left, text right):
     here the text comes first and the quote sits on the right. */
  .about-story-inner { grid-template-columns: 1fr 22rem; gap: 4rem; }
  .about-story-main { order: 1; }
  .about-story-quote { order: 2; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { background: var(--forest); color: var(--on-dark); padding: var(--space-section) 0; }

.services-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

.services-heading h2 { font-size: var(--fs-h2); color: var(--paper); }
.services-lede { margin-top: 1rem; font-size: var(--fs-lede); color: var(--on-dark-muted); max-width: 34rem; }

.service-list { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid rgba(242,239,229,0.16); }

.service-row { border-bottom: 1px solid rgba(242,239,229,0.16); }

.service-row summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem 1.25rem;
  padding: 1.75rem 0;
  transition: background 0.2s var(--ease);
}
.service-row summary::-webkit-details-marker { display: none; }
.service-row summary:hover,
.service-row summary:focus-visible { background: rgba(165,231,124,0.06); }
.service-row details[open] summary { background: rgba(165,231,124,0.05); }

.service-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--meadow);
  line-height: 1.3;
  grid-column: 1;
  grid-row: 1 / 3;
}

.service-title { display: flex; flex-direction: column; gap: 0.2rem; grid-column: 2; grid-row: 1; }
.service-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--paper); }
.service-tag { font-size: var(--fs-small); color: var(--meadow); font-weight: 600; }

.service-desc {
  grid-column: 2;
  grid-row: 2;
  color: var(--on-dark-muted);
  max-width: 42rem;
}

.service-toggle {
  grid-column: 3;
  grid-row: 1;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(242,239,229,0.4);
  position: relative;
  flex-shrink: 0;
}
.service-toggle::before, .service-toggle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--parchment);
  transform: translate(-50%, -50%);
}
.service-toggle::before { width: 12px; height: 1.5px; }
.service-toggle::after { width: 1.5px; height: 12px; transition: transform 0.25s var(--ease); }
.service-row details[open] .service-toggle::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

/*
 * .service-details lives inside <details>, as a sibling AFTER <summary>,
 * so it is not a participant in summary's own grid and grid-column/row
 * on it would be silently ignored. Rather than trying to hand-align it
 * under summary's title column, it's given its own centred, contained
 * panel so the reveal reads as a clear, deliberate moment rather than
 * text that just continues in the flow.
 */
.service-details {
  margin: 0.5rem auto 2rem;
  max-width: 36rem;
  background: rgba(242, 239, 229, 0.08);
  border: 1px solid rgba(242, 239, 229, 0.18);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem 1.75rem;
  text-align: center;
}
.service-details p {
  color: var(--on-dark-muted);
}
.service-details ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}
.service-details li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--on-dark-muted);
}
.service-details li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--meadow);
}

@media (min-width: 640px) {
  .service-row summary {
    grid-template-columns: auto minmax(14rem, 22rem) 1fr auto;
  }
  .service-title { grid-column: 2; grid-row: 1; }
  .service-desc { grid-column: 3; grid-row: 1; }
  .service-toggle { grid-column: 4; grid-row: 1; }
  .service-details { max-width: 42rem; }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process { background: var(--parchment); padding: var(--space-section) 0; }
.process-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.process h2 { font-size: var(--fs-h2); color: var(--forest); margin-top: 0.75rem; }

.process-steps {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  display: grid;
  gap: 2.75rem;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 19px;
  width: 3px;
  background-image: linear-gradient(var(--forest) 55%, transparent 0%);
  background-size: 3px 11px;
  background-repeat: repeat-y;
  opacity: 0.35;
}

.process-step { position: relative; padding-left: 3.25rem; }

.process-num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--meadow);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}

.process-step h3 { font-size: var(--fs-h3); color: var(--forest); margin-top: 0.6rem; }
.process-step p { margin-top: 0.5rem; color: var(--moss); max-width: 26rem; }

@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .process-steps::before {
    left: 20px; right: 20px; top: 19px; bottom: auto; height: 3px; width: auto;
    background-image: linear-gradient(90deg, var(--forest) 55%, transparent 0%);
    background-size: 11px 3px;
  }
  .process-step { padding-left: 0; padding-top: 3.25rem; }
  .process-num { top: 0; left: 0; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { background: var(--paper); padding: var(--space-section) 0; }
.testimonials-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.testimonials h2 { font-size: var(--fs-h2); color: var(--forest); margin-top: 0.75rem; }

.testimonial-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 2.5rem;
}

.testimonial {
  position: relative;
  margin: 0;
  background: var(--parchment);
  border-top: 4px solid var(--meadow);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.65rem;
  left: 1.6rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--meadow-deep);
  opacity: 0.55;
}
.testimonial p {
  color: var(--ink);
  font-size: 0.96rem;
}
.testimonial p + p { margin-top: 1rem; }
.testimonial cite {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--forest);
}
.testimonial cite span { color: var(--moss); margin: 0 0.2em; }

@media (min-width: 900px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .testimonial { font-size: 0.94rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { background: var(--parchment); padding: var(--space-section) 0; }
.faq-inner { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.faq h2 { font-size: var(--fs-h2); color: var(--forest); margin-top: 0.75rem; }

.faq-list { margin-top: 2.5rem; border-top: 1px solid rgba(31,56,50,0.14); }

.faq-item { border-bottom: 1px solid rgba(31,56,50,0.14); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--moss);
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--forest);
  transform: translate(-50%, -50%);
}
.faq-toggle::before { width: 11px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 11px; transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-item p { padding: 0 0 1.75rem; max-width: 42rem; color: var(--ink); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--forest); color: var(--on-dark); padding: var(--space-section) 0; }
.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-intro h2 { font-size: var(--fs-h2); color: var(--paper); margin-top: 0.75rem; }
.contact-lede {
  margin-top: 1.15rem;
  font-size: var(--fs-lede);
  color: var(--on-dark-muted);
  max-width: 34rem;
}

.contact-details {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 30rem;
}

@media (min-width: 640px) {
  .contact-details { grid-template-columns: repeat(2, 1fr); max-width: 40rem; }
  .contact-details div:last-child { grid-column: 1 / -1; }
}
.contact-details dt { font-size: var(--fs-small); color: var(--meadow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-details dd { margin: 0.2rem 0 0; font-size: 1.1rem; }
.contact-details a { border-bottom: 1px solid transparent; }
.contact-details a:hover { border-color: currentColor; }

.referral-embed {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  min-height: 8rem;
}
.referral-embed iframe { max-width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter) 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.footer-word { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--paper); }
.footer-word em { color: var(--meadow); font-style: normal; font-weight: 500; }
.footer-brand p { margin-top: 0.6rem; max-width: 22rem; font-size: var(--fs-small); }

.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--paper); }

.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.95rem; }
.footer-contact a:hover { color: var(--paper); }

.footer-base {
  border-top: 1px solid rgba(242,239,229,0.12);
  padding: 1.5rem var(--gutter) 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 0.8fr 1fr; }
  .footer-base { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Accessibility widget
   ========================================================================== */

.a11y-widget {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 200;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  border: 2px solid var(--meadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.a11y-toggle:hover { background: var(--moss); transform: translateY(-2px); }

.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 15.5rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(31, 56, 50, 0.16);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.a11y-panel[hidden] { display: none; }

.a11y-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest);
  margin: 0 0 0.85rem;
}

.a11y-panel label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  cursor: pointer;
  border-top: 1px solid rgba(31, 56, 50, 0.1);
}
.a11y-panel label:first-of-type { border-top: none; }
.a11y-panel input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--forest);
}

/* ==========================================================================
   Accessibility modes
   Each mode overrides shared design tokens rather than individual
   selectors, so it applies consistently everywhere those tokens are
   already used.
   ========================================================================== */

html.a11y-large-text { font-size: 113%; }

html.a11y-high-contrast {
  --moss: #24322b;
  --on-dark-muted: #ffffff;
  --ink: #000000;
}
html.a11y-high-contrast :focus-visible { outline-width: 3px; outline-offset: 4px; }

html.a11y-underline-links a:not(.btn):not(.nav-cta):not(.brand) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
