/* ================================
   GLOBAL DESIGN SYSTEM
   Denny's Auto Detailing
   ================================ */

/* ---- Design tokens (overridable per page) ---- */
:root {
  /* Primary brand */
  --primary: #e63946;
  --primary-dark: #c42532;
  --primary-light: #ff4d5a;
  --primary-rgb: 230, 57, 70;

  /* Accent / secondary */
  --accent: #1d3557;
  --accent-light: #457b9d;
  --accent-rgb: 29, 53, 87;

  /* Amber highlight */
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --amber-rgb: 245, 158, 11;

  /* Neutrals */
  --dark: #0a0e27;
  --dark-rgb: 10, 14, 39;
  --light: #f8f9fa;
  --white: #ffffff;
  --muted: #6b7280;
  --chrome: #e8f0f7;
  --chrome-shine: #f5f9fc;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #c42532 100%);
  --gradient-dark: linear-gradient(135deg, #1d3557 0%, #0a0e27 100%);
  --gradient-chrome: linear-gradient(135deg, #ffffff 0%, #e8f0f7 50%, #ffffff 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-mesh: radial-gradient(at 20% 30%, rgba(230,57,70,.12) 0, transparent 50%),
                   radial-gradient(at 80% 70%, rgba(29,53,87,.08) 0, transparent 50%),
                   radial-gradient(at 50% 50%, rgba(245,158,11,.06) 0, transparent 60%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);
  --shadow-glow-strong: 0 0 60px rgba(var(--primary-rgb), 0.5);
  --shadow-amber: 0 0 40px rgba(var(--amber-rgb), 0.25);

  /* Layout */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---- Base reset (light touch so page CSS can override) ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ---- Focus voor toegankelijkheid ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- Selection ---- */
::selection {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--dark);
}

/* ---- Page transition ---- */
/* Geen transform op body: transform zou position:fixed van de navbar breken (containing block). */
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageReveal .5s ease-out both;
}

/* ---- Staggered reveal utility ---- */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.175,.885,.32,1.275);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Shimmer skeleton loading ---- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, #e2e8f0 37%, var(--light) 63%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

/* ---- CTA shine effect ---- */
@keyframes btnShine {
  0%   { left: -75%; }
  100% { left: 125%; }
}

/* ---- Wave section dividers ---- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
@media (min-width: 768px) {
  .wave-divider svg { height: 80px; }
}
@media (min-width: 1200px) {
  .wave-divider svg { height: 100px; }
}
.wave-divider.flip { transform: rotate(180deg); }

/* ---- Counter animation (CSS fallback) ---- */
@keyframes countUp {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- SEO breadcrumb ---- */
.breadcrumb-nav {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: 0.875rem;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: 0.35rem;
  color: var(--muted, #64748b);
}
.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-list a:hover {
  text-decoration: underline;
}
.breadcrumb-list li span {
  color: var(--dark);
  font-weight: 500;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { animation: none; }
  .stagger-item { opacity: 1; transform: none; }
}

/* ---- Hero stat-blokjes verbergen op mobiel ---- */
@media (max-width: 980px) {
  .hero-stats,
  .hero-visual {
    display: none !important;
  }
}
