/*
 * Nomstour Madagascar - New Design
 * Organic/Editorial Aesthetic
 * Warm earth tones with sophisticated typography
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Color Palette - Warm, Earthy, Madagascar-inspired */
  --color-cream: #F5F0E8;
  --color-sand: #E8DFD0;
  --color-terracotta: #C7613D;
  --color-terracotta-dark: #A84D2E;
  --color-forest: #2D4A3E;
  --color-forest-light: #3D6252;
  --color-charcoal: #1A1A1A;
  --color-slate: #4A4A4A;
  --color-gold: #D4A853;
  --color-white: #FFFFFF;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Offset anchored targets so the fixed header doesn't cover them */
.itinerary-card[id],
section[id],
[id^="rn7"],
h3[id] {
  scroll-margin-top: 100px;
}

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

/* ============================================
   GLOBAL :focus-visible — visible keyboard focus rings everywhere.
   Per-component rules override these where a custom treatment exists.
   ============================================ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* Form fields: keep terracotta border accent AND add a clear focus ring
   for keyboard users — the border-only treatment isn't strong enough. */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group-split input:focus-visible,
.cta-form input:focus-visible,
.cta-form textarea:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-color: var(--color-terracotta);
}

/* Film grain overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--color-terracotta);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-slate);
  max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-terracotta-dark);
  transition: left var(--transition-medium);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(199, 97, 61, 0.3);
}

.btn-secondary {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-forest-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-medium);
}

.header.scrolled {
  background-color: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-image {
  height: 60px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-image:hover {
  transform: scale(1.05);
}

.header.scrolled .logo-image {
  height: 50px;
}

.footer .logo-image {
  height: 70px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.header.scrolled .logo-text {
  color: var(--color-charcoal);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--transition-fast);
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--color-charcoal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.header.scrolled .nav-cta {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.nav-cta:hover {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 28px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.header.scrolled .mobile-menu-btn span {
  background-color: var(--color-charcoal);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-forest);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px var(--space-md) var(--space-lg);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: all var(--transition-medium);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.mobile-menu-links a:hover {
  color: var(--color-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 74, 62, 0.85) 0%,
    rgba(26, 26, 26, 0.7) 50%,
    rgba(199, 97, 61, 0.4) 100%
  );
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-content {
  text-align: center;
  padding: var(--space-md);
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: center;
}

.intro-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-sand);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.intro-text {
  font-size: 1.125rem;
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.intro-stats {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-sand);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-terracotta);
  line-height: 1;
}

.intro-stats .stat-label {
  font-size: 0.9rem !important;
  color: #2D4A3E !important;
  margin-top: 0.25rem;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background-color: var(--color-forest);
  padding: var(--space-xl) var(--space-md);
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services .section-kicker {
  color: var(--color-gold);
}

.services .section-title {
  color: var(--color-white);
}

.services .section-title em {
  color: var(--color-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ============================================
   JOURNEYS SECTION
   ============================================ */
.journeys {
  padding: var(--space-xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.journeys-header {
  margin-bottom: var(--space-lg);
}

.journeys-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
}

.journey-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

.journey-card a {
  display: block;
  height: 100%;
}

.journey-card-large {
  grid-row: span 2;
}

.journey-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.journey-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.journey-card:hover .journey-image img {
  transform: scale(1.1);
}

.journey-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 60%);
}

.journey-content {
  position: relative;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  color: var(--color-white);
}

.journey-card-large .journey-content {
  min-height: 100%;
}

.journey-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-terracotta);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.journey-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.journey-card-large h3 {
  font-size: 2.25rem;
}

.journey-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--transition-fast);
}

.journey-card:hover .journey-link {
  gap: 1rem;
}

.journeys-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.testimonials-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(45, 74, 62, 0.95) 0%,
    rgba(45, 74, 62, 0.8) 100%
  );
}

.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.testimonials .section-kicker {
  color: var(--color-gold);
}

