/* ─────────────────────────────────────────────────────────────
   The Austen Smith Team — Site CSS
   Brand: Charcoal #333 / Logo Mark #3E4745 / Star Green #5F8754
   Fonts: Playfair Display (display), DM Sans (body), DM Mono (mono)
   ───────────────────────────────────────────────────────────── */

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

:root {
  --charcoal: #333333;
  --logo-mark: #3E4745;
  --green: #5F8754;
  --green-dark: #4a6d41;
  --green-light: #7aaa6b;
  --green-muted: rgba(95,135,84,0.10);
  --offwhite: #FBFBFB;
  --mid-gray: #666;
  --soft-gray: #888;
  --light-gray: #E8E8E8;
  --border: rgba(51,51,51,0.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(251,251,251,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 100px;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; padding: 4px 0;
}
.nav-logo-mark {
  height: 76px; width: auto; display: block; flex-shrink: 0;
}
.nav-logo-text {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--logo-mark);
  line-height: 1.1;
  white-space: nowrap;
}
.nav-logo-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 7px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-item { position: relative; }
.nav-link, .nav-item > a {
  font-size: 14px; font-weight: 500; color: var(--charcoal);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 5px;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  white-space: nowrap; opacity: 0.75;
}
.nav-link:hover, .nav-item > a:hover { background: rgba(0,0,0,0.05); opacity: 1; }
.nav-link.active { opacity: 1; color: var(--green-dark); }

.nav-caret { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 10px;
  min-width: 260px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  pointer-events: none;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: all;
}
.dropdown-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mid-gray);
  padding: 6px 12px 4px;
}
.dropdown-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  text-decoration: none; transition: background 0.15s;
}
.dropdown-link:hover { background: rgba(95,135,84,0.07); }
.dropdown-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--green-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.dropdown-icon svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropdown-text .dt { font-size: 13px; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.dropdown-text .ds { font-size: 11px; color: var(--mid-gray); margin-top: 2px; line-height: 1.4; }
.dropdown-divider { height: 1px; background: var(--light-gray); margin: 6px 0; }
.nav-dropdown-wide {
  min-width: 540px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 8px;
  padding: 14px;
}

.nav-cta {
  background: var(--green); color: white;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  margin-left: 12px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--charcoal); fill: none; stroke-width: 2; }

/* ── PAGE HERO (lighter than home hero, used on inner pages) ── */
.page-hero {
  background: var(--charcoal);
  padding: 140px 32px 88px;
  position: relative; overflow: hidden;
}
.page-hero-blob {
  position: absolute; top: -100px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: var(--green); opacity: 0.06; pointer-events: none;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green-light);
}
.page-hero-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 900; line-height: 1.04;
  color: var(--offwhite); margin-bottom: 18px;
  max-width: 860px;
}
.page-hero h1 em { font-style: italic; color: var(--green-light); }
.page-hero-sub {
  font-size: 19px; color: rgba(251,251,251,0.6);
  line-height: 1.7; font-weight: 300; max-width: 680px;
  margin-bottom: 32px;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 14px 28px; border-radius: 10px; transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s; cursor: pointer; border: 0; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-charcoal { background: var(--charcoal); color: white; }
.btn-charcoal:hover { background: #222; transform: translateY(-2px); }
.btn-outline-light { color: rgba(251,251,251,0.8); border: 1px solid rgba(255,255,255,0.2); padding: 13px 24px; }
.btn-outline-light:hover { color: white; border-color: rgba(255,255,255,0.45); }
.btn-outline { color: var(--green); border: 1.5px solid var(--green); padding: 12px 22px; background: transparent; }
.btn-outline:hover { background: var(--green); color: white; }
.btn-ghost { color: var(--charcoal); }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

/* ── SHARED SECTION ──────────────────────────────── */
.section { padding: 96px 32px; }
.section-narrow { padding: 80px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-inner-tight { max-width: 920px; margin: 0 auto; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: 42px; font-weight: 900; color: var(--charcoal); margin-bottom: 14px; line-height: 1.12; }
.section-title em { font-style: italic; color: var(--green); }
.section-sub { font-size: 17px; color: var(--mid-gray); font-weight: 300; margin-bottom: 48px; max-width: 580px; line-height: 1.7; }
.section-head-center { text-align: center; margin: 0 auto 48px; max-width: 720px; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

.bg-white { background: white; }
.bg-offwhite { background: var(--offwhite); }
.bg-charcoal { background: var(--charcoal); color: var(--offwhite); }
.bg-charcoal .section-title { color: var(--offwhite); }
.bg-charcoal .section-sub { color: rgba(251,251,251,0.6); }
.bg-green { background: var(--green); color: white; }

/* ── CARDS / GRIDS ───────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: white; border: 1px solid var(--light-gray);
  border-radius: 16px; padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-muted);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); }
.card-desc { font-size: 14px; color: var(--mid-gray); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none;
}
.card-link:hover { color: var(--green-dark); }

/* Dark-on-charcoal card */
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  transition: background 0.2s;
}
.card-dark:hover { background: rgba(255,255,255,0.06); }
.card-dark .card-title { color: var(--offwhite); }
.card-dark .card-desc { color: rgba(251,251,251,0.55); }
.card-dark .card-icon { background: rgba(95,135,84,0.15); border: 1px solid rgba(95,135,84,0.25); }
.card-dark .card-icon svg { stroke: var(--green-light); }

/* Education / blog card with bar */
.edu-card {
  background: white; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--light-gray);
  text-decoration: none; color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.edu-card-bar { height: 6px; background: var(--green); }
.edu-card-top { padding: 24px 24px 8px; }
.edu-card-tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.edu-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; color: var(--charcoal); }
.edu-card-desc { font-size: 14px; color: var(--mid-gray); line-height: 1.65; margin-bottom: 18px; }
.edu-card-bottom { padding: 14px 24px; border-top: 1px solid var(--light-gray); display: flex; align-items: center; justify-content: space-between; }
.edu-card-link { font-size: 13px; font-weight: 600; color: var(--green); }
.edu-card-time { font-size: 11px; color: var(--mid-gray); }

/* Tag / badge */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; background: white; color: var(--charcoal);
  border: 1px solid var(--light-gray);
}
.tag-green { background: var(--green-muted); border-color: transparent; color: var(--green-dark); }
.tag-green-solid { background: var(--green); color: white; border-color: transparent; }
.tag-charcoal { background: var(--charcoal); color: white; border-color: transparent; }

/* ── FEATURE STRIP / NUMBERS ─────────────────────── */
.stat-strip { display: flex; gap: 48px; padding: 28px 0; flex-wrap: wrap; }
.stat .stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--charcoal); line-height: 1; }
.bg-charcoal .stat .stat-num, .page-hero .stat .stat-num, .hero .stat .stat-num { color: var(--offwhite); }
.stat .stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid-gray); margin-top: 6px; }
.bg-charcoal .stat .stat-label, .page-hero .stat .stat-label, .hero .stat .stat-label { color: rgba(251,251,251,0.55); }

