/* ============================================
   CULINARY CREW — main.css
   Source: Phase 9 Visual Design System (approved 2026-05-28)
   ============================================ */


/* ============================================
   1. DESIGN TOKENS (CSS Custom Properties)
   Phase 9 §3, §4, §5
   ============================================ */

:root {
  /* --- Colors (Phase 7 §4 / Phase 9 §8.1) --- */
  --color-deep-navy: #1D3557;
  --color-deep-navy-dark: #15273F;
  --color-warm-white: #FAFAF8;
  --color-slate-grey: #4A4A4A;
  --color-olive-green: #9DB5B2;
  --color-soft-navy: #3A506B;
  --color-cream-text: #F5F0EB;
  --color-silver-grey: #EAEAEA;
  --color-white: #FFFFFF;
  --color-black: #010101;

  /* Error states (Phase 9 §5.4 / §8.1) */
  --color-error-light: #B23A36;
  --color-error-dark: #F2A19A;

  /* --- Typography Scale — Cinematic Premium --- */
  /* Elevated from Phase 9 base; display/h1/h2 pushed up for editorial impact */
  --type-display: 4rem;
  --type-h1: 3rem;
  --type-h2: 2.25rem;
  --type-h3: 1.563rem;
  --type-h4: 1.25rem;
  --type-body: 1rem;
  --type-body-lg: 1.188rem;
  --type-small: 0.875rem;
  --type-xs: 0.75rem;
  --type-button: 0.813rem;
  --type-nav: 0.813rem;
  --type-label: 0.75rem;
  --type-overline: 0.688rem;

  /* --- Spacing Scale — Premium Generous --- */
  /* Dramatically increased section spacing inspired by closdessens / esmechicago */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-section: 120px;
  --space-section-lg: 160px;

  /* --- Transitions — Cinematic Easing --- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-reveal: 1s cubic-bezier(0.16, 1, 0.3, 1);
  --easing-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows — Deeper, Cinematic --- */
  --shadow-image: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-image-hover: 0 20px 60px rgba(0, 0, 0, 0.18);
  --shadow-focus-light: 0 0 0 3px rgba(29, 53, 87, 0.3);
  --shadow-focus-dark: 0 0 0 3px rgba(157, 181, 178, 0.4);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.14);

  /* --- Border Radius (Phase 9 §5.3) --- */
  --radius-button: 0;

  /* --- Z-indexes --- */
  --z-nav: 1000;
  --z-mobile-overlay: 1500;
  --z-consent: 2000;

  /* --- Content --- */
  --content-max-width: 1200px;
  --form-max-width: 640px;
}


/* ============================================
   2. FONT DECLARATIONS
   Phase 9 §3.1 — 7 WOFF2 files, font-display: swap
   ============================================ */

/* Playfair Display — Headlines */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-bold.woff2') format('woff2');
}

/* Open Sans — Body */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-bold.woff2') format('woff2');
}

/* Raleway — Accents, buttons, nav, labels */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/raleway-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/raleway-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/raleway-regular.woff2') format('woff2');
}


/* ============================================
   3. RESET / NORMALIZE
   Phase 9 §3.3, §5.5
   ============================================ */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-slate-grey);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: none;
}


/* ============================================
   4. BASE TYPOGRAPHY
   Phase 9 §3
   ============================================ */

/* --- Headings — Editorial, Cinematic --- */

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: var(--type-h1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-deep-navy);
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--type-h2);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--color-deep-navy);
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--type-h3);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--color-deep-navy);
}

h4 {
  font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--type-h4);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-deep-navy);
}

/* Heading spacing — generous like closdessens/esmé */
h2 {
  margin-top: var(--space-section);
  margin-bottom: var(--space-lg);
}

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

/* Reset heading margin when first child in a section */
.section h2:first-child,
.section h3:first-child {
  margin-top: 0;
}

/* --- Body text variants --- */

.text-lead {
  font-size: var(--type-body-lg);
  line-height: 1.75;
  max-width: 36em;
}

.text-small {
  font-size: var(--type-small);
  line-height: 1.6;
}

.text-xs {
  font-size: var(--type-xs);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Overline — uppercase label style (inspired by esmechicago) */
.text-overline {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: var(--type-overline);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-olive-green);
  display: block;
  margin-bottom: var(--space-md);
}

/* Text containers — max line length */
.text-container {
  max-width: 36em;
}

