/* agadir trip — sun-washed Atlantic-Morocco design system
   Palette drawn from the operator's own photos: Souss sand, terracotta track,
   deep Atlantic blue (logo blue #2e7fc2), sunset amber. */

:root {
  --sand: #f7f1e6;
  --sand-deep: #efe5d2;
  --sand-line: #e2d4ba;
  --ink: #21303c;
  --ink-soft: #51616e;
  --atlantic: #14425e;
  --brand-blue: #2e7fc2;
  --terracotta: #bc5327;
  --terracotta-deep: #9c4420;
  --amber: #e9a13b;
  --white: #fffdf8;
  --whatsapp: #1d9e55;
  --shadow: 0 1px 2px rgba(33, 48, 60, .06), 0 10px 30px -12px rgba(33, 48, 60, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }
ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9em;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- header ---------- */
.topstrip {
  background: var(--atlantic);
  color: #dcebf5;
  font-size: .83rem;
  padding: 7px 0;
}
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topstrip a { color: #fff; text-decoration: none; font-weight: 600; }
.topstrip a:hover { text-decoration: underline; color: #fff; }
.topstrip .strip-note { opacity: .85; }
@media (max-width: 640px) { .topstrip .strip-note { display: none; } .topstrip .wrap { justify-content: center; } }

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 230, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand .brand-sub {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); display: block; margin-top: -2px;
}
.brand .brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--atlantic); line-height: 1;
}

.main-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a[aria-current="page"] { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.main-nav .btn { border-bottom: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--sand-line); border-radius: 8px;
  width: 48px; height: 48px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.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: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--sand-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--sand-deep); }
  .main-nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); color: #fff; box-shadow: var(--shadow); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #16813f; color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; }
