/**
 * Axiom Café - Design System & Styles
 * Aesthetic: Warm Futurism - Robotic Precision meets Coffee Culture
 * Last updated: 2025-12-13
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* === Color Palette === */
  /* Primary - Sophisticated Coffee Tones (cooled to harmonize with accent) */
  --color-espresso: #1a1a1f;
  --color-dark-roast: #2a2a30;
  --color-medium-roast: #3d3d45;
  --color-light-roast: #5a5a65;
  --color-crema: #c4b8a8;
  --color-latte: #eae6e0;
  --color-milk: #f7f6f4;

  /* Accent - Steel Blue Teal (Axiom Brand) */
  --color-accent: #98bdcc;
  --color-accent-dark: #7a9fb0;
  --color-accent-darker: #5d8294;
  --color-accent-light: #b8d3df;
  --color-accent-lighter: #d4e5ec;
  --color-accent-glow: rgba(152, 189, 204, 0.35);

  /* Neutrals (cooled to match accent) */
  --color-white: #ffffff;
  --color-off-white: #fafbfc;
  --color-gray-100: #f4f5f7;
  --color-gray-200: #e4e6e9;
  --color-gray-300: #d0d3d8;
  --color-gray-400: #9498a0;
  --color-gray-500: #64686f;
  --color-gray-600: #44474d;
  --color-gray-700: #2a2c30;
  --color-black: #0d0e10;

  /* Semantic */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* === Typography === */
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);
  --text-6xl: clamp(3.25rem, 2.25rem + 5vw, 6rem);

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* === Spacing Scale === */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* === Layout === */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  /* === Border Radius === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(13, 10, 9, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 10, 9, 0.08);
  --shadow-lg: 0 8px 24px rgba(13, 10, 9, 0.1);
  --shadow-xl: 0 16px 48px rgba(13, 10, 9, 0.12);
  --shadow-2xl: 0 24px 64px rgba(13, 10, 9, 0.16);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --shadow-inner: inset 0 2px 4px rgba(13, 10, 9, 0.06);

  /* === Transitions === */
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;

  /* === Z-Index Scale === */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-gray-700);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-espresso);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

h1, .h1 { font-size: var(--text-4xl); }
h2, .h2 { font-size: var(--text-3xl); }
h3, .h3 { font-size: var(--text-2xl); }
h4, .h4 { font-size: var(--text-xl); }
h5, .h5 { font-size: var(--text-lg); }
h6, .h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

strong, b {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-5) 0;
  transition: all var(--duration-base) var(--ease-smooth);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(253, 252, 251, 0.98) 0%,
    rgba(253, 252, 251, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.header.scrolled::before {
  opacity: 1;
}

.header.scrolled {
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-md);
}

.header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.logo-img {
  height: clamp(40px, 5vw, 55px);
  width: auto;
  transition: transform var(--duration-base) var(--ease-smooth);
}

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

/* Desktop Navigation */
.nav {
  position: relative;
  z-index: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-list li a {
  display: inline-flex;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-600);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-smooth);
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--color-espresso);
  background-color: var(--color-gray-100);
}

.nav-cta {
  margin-left: var(--space-4);
}

.btn-robotics {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-white) !important;
  background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-dark-roast) 100%);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-smooth);
  box-shadow: var(--shadow-md);
}

.btn-robotics:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-dark-roast) 0%, var(--color-medium-roast) 100%);
}

.btn-robotics svg {
  transition: transform var(--duration-base) var(--ease-smooth);
}

.btn-robotics:hover svg {
  transform: translate(2px, -2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: relative;
  z-index: calc(var(--z-modal) + 1);
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--color-espresso);
  border-radius: 2px;
  transition: background-color var(--duration-fast) var(--ease-smooth);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-espresso);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-smooth);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.mobile-toggle.is-active .hamburger {
  background-color: transparent;
}

.mobile-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.is-active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-latte) 100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  text-align: center;
}

.mobile-nav-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-base) var(--ease-smooth);
}

.mobile-menu.is-open .mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-list li:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(2) { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(4) { transition-delay: 250ms; }

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-espresso);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  color: var(--color-accent);
}

.mobile-robotics-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl) !important;
  color: var(--color-gray-500) !important;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-32) 0 var(--space-24);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-accent-glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-off-white) 0%, var(--color-latte) 50%, var(--color-milk) 100%);
  z-index: 0;
}

/* Decorative elements */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-crema) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, -30px) rotate(5deg); }
  66% { transform: translate(20px, 20px) rotate(-5deg); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-dark);
  background: var(--color-white);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--color-espresso);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