/* --- Dark section typography overrides (Phase 9 §3.3) --- */

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark {
  color: var(--color-cream-text);
}

.section--dark a:not(.btn-primary):not(.btn-nav-cta) {
  color: var(--color-olive-green);
}

.section--dark a:not(.btn-primary):not(.btn-nav-cta):hover {
  color: var(--color-white);
}


/* ============================================
   5. LAYOUT UTILITIES
   Phase 9 §4.2, §4.3
   ============================================ */

/* --- Skip link (Phase 9 §8.2) --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-deep-navy);
  color: var(--color-white);
  font-family: 'Raleway', sans-serif;
  font-size: var(--type-small);
  font-weight: 500;
  border-radius: var(--radius-button);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- Visually hidden (screen-reader only) --- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: 800px;
}

/* --- Sections — Premium Generous Spacing --- */

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section--dark {
  background-color: var(--color-deep-navy);
  color: var(--color-cream-text);
  position: relative;
}

/* Grain texture overlay for dark sections — subtle, cinematic */
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.section--dark-deep {
  background-color: var(--color-deep-navy-dark);
  color: var(--color-cream-text);
  position: relative;
}

.section--dark-deep::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.section--warm {
  background-color: var(--color-warm-white);
  color: var(--color-slate-grey);
}

/* Final CTA section — generous but tighter than main sections */
.section--cta-final {
  text-align: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Hero section spacing variant */
.section--hero {
  padding-top: var(--space-section);
  padding-bottom: var(--space-3xl);
}

/* --- Two-column layout — Editorial, Cinematic --- */

.two-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.two-col__image {
  width: 100%;
  overflow: hidden;
}

.two-col__image img,
.two-col__image .placeholder-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.two-col:hover .two-col__image img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .two-col:hover .two-col__image img {
    transform: none;
  }
}

.section--warm .two-col__image img {
  box-shadow: var(--shadow-image);
}

.two-col__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.two-col__text p {
  line-height: 1.75;
}

.two-col__text .btn-primary {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

/* --- Text alignment --- */

.text-center {
  text-align: center;
}


/* ============================================
   RESPONSIVE — SECTIONS 1–5
   Phase 9 §6
   ============================================ */

/* --- Tablet (≥ 768px) --- */

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .section--hero {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .two-col {
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .two-col__image,
  .two-col__text {
    width: 50%;
  }

  /* Reverse image/text order for alternating sections */
  .two-col--reverse {
    flex-direction: row-reverse;
  }

  .landing-hero {
    min-height: 100vh;
  }
}

/* --- Desktop (≥ 1024px) --- */

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-section-lg);
    padding-bottom: var(--space-section-lg);
  }

  .section--hero {
    padding-top: var(--space-section-lg);
    padding-bottom: var(--space-section-lg);
  }

  .two-col {
    gap: var(--space-3xl);
  }
}

/* --- Mobile typography scale — Cinematic even on small screens --- */

@media (max-width: 767px) {
  :root {
    --type-display: 2.5rem;
    --type-h1: 2rem;
    --type-h2: 1.625rem;
    --type-h3: 1.25rem;
    --type-body-lg: 1.063rem;
  }
}


/* ============================================
   6. COMPONENTS
   Phase 9 §5
   ============================================ */

/* --- 6.1 Navigation Bar — Refined, Minimal, Premium --- */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 64px;
  background-color: var(--color-deep-navy);
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}

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

.nav-bar__logo {
  display: flex;
  align-items: center;
}

.nav-bar__logo img,
.nav-bar__logo svg {
  height: 28px;
  width: auto;
  transition: opacity var(--transition-base);
}

.nav-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Desktop nav items — hidden on mobile */
.nav-bar__links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.nav-bar__links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: var(--type-nav);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.35s ease;
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid transparent;
}

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

.nav-bar__links a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-olive-green);
}

/* Hamburger button */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav-hamburger__line::before,
.nav-hamburger__line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition-base);
}

.nav-hamburger__line::before {
  top: -7px;
}

.nav-hamburger__line::after {
  top: 7px;
}

/* --- 6.2 Mobile Navigation Overlay — Cinematic --- */

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: var(--z-mobile-overlay);
  background-color: var(--color-deep-navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .nav-mobile-overlay {
    transition: none;
  }
}

.nav-mobile-overlay a {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--type-h2);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
  letter-spacing: -0.005em;
}

.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active {
  color: var(--color-white);
  transform: translateX(4px);
}

