/* =========================================================
   ABRE website stylesheet
   ---------------------------------------------------------
   The four brand colours and two fonts are set once here,
   in :root. Change a value here and it changes everywhere.
   ========================================================= */

:root {
  /* Brand palette */
  --green: #2e4636;        /* bushveld green: dark sections, headings */
  --green-deep: #1f2d24;   /* footer, body text */
  --brown: #856952;        /* ABRE earth brown: labels, accents */
  --brown-dark: #6b5240;   /* brown that is dark enough for small text */
  --sand: #f4eee3;         /* main page background */
  --sand-deep: #e8ddc9;    /* alternate section background */
  --ochre: #a8641e;        /* buttons and calls to action */
  --ochre-dark: #8a4f14;   /* button hover */
  --white: #fffdf9;

  --text: var(--green-deep);
  --text-muted: #4d5a50;
  --line: rgba(31, 45, 36, 0.14);

  /* Fonts */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 45, 36, 0.12);
  --header-h: 88px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
a { color: var(--ochre-dark); text-underline-offset: 3px; }
a:hover { color: var(--ochre); }

em.sci, .sci { font-style: italic; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: currentColor; vertical-align: middle; margin-right: 10px;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ochre); color: var(--white); }
.btn-primary:hover { background: var(--ochre-dark); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-light { border-color: rgba(255, 253, 249, 0.85); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 700; text-decoration: none; color: var(--ochre-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "→"; transition: transform 0.2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 238, 227, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(31, 45, 36, 0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 74px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; color: var(--green); text-decoration: none;
}
.nav-list a:hover { background: var(--sand-deep); color: var(--green); }
.nav-list a[aria-current="page"] { color: var(--ochre-dark); }
.nav-list .nav-cta a { background: var(--ochre); color: var(--white); padding-inline: 20px; }
.nav-list .nav-cta a:hover { background: var(--ochre-dark); color: var(--white); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: transparent; color: var(--green); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: auto;
  position: relative; transition: transform 0.25s, background-color 0.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { height: 54px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(31, 45, 36, 0.15);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 16px; font-size: 1.1rem; border-radius: 10px; }
  .nav-list .nav-cta { margin-top: 10px; }
  .nav-list .nav-cta a { text-align: center; border-radius: 999px; }
}

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

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-sand-deep { background: var(--sand-deep); }
.bg-green { background: var(--green); color: #e9e4d8; }
.bg-green h2, .bg-green h3 { color: var(--white); }
.bg-green .eyebrow { color: #d4b48f; }
.bg-green .lead { color: #d8d2c4; }
.bg-brown { background: var(--brown); color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Home hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  animation: slow-zoom 16s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 45, 36, 0.25) 0%, rgba(31, 45, 36, 0.15) 35%, rgba(31, 45, 36, 0.85) 100%),
    linear-gradient(90deg, rgba(31, 45, 36, 0.55) 0%, rgba(31, 45, 36, 0) 70%);
}
.hero-content { padding-block: clamp(80px, 12vw, 140px) clamp(48px, 8vw, 96px); max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .eyebrow { color: #e8cfae; }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #f0ebe1; max-width: 620px; margin-bottom: 1.8em; }

@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Smaller hero for inner pages */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(320px, 46vh, 460px);
  display: flex; align-items: flex-end; color: var(--white);
}
.page-hero .hero-media img { animation-duration: 12s; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 45, 36, 0.2) 0%, rgba(31, 45, 36, 0.82) 100%);
}
.page-hero .hero-content { padding-block: 96px 48px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 0.3em; }
.page-hero p { color: #f0ebe1; font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin: 0; max-width: 640px; }
.page-hero .eyebrow { color: #e8cfae; }

/* ---------- Announcement band ---------- */

.announce .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.announce-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.announce strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.announce span { opacity: 0.92; }
.announce .btn { background: var(--white); color: var(--green); }
.announce .btn:hover { background: var(--green-deep); color: var(--white); }

/* ---------- Split layout (text + image) ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media .img-main { aspect-ratio: 4 / 5; }
.split-media .img-inset {
  position: absolute; width: 46%; aspect-ratio: 1; left: -10%; bottom: -8%;
  border: 6px solid var(--sand);
}
.bg-sand-deep .split-media .img-inset { border-color: var(--sand-deep); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media { max-width: 520px; margin-inline: auto 0; width: 92%; }
  .split-media .img-inset { left: -8%; }
}

.facts-inline { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 28px 0 32px; padding: 0; list-style: none; }
.facts-inline li { display: flex; flex-direction: column; }
.facts-inline b { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--green); line-height: 1.1; }
.facts-inline small { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 480px) {
  .facts-inline { gap: 20px 24px; }
  .facts-inline b { font-size: 1.7rem; }
  .facts-inline small { font-size: 0.82rem; max-width: 92px; line-height: 1.3; }
}

/* ---------- Steps / cards ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.06); border: 1px solid rgba(255, 253, 249, 0.14);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  color: #d4b48f; margin-bottom: 18px;
}
.step h3 { margin-bottom: 0.5em; }
.step p { margin: 0; color: #d8d2c4; }
.steps.on-light .step { background: var(--white); border-color: var(--line); box-shadow: 0 2px 0 rgba(31, 45, 36, 0.04); }
.steps.on-light .step::before { color: var(--brown); }
.steps.on-light .step p { color: var(--text-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Project cards ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 45, 36, 0.16); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag {
  position: absolute; left: 16px; top: 16px;
  background: var(--sand); color: var(--green); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text-muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 18px; list-style: none; font-size: 0.95rem; color: var(--brown-dark); font-weight: 600; }
.card-body .text-link { margin-top: auto; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Photo gallery ---------- */

.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery button {
  all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative;
}
.gallery button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(31, 45, 36, 0.85));
  color: var(--white); font-size: 0.92rem; line-height: 1.3; pointer-events: none;
}
.gallery figcaption .sci { display: block; font-family: var(--font-head); font-size: 1.02rem; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 480px) {
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .gallery .wide { grid-column: span 2; }
}

/* Lightbox (enlarged photo) */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(20, 28, 23, 0.9); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { color: var(--white); text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--green); font-size: 1.6rem; cursor: pointer;
}

/* ---------- Call to action band ---------- */

.cta {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center;
}
.cta .hero-media img { animation: none; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(31, 45, 36, 0.82); }
.cta h2 { color: var(--white); }
.cta p { color: #e9e4d8; max-width: 620px; margin-inline: auto; margin-bottom: 1.8em; }
.cta .btn-row { justify-content: center; }

/* ---------- Project detail (2027 Projects page) ---------- */

.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-nav a {
  padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--green); font-weight: 600; text-decoration: none;
}
.pill-nav a:hover { border-color: var(--green); }

.project { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.project h2 { margin-bottom: 0.4em; }
.project-body p { color: #33403a; }
.fact-panel {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
  border-top: 5px solid var(--brown);
}
.fact-panel h3 { font-size: 1.2rem; margin-bottom: 1em; }
.fact-panel dl { margin: 0 0 22px; }
.fact-panel dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-dark); }
.fact-panel dd { margin: 2px 0 14px; font-weight: 600; }
.fact-panel .btn { width: 100%; }
@media (max-width: 960px) {
  .project { grid-template-columns: 1fr; }
  .fact-panel { position: static; }
}

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-row figcaption { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 600px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:first-child { grid-column: span 2; }
}

/* Week availability table */
.weeks { width: 100%; border-collapse: collapse; margin: 8px 0 12px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.weeks th, .weeks td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.weeks thead th { background: var(--green); color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.weeks tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.status-open { background: #dfe9dc; color: #2c5130; }
.status-few { background: #f5e3c8; color: #7a4a10; }
.status-full { background: #ead7d2; color: #7c2f22; }
.note { font-size: 0.92rem; color: var(--text-muted); }
@media (max-width: 520px) {
  .weeks th, .weeks td { padding: 12px 10px; font-size: 0.95rem; }
}

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Map */
.map {
  height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  background: var(--sand-deep); z-index: 0;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; font-size: 0.95rem; color: var(--text-muted); }
.map-legend span::before {
  content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ochre); margin-right: 8px; vertical-align: -1px; border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--ochre);
}
@media (max-width: 600px) { .map { height: 340px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; color: var(--ochre); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); margin-top: -4px; padding-bottom: 8px; }

/* Technique list (Student Expeditions page) */
.technique-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.technique-grid li {
  background: var(--white); border-radius: var(--radius); padding: 22px 22px 20px; border-left: 4px solid var(--brown);
}
.technique-grid b { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--green); margin-bottom: 4px; }
.technique-grid span { color: var(--text-muted); font-size: 0.97rem; }

.callout {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  border-left: 6px solid var(--ochre); box-shadow: var(--shadow);
}
.callout h3 { margin-bottom: 0.3em; }
.callout p { margin: 0; color: var(--text-muted); }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 14px; margin: 28px 0; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--text);
  border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--brown); transform: translateY(-2px); color: var(--text); }
.contact-card svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--sand-deep); color: var(--green); }
.contact-card small { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-dark); }
.contact-card span { font-weight: 600; word-break: break-word; }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--green); padding: 0; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #cfc5b2; border-radius: 8px; background: #fffefb;
  font: inherit; color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(46, 70, 54, 0.15); outline-offset: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; gap: 8px; }
.checks label {
  display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #cfc5b2; border-radius: 8px; cursor: pointer; margin: 0;
}
.checks input { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); flex: none; }
.checks label:has(input:checked) { border-color: var(--green); background: #eef2ea; }
.honeypot { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #dfe9dc; color: #2c5130; }
.form-status.err { background: #f3dcd5; color: #7c2f22; }
.form-note { font-size: 0.88rem; color: var(--text-muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); color: #c9c3b5; padding-block: 64px 28px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d4b48f; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #ece6d9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 253, 249, 0.12); font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll animations ----------
   Elements with class="reveal" fade up as they scroll into view.
   Only active when JavaScript runs (html.js), so content is never hidden. */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
