/* ============================================================
   ALTHEON AVENIR — Design Tokens
   Healing Minds. Inspiring Futures.
   ============================================================ */

:root {
  /* Colour */
  --bg:          #FBF6EF;   /* cream — matches logo plate */
  --bg-soft:     #F2EADC;   /* deeper cream for alt sections */
  --bg-card:     #FFFFFF;
  --ink:         #24261F;   /* warm near-black, body text */
  --ink-soft:    #57574C;   /* muted body text */
  --forest:      #1E3A2E;   /* deep green — headings/primary */
  --forest-soft: #3E5B49;   /* secondary green */
  --gold:        #B9935C;   /* accent — buttons, links, rules */
  --gold-deep:   #93743F;   /* hover state */
  --gold-pale:   #E7D7B2;   /* pale gold fill */
  --line:        #E3D8BE;   /* hairline borders */

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Jost", "Century Gothic", Futura, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--bg); }
.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover { background: var(--gold-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--forest);
}
.brand-word b { color: var(--gold-deep); font-weight: 500; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.primary-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-soft);
  position: relative;
  padding: 4px 0;
}
nav.primary-nav a:hover, nav.primary-nav a.active { color: var(--forest); }
nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}
nav.primary-nav a.nav-cta {
  background: var(--forest);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: var(--radius);
}
nav.primary-nav a.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin: 18px 0 24px; }
.hero .lede { max-width: 46ch; font-size: 1.08rem; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art { position: relative; width: 100%; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

.page-logo { display: inline-block; margin-bottom: 28px; }
.page-logo img { height: 64px; width: auto; max-width: 100%; }

/* ---------- Ring-frame signature element ---------- */
.ring-frame {
  position: relative;
  display: inline-flex;
}
.ring-frame::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 86%;
  height: 86%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.55;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 1.02rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* leaf divider, echoes the mark under the logotype */
.leaf-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  margin: 0 0 10px;
}
.leaf-divider .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Pillars / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar {
  padding: 40px 34px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pillar .icon { color: var(--forest); margin-bottom: 20px; }
.pillar h3 { margin-bottom: 12px; }

/* step process — real sequence, numbering is meaningful here */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-pale);
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
  display: block;
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 10px; }

/* service card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card .icon { color: var(--gold-deep); margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; }

/* format cards */
.format-card {
  padding: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.format-card.dark {
  background: var(--forest);
  color: var(--bg);
}
.format-card.dark h3, .format-card.dark p { color: var(--bg); }
.format-card.dark p { opacity: 0.82; }
.format-card.light { background: var(--bg-card); }

/* CTA band */
.cta-band {
  background: var(--forest);
  color: var(--bg);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--bg); }
.cta-band p { color: var(--gold-pale); max-width: 52ch; margin: 20px auto 34px; }
.cta-band .btn-primary { background: var(--gold); color: var(--forest); }
.cta-band .btn-primary:hover { background: var(--bg); }
.cta-band .btn-ghost { border-color: var(--bg); color: var(--bg); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--forest); }

/* ---------- Values list ---------- */
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; }
.value-item { display: flex; gap: 18px; }
.value-item .icon { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.value-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.value-item p { font-size: 0.95rem; }

/* ---------- Article / resource cards ---------- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-soft) 100%);
  position: relative;
}
.article-body { padding: 28px 26px 30px; }
.article-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.article-body h3 { margin: 10px 0 12px; font-size: 1.2rem; }
.article-body p { font-size: 0.94rem; }
.article-body .read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 44px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.radio-group { display: flex; gap: 26px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.radio-option input { width: auto; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 18px;
}
.form-success {
  display: none;
  background: var(--forest);
  color: var(--bg);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin-bottom: 26px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { padding-top: 0; }
.info-list .icon { color: var(--gold-deep); flex-shrink: 0; }
.info-list h4 { font-size: 1rem; color: var(--forest); margin-bottom: 4px; font-family: var(--font-body); font-weight: 500; }
.info-list p { font-size: 0.94rem; }

.map-placeholder {
  height: 100%;
  min-height: 280px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 30px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--forest);
  color: var(--gold-pale);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(231, 215, 178, 0.2);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img {
  height: 64px;
  width: 64px;
  padding: 6px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(231, 215, 178, 0.45);
}
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; color: var(--bg); }
footer .col-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 18px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 11px; font-size: 0.92rem; }
footer ul li a:hover { color: var(--bg); }
footer p.tagline { font-size: 0.92rem; opacity: 0.85; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Long-form prose (legal pages, articles) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 46px; margin-bottom: 14px; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; font-size: 1.15rem; color: var(--forest-soft); }
.prose p { font-size: 1rem; margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 40px; }
.prose .callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 28px 0;
  font-size: 0.95rem;
}
.prose .callout p:last-child { margin-bottom: 0; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.article-meta .tag {
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-4, .steps, .values-list, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .brand img { height: 42px; }
}
@media (max-width: 720px) {
  nav.primary-nav { display: none; }
  .brand img { height: 38px; max-width: calc(100vw - 110px); object-fit: contain; object-position: left center; }
  .page-logo img { height: 48px; }
  .grid-3, .grid-4, .steps, .values-list, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 60px 0 70px; }
  .form-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Accessibility & mobile navigation ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--forest);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  width: 44px;
  height: 40px;
  padding: 9px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  height: 1px;
  background: var(--forest);
  margin: 5px 0;
}
.mobile-menu {
  display: none;
}
.hidden-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.checkbox-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.checkbox-option input { margin-top: 4px; flex-shrink: 0; }
.optional { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 0.8rem; }
@media (max-width: 720px) {
  .mobile-menu-toggle { display: block; }
  .mobile-menu {
    display: none;
    padding: 10px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu.open { display: grid; gap: 4px; }
  .mobile-menu a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .nav-cta { margin-top: 8px; text-align: center; }
}