.nav-mobile-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  font-size: 1.5rem;
}

.nav-mobile-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- 6.3 Footer — Premium, Spacious --- */

.footer {
  background-color: var(--color-deep-navy);
  color: var(--color-cream-text);
  padding-top: var(--space-section-lg);
  padding-bottom: var(--space-2xl);
  position: relative;
}

/* Grain texture on footer */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__col-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

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

.footer__logo img,
.footer__logo svg {
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: var(--type-small);
  color: var(--color-cream-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer__links a {
  font-size: var(--type-small);
  color: var(--color-cream-text);
  transition: color var(--transition-fast);
}

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

.footer__contact-item {
  font-size: var(--type-small);
  color: var(--color-cream-text);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-2xs);
}

.footer__contact-item a {
  color: var(--color-cream-text);
  transition: color var(--transition-fast);
}

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

/* Footer newsletter (Phase 9 §5.9) */
.footer__newsletter {
  padding-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
}

.footer__newsletter-form input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-soft-navy);
  color: var(--color-cream-text);
  padding: 12px 0;
  font-size: var(--type-body);
  width: 100%;
}

.footer__newsletter-form input[type="email"]::placeholder {
  color: rgba(245, 240, 235, 0.4);
}

.footer__newsletter-form input[type="email"]:focus {
  outline: none;
  border-bottom: 2px solid var(--color-olive-green);
}

.footer__newsletter-privacy {
  font-size: var(--type-xs);
  color: var(--color-cream-text);
}

.footer__newsletter-privacy a {
  color: var(--color-cream-text);
  text-decoration: underline;
}

