/* ============================================================
   SATFLOW — STYLES.CSS
   Minimalist, elegant travel landing page
   Structure:
   1.  Custom properties (design tokens)
   2.  CSS reset & base
   3.  Typography helpers
   4.  Layout utilities
   5.  Site header & navigation
   6.  Hero section
   7.  Stats strip
   8.  Experiences / cards
   9.  Philosophy section
   10. Testimonials section
   11. CTA / newsletter section
   12. Site footer
   13. Legal modals
   14. Cookie banner & preferences
   15. Scroll reveal animations
   16. Responsive breakpoints
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* --- Colour palette --- */
  --c-bg:          #F9F8F5;   /* warm near-white */
  --c-bg-alt:      #F2F0EB;   /* slightly deeper warm white */
  --c-dark:        #18181A;   /* near-black for dark sections */
  --c-dark-alt:    #222222;
  --c-text:        #2A2A28;   /* primary text */
  --c-muted:       #706E68;   /* secondary / muted text */
  --c-accent:      #C4A97D;   /* warm gold — used sparingly */
  --c-accent-hov:  #B09268;
  --c-border:      #E4E2DC;
  --c-white:       #FFFFFF;

  /* --- Typography --- */
  --f-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --max-w:         1240px;
  --pad-x:         clamp(1.25rem, 5vw, 4rem);
  --section-gap:   clamp(5rem, 10vw, 9rem);

  /* --- Motion --- */
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast:        0.25s;
  --t-mid:         0.35s;
  --t-slow:        0.65s;

  /* --- Radius --- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;

  /* --- Shadows --- */
  --shadow-card:     0 2px 12px rgba(0,0,0,0.07), 0 8px 32px rgba(0,0,0,0.05);
  --shadow-card-hov: 0 4px 20px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.08);
  --shadow-modal:    0 24px 80px rgba(0,0,0,0.25);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

/* Focus rings for accessibility */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================ */

/* Eyebrow label — appears above section headings */
.eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
}

.eyebrow-light { color: rgba(255,255,255,0.65); }

/* Section titles */
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

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

.section-title em {
  font-style: italic;
  font-weight: 300;
}

/* Section subtitle / lead */
.section-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.8;
  max-width: 560px;
}

/* Text buttons (inline, looks like a link) */
.text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.text-link {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}

.text-link:hover { color: var(--c-accent); }


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section-pad {
  padding-block: var(--section-gap);
}

/* Centered section header block */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .section-lead {
  margin-inline: auto;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Light (for hero / dark backgrounds) */
.btn-light {
  background: var(--c-white);
  color: var(--c-dark);
}
.btn-light:hover {
  background: var(--c-bg-alt);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Ghost light (for hero) */
.btn-ghost-light {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* Dark (for light backgrounds) */
.btn-dark {
  background: var(--c-dark);
  color: var(--c-white);
}
.btn-dark:hover {
  background: var(--c-dark-alt);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Outline dark */
.btn-outline-dark {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-text);
}
.btn-outline-dark:hover {
  background: var(--c-text);
  color: var(--c-white);
}

/* Cookie-specific buttons */
.btn-cookie {
  padding: 0.6rem 1.2rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-cookie-solid {
  background: var(--c-white);
  color: var(--c-dark);
  border: 1px solid var(--c-white);
}
.btn-cookie-solid:hover { background: #e8e8e4; }

.btn-cookie-outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-cookie-outline:hover { border-color: var(--c-white); }

.btn-cookie-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid transparent;
}
.btn-cookie-ghost:hover { color: var(--c-white); }


/* ============================================================
   5. SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding-block: 1.4rem;
  transition: background var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}

/* Scrolled state: white background + shadow */
.site-header.is-scrolled {
  background: rgba(249, 248, 245, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-border), 0 4px 16px rgba(0,0,0,0.05);
  padding-block: 1rem;
}

/* Auto-hide when scrolling down */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-white);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  z-index: 901;
}

.site-header.is-scrolled .nav-logo { color: var(--c-dark); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  transition: color var(--t-fast) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t-mid) var(--ease);
}

.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { width: 100%; }

.site-header.is-scrolled .nav-link { color: var(--c-muted); }
.site-header.is-scrolled .nav-link:hover { color: var(--c-text); }

/* Nav CTA button */
.nav-cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}
.site-header.is-scrolled .nav-cta {
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.site-header.is-scrolled .nav-cta:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  position: relative;
  z-index: 901;
}

.bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease),
              opacity var(--t-mid) var(--ease),
              background var(--t-fast) var(--ease);
  transform-origin: center;
}

.site-header.is-scrolled .bar { background: var(--c-dark); }

