/* ============================================================
   MODERN CSS RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ol, ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {

  /* --- Surfaces --- */
  --bg:           #ffffff;
  --bg-elev:      #fafaf9;
  --bg-card:      #ffffff;
  --bg-card-2:    #f5f5f4;
  --bg-alt:       #fafaf9;

  /* --- Lines --- */
  --line:         #ececea;
  --line-soft:    #f4f4f2;
  --line-strong:  #d8d8d4;

  /* --- Legacy Aliases (Add these to fix the broken pages!) --- */
  --card:          var(--bg-card);
  --border:        var(--line);
  --border-strong: var(--line-strong);
  --green-rich:    var(--green-bright);
  --navy:          #0e1824;
  --shadow-green:  0 8px 24px rgba(26, 184, 74, 0.25);
  --ring-green:    0 0 0 3px rgba(26, 184, 74, 0.15);
  
  /* --- Inks (Text) --- */
  --ink:          #0a0d10;
  --ink-soft:     #1f2428;
  --muted:        #6b7280;
  --muted-soft:   #9ca3af;

  /* --- Brand Green --- */
  --green:        #1ab84a;
  --green-bright: #24d45a;
  --green-dim:    #0f7d31;
  --green-deep:   #0a5421;
  --green-tint:   rgba(26, 184, 74, 0.08);
  --green-tint-2: rgba(26, 184, 74, 0.16);

  /* --- Utility --- */
  --gold:         #d4a017;
  --red:          #d93838;

  /* --- Typography Stacks --- */
  --font-sans:    'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
  --font-serif:   'Instrument Serif', Georgia, serif;

  /* --- Radii --- */
  --r-sm:         8px;
  --r-md:         12px;
  --r-lg:         18px;
  --r-xl:         28px;

  /* --- Shadows --- */
  --shadow-sm:    0 1px 2px rgba(10, 13, 16, 0.04), 0 1px 3px rgba(10, 13, 16, 0.06);
  --shadow-md:    0 8px 24px rgba(10, 13, 16, 0.06), 0 2px 6px rgba(10, 13, 16, 0.04);
  --shadow-lg:    0 24px 60px rgba(10, 13, 16, 0.10), 0 4px 16px rgba(10, 13, 16, 0.06);

  /* --- Spacing --- */
  --container-max:        1240px;
  --container-padding:    32px;
  --section-padding:      120px;
  --section-header-gap:   64px;
  --headline-to-lead:     18px;
  --lead-to-cta:          36px;
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
#faq-list .faq-item.reveal {
  opacity: 1;
  transform: none;
}


/* ============================================================
   BASE BODY
   ============================================================ */

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.55;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}


/* ============================================================
   HEADINGS
   ============================================================ */

h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--ink);
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}


/* ============================================================
   TYPOGRAPHY ROLES
   ============================================================ */

.lead {
  font-family: var(--font-sans);
  font-size: 1.075rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--green);
  margin-right: 10px;
  flex-shrink: 0;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

/* Headline pattern: serif italic accent word inside h1/h2 */
.serif.accent,
h1 .serif.accent,
h2 .serif.accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--green-dim);
}


/* Base Accent Color */
.accent {
  color: var(--green-dim);
}
/* Section header center-alignment modifier */
.section-tag--center,
.section-heading--center {
  text-align: center;
}
.section-lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}
.link-green {
  color: var(--green);
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
/* ============================================================
   TESTIMONIALS GRID (includes/testimonials.php)
   ============================================================ */


.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.review-header .stars {
  margin-bottom: 0;
}
.star-glyph {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.testimonials-cta {
  text-align: center;
  margin-top: 50px;
}
.btn-inline-flex {
  display: inline-flex;
}
.btn-arrow {
  margin-left: 8px;
}
.testi-author {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.testi-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --container-padding: 24px;
    --section-padding:   80px;
  }
}

@media (max-width: 700px) {
  :root {
    --container-padding: 20px;
    --section-padding:   80px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
    --section-padding:   60px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }
}

@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;
  }
}