/* Footer social icons */
.footer__social {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__social a {
  color: var(--color-cream-text);
  transition: color var(--transition-fast);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Footer servicegebied */
.footer__servicegebied {
  font-size: var(--type-small);
  color: var(--color-cream-text);
  padding-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* Footer legal line */
.footer__legal {
  font-size: var(--type-xs);
  color: var(--color-silver-grey);
  padding-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__legal a {
  color: var(--color-silver-grey);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

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

/* Footer column structure (landing pages) */
.footer__col {
  position: relative;
  z-index: 1;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer__col--nav,
.footer__col--contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer__heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: var(--type-overline);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-olive-green);
  margin-bottom: var(--space-sm);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid var(--color-soft-navy);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__service-area {
  font-size: var(--type-small);
  color: var(--color-cream-text);
}

/* --- 6.4 Buttons (Phase 9 §5.3) --- */

/* Primary CTA — Premium, Editorial */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: var(--type-button);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 40px;
  min-height: 52px;
  border-radius: var(--radius-button);
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-soft-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(29, 53, 87, 0.25);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-deep-navy);
  outline-offset: 2px;
}

/* Primary CTA — dark background variant */
.btn-primary--dark {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-primary--dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary--dark:focus-visible {
  outline: 3px solid var(--color-olive-green);
  outline-offset: 2px;
}

/* Secondary CTA — text link with arrow */
.btn-secondary {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: var(--type-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-soft-navy);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.btn-secondary:hover {
  color: var(--color-deep-navy);
  letter-spacing: 0.14em;
}

.btn-secondary::after {
  content: ' \2192';
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover::after {
  transform: translateX(4px);
}

.section--dark .btn-secondary {
  color: var(--color-olive-green);
}

.section--dark .btn-secondary:hover {
  color: var(--color-white);
}

/* Compact nav CTA — refined, minimal */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: var(--type-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* --- 6.5 Gateway Segment Cards — Cinematic Hover --- */

.card-segment {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
}

.card-segment__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.85);
}

.card-segment:hover .card-segment__image {
  transform: scale(1.05);
  filter: brightness(1);
}

@media (prefers-reduced-motion: reduce) {
  .card-segment:hover .card-segment__image {
    transform: none;
  }
  .card-segment__image {
    filter: brightness(0.9);
  }
}

.card-segment__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(21, 39, 63, 0.3) 65%,
    rgba(21, 39, 63, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background 0.6s ease;
}

.card-segment:hover .card-segment__overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 30%,
    rgba(21, 39, 63, 0.25) 55%,
    rgba(21, 39, 63, 0.75) 100%
  );
}

.card-segment__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: var(--type-h3);
  color: var(--color-white);
  margin-bottom: var(--space-2xs);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-segment:hover .card-segment__title {
  transform: translateY(-4px);
}

.card-segment__subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: var(--type-xs);
  letter-spacing: 0.06em;
  color: rgba(245, 240, 235, 0.75);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-segment:hover .card-segment__subtitle {
  opacity: 1;
  color: var(--color-cream-text);
  transform: translateY(-4px);
}

/* Placeholder for segment cards (no photo yet) */
.card-segment__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--color-soft-navy);
}

@media (prefers-reduced-motion: reduce) {
  .card-segment__title,
  .card-segment__subtitle {
    transition: none;
    transform: none;
  }
  .card-segment:hover .card-segment__title,
  .card-segment:hover .card-segment__subtitle {
    transform: none;
  }
}

/* --- 6.6 Two-column service sections — Editorial, Cinematic --- */

.two-col-service {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.two-col-service__image {
  width: 100%;
  overflow: hidden;
}

.two-col-service__image img,
.two-col-service__image .placeholder-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.two-col-service:hover .two-col-service__image img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .two-col-service:hover .two-col-service__image img {
    transform: none;
  }
}

.section--warm .two-col-service__image img {
  box-shadow: var(--shadow-image);
}

.two-col-service__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- 6.7 Form Fields (Phase 9 §5.4) --- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.form-field label {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: var(--type-label);
  letter-spacing: 0.02em;
  color: var(--color-deep-navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-silver-grey);
  padding: 12px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: var(--type-body);
  color: var(--color-slate-grey);
  width: 100%;
  transition: border-color var(--transition-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(74, 74, 74, 0.45);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--color-deep-navy);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  box-shadow: var(--shadow-focus-light);
}

/* Form field error state */
.form-field--error input,
.form-field--error select,
.form-field--error textarea {
  border-bottom: 2px solid var(--color-error-light);
}

.form-field__error {
  font-size: var(--type-small);
  color: var(--color-error-light);
  margin-top: var(--space-2xs);
}

/* Dark background form variant */
.form-field--dark label {
  color: var(--color-cream-text);
}

.form-field--dark input,
.form-field--dark select,
.form-field--dark textarea {
  border-bottom-color: var(--color-soft-navy);
  color: var(--color-cream-text);
}

.form-field--dark input::placeholder,
.form-field--dark textarea::placeholder {
  color: rgba(245, 240, 235, 0.4);
}

.form-field--dark input:focus,
.form-field--dark select:focus,
.form-field--dark textarea:focus {
  border-bottom-color: var(--color-olive-green);
}

.form-field--dark input:focus-visible,
.form-field--dark select:focus-visible,
.form-field--dark textarea:focus-visible {
  box-shadow: var(--shadow-focus-dark);
}

.form-field--dark.form-field--error input {
  border-bottom-color: var(--color-error-dark);
}

.form-field--dark .form-field__error {
  color: var(--color-error-dark);
}

/* Select dropdown */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

/* Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox (Phase 9 §5.4) */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  cursor: pointer;
  min-height: 44px;
  padding-top: var(--space-2xs);
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-silver-grey);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--color-deep-navy);
  border-color: var(--color-deep-navy);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
  box-shadow: var(--shadow-focus-light);
}

.form-checkbox span,
.form-checkbox label {
  font-size: var(--type-body);
  line-height: 1.5;
}

/* Dark checkbox variant */
.form-checkbox--dark input[type="checkbox"] {
  border-color: var(--color-soft-navy);
}

.form-checkbox--dark input[type="checkbox"]:checked {
  background-color: var(--color-olive-green);
  border-color: var(--color-olive-green);
}

.form-checkbox--dark input[type="checkbox"]:checked::after {
  border-color: var(--color-deep-navy);
}

.form-checkbox--dark input[type="checkbox"]:focus-visible {
  box-shadow: var(--shadow-focus-dark);
}

/* Checkbox error state */
.form-checkbox--error input[type="checkbox"] {
  border-color: var(--color-error-light);
}

/* Honeypot — visually hidden spam-prevention field */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form submission states */
.form-success {
  color: var(--color-olive-green);
  font-size: var(--type-body);
  padding: var(--space-md);
  text-align: center;
}

.form-error {
  color: var(--color-error-light);
  font-size: var(--type-body);
  padding: var(--space-md);
  text-align: center;
}

/* --- 6.8 Cookie Consent Banner (Phase 9 §5.7) --- */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-consent);
  background-color: var(--color-deep-navy);
  color: var(--color-cream-text);
  padding: var(--space-md) 0;
  display: none;
}