/* Animate bars to X when nav is open */
.nav-toggle.is-active .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


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

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03); /* slight zoom for parallax effect */
  transition: transform 0.1s linear;
  /* Fallback gradient if image fails */
  background-color: #2a2a28;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 12, 10, 0.62) 0%,
    rgba(12, 12, 10, 0.48) 50%,
    rgba(12, 12, 10, 0.55) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-inline: var(--pad-x);
  max-width: 820px;
}

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 1.6rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-subtitle {
  font-family: var(--f-sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.8rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast) var(--ease);
  text-decoration: none;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }

.scroll-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: currentColor;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

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

.br-desktop { display: block; }


/* ============================================================
   7. STATS STRIP
   ============================================================ */
.stats-strip {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--c-border);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.5rem 2rem;
}

.stat-num {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-num sup {
  font-size: 0.5em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--c-accent);
}

.stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--c-border);
  flex-shrink: 0;
}


/* ============================================================
   8. EXPERIENCES / CARDS
   ============================================================ */
.experiences-section {
  background: var(--c-bg);
}

/* 4-column grid on desktop */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Individual card */
.card {
  background: var(--c-white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hov);
}

/* Card image */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
  /* Fallback background */
  background-color: var(--c-bg-alt);
}

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

/* Subtle gradient at image bottom */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
  pointer-events: none;
}

/* Region tag overlaid on image */
.card-region {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Card body */
.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-muted);
  flex: 1;
  margin-bottom: 1.2rem;
}

/* Explore link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
  transition: color var(--t-fast) var(--ease),
              gap var(--t-fast) var(--ease);
  width: fit-content;
}
.card-link:hover {
  color: var(--c-accent);
  gap: 0.7rem;
}
.card-link svg { flex-shrink: 0; }

/* Section CTA row */
.section-cta {
  text-align: center;
}


/* ============================================================
   9. PHILOSOPHY SECTION
   ============================================================ */
.philosophy-section {
  background: var(--c-bg-alt);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

/* Image column */
.philosophy-visual {
  position: relative;
}

.philosophy-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}

.philosophy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--c-bg);
}

/* Large decorative number */
.philosophy-num {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  font-family: var(--f-serif);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-border);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Content column */
.philosophy-text {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* Philosophy pillars */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--c-accent);
}

.pillar-title {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 0.2rem;
}

.pillar-text {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.6;
}


/* ============================================================
   10. TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  background: var(--c-dark);
}

.testimonials-section .section-header {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Individual testimonial card */
.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.testimonial:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

/* Oversized quotation mark */
.q-mark {
  font-family: var(--f-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.5;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.t-text {
  font-size: 0.975rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  flex: 1;
  margin-bottom: 2rem;
}

.t-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.t-name {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-white);
}

.t-trip {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.75;
}


/* ============================================================
   11. CTA / NEWSLETTER SECTION
   ============================================================ */
.cta-section {
  background: var(--c-bg);
}

.cta-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.cta-lead {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 2.8rem;
}

/* Subscribe form */
.subscribe-form { margin-bottom: 1.5rem; }

.form-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1.2rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  outline: none;
}
.form-input::placeholder { color: var(--c-muted); }
.form-input:focus {
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(42,42,40,0.08);
}

.form-note {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 300;
}

/* Success / error message */
.form-msg {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  font-weight: 400;
  display: none;
}
.form-msg.success {
  display: block;
  color: #4a7c59;
}
.form-msg.error {
  display: block;
  color: #9b4444;
}

.contact-direct {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  font-weight: 300;
}


/* ============================================================
   12. SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-dark);
  padding-block: 5rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand column */
.footer-brand { max-width: 280px; }

.footer-logo {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-white);
  margin-bottom: 1rem;
  width: fit-content;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
}

.footer-age {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}

/* Link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-heading {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}

.footer-list { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-link {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast) var(--ease);
  text-decoration: none;
}
.footer-link:hover { color: var(--c-white); }

.footer-link-btn {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast) var(--ease);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.footer-link-btn:hover { color: var(--c-white); }

.footer-link-inline { font-size: inherit; }

.footer-muted {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

.footer-disclaimer-text {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
  max-width: 600px;
  text-align: right;
}


/* ============================================================
   13. LEGAL MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* ⚠ NO display:flex in the base rule — [hidden] and a class selector share
     specificity 0-1-0. In browsers where [hidden] isn't !important our flex
     wins, leaving all 4 modals as invisible position:fixed overlays that cover
     the entire page and silently block every click on it.
     display is controlled exclusively by :not([hidden]) below. */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none; /* Must not capture clicks while invisible / transitioning */
  transition: opacity var(--t-mid) var(--ease);
}