/* Hero Video */
.hero-video-wrapper {
  position: relative;
  max-width: 900px;
  margin: var(--space-16) auto 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--color-espresso);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-video-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-crema) 100%);
  border-radius: calc(var(--radius-2xl) + 2px);
  z-index: -1;
}

.hero-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating decorative elements */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-deco--1 {
  top: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-deco--2 {
  bottom: 30%;
  right: 8%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-crema) 0%, var(--color-latte) 100%);
  animation: pulse 5s ease-in-out infinite 1s;
}

.hero-deco--3 {
  top: 40%;
  left: 10%;
  width: 40px;
  height: 40px;
  background: var(--color-medium-roast);
  animation: pulse 3s ease-in-out infinite 0.5s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.btn--primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  box-shadow: var(--shadow-md), 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 8px 30px var(--color-accent-glow);
}

.btn--secondary {
  color: var(--color-espresso);
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-dark-roast) 100%);
  box-shadow: var(--shadow-md);
}

.btn--dark:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn:hover svg {
  transform: translateX(3px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  position: relative;
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--color-milk) 0%, var(--color-gray-100) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 150, 199, 0.15) 100%);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.section-title span {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
}

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

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

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

.feature-card {
  position: relative;
  padding: var(--space-10);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-smooth);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-latte) 0%, var(--color-crema) 100%);
  border-radius: var(--radius-xl);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--space-32) + 20px) 0 var(--space-16);
  overflow: hidden;
}

.page-hero--about {
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-latte) 50%, var(--color-milk) 100%);
}

.page-hero--about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 60%);
  opacity: 0.5;
  z-index: 0;
}

.page-hero--contact {
  background: linear-gradient(135deg, var(--color-milk) 0%, var(--color-off-white) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.page-hero-title span {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-500);
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}

/* About Content */
.about-section {
  padding: var(--space-20) 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 992px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.about-text h2 span {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-crema) 100%);
  border-radius: calc(var(--radius-2xl) + 8px);
  z-index: -1;
  opacity: 0.5;
}

/* Values Section */
.values-section {
  padding: var(--space-24) 0;
  background: var(--color-gray-100);
}

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

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

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

.value-card {
  position: relative;
  padding: var(--space-10);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--duration-base) var(--ease-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(0, 180, 216, 0.2) 100%);
  border-radius: var(--radius-xl);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-espresso);
}

.value-card p {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-section {
  padding: var(--space-20) 0 var(--space-24);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.contact-info > p {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  margin-bottom: var(--space-10);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(0, 180, 216, 0.2) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-accent-dark);
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-espresso);
  margin-bottom: var(--space-1);
}

.contact-item p,
.contact-item a {
  font-size: var(--text-base);
  color: var(--color-gray-500);
}

.contact-item a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-espresso);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

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

.form-submit {
  margin-top: var(--space-4);
}

.form-submit .btn {
  width: 100%;
}

/* Form Feedback */
.form-feedback {
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: var(--weight-medium);
  animation: fadeInUp 0.5s var(--ease-out-expo);
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Honeypot */
.form-honey {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-espresso);
  color: var(--color-white);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-smooth);
}

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

.footer-social svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

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

.footer-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

