/* Mauritania & the Sahara — content site */
:root {
  --color-bg: #1a1000;
  --color-primary: #c8a84b;
  --color-secondary: #2e7d32;
  --color-accent: #ffd54f;
  --color-text: rgba(255, 248, 235, 0.92);
  --color-muted: rgba(255, 248, 235, 0.65);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;
  --radius-card: 16px;
  --shadow-gold: 0 0 0 1px rgba(200, 168, 75, 0.2), 0 8px 40px rgba(200, 168, 75, 0.25);
  --container-max: 1200px;
  --hero-gradient: radial-gradient(ellipse at bottom, #4a2a00, #1a1000);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--hero-gradient);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff8d6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: #fff8eb;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  display: block;
}

.container {
  width: min(var(--container-max), 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 9, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.15);
  transition: box-shadow 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background: rgba(13, 9, 0, 0.97);
    border-bottom: 1px solid rgba(200, 168, 75, 0.2);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-accent);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: rgba(200, 168, 75, 0.12);
  color: #fff;
  box-shadow: 0 0 24px rgba(200, 168, 75, 0.35);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

/* Hero fullscreen */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 0, 0.55);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 213, 79, 0.55), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(200, 168, 75, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 213, 79, 0.35), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(200, 168, 75, 0.3), transparent);
  background-size: 120px 120px;
  animation: sand-drift 85s linear infinite;
  opacity: 0.35;
}

.hero-particles::after {
  animation-duration: 120s;
  animation-direction: reverse;
  opacity: 0.2;
  background-size: 180px 180px;
}

@keyframes sand-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-60px, -40px);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 6rem 0 4rem;
  text-align: left;
  max-width: 720px;
  margin-right: auto;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content .lead {
  color: rgba(255, 248, 235, 0.88);
  max-width: 48ch;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-decoration: none;
  animation: float-y 3s ease-in-out infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(200,168,75,0.09) 0%, rgba(46,125,50,0.06) 100%);
}

/* Split layout (asymmetric) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero .container {
    align-items: center;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-content .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }
}

.figure-cap {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(20, 14, 4, 0.75);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(200, 168, 75, 0.2);
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(200, 168, 75, 0.35), 0 12px 48px rgba(200, 168, 75, 0.3);
}

.card img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* Wide banner */
.banner-wide {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: min(420px, 55vw);
  box-shadow: var(--shadow-gold);
}

.banner-wide img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.banner-wide .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 9, 0, 0.92) 0%, rgba(13, 9, 0, 0.45) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.banner-wide .banner-text {
  max-width: min(560px, 100%);
}

.banner-wide .banner-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .banner-wide .banner-overlay {
    background: linear-gradient(0deg, rgba(13, 9, 0, 0.95), rgba(13, 9, 0, 0.5));
  }
}

/* Grid 2 for caravans */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-2 img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Stargazing card */
.star-card {
  position: relative;
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3rem);
  background: radial-gradient(ellipse at 30% 20%, #1a1208 0%, #0a0702 50%, #020100 100%);
  border: 1px solid rgba(200, 168, 75, 0.25);
  box-shadow: var(--shadow-gold), inset 0 0 80px rgba(0, 40, 80, 0.15);
  overflow: hidden;
}

.star-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.8) 100%, transparent),
    radial-gradient(1px 1px at 55% 35%, rgba(255, 213, 79, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 70% 80%, #fff 100%, transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(255, 255, 255, 0.7) 100%, transparent),
    radial-gradient(1px 1px at 92% 70%, rgba(200, 168, 75, 0.8) 100%, transparent),
    radial-gradient(2px 2px at 40% 50%, rgba(255, 248, 220, 0.5) 100%, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.star-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 100%, rgba(46, 125, 50, 0.12), transparent 45%);
  pointer-events: none;
}

.star-card-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.star-card-inner p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(200, 168, 75, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.45rem;
}

.footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 168, 75, 0.1);
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

/* Article pages */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.page-hero .lead {
  margin-inline: auto;
}

.article {
  padding-bottom: 4rem;
}

.article .container {
  max-width: 720px;
}

.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .inline-2 {
    grid-template-columns: 1fr;
  }
}

.contextual-note {
  font-size: 0.95rem;
  color: var(--color-muted);
  border-left: 3px solid var(--color-secondary);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* Float image — text wraps around it like a magazine article */
.prose-float {
  width: 100%;
}

.prose-float .float-img {
  float: right;
  width: 42%;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-gold), 0 12px 40px rgba(0,0,0,0.45);
}

.prose-float .float-img figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.prose-float::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .prose-float .float-img {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}