.testimonials .section-title {
  color: var(--color-white);
}

.testimonials .section-title em {
  color: var(--color-gold);
}

.testimonials-slider {
  position: relative;
  margin: var(--space-lg) 0;
  z-index: 1;
  overflow: hidden;
}

.testimonial {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.testimonial blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial cite {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-size: 1rem;
}

.testimonial .translation-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 100;
}

.testimonial-prev,
.testimonial-next {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.testimonial-prev:hover,
.testimonial-next:hover,
.testimonial-prev:focus,
.testimonial-next:focus {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: scale(1.1);
}

.testimonial-prev:active,
.testimonial-next:active {
  transform: scale(0.95);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 101;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.dot.active {
  background-color: var(--color-gold);
  transform: scale(1.3);
}

.dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.testimonials-slider:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 8px;
  border-radius: 4px;
}

.testimonial-prev:focus-visible,
.testimonial-next:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.tripadvisor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.tripadvisor-link:hover {
  color: var(--color-gold);
}

/* ============================================
   GIVING BACK SECTION
   ============================================ */
.giving-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.giving-image {
  position: relative;
  overflow: hidden;
}

.giving-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giving-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
  background-color: var(--color-sand);
}

.giving-content p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.giving-content .btn {
  margin-top: var(--space-md);
  align-self: flex-start;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-charcoal);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section h2 em {
  font-style: italic;
  color: var(--color-gold);
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-md);
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-terracotta);
}

.tripadvisor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  padding: 0.6rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all var(--transition-fast);
  color: var(--color-white);
  font-size: 0.9rem;
  text-decoration: none;
}

.tripadvisor-badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.tripadvisor-badge i {
  font-size: 1.25rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a,
.footer-col li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .journeys-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .journey-card-large {
    grid-row: span 1;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .intro {
    grid-template-columns: 1fr;
    padding: var(--space-lg) var(--space-md);
  }
  
  .intro-image {
    order: -1;
  }
  
  .intro-image img {
    height: 400px;
  }
  
  .intro-stats {
    flex-wrap: wrap;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .giving-preview {
    grid-template-columns: 1fr;
  }
  
  .giving-image {
    height: 300px;
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  
  .testimonial blockquote {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  /* Keep the three intro stats on one horizontal row on phones */
  .intro-stats {
    flex-wrap: nowrap;
    gap: var(--space-sm);
    justify-content: space-between;
  }

  .intro-stats .stat-number {
    font-size: 1.75rem;
  }

  .intro-stats .stat-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em;
  }

  /* Shrink intro image and tighten section padding on phones */
  .intro-image img {
    height: 280px;
  }

  .intro,
  .services,
  .journeys,
  .giving-preview,
  .cta-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* Push hero content below the fixed header so the eyebrow can't collide
     with the logo/hamburger at very narrow widths. */
  .hero {
    align-items: flex-start;
    padding-top: calc(80px + var(--space-md));
  }

  .hero-content {
    padding-top: var(--space-sm);
  }

  /* Header gets a faint backdrop on small viewports so anything scrolling
     under it stays masked. */
  .header {
    background-color: rgba(45, 74, 62, 0.55);
    backdrop-filter: blur(6px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Inner page heroes */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 74, 62, 0.9) 0%,
    rgba(26, 26, 26, 0.7) 100%
  );
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  text-align: center;
  max-width: 700px;
}

.page-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Content sections */
.content-section {
  padding: var(--space-lg) var(--space-md);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.content-section ul {
  margin: var(--space-sm) 0;
}

.content-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate);
}

.content-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-terracotta);
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-member {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-sand);
}

.team-member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest);
  color: var(--color-white);
  font-size: 3rem;
  border-radius: 50%;
}

.team-member-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--color-terracotta);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--color-slate);
  font-size: 0.95rem;
}

