/* =============================================================
   avenore-shared.css — Shared design system for all Avenore blog pages
   ============================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --forest: #0A2A20;
  --emerald: #2FB25C;
  --deep-emerald: #1C7A42;
  --white: #FFFFFF;
  --offwhite: #F7F9F8;
  --ink: #1A1F1D;
  --sage: #8FA39A;
  --gold: #C9A24B;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; }

/* ---------- NAV ---------- */
.av-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  padding: 12px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.av-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.02em;
}
.av-brand img {
  height: 38px;
  width: auto;
  display: block;
}
.av-navlinks {
  display: flex;
  gap: 28px;
  font-size: 0.92em;
}
.av-navlinks a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s;
}
.av-navlinks a:hover { color: var(--emerald); }
.av-nav-cta {
  background: var(--emerald);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.av-nav-cta:hover { background: var(--deep-emerald); }
@media (max-width: 820px) { .av-navlinks { display: none; } }

/* ---------- HERO ---------- */
.av-hero {
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(47, 178, 92, 0.35), transparent 60%),
    linear-gradient(180deg, #0A2A20 0%, #0D3527 100%);
  color: var(--white);
  padding: 90px 6vw 110px;
  position: relative;
  overflow: hidden;
}
.av-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.av-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.av-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
}
.av-hero h1 {
  font-size: clamp(2.1em, 4.2vw, 3.15em);
  line-height: 1.12;
  margin: 0 0 22px;
}
.av-hero h1 span { color: var(--emerald); }
.av-hero p.lede {
  font-size: 1.14em;
  color: #D6E3DC;
  max-width: 520px;
  margin: 0 0 34px;
}
.av-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Metrics card */
.av-peaks-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 28px 26px 22px;
  backdrop-filter: blur(6px);
}
.av-peaks-label {
  font-family: 'IBM Plex Mono';
  font-size: 0.72em;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.av-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.av-metric-row:last-child { border-bottom: none; }
.av-metric-label { font-size: 0.88em; color: var(--sage); }
.av-metric-val {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  font-size: 1.1em;
  color: var(--emerald);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: 1px solid var(--emerald);
}
.btn-primary:hover { background: var(--deep-emerald); border-color: var(--deep-emerald); }
.btn-ghost {
  color: var(--white);
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* ---------- STATS STRIP ---------- */
.av-stats {
  background: var(--white);
  border-bottom: 1px solid #E7EBE8;
  padding: 0 6vw;
}
.av-stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateY(-38px);
}
.av-stat-card {
  background: var(--forest);
  color: var(--white);
  padding: 26px 22px;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.av-stat-card:first-child { border-radius: 10px 0 0 10px; }
.av-stat-card:last-child { border-right: none; border-radius: 0 10px 10px 0; }
.av-stat-num {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  font-size: 1.7em;
  color: var(--emerald);
}
.av-stat-label { font-size: 0.82em; color: var(--sage); margin-top: 4px; }

/* ---------- SECTION SHARED ---------- */
section.block { max-width: 1180px; margin: 0 auto; padding: 90px 6vw; }
.section-tag {
  font-family: 'IBM Plex Mono';
  font-size: 0.78em;
  color: var(--deep-emerald);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
h2.section-title { font-size: clamp(1.6em, 2.6vw, 2.15em); margin: 0 0 18px; color: var(--forest); }
.section-sub { color: #4A554E; max-width: 640px; font-size: 1.02em; margin-bottom: 44px; }

/* WHAT IS */
.av-what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.av-what-grid p { color: #3C453F; }
.av-fact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.av-fact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97em; color: var(--ink); }
.av-fact-dot { min-width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); margin-top: 8px; }

/* BENEFITS / SCHEME CARDS */
.av-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.av-benefit-card {
  background: var(--white);
  border: 1px solid #E7EBE8;
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.av-benefit-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10, 42, 32, 0.08); }
.av-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--offwhite);
  border: 1px solid #E7EBE8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--emerald);
}
.av-benefit-card h3 { font-size: 1.05em; margin: 0 0 8px; color: var(--forest); }
.av-benefit-card p { font-size: 0.92em; color: #4A554E; margin: 0; }

/* TABLE */
.av-fee-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.94em; }
.av-fee-table th {
  background: var(--forest);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-family: 'IBM Plex Mono';
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.av-fee-table td { padding: 14px 18px; border-bottom: 1px solid #E7EBE8; color: var(--ink); }
.av-fee-table tr:nth-child(even) td { background: var(--white); }
.av-fee-table tr:last-child td { border-bottom: none; }

/* PROCESS STEPS */
.av-process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid #E7EBE8;
}
.av-process-step:last-child { border-bottom: none; }
.av-step-num {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  color: var(--emerald);
  font-size: 1.3em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.av-process-step h3 { margin: 0 0 8px; font-size: 1.05em; color: var(--forest); }
.av-process-step p { margin: 0; color: #4A554E; font-size: 0.95em; max-width: 640px; }

/* CTA BAND */
.av-cta-band {
  background: linear-gradient(120deg, #0A2A20, #123E2C);
  color: var(--white);
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 90px;
}
.av-cta-band h2 { margin: 0 0 10px; font-size: 1.6em; }
.av-cta-band p { margin: 0; color: var(--sage); max-width: 460px; }

/* FORM */
.av-form-section {
  background: var(--white);
  border: 1px solid #E7EBE8;
  border-radius: 18px;
  padding: 50px 6vw 56px;
  margin-bottom: 90px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.av-form-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.av-form-head h2 { margin: 0 0 10px; }
.av-form-head p { color: #4A554E; margin: 0; }
.av-lead-form { max-width: 720px; margin: 0 auto; }
.av-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.av-form-field { display: flex; flex-direction: column; gap: 7px; }
.av-form-field.full { grid-column: 1 / -1; }
.av-form-field label { font-size: 0.85em; font-weight: 600; color: var(--forest); }
.av-form-field input,
.av-form-field select,
.av-form-field textarea {
  border: 1px solid #D8DFDB;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95em;
  color: var(--ink);
  background: var(--offwhite);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.av-form-field input:focus,
.av-form-field select:focus,
.av-form-field textarea:focus {
  border-color: var(--emerald);
  background: var(--white);
}
.av-form-field textarea { resize: vertical; min-height: 90px; font-family: 'Inter'; }
.av-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84em;
  color: #4A554E;
  margin: 6px 0 26px;
}
.av-form-consent input { margin-top: 3px; }
.av-form-submit {
  background: var(--emerald);
  color: var(--white);
  border: none;
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter';
}
.av-form-submit:hover { background: var(--deep-emerald); }
.av-form-note { font-size: 0.8em; color: var(--sage); margin-top: 14px; }
.av-form-confirm {
  display: none;
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.av-form-confirm h3 { color: var(--forest); margin: 14px 0 8px; }
.av-form-confirm p { color: #4A554E; margin: 0; }
.av-form-confirm .av-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin: 0 auto;
}

/* FAQ */
details {
  background: var(--white);
  border: 1px solid #E7EBE8;
  border-radius: 10px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--forest);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--emerald); font-size: 1.3em; font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { padding: 0 22px 20px; margin: 0; color: #4A554E; font-size: 0.94em; }

/* FOOTER */
.av-footer { background: var(--forest); color: var(--sage); padding: 48px 6vw 30px; }
.av-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.av-footer-links { display: flex; gap: 20px; font-size: 0.85em; flex-wrap: wrap; align-items: center; }
.av-footer-links a { color: var(--sage); text-decoration: none; transition: color 0.2s; }
.av-footer-links a:hover { color: var(--emerald); }
.av-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.av-footer-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.av-footer-logo .av-company-name {
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: 0.02em;
}
.av-footer-note {
  font-size: 0.82em;
  margin-top: 24px;
  color: #5F7268;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- RESPONSIVE ---------- */

/* ── Tablet / Large Mobile (≤ 820px) ── */
@media (max-width: 820px) {

  /* Nav */
  .av-nav { padding: 12px 5vw; gap: 10px; }
  .av-navlinks { display: none; }
  .av-nav-cta { padding: 9px 16px; font-size: 0.85em; }

  /* Hero */
  .av-hero { padding: 60px 5vw 70px; }
  .av-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .av-hero h1 { font-size: clamp(1.8em, 6vw, 2.6em); }
  .av-hero p.lede { font-size: 1em; }

  /* Stats */
  .av-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    transform: translateY(0);
    margin-top: 0;
  }
  .av-stats { padding: 0 5vw 24px; }
  .av-stat-card {
    border-radius: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .av-stat-card:first-child { border-radius: 10px 0 0 0 !important; }
  .av-stat-card:nth-child(2) { border-radius: 0 10px 0 0 !important; }
  .av-stat-card:nth-child(3) { border-radius: 0 0 0 10px !important; }
  .av-stat-card:nth-child(4) { border-radius: 0 0 10px 0 !important; border-right: none; }

  /* Section blocks */
  section.block { padding: 60px 5vw; }

  /* What-is grid + Benefit grid */
  .av-what-grid { grid-template-columns: 1fr; gap: 28px; }
  .av-benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Table — allow horizontal scroll */
  .av-fee-table { font-size: 0.88em; }

  /* Process steps */
  .av-process-step { grid-template-columns: 44px 1fr; gap: 14px; }

  /* CTA Band */
  .av-cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
    margin-bottom: 60px;
    margin-left: 5vw;
    margin-right: 5vw;
    gap: 22px;
  }
  .av-cta-band h2 { font-size: 1.35em; }

  /* Form */
  .av-form-section { padding: 40px 5vw 48px; margin-bottom: 60px; }
  .av-form-row { grid-template-columns: 1fr; gap: 14px; }
  .av-lead-form { max-width: 100%; }

  /* Footer */
  .av-footer { padding: 40px 5vw 24px; }
  .av-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .av-footer-links { flex-direction: column; gap: 10px; }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  /* Nav */
  .av-nav { padding: 10px 4vw; }
  .av-brand { font-size: 1em; gap: 8px; }
  .av-brand img { height: 30px; }
  .av-nav-cta { padding: 8px 13px; font-size: 0.82em; }

  /* Hero */
  .av-hero { padding: 48px 4vw 56px; }
  .av-hero h1 { font-size: clamp(1.5em, 7vw, 2em); }
  .av-hero p.lede { font-size: 0.96em; }
  .av-hero-ctas { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  /* Peaks card */
  .av-peaks-card { padding: 22px 18px 16px; }
  .av-metric-label { font-size: 0.82em; }
  .av-metric-val { font-size: 0.98em; }

  /* Stats strip — single column on very small screens */
  .av-stats-inner { grid-template-columns: 1fr 1fr; }
  .av-stat-num { font-size: 1.35em; }
  .av-stat-label { font-size: 0.76em; }
  .av-stat-card { padding: 18px 14px; }

  /* Sections */
  section.block { padding: 48px 4vw; }
  h2.section-title { font-size: clamp(1.35em, 5.5vw, 1.7em); }

  /* Benefit grid — single column */
  .av-benefit-grid { grid-template-columns: 1fr; }
  .av-benefit-card { padding: 22px 18px; }

  /* Table — horizontal scroll wrapper */
  .av-fee-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .av-fee-table { min-width: 520px; }
  .av-fee-table th, .av-fee-table td { padding: 11px 13px; }

  /* Process steps */
  .av-process-step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .av-step-num {
    justify-content: flex-start;
    font-size: 1.1em;
  }

  /* CTA Band */
  .av-cta-band {
    padding: 32px 20px;
    border-radius: 14px;
    margin-left: 4vw;
    margin-right: 4vw;
  }
  .av-cta-band .btn-primary { width: 100%; text-align: center; }

  /* Form section */
  .av-form-section { padding: 32px 4vw 40px; border-radius: 12px; }
  .av-form-head { margin-bottom: 24px; }
  .av-form-field input,
  .av-form-field select,
  .av-form-field textarea { font-size: 1em; padding: 13px 13px; } /* 1em prevents iOS zoom */
  .av-form-submit { width: 100%; padding: 15px; }

  /* FAQ */
  summary { padding: 15px 16px; font-size: 0.93em; }
  details p { padding: 0 16px 16px; }

  /* Footer */
  .av-footer { padding: 36px 4vw 20px; }
  .av-footer-logo img { height: 30px; }
  .av-footer-logo .av-company-name { font-size: 1.05em; }
  .av-footer-note { font-size: 0.78em; }
}