.footer-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-parent a {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

.footer-parent a:hover {
  color: var(--color-accent-light);
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  .footer-divider {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="slide-up"] {
  transform: translateY(50px);
}

[data-animate="slide-left"] {
  transform: translateX(50px);
}

[data-animate="slide-right"] {
  transform: translateX(-50px);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

/* Stagger delays for grid items */
[data-animate-delay="1"] { transition-delay: 100ms; }
[data-animate-delay="2"] { transition-delay: 200ms; }
[data-animate-delay="3"] { transition-delay: 300ms; }
[data-animate-delay="4"] { transition-delay: 400ms; }
[data-animate-delay="5"] { transition-delay: 500ms; }
[data-animate-delay="6"] { transition-delay: 600ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* === Tablet (max-width: 992px) === */
@media (max-width: 992px) {
  /* Reduce container padding */
  :root {
    --container-padding: 1.5rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding: calc(var(--space-24) + 60px) 0 var(--space-16);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-video-wrapper {
    margin-top: var(--space-10);
  }

  /* Hide decorative elements on tablet */
  .hero-deco--2,
  .hero-deco--3 {
    display: none;
  }

  .hero-deco--1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 3%;
  }
}

/* === Mobile (max-width: 768px) === */
@media (max-width: 768px) {
  /* Base adjustments */
  :root {
    --container-padding: 1.25rem;
  }

  body {
    font-size: var(--text-sm);
  }

  /* Header mobile */
  .header {
    padding: var(--space-3) 0;
  }

  .header.scrolled {
    padding: var(--space-2) 0;
  }

  .logo-img {
    height: 38px;
  }

  /* Hero section mobile */
  .hero {
    min-height: auto;
    padding: calc(var(--space-20) + 70px) 0 var(--space-12);
  }

  .hero::after {
    display: none;
  }

  .hero-deco {
    display: none;
  }

  .hero-content {
    padding: 0 var(--space-2);
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-4);
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
    padding: 0 var(--space-2);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--space-4);
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-video-wrapper {
    margin-top: var(--space-8);
  }

  .hero-video-container {
    border-radius: var(--radius-xl);
  }

  /* Buttons mobile */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    min-height: 48px;
  }

  /* Section headers mobile */
  .section-header {
    margin-bottom: var(--space-10);
    padding: 0 var(--space-2);
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  .section-label {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-3);
  }

  /* Features section mobile */
  .features {
    padding: var(--space-16) 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-card {
    padding: var(--space-6);
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-4);
  }

  .feature-icon svg {
    width: 26px;
    height: 26px;
  }

  .feature-card h3 {
    font-size: var(--text-lg);
  }

  .feature-card p {
    font-size: var(--text-sm);
  }

  /* Page hero mobile */
  .page-hero {
    padding: calc(var(--space-20) + 60px) 0 var(--space-10);
  }

  .page-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-hero-subtitle {
    font-size: var(--text-base);
  }

  /* About section mobile */
  .about-section {
    padding: var(--space-12) 0;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-text h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: var(--space-4);
  }

  .about-text p {
    font-size: var(--text-base);
  }

  .about-image::before {
    inset: -4px;
  }

  /* Values section mobile */
  .values-section {
    padding: var(--space-16) 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .value-card {
    padding: var(--space-6);
  }

  .value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }

  .value-icon svg {
    width: 30px;
    height: 30px;
  }

  .value-card h3 {
    font-size: var(--text-lg);
  }

  /* Contact section mobile */
  .contact-section {
    padding: var(--space-12) 0 var(--space-16);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-info h2 {
    font-size: var(--text-xl);
  }

  .contact-info > p {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .contact-items {
    gap: var(--space-4);
  }

  .contact-item-icon {
    width: 48px;
    height: 48px;
  }

  .contact-form-wrapper {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .form-group input,
  .form-group textarea {
    padding: var(--space-3);
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .form-submit .btn {
    width: 100%;
  }

  /* Footer mobile */
  .footer {
    padding: var(--space-8) 0 var(--space-6);
    margin-top: var(--space-10);
  }
}

/* === Small Mobile (max-width: 480px) === */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    padding: calc(var(--space-16) + 60px) 0 var(--space-10);
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-badge {
    font-size: 0.6rem;
  }

  .logo-img {
    height: 32px;
  }

  .section-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .page-hero-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .feature-card,
  .value-card {
    padding: var(--space-5);
  }

  .contact-form-wrapper {
    padding: var(--space-5);
  }

  /* Ensure touch targets are at least 44px */
  .btn,
  .form-group input,
  .form-group textarea,
  .footer-social a,
  .mobile-toggle {
    min-height: 44px;
  }
}

/* === Touch device optimizations === */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work well on touch */
  .feature-card:hover,
  .value-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Ensure good tap targets */
  .nav-list li a,
  .footer-nav a {
    padding: var(--space-3) var(--space-4);
  }
}

/* === Landscape mobile === */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--space-16) + 60px) 0 var(--space-10);
  }

  .hero-video-container {
    padding-bottom: 45%;
  }
}

/* === High DPI / Retina adjustments === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .footer-logo,
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide non-essential elements */
  .header,
  .footer,
  .mobile-menu,
  .mobile-toggle,
  .hero-deco,
  .hero-video-wrapper,
  .btn,
  .hero-cta,
  nav {
    display: none !important;
  }

  /* Show content */
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content,
  .page-hero-content {
    max-width: 100%;
  }

  .hero-title,
  .page-hero-title {
    font-size: 24pt;
  }

  /* Links */
  a,
  a:visited {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p, blockquote, ul, ol, dl, table, pre {
    page-break-inside: avoid;
  }

  /* Cards */
  .feature-card,
  .value-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  /* Contact info */
  .contact-info {
    page-break-inside: avoid;
  }

  .contact-form-wrapper {
    display: none !important;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Skip to main content link (add to HTML if needed) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-link:focus {
  top: 0;
}

/* Ensure focus is visible */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-accent: #0077b6;
    --color-accent-dark: #005f8a;
  }

  .btn--primary {
    border: 2px solid currentColor;
  }

  .feature-card,
  .value-card {
    border: 2px solid var(--color-gray-700);
  }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
  .btn {
    border: 2px solid currentColor;
  }

  .feature-card,
  .value-card,
  .contact-form-wrapper {
    border: 2px solid currentColor;
  }
}
