/* ==========================================================================
   Trev Safari Expeditions — stylesheet
   Brand palette: #F0C01B (gold) · #141414 (black) · #FFFFFF (white)
   No gradients. Neutral greys are alpha-tints of black for text hierarchy.
   ========================================================================== */

:root {
  --gold: #F0C01B;
  --gold-deep: #d9a800;     /* darker gold for hover affordance, same hue */
  --black: #141414;
  --ink: #141414;
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --cream: #FBF7EA;         /* very light warm tint of gold for section breaks */
  --muted: rgba(20, 20, 20, 0.62);
  --faint: rgba(20, 20, 20, 0.10);
  --line: rgba(20, 20, 20, 0.14);
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.06), 0 2px 6px rgba(20,20,20,0.06);
  --shadow-md: 0 6px 18px rgba(20,20,20,0.10), 0 2px 6px rgba(20,20,20,0.06);
  --shadow-lg: 0 18px 50px rgba(20,20,20,0.16);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(18px, 5vw, 40px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4Z'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--cream { background: var(--cream); }
.section--black { background: var(--black); color: #fff; }
.section--black h1, .section--black h2, .section--black h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section--black .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section--black .lead { color: rgba(255,255,255,0.78); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  padding: 15px 26px; border-radius: 999px; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 13px 24px; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); padding: 13px 24px; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn .arrow { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.brand-logo--footer {
  height: 44px;
  width: auto;
  padding: 6px 14px;
  background: #fff;
  border-radius: 10px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  padding: 10px 14px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--cream); }
.nav-links a.active { color: var(--black); background: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  padding: clamp(90px, 16vw, 170px) 0 clamp(80px, 12vw, 130px);
}
.hero .container { position: relative; z-index: 3; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(20,20,20,0.58); }
.hero-art { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-sun { display: none; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead { color: rgba(255,255,255,0.88); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9); font-size: 0.92rem;
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pillar .icon { width: 44px; height: 44px; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Cards / Packages ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--black); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--black);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.card-badge.luxury { background: var(--black); color: var(--gold); border: 1px solid var(--gold); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.card h3 { margin: 0; }
.card .tagline { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .highlights { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 0; }
.card .highlights li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.card .highlights li::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; margin-top: 5px; background: var(--gold); -webkit-mask: var(--tick) center/contain no-repeat; mask: var(--tick) center/contain no-repeat; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-price .from { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.card-price .amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.card-price .note { font-size: 0.74rem; color: var(--muted); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; margin-bottom: 18px; }
.service .icon-wrap svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.service .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--black); }
.service .more .arrow { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .25s var(--ease); }
.service:hover .more .arrow { transform: translateX(4px); }

/* ---------- Split / About teaser ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split-art { border-radius: var(--radius-lg); overflow: hidden; background: var(--black); aspect-ratio: 5 / 4; }
.split-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.stat { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; }
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat .label { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .bg { position: absolute; inset: 0; z-index: 1; }
.cta-band h2 { max-width: 18ch; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 2.5rem;
}
.gallery-filter {
  display: inline-block; padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 100px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.gallery-filter:hover { border-color: var(--gold); color: var(--black); }
.gallery-filter.is-active { background: var(--gold); color: var(--black); border-color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
}
.gallery-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--black); cursor: pointer; margin: 0;
}
.gallery-tile:nth-child(3n) { grid-row: span 2; }
.gallery-tile:nth-child(5n) { grid-column: span 2; }
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px; color: #fff;
  background: rgba(20,20,20,0.62);
  display: flex; flex-direction: column; gap: 3px;
}
.gallery-tile__cat {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.gallery-tile__title {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 639px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-tile:nth-child(3n) { grid-row: span 1; }
  .gallery-tile:nth-child(5n) { grid-column: span 1; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.channel:hover { border-color: var(--gold); transform: translateY(-2px); }
.channel .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); display: grid; place-items: center; flex: 0 0 auto; }
.channel .ic svg { width: 22px; height: 22px; }
.channel .label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.channel .value { font-weight: 700; font-size: 1.05rem; }
.channel .sub { font-size: 0.86rem; color: var(--muted); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,192,27,0.25); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--gold); margin-bottom: 22px;
}
.alert .check { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; flex: 0 0 auto; }
.alert .check svg { width: 16px; height: 16px; }
.alert h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 800; }
.alert p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a { color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 10px; }
.footer-brand .wordmark .top { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials a:hover svg path { fill: var(--black); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.84rem; color: rgba(255,255,255,0.6); }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease); color: #fff;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #25D366; }
.fab--call { background: var(--gold); color: var(--black); }
.fab-label {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--black); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 12px;
  border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.fab:hover .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--black); color: #fff; padding: clamp(70px, 11vw, 120px) 0 clamp(46px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero h1 .accent { color: var(--gold); font-style: italic; }
.page-hero .lead { color: rgba(255,255,255,0.88); }
.page-hero .bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(20,20,20,0.58); }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Layout helpers (responsive-aware) ---------- */
.cards--compact { grid-template-columns: repeat(3, 1fr); }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  max-width: none; gap: 20px;
}
.cta-inline {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}

/* ---------- Responsive ---------- */

/* Tablet and small desktop */
@media (max-width: 980px) {
  .cards, .services-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards--compact { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-art { order: -1; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Mobile (phones) */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand-logo { height: 44px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.mobile {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-links.mobile .btn { display: inline-flex; margin-top: 8px; }
  .hero-meta { gap: 14px 20px; font-size: 0.85rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Stack split section-head and CTA inline layouts vertically */
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .section-head--split .btn { width: 100%; }
  .cta-inline { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-inline .btn { width: 100%; }

  /* Compact cards stay 2-col on phone, then 1-col on very narrow */
  .cards--compact { grid-template-columns: repeat(2, 1fr); }

  /* Gallery filters: scroll horizontally if they overflow */
  .gallery-filters {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; padding-bottom: 8px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .gallery-filter { flex: 0 0 auto; white-space: nowrap; }

  /* Body bottom padding so FABs don't cover footer content */
  body { padding-bottom: 80px; }
}

/* Small phones */
@media (max-width: 560px) {
  /* Cards: 2-per-row to preserve scrolling debt (only go 1-col on very narrow) */
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards--compact { grid-template-columns: 1fr; }

  /* Footer: 2-col even on small phones (links are short) */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Stats: 3-per-row — they're compact enough */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { border-left-width: 2px; padding-left: 10px; }
  .stat .num { font-size: 1.5rem; }

  .brand-logo { height: 38px; }
  .brand-logo--footer { height: 36px; }
  .fab { width: 52px; height: 52px; }
  .fab svg { width: 24px; height: 24px; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }

  /* Tighter card padding on small phones */
  .card-body { padding: 16px; gap: 10px; }
  .card-media { aspect-ratio: 16 / 11; }
  .card .highlights { gap: 5px; }
  .card .highlights li { font-size: 0.85rem; }
  .card-price .amount { font-size: 1.25rem; }

  /* Card foot: stack price above button, button full-width and centered */
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-foot .btn { width: 100%; }
  .card-price { text-align: center; }

  /* Service cards: tighter padding */
  .service { padding: 18px; }
  .service .icon-wrap { width: 42px; height: 42px; margin-bottom: 14px; }
  .service .icon-wrap svg { width: 20px; height: 20px; }

  /* Pillar cards: tighter padding */
  .pillar { padding: 20px; }
  .pillar .icon { width: 38px; height: 38px; margin-bottom: 14px; }

  /* Contact form: tighter padding */
  .form-card { padding: 18px; }
  .channel { padding: 16px; }

  /* Section padding: reduce on mobile */
  .section { padding: clamp(40px, 12vw, 64px) 0; }
  .hero { padding: clamp(60px, 14vw, 90px) 0 clamp(50px, 10vw, 70px); }
  .page-hero { padding: clamp(50px, 12vw, 80px) 0 clamp(36px, 7vw, 56px); }
}

/* Very narrow phones */
@media (max-width: 400px) {
  /* Cards go to 1-col only on very narrow screens */
  .cards, .services-grid, .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Package card description hidden on very narrow to save space */
  .card .tagline { font-size: 0.88rem; }
}

/* ---------- Inline icon helpers ---------- */
.feature-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold); display: grid; place-items: center; margin-bottom: 18px; flex: 0 0 auto; }
.feature-ic svg { width: 22px; height: 22px; }
.check-pill { width: 18px; height: 18px; background: var(--gold); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.check-pill svg { width: 11px; height: 11px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