.consent-banner.is-visible {
  display: block;
}

.consent-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.consent-banner__text {
  font-size: var(--type-body);
  line-height: 1.6;
}

.consent-banner__text a {
  color: var(--color-cream-text);
  text-decoration: underline;
}

.consent-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.consent-banner__reject {
  font-family: 'Open Sans', sans-serif;
  font-size: var(--type-body);
  color: var(--color-cream-text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: var(--space-2xs) 0;
}

.consent-banner__reject:hover {
  color: var(--color-white);
}

/* --- 6.9 Process Steps — Refined, Editorial --- */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.process-step__number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--color-deep-navy);
  color: var(--color-deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--type-body-lg);
}

.section--dark .process-step__number {
  border-color: var(--color-olive-green);
  color: var(--color-olive-green);
  background-color: transparent;
}

.process-step__content h4,
.process-step h4 {
  margin-bottom: var(--space-2xs);
}

.process-step p {
  line-height: 1.7;
}

.process-steps__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- 6.10 FAQ Component — Refined, Editorial --- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-lg);
}

.faq__item {
  border-bottom: 1px solid rgba(234, 234, 234, 0.5);
}

.faq__item:first-child {
  border-top: 1px solid rgba(234, 234, 234, 0.5);
}

.faq__question {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: var(--type-body);
  letter-spacing: 0.02em;
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--space-xl);
  color: var(--color-deep-navy);
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--color-soft-navy);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-olive-green);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item[open] .faq__question::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
}

.faq__answer {
  padding-bottom: var(--space-lg);
  color: var(--color-slate-grey);
  padding-right: var(--space-xl);
}

.faq__answer p {
  line-height: 1.75;
}

/* Dark section FAQ variants */
.section--dark .faq__item {
  border-color: rgba(58, 80, 107, 0.4);
}

.section--dark .faq__question {
  color: var(--color-cream-text);
}

.section--dark .faq__question:hover {
  color: var(--color-white);
}

.section--dark .faq__question::after {
  color: var(--color-olive-green);
}

.section--dark .faq__answer {
  color: rgba(245, 240, 235, 0.8);
}

/* --- 6.11 Newsletter Signup (Blok 2) --- */

.newsletter-signup {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-signup h3 {
  margin-bottom: var(--space-xs);
}

.newsletter-signup p {
  margin-bottom: var(--space-md);
}

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

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

/* --- 6.12 Menu Directions — Editorial Cards --- */

.menu-directions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.menu-directions__item {
  padding: var(--space-lg) var(--space-lg);
  border: 1px solid rgba(58, 80, 107, 0.3);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.menu-directions__item:hover {
  border-color: rgba(157, 181, 178, 0.4);
  background-color: rgba(255, 255, 255, 0.02);
}

.menu-directions__item h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-white);
  font-size: var(--type-h4);
}

.menu-directions__item p {
  color: rgba(245, 240, 235, 0.75);
  line-height: 1.75;
}

.menu-directions__item h4 {
  margin-bottom: var(--space-xs);
  color: var(--color-cream-text);
}

/* --- 6.13 Subroutes — Editorial Cards --- */