.modal:not([hidden]) { display: flex; }

.modal.is-open {
  opacity: 1;
  pointer-events: auto; /* Re-enable pointer events only when modal is active */
}

/* Dark backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Panel */
.modal-panel {
  position: relative;
  z-index: 1; /* Explicitly above backdrop — same fix applied to cookie-prefs-panel */
  background: var(--c-white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--t-mid) var(--ease);
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  z-index: 1;
}
.modal-close:hover { background: var(--c-bg-alt); color: var(--c-text); }

/* Scrollable body */
.modal-body {
  padding: 3rem 2.5rem 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Legal typography */
.modal-body h2 {
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-dark);
  margin-bottom: 0.3rem;
}

.legal-date {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.modal-body h3 {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-body h4 {
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.modal-body a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal-body a:hover { color: var(--c-accent); }

/* Cookie table in modal */
.cookie-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-weight: 300;
  margin: 0.8rem 0 1.5rem;
}
.cookie-tbl th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
}
.cookie-tbl td {
  padding: 0.55rem 0.75rem;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-bg-alt);
  vertical-align: top;
}
.cookie-tbl tr:last-child td { border-bottom: none; }


/* ============================================================
   14. COOKIE BANNER & PREFERENCES
   ============================================================ */

/* Main cookie banner — slides up from bottom */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--c-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem var(--pad-x);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}

.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner.is-hidden  { display: none; }

.cookie-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  max-width: 560px;
}

.cookie-text strong { color: var(--c-white); font-weight: 400; }

.cookie-text-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cookie-text-link:hover { color: var(--c-accent-hov); }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Cookie preferences panel (slides over cookie banner) */
.cookie-prefs-wrap {
  position: fixed;
  inset: 0;
  z-index: 960;
  /* ⚠ No display:flex here — [hidden] attr and a class selector share the same
     specificity (0-1-0). If flex lived in the base rule it could beat [hidden]
     in browsers that don't mark it !important, making the backdrop always
     visible and silently blocking all page clicks.
     display is set exclusively via the :not([hidden]) rule below. */
  align-items: flex-end;
  justify-content: center;
}
.cookie-prefs-wrap:not([hidden]) { display: flex; }

.cookie-prefs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  /* Stays at default z-index (auto / 0) so the panel can sit above it */
}

.cookie-prefs-panel {
  position: relative;
  z-index: 1; /* Explicitly above the backdrop — no more stacking ambiguity */
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
}

.prefs-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.prefs-close:hover { color: var(--c-white); }

.prefs-title {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-white);
  margin-bottom: 0.6rem;
}

.prefs-desc {
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.prefs-category {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prefs-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.prefs-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.prefs-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
}

.prefs-cat-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.prefs-save {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem;
  text-align: center;
  border-radius: var(--r-sm);
}


/* ============================================================
   15. SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Initial hidden state */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

/* Visible state, added by IntersectionObserver in script.js */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page first load — hero elements animate in via CSS immediately */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .reveal {
  animation: fadeUp 0.85s var(--ease) both;
  animation-delay: var(--reveal-delay, 0s);
  opacity: 1;         /* Override reveal hidden state for hero */
  transform: none;
}


/* ============================================================
   16. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- Tablet: 1024px ---- */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .testimonials-grid .testimonial:last-child {
    grid-column: span 2;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---- Mobile: 768px ---- */
@media (max-width: 768px) {

  /* Nav — full-screen overlay */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--c-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: transform var(--t-mid) var(--ease);
    z-index: 900;
    padding-inline: 2rem;
  }

  .nav-links.is-open { transform: translateX(0); }

  .nav-link {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.08em;
  }
  .nav-link:hover { color: var(--c-white); }

  .nav-cta {
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    color: var(--c-white);
    border-color: rgba(255,255,255,0.4);
  }

  /* Hero */
  .hero-title { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-actions { gap: 0.75rem; }
  .br-desktop { display: none; }

  /* Stats */
  .stats-row { gap: 0; }
  .stat { min-width: 130px; padding: 1.2rem 1rem; }
  .stat-sep { height: 24px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Philosophy */
  .philosophy-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-visual { order: 2; }
  .philosophy-content { order: 1; }
  .philosophy-num { display: none; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial:last-child {
    grid-column: span 1;
    max-width: none;
  }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-disclaimer-text { text-align: left; }

  /* Cookie banner */
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-actions { gap: 0.5rem; }
}

/* ---- Small mobile: 480px ---- */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-sep { display: none; }
  .stat { flex: 0 0 50%; }
  .form-row { flex-direction: column; }
  .form-input { min-width: 0; }
  .btn-dark { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}
