/* Aureon System - landing page.
   Design system: see DESIGN.md. Light-first, parallel dark via prefers-color-scheme.
   Color strategy: committed brand green, no second accent. Drenched pine closing block.
   Type: Bricolage Grotesque only, weight contrast 800/600/400.
   Radius: 10px on buttons and panels, consistent. */

:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --ink: #18241e;
  --ink-dim: #54655c;
  --line: #dbe4dd;
  --green: #0f6b47;
  --green-deep: #0a5236;
  --on-green: #f2f9f4;
  --pine: #11402d;
  --on-pine: #eef6f0;
  --on-pine-dim: #b9d2c3;
  --radius: 10px;
  --container: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Manual theme switch; light is the default, the nav toggle sets data-theme="dark" */
:root[data-theme="dark"] {
  --bg: #101712;
  --surface: #18211b;
  --ink: #e8efe9;
  --ink-dim: #9eb2a6;
  --line: #2a362e;
  --green: #3cba82;
  --green-deep: #5ccf9a;
  --on-green: #0b1a12;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p, li, figcaption { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container--narrow { max-width: 720px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition-property: transform, background-color, border-color, box-shadow, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.btn:active { transform: scale(0.97); }

.btn--solid { background: var(--green); color: var(--on-green); }
.btn--solid:hover { background: var(--green-deep); }

.btn--outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }

.btn--onpine { background: var(--on-pine); color: var(--pine); }
.btn--onpine:hover { background: #ffffff; }

.btn--inverted { background: var(--on-pine); color: var(--pine); }
.btn--inverted:hover { background: #ffffff; }

.btn--outline-light { border: 1.5px solid rgb(238 246 240 / 0.4); color: var(--on-pine); }
.btn--outline-light:hover { border-color: var(--on-pine); }

.btn--full { width: 100%; }
.btn--lg { padding: 0.85rem 1.9rem; font-size: 1.05rem; }

.wa-icon { flex-shrink: 0; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 66px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.nav__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--green);
}

.nav__links { display: flex; gap: 1.6rem; }

.nav__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding-block: 0.6rem; /* enlarges the hit area without moving the layout */
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.nav__links a:hover { color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--ink-dim);
  cursor: pointer;
  transition-property: color, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface); }

/* light shows the moon (action: go dark); dark shows the sun (action: go light) */
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem); }

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero__sub {
  margin-top: 1.5rem;
  color: var(--ink-dim);
  font-size: 1.15rem;
  max-width: 52ch;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Stack strip ---------- */

.stack { border-block: 1px solid var(--line); padding-block: 1.4rem; }

.stack__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  opacity: 0.75;
}

/* Simple Icons CDN color is baked for light; lift it on dark */
:root[data-theme="dark"] .stack__row img { filter: invert(0.7) hue-rotate(180deg); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vh, 6.5rem); }

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head { margin-bottom: 2.5rem; max-width: 60ch; }

.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.section__head p { margin-top: 0.75rem; color: var(--ink-dim); font-size: 1.05rem; }

/* ---------- Services: typographic index ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.services__head { position: sticky; top: 90px; }

.services__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.services__head p { margin-top: 0.75rem; color: var(--ink-dim); font-size: 1.05rem; }

.services__list article { padding-block: 1.6rem; }

.services__list article + article { border-top: 1px solid var(--line); }

.services__list h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.services__list article:hover h3 { color: var(--green); }

.services__list p {
  margin-top: 0.45rem;
  color: var(--ink-dim);
  max-width: 58ch;
}

/* ---------- Why ---------- */

.statement {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 22ch;
  margin-bottom: 2.5rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.points h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.points p { color: var(--ink-dim); font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 1.25rem;
}

.rate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.rate--featured {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--on-pine);
}

.rate h3 { font-size: 1.2rem; font-weight: 600; }

.rate__price {
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-block: 0.6rem 1.3rem;
}

.rate__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-left: 0.5rem;
}