.btn svg { flex: 0 0 auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex; align-items: flex-end;
  min-height: clamp(520px, 78vh, 760px);
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 31, 42, .82) 0%, rgba(18, 31, 42, .32) 48%, rgba(18, 31, 42, .18) 100%);
}
.hero .wrap { width: 100%; padding-top: 80px; padding-bottom: clamp(36px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .kicker { color: var(--amber); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.hero p { max-width: 36em; font-size: 1.1rem; color: rgba(255,255,255,.92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .86rem; color: rgba(255,255,255,.78); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* split hero for tour pages */
.tour-hero { background: var(--atlantic); color: #fff; overflow: hidden; }
.tour-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.tour-hero h1 { color: #fff; }
.tour-hero .kicker { color: var(--amber); }
.tour-hero p { color: rgba(255,255,255,.88); }
.tour-hero figure { margin: 0; position: relative; }
.tour-hero figure img {
  border-radius: var(--radius);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.55);
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tour-hero figcaption { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 8px; }
.tour-hero .crumb { font-size: .85rem; margin-bottom: 1.4em; }
.tour-hero .crumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.tour-hero .crumb a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 820px) {
  .tour-hero .wrap { grid-template-columns: 1fr; }
  .tour-hero figure { order: -1; }
}

/* ---------- quick facts bar ---------- */
.facts-bar { background: var(--white); border-bottom: 1px solid var(--sand-line); }
.facts-bar .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
}
.fact {
  padding: 16px 18px 14px;
  border-left: 1px solid var(--sand-deep);
}
.fact:first-child { border-left: none; }
.fact .fact-label {
  display: block; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.fact .fact-value { font-weight: 600; font-size: .98rem; }
@media (max-width: 640px) {
  .facts-bar .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .fact { border-top: 1px solid var(--sand-deep); }
  .fact:nth-child(-n+2) { border-top: none; }
  .fact:nth-child(odd) { border-left: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }
.section-deep { background: var(--sand-deep); }
.section-dark { background: var(--atlantic); color: #e8f1f7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: #b9cedd; }
.section-head { max-width: 620px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- experience cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.xcard {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.xcard:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(33,48,60,.08), 0 22px 44px -14px rgba(33,48,60,.3); }
.xcard-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.xcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.xcard:hover .xcard-media img { transform: scale(1.045); }
.xcard-media .badge-row { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(20, 37, 50, .78); color: #fff; backdrop-filter: blur(4px);
}
.badge-amber { background: var(--amber); color: #3c2a07; }
.xcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.xcard h3 { margin-bottom: 6px; }
.xcard h3 a { color: inherit; text-decoration: none; }
.xcard h3 a::after { content: ""; position: absolute; inset: 0; }
.xcard h3 a:hover { color: var(--terracotta); }
.xcard .xcard-desc { color: var(--ink-soft); font-size: .93rem; flex: 1; margin-bottom: 14px; }
.xcard-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: .83rem; color: var(--ink-soft);
  padding-top: 12px; border-top: 1px dashed var(--sand-line);
}
.xcard-meta strong { color: var(--ink); font-weight: 700; }
.xcard-price { font-size: .95rem; }
.xcard-price strong { color: var(--terracotta); font-size: 1.05rem; }

/* ---------- type tiles ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.type-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 170px; display: flex; align-items: flex-end;
  text-decoration: none; color: #fff;
  isolation: isolate;
}
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .45s ease; }
.type-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(16, 29, 40, .78), rgba(16, 29, 40, .08) 65%);
}
.type-tile:hover img { transform: scale(1.05); }
.type-tile .type-body { padding: 16px 18px; }
.type-tile h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.type-tile span { font-size: .82rem; color: rgba(255,255,255,.85); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- ticks & feature lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.tick-list li { padding-left: 30px; position: relative; margin-bottom: 9px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--terracotta);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.9-4.2 4.8a.75.75 0 0 1-1.1.03L4.4 8.8a.75.75 0 1 1 1.06-1.06l1.33 1.33 3.68-4.2a.75.75 0 0 1 1.13.99z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.9-4.2 4.8a.75.75 0 0 1-1.1.03L4.4 8.8a.75.75 0 1 1 1.06-1.06l1.33 1.33 3.68-4.2a.75.75 0 0 1 1.13.99z"/></svg>') center/contain no-repeat;
}
.section-dark .tick-list li::before { background: var(--amber); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 3vw, 30px); }
.feature {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow);
}
.section-dark .feature { background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.feature .f-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-deep); color: var(--terracotta);
  margin-bottom: 14px; font-size: 1.25rem;
}
.section-dark .feature .f-icon { background: rgba(233, 161, 59, .16); color: var(--amber); }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.section-dark .feature p { color: #b9cedd; }

/* ---------- itinerary ---------- */
.itinerary { list-style: none; margin: 0; padding: 0; position: relative; }
.itinerary li { position: relative; padding: 0 0 26px 54px; }
.itinerary li::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: -4px;
  width: 2px; background: var(--sand-line);
}
.itinerary li:last-child::before { display: none; }
.itinerary li::after {
  content: ""; position: absolute; left: 9px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber);
}
.itinerary h3 { font-size: 1.06rem; margin-bottom: 4px; }
.itinerary p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.itinerary .it-time {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 2px;
}

/* ---------- price panel ---------- */
.price-panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  border-top: 4px solid var(--terracotta);
}
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--terracotta); }
.price-unit { color: var(--ink-soft); font-size: .95rem; }
.price-child { margin-top: 2px; font-weight: 600; }
.price-note { font-size: .83rem; color: var(--ink-soft); margin: 10px 0 0; }
.price-panel .btn { width: 100%; margin-top: 18px; }
.price-panel .btn + .btn { margin-top: 10px; }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tour-aside { position: sticky; top: 96px; display: grid; gap: 22px; }
@media (max-width: 880px) { .tour-layout { grid-template-columns: 1fr; } .tour-aside { position: static; } }

.aside-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.aside-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.aside-card ul { margin: 0; }
.aside-card .tick-list { margin-bottom: 0; }
.aside-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  font-size: .72rem; color: #fff; padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(16,29,40,.75), transparent);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700; position: relative;
  font-size: 1.0rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--terracotta);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .form-field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-field label .req { color: var(--terracotta); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit; font-size: .96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand-blue); background: #fff;
}
.form-field .field-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.form-error { color: #a3301b; font-size: .85rem; font-weight: 600; display: none; margin-top: 10px; }
.form-error.show { display: block; }
.form-success {
  display: none;
  background: #e8f4ea; border: 1.5px solid #bfdfc7; border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 16px; font-size: .95rem;
}
.form-success.show { display: block; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .mailto-note { font-size: .85rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; text-align: left;
}
.contact-card h3 { font-size: 1.05rem; }
.contact-card .big-link {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  text-decoration: none; word-break: break-word;
}
.contact-card p { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(16, 42, 61, .78); }
.cta-band .wrap { padding-top: clamp(52px, 8vw, 90px); padding-bottom: clamp(52px, 8vw, 90px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 38em; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-foot { background: #112836; color: #a8bfce; font-size: .92rem; }
.site-foot .wrap { padding-top: 56px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 36px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: #cfdee9; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .92; }
.foot-brand p { max-width: 26em; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .8rem; color: #7e99aa;
}
.foot-legal a { color: #9fb6c5; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  background: rgba(17, 40, 54, .97);
  padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
  gap: 10px;
  align-items: center;
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.sticky-cta .btn { flex: 1; padding: 12px 10px; font-size: .92rem; min-height: 48px; }
.sticky-cta .cta-close {
  flex: 0 0 auto; background: none; border: none; color: #9fb6c5;
  font-size: 1.3rem; width: 40px; height: 48px; cursor: pointer; padding: 0;
}
@media (max-width: 760px) {
  .sticky-cta:not(.dismissed) { display: flex; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- misc ---------- */
.note-strip {
  background: var(--sand-deep);
  border: 1px dashed var(--sand-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem; color: var(--ink-soft);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.pill-row li {
  background: var(--white); border: 1px solid var(--sand-line);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.section-dark .pill-row li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #e8f1f7; }

.related-strip { border-top: 1px solid var(--sand-line); }

/* reveal on scroll — only when JS is running */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .xcard, .xcard-media img, .type-tile img, .gallery img { transition: none !important; }
}

/* 404 */
.page-404 { text-align: center; padding: 90px 0; }
.page-404 h1 { font-size: clamp(3rem, 9vw, 5rem); }