/* ── PROCESS ─────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 1px; background: var(--light-gray); }
.bg-charcoal .process-grid::before { background: rgba(255,255,255,0.08); }
.step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--green); background: var(--offwhite); }
.bg-white .step-num { background: white; }
.bg-charcoal .step-num { background: var(--charcoal); }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.step-desc { font-size: 13px; color: var(--mid-gray); line-height: 1.65; }
.bg-charcoal .step-desc { color: rgba(251,251,251,0.5); }

/* ── CTA STRIP ───────────────────────────────────── */
.cta-strip {
  background: var(--charcoal); border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-strip h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--offwhite); margin-bottom: 6px; }
.cta-strip p { font-size: 14px; color: rgba(251,251,251,0.5); }
.cta-strip .btn { flex-shrink: 0; }

/* ── BIG CTA ─────────────────────────────────────── */
.cta-big { padding: 100px 32px; background: var(--green); }
.cta-big-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-big h2 { font-family: var(--font-display); font-size: 46px; font-weight: 900; color: white; margin-bottom: 14px; line-height: 1.1; }
.cta-big p { font-size: 18px; color: rgba(255,255,255,0.78); margin-bottom: 36px; font-weight: 300; }
.cta-big .nmls { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 22px; font-family: var(--font-mono); line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: var(--charcoal); padding: 64px 32px 28px; }
.footer-top {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 240px; }
.footer-phone { display: block; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 14px; text-decoration: none; }
.footer-phone:hover { color: white; }
.footer-col h4 { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.95); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-legal { font-size: 10px; color: rgba(255,255,255,0.22); line-height: 1.7; max-width: 720px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.28); }

/* ── FORM ELEMENTS ──────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--light-gray); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; color: var(--charcoal);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 0; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(95,135,84,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: 11px; color: var(--soft-gray); margin-top: 4px; }

/* ── DETAILS / FAQ ──────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 22px 0;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-body); font-size: 24px; font-weight: 400; color: var(--green-light);
  transition: transform 0.2s;
  flex-shrink: 0; margin-left: 24px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  font-size: 15px; color: var(--mid-gray); line-height: 1.75; font-weight: 300;
  margin-top: 12px;
}
/* FAQ on dark sections */
.bg-charcoal .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
.bg-charcoal .faq-item summary { color: var(--offwhite); }
.bg-charcoal .faq-item summary:hover { color: var(--green-light); }
.bg-charcoal .faq-item .faq-body { color: rgba(251,251,251,0.7); }

/* ── UTIL ───────────────────────────────────────── */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-gap { gap: 14px; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-logo-text { display: none; }
  .nav-logo-mark { height: 64px; }
  .mobile-nav-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 100px; left: 0; right: 0;
    height: calc(100vh - 100px);
    background: var(--offwhite); padding: 20px 22px 32px; gap: 2px;
    overflow-y: auto; align-items: stretch;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-nav-open .nav-link { padding: 14px 12px; font-size: 16px; opacity: 1; }
  .mobile-nav-open .nav-item { width: 100%; }
  .mobile-nav-open .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; pointer-events: all; box-shadow: none; border: 0; padding: 4px 12px 12px; min-width: 0; }
  .mobile-nav-open .nav-dropdown-wide { grid-template-columns: 1fr; }
  .mobile-nav-open .nav-cta { margin: 12px 0 0; text-align: center; }

  .page-hero { padding: 110px 22px 60px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero-sub { font-size: 16px; }
  .section, .section-narrow, .cta-big { padding-left: 22px; padding-right: 22px; }
  .section, .cta-big { padding-top: 64px; padding-bottom: 64px; }
  .section-title, .cta-big h2 { font-size: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-strip { gap: 28px; }
  .footer { padding-left: 22px; padding-right: 22px; }
}
