/* ============================================================
   DB PRO CLEAN — Global Design System
   Premium cleaning company · Belgium
   ============================================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@600;700;800&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* — Colors — */
  --color-primary: #16789f;
  --color-primary-dark: #0d5f80;
  --color-primary-light: #1a8ab5;
  --color-accent: #f3cf03;
  --color-accent-hover: #f8dc2e;
  --color-accent-dark: #d4b200;
  --color-white: #FFFFFF;
  --color-text: #FFFFFF;
  --color-text-dark: #0d4f6b;
  --color-section-light: #EFF7FB;
  --color-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.16);
  --color-glass-hover: rgba(243, 207, 3, 0.12);

  /* — Typography — */
  --font-heading: 'Syne', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero: clamp(2.4rem, 5vw, 4.2rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1.05rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --lh-body: 1.7;
  --lh-heading: 1.15;
  --ls-label: 0.15em;

  /* — Spacing — */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  /* — Border Radius — */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* — Transitions — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* — Shadows — */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(243, 207, 3, 0.2);
  --shadow-hover: 0 8px 40px rgba(243, 207, 3, 0.15);

  /* — Layout — */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

/* Restore default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-dot {
    display: none;
  }
}

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

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  font-weight: 700;
  color: var(--color-white);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.section-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.accent-underline.revealed::after {
  transform: scaleX(1);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.section--light h2,
.section--light h3 {
  color: var(--color-primary);
}

.section--light .section-subtitle {
  color: rgba(13, 79, 107, 0.7);
}

.section--accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.section--accent h2 {
  color: var(--color-primary);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

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

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(243, 207, 3, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243, 207, 3, 0.4);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

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

.btn--dark:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22, 120, 159, 0.3);
}

.btn--small {
  padding: 0.6em 1.4em;
  font-size: var(--fs-small);
}

/* ============================================================
   6. GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: var(--color-white);
  border: 1px solid rgba(13, 79, 107, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  background: var(--color-white);
  border-color: rgba(243, 207, 3, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.glass-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 207, 3, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.glass-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.glass-card__text {
  color: rgba(13, 79, 107, 0.7);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Light variant */
.section--light .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(13, 79, 107, 0.08);
  backdrop-filter: blur(8px);
}

.section--light .glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(243, 207, 3, 0.4);
  box-shadow: 0 8px 40px rgba(243, 207, 3, 0.1);
}

.section--light .glass-card__title {
  color: var(--color-primary);
}

.section--light .glass-card__text {
  color: rgba(13, 79, 107, 0.7);
}

/* ============================================================
   7. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.32s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.40s;
}

.stagger-children>*:nth-child(7) {
  transition-delay: 0.48s;
}

/* ============================================================
   8. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(243, 207, 3, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(243, 207, 3, 0.4);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes blob-move-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(80px, -60px) scale(1.1);
  }

  50% {
    transform: translate(-40px, 60px) scale(0.95);
  }

  75% {
    transform: translate(60px, 30px) scale(1.05);
  }
}

@keyframes blob-move-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-70px, 40px) scale(1.08);
  }

  50% {
    transform: translate(60px, -50px) scale(0.92);
  }

  75% {
    transform: translate(-30px, -70px) scale(1.1);
  }
}

@keyframes scroll-bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(8px);
  }

  60% {
    transform: translateY(4px);
  }
}

@keyframes check-draw {
  0% {
    stroke-dashoffset: 30;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   9. PAGE TRANSITIONS
   ============================================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
  10. RESPONSIVE BREAKPOINTS
   ============================================================ */
/* Tablet */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 5rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3.5rem;
    --space-2xl: 3rem;
    --nav-height: 64px;
  }

  /* .container width is controlled by mobile.css */
}

/* Mobile Small */
@media (max-width: 480px) {
  :root {
    --space-3xl: 2.5rem;
    --space-2xl: 2rem;
  }

  /* .container width is controlled by mobile.css */

  .btn {
    padding: 0.8em 1.6em;
    font-size: 0.9rem;
  }
}

/* ============================================================
  11. UTILITIES
   ============================================================ */
.show-on-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .show-on-mobile {
    display: block !important;
  }
}