.subroutes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.subroutes__item {
  padding: var(--space-lg);
  border: 1px solid rgba(234, 234, 234, 0.4);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.subroutes__item:hover {
  border-color: var(--color-olive-green);
}

.subroutes__item h4 {
  margin-bottom: var(--space-xs);
}

.subroutes__item p {
  line-height: 1.75;
}

/* Dark section subroute variants */
.section--dark .subroutes__item {
  border-color: rgba(58, 80, 107, 0.3);
}

.section--dark .subroutes__item:hover {
  border-color: rgba(157, 181, 178, 0.4);
  background-color: rgba(255, 255, 255, 0.02);
}

/* --- 6.14 Credibility Block — Editorial, Centered --- */

.credibility-block {
  text-align: center;
  max-width: 36em;
  margin: 0 auto;
}

.credibility-block h2 {
  margin-bottom: var(--space-lg);
}

.credibility-block p {
  line-height: 1.8;
  font-size: var(--type-body-lg);
}

/* --- 6.15 About Teaser — Editorial, Centered --- */

.about-teaser {
  text-align: center;
  max-width: 36em;
  margin: 0 auto;
}

.about-teaser h3 {
  margin-bottom: var(--space-lg);
}

.about-teaser p {
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* --- 6.16 TBD Placeholder (Blok 2) --- */

.tbd {
  display: inline;
  font-style: italic;
  color: var(--color-olive-green);
}

.tbd::before {
  content: '[';
}

.tbd::after {
  content: ']';
}

/* --- 6.17 Language Toggle (Phase 9 §5.1) --- */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: var(--type-nav);
}

.lang-toggle__separator {
  color: var(--color-cream-text);
  user-select: none;
}

.lang-toggle a {
  color: var(--color-cream-text);
  transition: color var(--transition-fast);
}

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

.lang-toggle a.active {
  color: var(--color-white);
  font-weight: 700;
}

/* --- 6.18 Trust / Testimonial Placeholders --- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  padding: var(--space-md) 0;
}

.testimonial {
  position: relative;
  padding-left: var(--space-xl);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--type-h3);
  font-weight: 400;
  line-height: 1.6;
  max-width: 36em;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  color: var(--color-olive-green);
  line-height: 1;
  opacity: 0.6;
}

.section--dark .testimonial::before {
  color: var(--color-olive-green);
  opacity: 0.5;
}

/* --- 6.19 Placeholder Image Utility (Phase 11 §6) --- */

.placeholder-image {
  background-color: var(--color-silver-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--dark .placeholder-image {
  background-color: var(--color-deep-navy-dark);
}


/* ============================================
   7. PAGE-SPECIFIC
   Phase 9 §5.5, §5.6
   ============================================ */

/* --- Gateway page — Cinematic, Full-screen --- */

.gateway {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-deep-navy-dark);
  color: var(--color-white);
}

.gateway__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gateway__video-wrap video,
.gateway__video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.gateway__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 39, 63, 0.4) 0%,
    rgba(21, 39, 63, 0.25) 40%,
    rgba(21, 39, 63, 0.5) 70%,
    rgba(21, 39, 63, 0.7) 100%
  );
  z-index: 1;
}

.gateway__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  width: 100%;
  max-width: var(--content-max-width);
}

/* Gateway title — dramatic, cinematic */
.gateway__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: var(--type-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.gateway__subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: var(--type-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.7);
  text-align: center;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.gateway__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 960px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.gateway__lang {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 3;
}

.gateway__logo {
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.gateway__logo img,
.gateway__logo svg {
  height: 64px;
  width: auto;
}

.gateway__micro-link {
  margin-top: var(--space-xl);
  font-family: 'Raleway', sans-serif;
  font-size: var(--type-xs);
  letter-spacing: 0.06em;
  color: rgba(245, 240, 235, 0.5);
  opacity: 0;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.gateway__micro-link a {
  color: var(--color-olive-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.gateway__micro-link a:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gateway__title,
  .gateway__subtitle,
  .gateway__cards,
  .gateway__logo,
  .gateway__micro-link {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .gateway__video-wrap video,
  .gateway__video-wrap img {
    animation: none;
  }
}

/* --- Landing page hero — Full-viewport, Cinematic --- */

.landing-hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
}

.landing-hero__bg img,
.landing-hero__bg .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurnsHero 30s ease-in-out infinite alternate;
}

@keyframes kenBurnsHero {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__bg img,
  .landing-hero__bg .placeholder-image {
    animation: none;
  }
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 39, 63, 0.2) 0%,
    rgba(21, 39, 63, 0.15) 30%,
    rgba(21, 39, 63, 0.45) 60%,
    rgba(21, 39, 63, 0.75) 100%
  );
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-section-lg);
  padding-bottom: var(--space-section);
  max-width: 640px;
}

.landing-hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.landing-hero__content .text-lead {
  color: rgba(245, 240, 235, 0.85);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.landing-hero__content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__content h1,
  .landing-hero__content .text-lead,
  .landing-hero__content .btn-primary {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --- Quote form page --- */

.quote-form {
  max-width: var(--form-max-width);
  margin: 0 auto;
}

.quote-form__form {
  margin-top: var(--space-lg);
}

.quote-form__form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

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

/* Button loading state sub-elements */
.btn-primary__text,
.btn-primary__loading {
  display: inline;
}

.btn-primary__loading[hidden] {
  display: none;
}

/* Page-specific modifiers */
.contact-page .quote-form {
  max-width: var(--form-max-width);
}

.thank-you-page .quote-form {
  text-align: center;
}

.thank-you-page .quote-form p {
  margin-bottom: var(--space-sm);
}

/* TBD placeholder marker */
.tbd-placeholder {
  font-style: italic;
  color: var(--color-olive-green);
}

/* --- About page --- */

.about-page .text-container {
  max-width: 38em;
}

/* --- Privacy page (long-form text) --- */

.privacy-page h2 {
  margin-top: var(--space-xl);
}

.privacy-page h3 {
  margin-top: var(--space-lg);
}

.privacy-page p {
  margin-bottom: var(--space-sm);
}

.privacy-page ul {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  list-style: disc;
}

.privacy-page li {
  margin-bottom: var(--space-2xs);
}

/* Privacy page table → card reflow on mobile (Phase 9 §6.3) */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-silver-grey);
  font-size: var(--type-small);
}