/* Itinerary cards */
.itinerary-section {
  padding: var(--space-lg) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.itinerary-section-alt {
  background-color: var(--color-sand);
  max-width: none;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.itinerary-section-alt > * {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.itinerary-section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.itinerary-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  align-items: center;
}

.itinerary-card:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.itinerary-card-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.itinerary-card-reverse .itinerary-card-image {
  order: 2;
}

.itinerary-card-reverse .itinerary-card-content {
  order: 1;
}

.itinerary-card-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 4px;
}

.itinerary-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.itinerary-card:hover .itinerary-card-image img {
  transform: scale(1.05);
}

.itinerary-duration {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
}

.itinerary-card-content {
  display: flex;
  flex-direction: column;
}

.itinerary-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.itinerary-location {
  color: var(--color-terracotta);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.itinerary-location i {
  margin-right: 0.35rem;
}

.itinerary-card-content p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.itinerary-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.itinerary-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-forest);
  background-color: rgba(45, 74, 62, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.itinerary-highlights i {
  color: var(--color-forest);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .itinerary-card,
  .itinerary-card-reverse {
    grid-template-columns: 1fr;
  }
  
  .itinerary-card-reverse .itinerary-card-image,
  .itinerary-card-reverse .itinerary-card-content {
    order: unset;
  }
  
  .itinerary-card-image {
    height: 280px;
  }
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.contact-info a {
  color: var(--color-terracotta);
  transition: color var(--transition-fast);
}

.contact-info a:hover {
  color: var(--color-terracotta-dark);
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-sand);
  color: var(--color-terracotta);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background-color: var(--color-sand);
  padding: var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid transparent;
  background-color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group-split > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-split label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.form-group-split input {
  padding: 1rem;
  border: 2px solid transparent;
  background-color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
}

.form-group-split input:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

@media (max-width: 480px) {
  .form-group-split {
    grid-template-columns: 1fr;
  }
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-slate);
  margin-top: 0.25rem;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GIVING BACK PAGE STYLES
   ============================================ */

/* Feature Section (image + text side by side) */
.giving-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.giving-feature-image {
  position: relative;
  overflow: hidden;
}

.giving-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giving-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
  background-color: var(--color-sand);
}

.giving-feature-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.giving-feature-content h2 em {
  font-style: italic;
  color: var(--color-terracotta);
}

.giving-feature-content p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

/* Photo Gallery */
.photo-gallery-section {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-cream);
}

.photo-gallery-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item-wide img {
  height: 320px;
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
  color: var(--color-white);
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .giving-feature {
    grid-template-columns: 1fr;
  }
  
  .giving-feature-image {
    height: 300px;
  }
  
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item-wide {
    grid-column: span 1;
  }
  
  .gallery-item img,
  .gallery-item-wide img {
    height: 250px;
  }
  
  .gallery-item figcaption {
    transform: translateY(0);
  }
}

/* ============================================
   GIVING BACK PAGE STYLES
   ============================================ */

/* Stats Section */
.stats-section {
  background-color: var(--color-forest);
  padding: var(--space-lg) var(--space-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  color: var(--color-white);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-section .stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
  .stats-grid .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Story Sections */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: center;
}

.story-section-reverse .story-image {
  order: 2;
}

.story-section-reverse .story-content {
  order: 1;
}

.story-image {
  overflow: hidden;
  border-radius: 4px;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-content h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.story-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .story-section {
    grid-template-columns: 1fr;
  }
  .story-section-reverse .story-image,
  .story-section-reverse .story-content {
    order: unset;
  }
}

/* Feature Image Section */
.feature-image-section {
  padding: var(--space-lg) var(--space-md);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.feature-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  margin-top: var(--space-sm);
  font-style: italic;
  color: var(--color-slate);
  font-size: 0.95rem;
}

/* Progress Section */
.progress-section {
  background-color: var(--color-sand);
  padding: var(--space-xl) var(--space-md);
}

.progress-header {
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto var(--space-lg);
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.progress-item {
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.progress-date {
  display: inline-block;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

.progress-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
}

.progress-item p {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .progress-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Section */
.gallery-section {
  padding: var(--space-xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Future Section */
.future-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: center;
}

.future-content h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.future-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.future-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.future-image .image-caption {
  text-align: center;
}

@media (max-width: 900px) {
  .future-section {
    grid-template-columns: 1fr;
  }
}

/* Giving CTA Section */
.giving-cta .cta-content {
  max-width: 700px;
}

.cta-signature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.signature-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--color-gold);
}

.signature-text {
  color: var(--color-white);
}

.signature-text p {
  margin: 0;
  font-size: 1rem;
}

.signature-text strong {
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .cta-signature {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   CTA WITH FORM STYLES
   ============================================ */

.cta-with-form {
  padding: var(--space-xl) var(--space-md);
}

.cta-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: center;
}

.cta-with-form .cta-content {
  text-align: left;
}

.cta-with-form .cta-content h2 {
  font-size: 2.75rem;
}

.cta-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.cta-form-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.15);
}

.cta-form textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-form button {
  align-self: flex-start;
  margin-top: var(--space-xs);
}

@media (max-width: 900px) {
  .cta-form-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-with-form .cta-content {
    text-align: center;
  }
  
  .cta-with-form .cta-content h2 {
    font-size: 2.25rem;
  }
  
  .cta-form-row {
    grid-template-columns: 1fr;
  }
  
  .cta-form button {
    align-self: stretch;
  }
}

/* ============================================
   MADAGASCAR MOMENTS GALLERY
   ============================================ */

.page-hero-short {
  min-height: 50vh;
}

.moments-gallery-section {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-charcoal);
}

/* CSS columns masonry — items flow naturally without forced crops or empty
   slots. Works on every modern browser; falls back gracefully without JS. */
.moments-masonry {
  max-width: 1400px;
  margin: 0 auto;
  column-count: 4;
  column-gap: var(--space-xs);
}

.moments-link {
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--space-xs);
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: zoom-in;
  background-color: rgba(255, 255, 255, 0.04);
}

.moments-link picture,
.moments-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.moments-link:hover img {
  transform: scale(1.04);
}

.moments-link:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}

