/* ============================================================
   GIRONDE.ORG — Global Stylesheet
   Tricolore Palette | Premium Static Site
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Tricolore Palette */
  --blue-primary: #002395;
  --blue-dark: #001a6e;
  --blue-light: #0035d4;
  --blue-muted: #e8ecf8;
  --blue-ghost: #f4f6fc;
  --white: #ffffff;
  --red-accent: #ED2939;
  --red-dark: #c41e2a;
  --red-light: #fff0f1;

  /* Neutrals */
  --gray-950: #0c0e14;
  --gray-900: #1a1d2b;
  --gray-800: #2d3048;
  --gray-700: #404560;
  --gray-600: #5a5f7a;
  --gray-500: #7b8099;
  --gray-400: #9da1b4;
  --gray-300: #c2c5d3;
  --gray-200: #dfe1ea;
  --gray-100: #eef0f5;
  --gray-50: #f7f8fb;

  /* Accent Colors */
  --gold: #c5973e;
  --gold-light: #faf5eb;
  --green-nature: #2d7a4f;
  --green-light: #eef7f1;
  --ocean-blue: #1a6fa0;
  --ocean-light: #eaf4fa;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-text: 720px;
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,35,149,0.06), 0 1px 2px rgba(0,35,149,0.04);
  --shadow-md: 0 4px 12px rgba(0,35,149,0.08), 0 2px 4px rgba(0,35,149,0.04);
  --shadow-lg: 0 12px 40px rgba(0,35,149,0.10), 0 4px 12px rgba(0,35,149,0.06);
  --shadow-xl: 0 20px 60px rgba(0,35,149,0.12), 0 8px 20px rgba(0,35,149,0.06);
  --shadow-card: 0 2px 8px rgba(0,35,149,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,35,149,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-light);
}

::selection {
  background: var(--blue-primary);
  color: var(--white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.0625rem; }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.5em;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.overline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--text {
  max-width: var(--container-text);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--lg {
  padding: var(--space-5xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Skip to Content (A11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,35,149,0.06);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,35,149,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: -0.02em;
}

.site-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--blue-primary);
  background: var(--blue-ghost);
}

.main-nav a.active {
  color: var(--blue-primary);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
}

/* CTA Button in Nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--blue-primary);
  padding: 0.5rem 1.125rem;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast), transform var(--transition-fast);
  margin-left: var(--space-sm);
}

.nav-cta:hover {
  background: var(--blue-light);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--gray-800);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Navigation */
@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-xs);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,35,149,0.1);
  }

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

  .main-nav a {
    font-size: 1.0625rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius-lg);
  }

  .main-nav a.active::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius-lg);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--blue-primary);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,35,149,0.5) 0%, rgba(0,26,110,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xl);
  animation: fadeSlideDown 0.8s var(--ease-out) 0.2s both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  animation: fadeSlideDown 0.8s var(--ease-out) 0.4s both;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeSlideDown 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s var(--ease-out) 0.8s both;
}

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

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeSlideDown 0.8s var(--ease-out) 1.2s both;
}

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

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

/* Sub-page Hero */
.hero--sub {
  min-height: 50vh;
  padding-top: 72px;
}

.hero--sub .hero-content {
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.hero--sub h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.625rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

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

.btn--primary:hover {
  background: var(--gray-100);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

.btn--red {
  background: var(--red-accent);
  color: var(--white);
}

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

.btn--outline {
  background: transparent;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}

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

.btn--ghost {
  background: transparent;
  color: var(--blue-primary);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--blue-light);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.125rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* ============================================================
   BUCKET CARDS (Homepage Sections)
   ============================================================ */
.buckets {
  position: relative;
  z-index: 3;
  margin-top: -80px;
}

.bucket-card {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.bucket-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  color: inherit;
}

.bucket-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.bucket-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.bucket-card:hover .bucket-card__image img {
  transform: scale(1.06);
}

.bucket-card__tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

.bucket-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bucket-card__body h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.bucket-card:hover .bucket-card__body h3 {
  color: var(--blue-primary);
}

.bucket-card__body p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
}

.bucket-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-top: var(--space-md);
}

.bucket-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.bucket-card:hover .bucket-card__link svg {
  transform: translateX(4px);
}

/* ============================================================
   ATTRACTION CARDS (Tourism Pages)
   ============================================================ */
.attraction-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.attraction-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.attraction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.attraction-card:hover .attraction-card__image img {
  transform: scale(1.05);
}

.attraction-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,35,149,0.9);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.attraction-card__body {
  padding: var(--space-xl);
  flex: 1;
}

.attraction-card__body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}

.attraction-card__body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1em;
}

.attraction-card__body p:last-child {
  margin-bottom: 0;
}

/* Quarter Cards */
.quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.quarter-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quarter-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.quarter-card h4 {
  font-size: 1.1rem;
  color: var(--blue-primary);
  margin-bottom: 0.4em;
}

.quarter-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ============================================================
   STATS BAR — "Gironde at a Glance"
   ============================================================ */