.privacy-table th {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: var(--color-deep-navy);
  font-size: var(--type-label);
}

/* --- Thank-you page --- */

.thank-you-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- 404 page --- */

.error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.error-404 h1 {
  font-size: var(--type-display);
  margin-bottom: var(--space-sm);
}


/* ============================================
   8. ANIMATIONS / MOTION
   Phase 9 §7
   ============================================ */

/* --- Scroll reveal — Cinematic, staggered children --- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered child reveal — each child fades in sequence */
.scroll-reveal.is-visible > *:nth-child(1) { transition-delay: 0s; }
.scroll-reveal.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

/* Stagger setup — children start invisible too */
.scroll-reveal > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-reveal > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-bar {
    transition: none;
  }

  .btn-primary,
  .btn-primary--dark,
  .btn-nav-cta,
  .btn-secondary,
  a {
    transition: none;
  }
}


/* ============================================
   9. RESPONSIVE BREAKPOINTS
   Phase 9 §6 — Desktop and wide overrides
   (Mobile base styles are already default)
   ============================================ */

/* --- Tablet (≥ 768px) --- */

@media (min-width: 768px) {
  .two-col-service {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .two-col-service__image,
  .two-col-service__content {
    width: 50%;
  }

  .two-col-service--reverse {
    flex-direction: row-reverse;
  }

  .consent-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .consent-banner__actions {
    flex-direction: row;
    width: auto;
    flex-shrink: 0;
  }

  .footer__newsletter-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .footer__newsletter-form input[type="email"] {
    flex: 1;
  }

  .privacy-table thead {
    display: table-header-group;
  }

  /* Newsletter row — side by side on tablet+ */
  .newsletter-signup__row {
    flex-direction: row;
    align-items: flex-end;
  }

  .newsletter-signup__row input[type="email"] {
    flex: 1;
  }

}

/* --- Desktop (≥ 1024px) --- */

@media (min-width: 1024px) {
  .nav-bar {
    height: 80px;
    background-color: transparent;
  }

  .nav-bar.is-scrolled {
    background-color: rgba(21, 39, 63, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .nav-bar__logo img,
  .nav-bar__logo svg {
    height: 36px;
  }

  .nav-bar__inner {
    padding: 0 var(--space-xl);
  }

  .nav-bar__links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .gateway__cards {
    flex-direction: row;
  }

  .card-segment__image,
  .card-segment__placeholder {
    aspect-ratio: 4 / 5;
  }

  .footer__grid {
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .footer__grid > div {
    flex: 1;
  }

  .process-steps {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .process-step__content h4,
  .process-step h4 {
    text-align: center;
  }

  .gateway__logo img,
  .gateway__logo svg {
    height: 80px;
  }

  .landing-hero {
    min-height: 100vh;
  }
}

/* --- Wide (≥ 1440px) --- */

@media (min-width: 1440px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile process step connecting line */
@media (max-width: 767px) {
  .process-step {
    position: relative;
    padding-left: 64px;
  }

  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -32px;
    width: 1px;
    background-color: var(--color-silver-grey);
  }

  .section--dark .process-step:not(:last-child)::after {
    background-color: rgba(157, 181, 178, 0.3);
  }

  .process-step__number {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* --- Mobile-specific: privacy table card reflow (Phase 9 §6.3) --- */

@media (max-width: 767px) {
  .privacy-table thead {
    display: none;
  }

  .privacy-table tr {
    display: block;
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid var(--color-silver-grey);
  }

  .privacy-table td {
    display: block;
    border: none;
    padding: var(--space-2xs) 0;
  }

  .privacy-table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: var(--type-label);
    color: var(--color-deep-navy);
    margin-bottom: var(--space-3xs);
  }
}