@media (max-width: 1024px) { .moments-masonry { column-count: 3; } }
@media (max-width: 768px)  { .moments-masonry { column-count: 2; } }
@media (max-width: 480px)  { .moments-masonry { column-count: 1; } }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox.active {
  display: flex;
  animation: lightboxFade 0.2s ease;
}

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.lightbox-close:hover, .lightbox-close:focus-visible,
.lightbox-prev:hover,  .lightbox-prev:focus-visible,
.lightbox-next:hover,  .lightbox-next:focus-visible {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  outline: none;
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 600px) {
  .lightbox-close, .lightbox-prev, .lightbox-next {
    width: 40px; height: 40px;
    font-size: 1.25rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* Moments CTA Section */
.moments-cta {
  background-color: var(--color-sand);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.moments-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.moments-cta h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.moments-cta p {
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.moments-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-forest);
  color: var(--color-forest);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.hashtag {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--color-terracotta);
  margin-top: var(--space-md);
}

/* Light button for dark backgrounds */
.btn-light {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-charcoal);
  border: 2px solid transparent;
}

.btn-light:hover {
  background-color: var(--color-white);
  transform: translateY(-2px);
}

/* Team Logo Header in About Section */
.team-section {
  text-align: center;
}

.team-logo-header {
  display: flex;
  justify-content: center;
  margin: var(--space-md) auto var(--space-lg);
}

.team-logo-header img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .team-logo-header img {
    max-width: 220px;
  }
}

