/* ---------- Tokens ---------- */
:root {
  --brand: #5fbf9a;          /* saorsa mint, from the logo */
  --brand-strong: #3fa882;
  --brand-ink: #1d6a50;
  --accent: #f3923d;         /* legacy orange, used sparingly */

  --bg: #ffffff;
  --bg-alt: #f3f7f5;
  --surface: #ffffff;
  --border: #e3eae6;
  --text: #15201b;
  --muted: #5b6b64;
  --shadow: 0 1px 2px rgb(21 32 27 / .06), 0 12px 32px -16px rgb(21 32 27 / .18);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1714;
    --bg-alt: #131e19;
    --surface: #18241f;
    --border: #243530;
    --text: #e9f1ed;
    --muted: #9fb3aa;
    --brand-ink: #8fdcc0;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -20px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1714;
  --bg-alt: #131e19;
  --surface: #18241f;
  --border: #243530;
  --text: #e9f1ed;
  --muted: #9fb3aa;
  --brand-ink: #8fdcc0;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -20px rgb(0 0 0 / .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--brand); color: #0f1714; padding: 8px 14px; border-radius: 8px;
  z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink);
}
.sub { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #0b1a14; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .12); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled { border-color: var(--border); }
.site-header:not(.scrolled):not(.menu-open) { background: transparent; }
.site-header:not(.scrolled):not(.menu-open) .site-nav a:not(.btn),
.site-header:not(.scrolled):not(.menu-open) .brand,
.site-header:not(.scrolled):not(.menu-open) .nav-toggle span { color: #fff; background-color: #fff; }
.site-header:not(.scrolled):not(.menu-open) .site-nav a:not(.btn) { background: none; }
.site-header:not(.scrolled):not(.menu-open) .brand { background: none; }

.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--brand-ink); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 16px 1rem;
    display: none;
  }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; }
  .site-header.menu-open .site-nav { display: flex; }
  .site-header.menu-open { background: var(--bg); border-color: var(--border); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  margin-top: -72px; padding-top: 72px;
  min-height: min(92svh, 860px); display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(10 18 14 / .92) 0%, rgb(10 18 14 / .72) 45%, rgb(31 105 79 / .55) 100%),
    url("assets/img/landing/header.webp") center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { padding: 6rem 0 5rem; max-width: 760px; }
.hero .eyebrow { color: #a9e6cd; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); color: rgb(255 255 255 / .85); max-width: 58ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  color: rgb(255 255 255 / .8); font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { margin-bottom: .6rem; }

.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.card h3 { margin-top: .5rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 16%, transparent);
  padding: .25rem .6rem; border-radius: 999px;
}

/* Approach steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  position: relative; padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  color: var(--brand); line-height: 1; margin-bottom: .75rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Testimonials */
.quotes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.quote {
  margin: 0; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; flex: 1; }
.quote blockquote::before { content: "“"; color: var(--brand); font-family: var(--font-head); font-size: 2.5rem; line-height: 0; vertical-align: -0.35em; margin-right: .15rem; }
.quote figcaption { display: flex; align-items: center; gap: .85rem; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption div { display: flex; flex-direction: column; line-height: 1.3; }
.quote figcaption span { color: var(--muted); font-size: .875rem; }

/* Values */
.values { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.value {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.value img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.value div { padding: 1.5rem; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Contact */
.contact { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .75rem; font-size: 1.05rem; }
.contact-list svg { width: 22px; height: 22px; fill: var(--brand-ink); flex: none; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem .95rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d9534f; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.form-note.error { color: #d9534f; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg-alt); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-row p { margin: 0; color: var(--muted); font-size: .9375rem; }
.site-footer .brand { font-size: 1.2rem; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .9375rem; }
.footer-nav a:hover { color: var(--brand-ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