.stats-bar {
  background: var(--blue-primary);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,53,212,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(237,41,57,0.15) 0%, transparent 60%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header .overline {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

/* Feature Row (text + image) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__content {
  padding: var(--space-xl) 0;
}

.feature-row__content .overline {
  margin-bottom: var(--space-md);
  display: block;
}

.feature-row__content h2 {
  margin-bottom: var(--space-md);
}

.feature-row__content p {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

.feature-row__image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

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

/* Decorative corner accent */
.feature-row__image::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 60px;
  height: 60px;
  border-top: 3px solid var(--blue-primary);
  border-left: 3px solid var(--blue-primary);
  border-radius: var(--border-radius-xl) 0 0 0;
  z-index: 1;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    direction: ltr;
  }
}

/* ============================================================
   CONTENT CARDS (Sub-pages)
   ============================================================ */
.content-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.content-card__image {
  height: 200px;
  overflow: hidden;
}

.content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.content-card:hover .content-card__image img {
  transform: scale(1.05);
}

.content-card__body {
  padding: var(--space-xl);
}

.content-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.content-card__body p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================================
   INFO GRID (Practical Gironde)
   ============================================================ */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  color: inherit;
  display: block;
}

.info-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.info-card__icon--blue {
  background: var(--blue-muted);
  color: var(--blue-primary);
}

.info-card__icon--red {
  background: var(--red-light);
  color: var(--red-accent);
}

.info-card__icon--green {
  background: var(--green-light);
  color: var(--green-nature);
}

.info-card__icon--gold {
  background: var(--gold-light);
  color: var(--gold);
}

.info-card__icon svg {
  width: 24px;
  height: 24px;
}

.info-card h4 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.info-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Info Boxes (inline highlights) */
.info-box {
  background: var(--blue-ghost);
  border: 1px solid var(--blue-muted);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.info-box--green {
  background: var(--green-light);
  border-color: #c8e6d2;
  border-left-color: var(--green-nature);
}

.info-box--gold {
  background: var(--gold-light);
  border-color: #e8dcc5;
  border-left-color: var(--gold);
}

.info-box h3,
.info-box h4 {
  margin-bottom: var(--space-sm);
  color: var(--blue-primary);
}

.info-box--green h3,
.info-box--green h4 {
  color: var(--green-nature);
}

.info-box--gold h3,
.info-box--gold h4 {
  color: var(--gold);
}

.info-box ul {
  margin-left: 1.2em;
  margin-bottom: 0;
}

.info-box li {
  margin-bottom: 0.4em;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Data Grid (stats display) */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.data-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.data-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.data-card svg {
  width: 32px;
  height: 32px;
  color: var(--blue-primary);
  margin-bottom: var(--space-md);
}

.data-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-bottom: var(--space-xs);
}

.data-card .value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: var(--space-sm);
}

.data-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

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

/* ============================================================
   INTERACTIVE MAP
   ============================================================ */
.map-section {
  background: var(--gray-50);
}

.map-container {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 480px;
  position: relative;
}

#gironde-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Remove Leaflet attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* ============================================================
   NEWSLETTER / CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--blue-primary);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(237,41,57,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(0,53,212,0.3) 0%, transparent 50%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.cta-banner .btn {
  margin: 0 var(--space-sm);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* ============================================================
   PROSE CONTENT (Article pages)
   ============================================================ */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-800);
}

.prose h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--blue-muted);
}

.prose h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h4 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose p {
  margin-bottom: var(--space-lg);
}

.prose a {
  color: var(--blue-primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,35,149,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.prose a:hover {
  text-decoration-color: var(--blue-primary);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.prose li {
  margin-bottom: var(--space-sm);
}

.prose strong {
  font-weight: 700;
  color: var(--gray-900);
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 3px solid var(--blue-primary);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--blue-ghost);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--gray-700);
}

.prose figure {
  margin: var(--space-2xl) 0;
}

.prose figcaption {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   TABLE OF CONTENTS (Sidebar)
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-3xl);
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.toc h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  margin-bottom: var(--space-xs);
}

.toc a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: var(--space-xs) var(--space-sm);
  border-left: 2px solid transparent;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: all var(--transition-fast);
}

.toc a:hover {
  color: var(--blue-primary);
  background: var(--blue-ghost);
}

.toc a.active {
  color: var(--blue-primary);
  font-weight: 600;
  border-left-color: var(--blue-primary);
  background: var(--blue-ghost);
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-950);
  color: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary) 33%, var(--white) 33%, var(--white) 66%, var(--red-accent) 66%);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  list-style: none;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-blue { color: var(--blue-primary); }
.text-red { color: var(--red-accent); }
.text-muted { color: var(--gray-500); }
.bg-ghost { background: var(--gray-50); }
.bg-blue-ghost { background: var(--blue-ghost); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content {
  margin: 14px 18px !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--blue-primary);
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm) !important;
}

/* ============================================================
   PAGE-SPECIFIC BACKGROUNDS
   ============================================================ */
.section--nature { background: linear-gradient(180deg, var(--green-light) 0%, var(--white) 100%); }
.section--wine { background: linear-gradient(180deg, var(--gold-light) 0%, var(--white) 100%); }
.section--ocean { background: linear-gradient(180deg, var(--ocean-light) 0%, var(--white) 100%); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .hero-scroll,
  .menu-toggle,
  .cta-banner,
  .map-section,
  .toc { display: none; }

  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; background: none; }
  .hero h1, .hero p { color: #000; }
}