/* Hero scroll responsive fixes */
@media (max-height: 700px) {
  .hero-scroll {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-scroll {
    bottom: 1rem;
    font-size: 0.65rem;
  }
  
  .scroll-line {
    height: 30px;
  }
}

@media (max-width: 480px) {
  .hero-scroll {
    display: none;
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(199, 97, 61, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float::before {
  content: 'Chat with Nomena';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: var(--color-terracotta-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(199, 97, 61, 0.5);
  outline: none;
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
  /* Hide the desktop tooltip on mobile (no hover state worth showing) */
  .whatsapp-float::before {
    display: none;
  }
  /* Make sure the contact-info and footer never sit where the bubble lives */
  .contact-info,
  .footer-bottom {
    padding-bottom: 4rem;
  }
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-cream);
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
  background-color: var(--color-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2.5rem;
}

.thank-you-section h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.thank-you-subtitle {
  font-size: 1.25rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.thank-you-section p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.thank-you-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.thank-you-actions .btn-outline {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.thank-you-actions .btn-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.thank-you-social {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.thank-you-social p {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.thank-you-social .social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.thank-you-social .social-links a {
  width: 44px;
  height: 44px;
  background-color: var(--color-forest);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.thank-you-social .social-links a:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-2px);
}

/* Honeypot field - hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Improved Testimonials Responsive */
@media (max-width: 768px) {
  .testimonials {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .testimonial blockquote {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0;
  }
  
  .testimonial-nav {
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .testimonials {
    padding: var(--space-md) var(--space-xs);
  }
  
  .testimonial blockquote {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .testimonial cite {
    font-size: 0.85rem;
  }
  
  .testimonial-stars {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ============================================
   FAQ ACCORDIONS (contact.html .faq-section)
   ============================================ */
.faq-section details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-section details:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 83, 0.4);
}

.faq-section details[open] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 83, 0.5);
}

.faq-section summary {
  list-style: none;
  position: relative;
  padding: 1rem 3rem 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  user-select: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gold);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.faq-section details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-section summary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.faq-section details > p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  animation: faqFadeIn 0.3s ease both;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TRIPADVISOR RATING BADGES
   ============================================ */

/* Compact badge below hero CTAs */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-md);
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  animation: fadeInUp 1s ease-out 1s backwards;
}

.hero-rating:hover,
.hero-rating:focus-visible {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--color-gold);
  outline: none;
}

.hero-rating-stars {
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero-rating-label strong {
  font-weight: 700;
  margin-right: 0.15rem;
}

/* Larger badge at top of testimonials section */
.testimonials-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-md) 0 var(--space-sm);
  padding: 0.65rem 1.25rem;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.testimonials-rating:hover,
.testimonials-rating:focus-visible {
  background: rgba(212, 168, 83, 0.22);
  border-color: var(--color-gold);
  transform: translateY(-1px);
  outline: none;
}

.testimonials-rating-stars {
  color: var(--color-gold);
  font-size: 1rem;
}

.testimonials-rating-label strong {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: 0.1rem;
}

.testimonials-rating-label .fa-arrow-right {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.testimonials-rating:hover .fa-arrow-right {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .hero-rating { font-size: 0.85rem; padding: 0.4rem 0.85rem; }
  .testimonials-rating { font-size: 0.9rem; padding: 0.55rem 1rem; }
  .testimonials-rating-label strong { font-size: 1rem; }
}

/* ============================================
   404 / NOT FOUND PAGE
   ============================================ */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
  background:
    radial-gradient(ellipse at top, rgba(212, 168, 83, 0.08), transparent 60%),
    var(--color-cream);
}

.not-found-content {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.not-found-image picture,
.not-found-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(45, 74, 62, 0.18);
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}

.not-found-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.not-found-lede {
  font-size: 1.15rem;
  color: var(--color-slate);
  margin-bottom: var(--space-md);
  max-width: 540px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .not-found-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .not-found-image {
    max-width: 280px;
    margin: 0 auto;
  }
  .not-found-lede {
    margin-left: auto;
    margin-right: auto;
  }
  .not-found-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .not-found-actions .btn {
    width: 100%;
  }
}

/* ============================================
   REDUCED MOTION FALLBACK
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
}