.rate--featured .rate__price span { color: var(--on-pine-dim); }

.rate ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.rate li {
  color: var(--ink-dim);
  font-size: 0.98rem;
  padding-left: 1.5rem;
  position: relative;
}

.rate--featured li { color: var(--on-pine-dim); }

.rate li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.rate--featured li::before { border-color: var(--on-pine); }

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.quote blockquote {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.quote figcaption {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.quote figcaption span {
  display: block;
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.2rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  width: 1em;
  text-align: center; /* optical centering so the glyph doesn't sit off-axis when rotated */
  color: var(--green);
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  color: var(--ink-dim);
  padding-bottom: 1.2rem;
  max-width: 60ch;
}

/* ---------- Closing block: drenched pine ---------- */

.close {
  background: var(--pine);
  color: var(--on-pine);
  padding-block: clamp(4rem, 9vh, 6.5rem) 2rem;
}

.close__cta { text-align: center; }

.close__cta h2 { font-size: clamp(2rem, 4.2vw, 3rem); }

.close__cta p { margin-top: 0.9rem; color: var(--on-pine-dim); font-size: 1.1rem; }

.close__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.close__footer {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(238 246 240 / 0.18);
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.95rem;
}

.close__brand { font-weight: 800; font-size: 1.05rem; }

.close__footer p { color: var(--on-pine-dim); }
.close__footer .close__brand { color: var(--on-pine); }

.close__footer nav { display: grid; gap: 0.4rem; }

.close__footer a {
  color: var(--on-pine-dim);
  text-decoration: none;
  padding-block: 0.15rem;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.close__footer a:hover { color: var(--on-pine); }

.close__legal { text-align: right; }

/* ---------- Mobile sticky action bar ---------- */

.actionbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 0.6rem;
  padding: 0.6rem clamp(1rem, 4vw, 2rem) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition-property: transform;
  transition-duration: 250ms;
  transition-timing-function: var(--ease);
}

.actionbar.is-shown { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .actionbar { transition: none; }
}

.actionbar .btn { flex: 1; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* one-shot staged hero entrance */
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }

  .hero h1       { animation: rise-in 0.6s var(--ease) backwards; }
  .hero__sub     { animation: rise-in 0.6s var(--ease) 0.08s backwards; }
  .hero__actions { animation: rise-in 0.6s var(--ease) 0.16s backwards; }

  /* scroll reveals: content is visible by default; JS opts elements in by
     adding .reveal-armed, so nothing is ever gated on an animation firing */
  .reveal-armed {
    opacity: 0;
    transform: translateY(18px);
    transition-property: opacity, transform;
    transition-duration: 0.55s;
    transition-timing-function: var(--ease);
  }
  .reveal-armed.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .nav__cta { display: none; }
  .services { grid-template-columns: 1fr; }
  .services__head { position: static; margin-bottom: 0.5rem; }
}

@media (max-width: 768px) {
  .nav__inner { gap: 0.5rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    box-shadow: 0 16px 32px rgb(0 0 0 / 0.18);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.9rem clamp(1.25rem, 4vw, 2rem); }
  .nav__toggle { display: flex; }

  .hero { padding-block: 3.25rem 3rem; }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 2.9rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 100%; }

  .stack { padding-block: 1.1rem; }
  .stack__row { justify-content: center; gap: 1.4rem; }
  .stack__row img { height: 26px; width: auto; }

  .section { padding-block: 3.25rem; }
  .section__head { margin-bottom: 1.75rem; }

  .services__list article { padding-block: 1.25rem; }

  .rates { grid-template-columns: 1fr; }
  .rate { padding: 1.75rem; }
  .rate__price { font-size: 2.2rem; }

  .quotes { gap: 1.75rem; }

  .close { padding-bottom: 1rem; }
  .close__footer { gap: 1.5rem; }
  .close__legal { text-align: left; }

  .actionbar { display: flex; }
  body { padding-bottom: 76px; } /* clearance for the action bar */
}
