:root {
  /* Darkened from #1d4ed8 / #64748b for WCAG AAA text contrast (7:1) on white/surface backgrounds. */
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #eab308;
  --background: #f8fafc;
  --surface: #ffffff;
  --foreground: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--foreground);
}

p {
  margin-bottom: 1rem;
}

/* Helper Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism & Modern Card */
.glass-panel {
  background: rgba(var(--surface), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Dynamic Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(29, 78, 216, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Original Background */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  z-index: -2;
  transition: all 0.4s ease;
}

/* The Swipe Layer */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #facc15 100%);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px 0 rgba(29, 78, 216, 0.4);
  color: #000;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary>* {
  position: relative;
  z-index: 2;
}

/* Layout structural classes */
.main-content {
  flex: 1;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-bottom: rgba(255, 255, 255, 0.1) 1px solid;
  padding: 1rem 0;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: white;
}

/* Mobile hamburger toggle */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--primary);
    padding: 0.5rem 1.5rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links .nav-item {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none !important;
    padding-left: 0 !important;
  }

  /* Stack multi-column content/photo sections on mobile */
  .stack-mobile {
    grid-template-columns: 1fr !important;
  }

  /* Photos should fit within the column width and stay centered when stacked */
  .stack-mobile > * {
    width: 100%;
    justify-self: center;
  }

  .stack-mobile img {
    margin: 0 auto;
  }

  .photo-fit {
    min-height: 220px !important;
    background-position: center !important;
  }

  /* Hero/cinematic sections: fit within one mobile screen, above the fold, content centered vertically */
  .cinematic-hero {
    padding: 2.5rem 0 !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
  }

  .cinematic-hero .hero-logo img {
    max-width: 140px !important;
  }

  .cinematic-hero .hero-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .cinematic-hero h1,
  .cinematic-hero h2 {
    font-size: 1.85rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.15 !important;
  }

  .cinematic-hero p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .cinematic-hero .hero-icon {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.glass-panel:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Micro-conversion feedback */
@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  60% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 0.5rem;
  border-radius: 9999px;
  background: #fde047;
  color: #1e1e1e;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-badge.bump {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-pop {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.check-icon path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw 0.5s ease-out 0.15s forwards;
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {

  .cart-badge.bump,
  .success-pop,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .check-icon path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}