/* ==========================================================================
   Misambi Medical Mission — main stylesheet
   Colours live in :root below. Change them there and the whole site follows.
   ========================================================================== */

:root {
  --cream: #FBF6EE;
  --sand: #F4EADB;
  --sand-2: #EADBC4;
  --line: #E2D2BB;
  --terracotta: #B4532A;
  --terracotta-dark: #8C3B22;
  --ochre: #D99A2B;
  --ochre-soft: #F5DFB0;
  --forest: #2F5D50;
  --forest-dark: #213F37;
  --ink: #2B211C;
  --muted: #6A5A50;
  --white: #FFFFFF;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(43, 33, 28, .06), 0 8px 24px rgba(43, 33, 28, .08);
  --shadow-lg: 0 2px 4px rgba(43, 33, 28, .06), 0 18px 40px rgba(43, 33, 28, .14);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Placeholder highlight ----------
   Every piece of text you still need to replace is wrapped in
   <span class="ph">[...]</span>. Delete this rule once everything is filled in. */
.ph {
  background: rgba(217, 154, 43, .22);
  border-bottom: 1px dashed var(--ochre);
  border-radius: 3px;
  padding: 0 .15em;
}
.on-dark .ph, .hero .ph, .page-hero .ph, .site-footer .ph, .cta-band .ph, .stats .ph {
  background: rgba(245, 223, 176, .18);
  border-bottom-color: var(--ochre-soft);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  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; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest); color: #EAF0EC; }
.section-forest h2, .section-forest h3 { color: var(--white); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.section-forest .lead { color: #CFDDD6; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
}
.section-forest .eyebrow, .on-dark .eyebrow { color: var(--ochre-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: #E7AC40; color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(43,33,28,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--terracotta-dark); background: var(--sand); }
.nav .btn { margin-left: 10px; padding: .65em 1.25em; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(43,33,28,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--terracotta-dark) url("../images/hero.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(43,33,28,.15) 0%, rgba(43,33,28,.35) 45%, rgba(43,25,18,.85) 100%),
    linear-gradient(90deg, rgba(90,35,15,.55) 0%, rgba(90,35,15,0) 65%);
}
.hero-content { padding: 120px 0 clamp(56px, 8vw, 96px); max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--ochre-soft); font-weight: 500; white-space: nowrap; }
.hero p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #F6EBDD; max-width: 600px; margin-bottom: 1.8em; }
.hero .eyebrow { color: var(--ochre-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--white); isolation: isolate;
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 88px);
  background: var(--terracotta-dark) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(90,32,14,.9) 0%, rgba(120,48,22,.7) 50%, rgba(43,33,28,.45) 100%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-hero p { color: #F6EBDD; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--ochre-soft); }
.breadcrumb a { color: var(--ochre-soft); }

/* ---------- Intro strip / split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; 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-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .badge {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--ochre); color: var(--ink);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 700; line-height: 1.2; max-width: 220px;
}
.split-media .badge strong { display: block; font-family: var(--font-head); font-size: 2rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media .badge { left: 12px; }
}
.check-list { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: .6em; }
.check-list li { position: relative; padding-left: 2em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Stats band ---------- */
.stats { background: var(--forest); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--ochre-soft); }
.stat-label { margin-top: 10px; color: #D5E2DB; font-weight: 500; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); margin-bottom: 1.2em; }
.card-body .link-arrow { margin-top: auto; }
.icon-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); }
.icon-card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ochre-soft); color: var(--terracotta-dark); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.section-forest .icon-card { background: rgba(255,255,255,.07); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.section-forest .icon-card p { color: #CFDDD6; }
.section-forest .icon { background: rgba(245,223,176,.16); color: var(--ochre-soft); }

/* ---------- Programme detail rows ---------- */
.program { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.program:first-child { border-top: 0; padding-top: 0; }
.program:nth-child(even) > :first-child { order: 2; }
.program img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.program .tag { display: inline-block; background: var(--sand); color: var(--terracotta-dark); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .04em; }
@media (max-width: 820px) { .program { grid-template-columns: 1fr; } .program:nth-child(even) > :first-child { order: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--terracotta); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Upcoming camps ---------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.events li { display: flex; gap: 20px; align-items: center; background: var(--white); border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow); }
.event-date {
  flex: none; min-width: 72px; text-align: center; background: var(--terracotta); color: var(--white);
  border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2;
}
.event-date span { display: block; font-family: var(--font-head); font-size: 1.7rem; letter-spacing: 0; }
.events h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.events p { margin: 0; color: var(--muted); }

/* ---------- Quote ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; font-weight: 500; font-style: italic; }
.quote blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .6; color: var(--ochre); margin-bottom: 18px; font-style: normal; }
.quote figcaption { margin-top: 22px; color: var(--muted); font-weight: 600; }
.section-forest .quote figcaption { color: #CFDDD6; }

/* ---------- Values ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mv { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border-top: 5px solid var(--terracotta); }
.mv.alt { border-top-color: var(--forest); }
.mv p { font-size: 1.12rem; margin: 0; }
@media (max-width: 720px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow); }
.team-card h3 { margin-bottom: .15em; font-size: 1.2rem; }
.team-card p { color: var(--terracotta); font-weight: 600; margin: 0; font-size: .95rem; }

/* ---------- Partners ---------- */
.partner-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner {
  border: 2px dashed var(--line); border-radius: var(--radius); min-height: 96px;
  display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 12px;
}
@media (max-width: 820px) { .partner-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; color: var(--white); text-align: center;
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--terracotta-dark) url("../images/cta-bg.jpg") center / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(140,59,34,.88), rgba(90,35,15,.92)); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #F6EBDD; max-width: 620px; margin: 0 auto 1.8em; font-size: 1.15rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Donate ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .give-grid { grid-template-columns: 1fr; } }
.give { background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.give.featured { outline: 3px solid var(--forest); }
.give h3 { display: flex; align-items: center; gap: 10px; }
.give dl { margin: 0 0 18px; display: grid; gap: 10px; }
.give dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.give dd { margin: 0; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--line); background: var(--sand); color: var(--ink);
  border-radius: 999px; padding: 3px 10px;
}
.copy-btn:hover { background: var(--sand-2); }
.give .note { color: var(--muted); font-size: .95rem; margin-top: auto; }
.pill { display: inline-block; background: var(--forest); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .impact-grid { grid-template-columns: 1fr; } }
.impact { border-radius: var(--radius-lg); padding: 26px 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.impact .amount { font-family: var(--font-head); font-size: clamp(1.5rem, 2.3vw, 1.9rem); color: var(--ochre-soft); font-weight: 600; line-height: 1.1; margin-bottom: 8px; }
.impact p { margin: 0; color: #D5E2DB; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--terracotta); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.filter-btn:hover { border-color: var(--terracotta); }
.filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--sand-2);
  border-radius: var(--radius); overflow: hidden; display: block; width: 100%;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(43,25,18,.8)); color: var(--white); font-weight: 600; font-size: .95rem;
}
.gallery-item.hidden { display: none; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-strip img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(24, 16, 12, .92); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #F6EBDD; margin-top: 14px; font-weight: 600; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list .icon { margin: 0; flex: none; width: 46px; height: 46px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--terracotta); }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(180,83,42,.15); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.form-status.show { display: block; }
.form-status.ok { background: #E3EFE9; color: var(--forest-dark); border: 1px solid #BFD8CB; }
.form-status.err { background: #F8E3DA; color: var(--terracotta-dark); border: 1px solid #EBC3B2; }
.map-box {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-2); min-height: 320px;
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; border: 2px dashed var(--line);
}
.map-box.has-map { display: block; padding: 0; border: 0; min-height: 0; }
.map-box iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #2A1E18; color: #D9CBBE; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #D9CBBE; text-decoration: none; }
.site-footer a:hover { color: var(--ochre-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer .brand-name small { color: var(--ochre-soft); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--terracotta); color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: #A99A8E; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); color: var(--terracotta); line-height: 1; }
