/* ============================================
   WildTide Africa — Brand Stylesheet
   Colors: #0B1D2D #132F44 #1E5A6A #D2B680 #F7F5F0
   Fonts: Cinzel (display) / Montserrat (body)
   ============================================ */

:root {
  --ink: #0B1D2D;
  --navy: #132F44;
  --teal: #1E5A6A;
  --gold: #D2B680;
  --cream: #F7F5F0;
  --gold-dim: rgba(210, 182, 128, 0.35);
  --display: 'Cinzel', serif;
  --body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(247, 245, 240, 0.85);
  max-width: 62ch;
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 29, 45, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-dim);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand svg { flex-shrink: 0; }

.brand .logo-mark { height: 48px; width: auto; flex-shrink: 0; }

footer .logo-footer { height: 130px; width: auto; display: block; margin: 0 auto; }

.brand-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--cream);
}

.brand-name span { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.42em; display: block; margin-top: -2px; }

nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

nav a:hover, nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn:hover { background: transparent; color: var(--gold); }

.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(30, 90, 106, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(210, 182, 128, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 70%);
  overflow: hidden;
}

.hero.short { min-height: 46vh; }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.15;
  margin: 1.2rem 0 1.6rem;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.hero .lede { margin: 0 auto 2.6rem; }

.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 1;
  opacity: 0.5;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,29,45,0.6) 0%, rgba(11,29,45,0.4) 45%, rgba(11,29,45,0.88) 100%);
}

/* ---------- Film section ---------- */
.film-frame {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--gold-dim);
}

.film-frame video { width: 100%; display: block; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 2rem; }

.container { max-width: 1200px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 3.5rem; }

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }

.gold-rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 1.4rem auto 0;
}

.alt { background: var(--navy); }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(11, 29, 45, 0.65);
  border: 1px solid var(--gold-dim);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover { transform: translateY(-6px); border-color: var(--gold); }

.card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gold-dim);
}

.card-visual.photo { height: 240px; overflow: hidden; }
.card-visual.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-visual.photo img { transform: scale(1.05); }

.card-visual.sea { background: radial-gradient(ellipse at 50% 100%, rgba(30,90,106,0.7), transparent 70%), linear-gradient(200deg, #132F44, #0B1D2D); }
.card-visual.river { background: radial-gradient(ellipse at 30% 30%, rgba(30,90,106,0.55), transparent 60%), linear-gradient(160deg, #1E5A6A 0%, #0B1D2D 80%); }
.card-visual.expedition { background: radial-gradient(ellipse at 70% 20%, rgba(210,182,128,0.25), transparent 60%), linear-gradient(180deg, #132F44, #0B1D2D); }

.card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }

.card h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }

.card p { font-size: 0.95rem; font-weight: 300; color: rgba(247,245,240,0.8); flex: 1; }

.card .meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gold-dim);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Feature strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.feature svg { margin: 0 auto 1.1rem; }

.feature h3 { font-size: 1rem; letter-spacing: 0.12em; margin-bottom: 0.6rem; }

.feature p { font-size: 0.88rem; font-weight: 300; color: rgba(247,245,240,0.75); }

/* ---------- Quote band ---------- */
.quote-band {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(90deg, var(--ink), var(--navy) 50%, var(--ink));
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.quote-band p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  max-width: 800px;
  margin: 0 auto;
}

.quote-band p em { font-style: normal; color: var(--gold); }

/* ---------- Detail rows (trips page) ---------- */
.trip-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gold-dim);
}

.trip-detail:last-child { border-bottom: none; }

.trip-detail h3 { font-size: 1.7rem; margin-bottom: 1.2rem; }

.trip-detail ul { list-style: none; margin: 1.4rem 0 2rem; }

.trip-detail li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  font-size: 0.95rem;
  font-weight: 300;
}

.trip-detail li a, section p a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(210,182,128,0.4);
}
.trip-detail li a:hover, section p a:hover { border-bottom-color: var(--gold); }

.trip-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.trip-visual {
  min-height: 340px;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-visual.photo { overflow: hidden; max-height: 480px; }
.trip-visual.photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.trip-visual.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 0.9rem;
  border: none;
  min-height: 0;
}

.trip-visual.stack img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--gold-dim); }

.trip-visual.stack .wide { grid-column: 1 / -1; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 300px; column-gap: 1.2rem; }

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.2rem;
  border: 1px solid var(--gold-dim);
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img { width: 100%; display: block; transition: transform 0.4s; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(11, 29, 45, 0.92));
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .cap { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 29, 45, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 92vw; max-height: 88vh; border: 1px solid var(--gold-dim); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
}

.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.75);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

input, select, textarea {
  width: 100%;
  background: rgba(247, 245, 240, 0.05);
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.25s;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }

select option { background: var(--navy); }

textarea { resize: vertical; min-height: 140px; }

/* ---------- Contact info ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.info-block { margin-bottom: 2.2rem; }

.info-block h3 { font-size: 1rem; letter-spacing: 0.14em; margin-bottom: 0.5rem; }

.info-block p, .info-block a { font-size: 0.95rem; font-weight: 300; color: rgba(247,245,240,0.85); text-decoration: none; }

.info-block a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  border-top: 1px solid var(--gold-dim);
  padding: 3.5rem 2rem 2rem;
  text-align: center;
}

.footer-tagline {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 1.4rem 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.75);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--gold); }

.copyright { font-size: 0.75rem; color: rgba(247,245,240,0.45); letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-wrap { flex-direction: column; gap: 0.8rem; }
  nav ul { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .trip-detail { grid-template-columns: 1fr; }
  .trip-visual { min-height: 220px; order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

/* ---------- Destination map ---------- */
.map-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.map-wrap svg { width: 100%; height: auto; display: block; }

.map-land {
  fill: #1A4054;
  stroke: none;
}

.map-marker { fill: var(--gold); }

.map-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0.7;
  transform-origin: center;
  animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
  0%   { opacity: 0.7; r: 8; }
  100% { opacity: 0;   r: 22; }
}

.map-label {
  font-family: var(--body, 'Montserrat', sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: #F7F5F0;
}

.map-sublabel {
  font-family: var(--body, 'Montserrat', sans-serif);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  fill: rgba(247,245,240,0.55);
  text-transform: uppercase;
}

.map-base { fill: none; stroke: var(--gold); stroke-width: 2; }

.map-sea { fill: #0A1A29; }
.map-land { stroke: none; }
.map-coast {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0.65;
}
.map-frame {
  fill: none;
  stroke: var(--gold-dim, rgba(210,182,128,0.35));
  stroke-width: 1.5;
}
