/* Aleterra — site styles. Colors come from the logo. */
:root {
  --ink: #231007;          /* wordmark brown */
  --ink-2: #4a3a30;
  --muted: #6b5d53;
  --paper: #faf8f3;
  --paper-2: #f1ede3;
  --line: #e2dccf;
  --leaf: #2f822f;         /* logo leaf */
  --leaf-dark: #22612a;
  --circuit: #45e07f;      /* logo root "circuit" green, used on dark */
  --water: #3a63a0;        /* logo ring */
  --sky: #bfe3ee;
  --soil: #1b120c;         /* dark sections */
  --soil-2: #2a1d14;
  --radius: 14px;
  --max: 1160px;
  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Announcement bar */
.announce { background: var(--leaf-dark); color: #fff; font-size: 14px; text-align: center; padding: 8px 16px; }
.announce a { color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,243,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--leaf); }
.nav .dropdown { position: relative; }
.nav .dropdown > button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav .dropdown > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav .menu { display: none; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(35,16,7,.12); padding: 8px; }
.nav .menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav .menu a:hover { background: var(--paper-2); }
.nav .dropdown:hover .menu, .nav .dropdown:focus-within .menu, .nav .dropdown.open .menu { display: block; }
.nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-dark); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.nav .btn { padding: 10px 18px; font-size: 15px; color: #fff; }
.nav .btn:hover { color: #fff; }
.on-dark .btn-primary { background: var(--circuit); color: var(--soil); }
.on-dark .btn-primary:hover { background: #6cf09c; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--soil); color: #f6efe7; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% 20%, rgba(58,99,160,.35), transparent 60%),
  radial-gradient(700px 500px at 10% 110%, rgba(47,130,47,.35), transparent 60%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--circuit); }
.hero p.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d9cfc5; max-width: 700px; }
.hero h1 { max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--circuit); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero.has-bg { background-image: linear-gradient(90deg, rgba(27,18,12,.94) 0%, rgba(27,18,12,.82) 45%, rgba(27,18,12,.5) 100%), var(--bg); background-size: cover; background-position: center; }
.hero.has-bg::before { opacity: .5; }
.hero-sub .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero-sub.has-bg .wrap { padding-top: 104px; padding-bottom: 104px; }
.hero-sub h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.eyebrow { display: inline-block; font-family: var(--head); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); margin-bottom: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.stat { background: var(--soil-2); padding: 24px; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; color: #cdbfb2; font-size: 15px; margin-top: 6px; }

/* Sections */
section.block { padding: 96px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--soil); color: #f1e9e0; }
section.dark p { color: #d4c7bb; }
section.dark .eyebrow { color: var(--circuit); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
section.dark .section-head p { color: #cbbdaf; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card .big { display: block; font-family: var(--head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.02em; color: var(--leaf); line-height: 1.1; margin-bottom: 10px; }
section.dark .card { background: var(--soil-2); border-color: rgba(255,255,255,.1); }
section.dark .card .big { color: var(--circuit); }
.card.link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.card.link:hover { border-color: var(--leaf); box-shadow: 0 10px 28px rgba(35,16,7,.08); transform: translateY(-2px); }
.card.link { overflow: hidden; }
.card .thumb { margin: -28px -28px 22px; aspect-ratio: 16 / 9; object-fit: cover; width: calc(100% + 56px); max-width: none; }
.card.link .more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--leaf); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #e5f1e3; color: var(--leaf); margin-bottom: 18px; }
section.dark .icon { background: rgba(69,224,127,.12); color: var(--circuit); }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: 18px; }
.step .tag { font-size: 13px; font-weight: 700; color: var(--water); text-transform: uppercase; letter-spacing: .08em; }
.step ul { padding-left: 18px; margin: 12px 0 0; color: var(--ink-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
tr.highlight td { background: #eef7ec; font-weight: 700; }
tr.highlight td:first-child { color: var(--leaf-dark); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
section.dark .note { color: #a89a8d; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/14px no-repeat; }
section.dark .checks li::before { background-color: var(--circuit); }

/* Quote / proof */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof .card h3 { margin-bottom: 4px; }
.proof .card .src { font-size: 14px; color: var(--water); font-weight: 700; margin-bottom: 14px; display: block; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--leaf-dark), #1d4d57); color: #fff; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #dfeee0; margin: 0; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--leaf-dark); }
.cta-band .btn-primary:hover { background: var(--paper-2); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.person .body { padding: 24px; }
.person .role { color: var(--leaf); font-weight: 700; font-size: 15px; margin-bottom: 12px; display: block; }
.person a.li { font-weight: 600; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { margin-bottom: 14px; }
.contact-list b { display: block; font-family: var(--head); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-grid h3 { margin-top: 32px; }
.form-frame { width: 100%; min-height: 1100px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.socials a:hover { background: var(--leaf); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Footer */
.site-footer { background: var(--soil); color: #cdbfb2; padding: 64px 0 32px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e8ddd2; text-decoration: none; }
.site-footer a:hover { color: var(--circuit); }
.site-footer .logo-chip { display: inline-block; background: var(--paper); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.site-footer .logo-chip img { height: 34px; width: auto; }
.site-footer .socials a { background: var(--soil-2); color: #e8ddd2; }
.site-footer .socials a:hover { background: var(--circuit); color: var(--soil); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Field photos */
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
section.dark figcaption { color: #a89a8d; }
.split figure img { border-radius: var(--radius); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.strip figure { position: relative; }
.strip img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip .label { position: absolute; top: 12px; left: 12px; background: rgba(27,18,12,.82); color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.sites { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sites li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 10px; padding: 12px 16px; }
.sites b { display: block; font-family: var(--head); font-size: 16px; }
.sites span { display: block; font-size: 14px; color: var(--muted); }

.partner-logo { height: 50px; width: auto; margin: -4px 0 14px -6px; }
.partner-logo.lg { height: 74px; margin: -6px 0 18px -9px; }

/* Long-form text (privacy policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 10px; }

/* Diagram */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.diagram svg { width: 100%; height: auto; display: block; }

/* Responsive */
@media (max-width: 980px) {
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3, .steps, .proof, .team { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .team { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav > a, .nav .dropdown > button { padding: 14px 4px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav .menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; background: transparent; }
  .nav .dropdown > button::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.block { padding: 64px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .g2, .g4, .gallery { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .hero-sub.has-bg .wrap { padding-top: 72px; padding-bottom: 72px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .stat { padding: 18px; }
  .site-footer .top { grid-template-columns: 1fr; }
  th, td { padding: 12px; font-size: 15px; }
  .brand img { height: 34px; }
  .form-frame { min-height: 1250px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
