/* ==========================================================================
   Global Design System — AlexGroup
   Unified tokens, resets, header, and shared components
   ========================================================================== */

@import url('../assets/fonts/fonts.css');

:root {
  /* Typography — V4 */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-base: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --color-white: #ffffff;

  /* ---- V4 Auto Theme: Midnight Steel + Ice Blue Metallic ---- */
  --color-auto-bg: #0e1117;
  /* Midnight Steel — less harsh than coal black */
  --color-auto-surface: #161b27;
  /* Elevated card surface */
  --color-auto-surface-border: rgba(255, 255, 255, 0.07);
  --color-auto-primary: #3b7dd8;
  /* Steel Blue — premium, not too vivid */
  --color-auto-primary-hover: #2d68bf;
  --color-auto-primary-glow: rgba(59, 125, 216, 0.22);
  --color-auto-accent: #4facf7;
  /* Ice Blue metallic — eyebrows, highlights (replaces red) */
  --color-auto-secondary: #7bb8f5;
  /* Light steel secondary */
  --color-auto-text: #f0f4f8;
  /* Slightly warm off-white */
  --color-auto-text-muted: rgba(240, 244, 248, 0.55);

  /* ---- V4 Bau Theme: Amber & Soft Gray (unchanged) ---- */
  --color-bau-bg: #f8fafc;
  --color-bau-surface: #ffffff;
  --color-bau-surface-border: #e2e8f0;
  --color-bau-primary: #d97706;
  --color-bau-primary-hover: #b45309;
  --color-bau-secondary: #f59e0b;
  --color-bau-text: #0f172a;
  --color-bau-text-muted: #64748b;

  /* ---- Unified Button System ---- */
  --btn-radius: 8px;
  --btn-padding: 0.9rem 2.2rem;
  --btn-font-size: 0.95rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.05em;
  --btn-transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  /* Shared Colors for Global Overlays */
  --color-glass-bg: rgba(14, 17, 23, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.07);
  --color-glass-text: #f0f4f8;

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.22s ease;

  /* Z-Index */
  --z-header: 1000;
  --z-overlay: 500;

  /* Spacing */
  --section-padding: 100px 8%;
  --section-padding-mobile: 60px 24px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Glassmorphism Header
   ========================================================================== */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: var(--z-header);
  background: var(--color-glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-glass-border);
  /* Always visible — no JS dependency for basic display */
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.global-header.header-loaded {
  transform: translateY(0);
  opacity: 1;
}

.global-header.header-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.global-header.scrolled {
  background: rgba(10, 12, 18, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.global-header .logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-white);
  text-transform: uppercase;
  /* white-space: nowrap; removed to allow wrapping on mobile */
}

.global-header .logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-header .logo span {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.4em;
}

/* Burger Menu Toggle */
.burger-menu {
  display: flex; /* visible by default — hidden on desktop via min-width query below */
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  margin-left: 8px;
  flex-shrink: 0;
}

.burger-menu span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark burger lines for Bau (light) theme */
.theme-bau .burger-menu span,
.bau-theme .burger-menu span {
  background: #1e293b !important;
}

/* LangSwitcher clone in mobile nav */
.langSwitcher-clone {
  display: none;
}

.header-nav .langSwitcher-clone .lang-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav .langSwitcher-clone .lang-btn:hover,
.header-nav .langSwitcher-clone .lang-btn.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Desktop: hide burger, show nav links ──────────────── */
@media (min-width: 769px) {
  .burger-menu {
    display: none !important;
  }
}


/* Logo icon (AG monogram) beside wordmark */
.logo-icon {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  filter: invert(1);
  /* white icon on dark Auto header */
  opacity: 0.95;
  transition: opacity 0.2s;
}

/* Bau theme: dark icon on light header */
.logo-icon-bau {
  filter: invert(0);
}

/* Header Controls (Switcher & Lang) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Sub Navigation Links (on internal pages) */
.header-nav {
  display: flex;
  gap: 2rem;
  margin: 0 2rem;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-white);
  border-bottom-color: currentColor;
}

/* ==========================================================================
   Theme Switcher — V5: Proper button targets only, no whole-div click
   ========================================================================== */
.theme-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px;
  position: relative;
  gap: 2px;
  cursor: default;
  user-select: none;
}

.theme-switcher .switch-btn {
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

.theme-switcher .switch-btn.active {
  background: #3b7dd8;
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 125, 216, 0.5);
}

/* Bau pill active override — amber pill */
.theme-switcher.is-bau .switch-btn.active {
  background: #f59e0b;
  color: #111;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
}


/* ==========================================================================
   Unified Button System
   ========================================================================== */

/* Base button — both themes override color variables */
.btn {
  white-space: normal;
  text-align: center;
  height: auto;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--btn-transition);
  border: 2px solid transparent;
  /* white-space: nowrap; removed to allow wrapping on mobile */
}

/* Primary — filled */
.btn-primary-auto {
  background: transparent;
  color: #fff;
  border-color: #3b7dd8;
}

.btn-primary-auto:hover {
  background: #3b7dd8;
  box-shadow: 0 0 20px rgba(59, 125, 216, 0.4);
}

.btn-primary-bau {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.btn-primary-bau:hover {
  background: #d97706;
  border-color: #d97706;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

/* Secondary — outline */
.btn-secondary-auto {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary-auto:hover {
  color: #fff;
  border-color: #fff;
}

.btn-secondary-bau {
  background: transparent;
  color: #0f172a;
  border-color: #0f172a;
}

.btn-secondary-bau:hover {
  background: #0f172a;
  color: #fff;
}

/* ==========================================================================
   Shared Sections
   ========================================================================== */

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  opacity: 0.6;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Counter Strip */
.counter-strip {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  padding: 60px 5%;
  text-align: center;
}

.counter-item .count {
  font-size: 3rem;
  font-weight: 800;
  display: block;
}

.counter-item .label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.25rem;
  display: block;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
#langSwitcher {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-family-base);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Auto-hide header modifier — used only on splash page */
.global-header.splash-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.global-header.splash-header.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}



/* ==========================================================================
   Responsive — V6: Full Device Coverage (320px → 4K)
   Breakpoints:
     320–479px  : Small phones (iPhone SE, Galaxy S mini)
     480–767px  : Large phones (iPhone 14, Galaxy S23)
     768–1023px : Tablets (iPad, Surface)
     1024–1239px: Small laptops (MacBook Air 13", 1080p HD)
     1240–1439px: Laptops (MacBook Pro 14", 1440p)
     1440px+    : Wide screens, 4K monitors
   ========================================================================== */

/* ── Ultra Wide / 4K ─────────────────────────────────────── */
@media (min-width: 1440px) {
  :root {
    --section-padding: 130px 12%;
  }
}

/* ── Laptop / Desktop ────────────────────────────────────── */
@media (max-width: 1240px) {
  :root {
    --section-padding: 80px 6%;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Small Laptop / Large Tablet Landscape ───────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 72px 5%;
  }

  .counter-strip {
    gap: 2.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── Tablet Portrait (768px) ─────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 5%;
    --section-padding-mobile: 50px 20px;
  }

  /* === HEADER: Switch to burger mode === */
  .global-header {
    height: 64px;
    padding: 0 20px;
  }

  /* Mobile fullscreen navigation overlay */
  .header-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 18, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.55s ease;
    pointer-events: none;
  }

  .header-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav a {
    font-size: 2rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0.5rem 1rem;
    /* bigger tap target */
  }

  .header-nav a:hover,
  .header-nav a.active {
    opacity: 0.7;
  }

  .header-nav a:active {
    transform: scale(0.97);
  }

  /* Lang switcher inside mobile nav (V-05 fix) */
  .header-nav #langSwitcher-mobile {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
    margin-top: 1rem;
  }

  .header-nav .lang-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
  }

  .header-nav .lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  /* Show burger icon */
  .burger-menu {
    display: flex !important;
  }

  .burger-menu span {
    background: #fff;
  }

  .header-controls {
    gap: 0.5rem;
  }

  /* Hide lang switcher from header on mobile — it lives in the overlay nav */
  .header-controls #langSwitcher {
    display: none !important;
  }

  .theme-switcher .switch-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Both theme buttons stay visible — ultra compact on mobile */
  .theme-switcher .switch-btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.02em;
  }

  /* === LAYOUT === */
  .section {
    padding: var(--section-padding-mobile);
  }

  .section-title {
    font-size: 1.7rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }

  /* Counter */
  .counter-strip {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 30px 20px;
  }

  .counter-item .count {
    font-size: 2rem;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ── Mobile (481–767px) ──────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-padding: 56px 4%;
    --section-padding-mobile: 44px 16px;
    --btn-padding: 0.85rem 1.6rem;
    --btn-font-size: 0.9rem;
  }

  /* Header */
  .global-header {
    height: 56px;
    padding: 0 16px;
  }

  .global-header .logo {
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }

  .theme-switcher .switch-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  #langSwitcher {
    display: none;
    /* hidden in header on small phones — available inside mobile menu */
  }

  /* Typography */
  h1 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-ctas .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  line-height: 1.4;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Counter */
  .counter-band,
  .counter-strip {
    flex-direction: column;
    gap: 0;
  }

  .counter-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    min-width: 100%;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }

  .why-item p {
    font-size: 0.82rem;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem 1rem !important;
  }

  .contact-info iframe {
    height: 180px !important;
  }

  /* Testimonials */
  .ts-wrapper {
    padding: 0 10px !important;
  }

  .ts-card {
    padding: 2rem 1.25rem !important;
  }

  .ts-text {
    font-size: 0.9rem !important;
  }

  /* Footer */
  .site-footer {
    padding: 28px 16px !important;
    font-size: 0.85rem;
  }

  /* Pricing cards */
  .packages-section .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* CTA band */
  .cta-band h2 {
    font-size: 1.5rem;
  }

  .cta-band p {
    font-size: 0.9rem;
  }
}

/* ── Small phones (up to 360px) ──────────────────────────── */
@media (max-width: 360px) {
  :root {
    --btn-padding: 0.75rem 1.25rem;
  }

  .global-header {
    height: 52px;
    padding: 0 12px;
  }

  .global-header .logo {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  /* Single column everything on tiny screens */
  .packages-section .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
  }

  /* Burger icon slightly smaller */
  .burger-menu {
    width: 21px;
    height: 15px;
  }

  /* Menu nav links smaller */
  .header-nav a {
    font-size: 1.65rem;
  }
}

/* ── Touch devices: guaranteed tap targets ───────────────── */
@media (hover: none) and (pointer: coarse) {
  .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  line-height: 1.4;
    min-height: 48px;
  }

  .switch-btn {
    min-height: 40px;
  }

  .burger-menu {
    /* Invisible padding to increase tap area without changing visuals */
    padding: 12px 10px;
    margin: -12px -10px;
  }

  .contact-method a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-nav a {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Laptops */
@media (max-width: 1240px) {
  :root {
    --section-padding: 80px 6%;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Tablet portrait / small laptop */
@media (max-width: 1024px) {
  .counter-strip {
    gap: 3rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 5%;
    --section-padding-mobile: 50px 20px;
  }

  .global-header {
    height: 64px;
    padding: 0 18px;
  }

  /* Hide nav links, show hamburger placeholder */
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 18, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
  }

  .header-nav.active {
    transform: translateX(0);
    opacity: 1;
    display: flex;
  }

  .header-nav a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s ease;
  }

  .header-nav a:active {
    transform: scale(0.95);
  }

  .burger-menu {
    display: flex !important;
  }

  /* Make sure burger is visible on both themes */
  .burger-menu span {
    background: #fff;
  }

  .header-controls {
    gap: 0.75rem;
  }

  .theme-switcher .switch-btn {
    padding: 5px 11px;
    font-size: 0.75rem;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

  .section-title {
    font-size: 1.7rem;
  }

  .counter-strip {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 30px 16px;
  }

  .counter-item .count {
    font-size: 2rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Form layouts */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  /* Services grid — auto collapse to 1 col on mobile */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
}

/* Phone */
@media (max-width: 480px) {
  :root {
    --section-padding: 60px 4%;
    --section-padding-mobile: 48px 16px;
    --btn-padding: 0.85rem 1.6rem;
    --btn-font-size: 0.9rem;
  }

  .global-header {
    height: 58px;
    padding: 0 14px;
  }

  .global-header .logo {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  .theme-switcher .switch-btn {
    padding: 4px 9px;
    font-size: 0.7rem;
  }

  #langSwitcher {
    display: none;
    /* hide lang on small phones to save space */
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Hero full-screen on phone */
  .hero {
    min-height: 100svh;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-ctas .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  line-height: 1.4;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .counter-band,
  .counter-strip {
    flex-direction: column;
    gap: 0;
  }

  .counter-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 24px;
    min-width: 100%;
  }

  /* Services — single col */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why grid — 2 col on phone */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .why-item p {
    font-size: 0.82rem;
  }

  /* Contact form */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem 1rem !important;
  }

  /* Testimonials */
  .ts-wrapper {
    padding: 0 10px !important;
  }

  .ts-card {
    padding: 2rem 1.25rem !important;
  }

  .ts-text {
    font-size: 0.9rem !important;
  }

  /* Footer */
  .site-footer {
    padding: 28px 16px !important;
    font-size: 0.85rem;
  }

  /* Pricing cards — make sure all same height */
  .packages-section .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* CTA band */
  .cta-band h2 {
    font-size: 1.5rem;
  }

  .cta-band p {
    font-size: 0.9rem;
  }

  /* Maps iframe on mobile */
  .contact-info iframe {
    height: 180px !important;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  :root {
    --btn-padding: 0.75rem 1.25rem;
  }

  .packages-section .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Touch: tap target minimum sizes */
@media (hover: none) and (pointer: coarse) {
  .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  line-height: 1.4;
    min-height: 48px;
  }

  .switch-btn {
    min-height: 40px;
  }

  .contact-method a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   Modals (Interactive Modals) - Global
   ========================================================================== */
.ag-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ag-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* ── Default (Light, Bau) ── */
.ag-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  padding: 44px 36px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.ag-modal-overlay.active .ag-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Closing animation — triggered by JS adding .closing class */
.ag-modal-overlay.closing .ag-modal-content {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
}

/* ── Dark variant (Auto section) ── */
.ag-modal-content.dark-auto {
  background: #111827;
  border: 1px solid rgba(59, 125, 216, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(79, 172, 247, 0.08);
}

.ag-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.ag-modal-content.dark-auto .ag-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.ag-modal-content.dark-auto .ag-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.ag-modal-close:hover {
  background: #e2e8f0;
  color: #0e1117;
}

.ag-modal-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.ag-modal-content.dark-auto .ag-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ag-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0e1117;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.ag-modal-content.dark-auto .ag-modal-header h3 {
  color: #f1f5f9;
  text-shadow: 0 0 30px rgba(79, 172, 247, 0.3);
}

.ag-modal-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.ag-modal-content.dark-auto .ag-modal-body {
  color: #94a3b8;
}

.ag-modal-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-auto-accent);
  margin-bottom: 16px;
  display: block;
}

.ag-modal-body p {
  margin-bottom: 16px;
}

.ag-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.ag-modal-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.ag-modal-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-auto-accent);
  font-weight: 700;
}

.ag-modal-content.dark-auto .ag-modal-body ul li::before {
  color: var(--clr-ice-blue);
}

.ag-modal-action {
  margin-top: 30px;
  text-align: center;
}

/* Make service cards interactive */
[data-modal] {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-modal]:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--clr-auto-accent);
}
/* ── Checkbox row fix (form consent) ────────────────── */
.checkbox-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  margin-top: 1rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-auto-primary, #3b7dd8);
  cursor: pointer;
}

.checkbox-row label,
.checkbox-row label * {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  cursor: pointer;
  color: inherit;
}

.checkbox-row label strong {
  font-weight: 600 !important;
}

.bau-theme .checkbox-row input[type="checkbox"] {
  accent-color: #d97706;
}

/* ── Section head centering ──────────────────────────── */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  line-height: 1.7;
}

/* ── Page transition fade ────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageFadeIn 0.35s ease forwards;
}

/* Mobile Header Optimization Fixes (preventing overflow & overlapping) */
@media (max-width: 768px) {
  .global-header {
    height: 56px !important;
    padding: 0 24px !important; /* side padding 24px on tablet / wider mobile */
    box-sizing: border-box !important;
  }

  .global-header .logo {
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
  }

  .global-header .logo a {
    gap: 4px !important;
  }

  .logo-icon {
    height: 20px !important;
    margin-right: 4px !important;
  }

  .header-controls {
    gap: 20px !important; /* wider gap pushes the switcher closer to the logo */
  }

  .theme-switcher {
    padding: 3px !important;
    gap: 1px !important;
  }

  .theme-switcher .switch-btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.01em !important;
  }

  .burger-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 18px !important;
    margin-left: 8px !important;
    margin-right: 8px !important; /* push burger menu away from the right edge for comfortable tapping */
    padding: 2px !important;
  }

  /* Stretch navigation overlay to cover 100% viewport width despite parent header padding */
  .header-nav {
    margin-left: -24px !important;
    width: calc(100% + 48px) !important;
    height: 100vh !important;
  }

  /* Lang switcher clone visible inside mobile nav overlay */
  .header-nav .langSwitcher-clone {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 1rem !important;
  }
}

/* Standard mobile screens adjustments */
@media (max-width: 480px) {
  .global-header {
    padding: 0 20px !important; /* side padding 20px on standard mobile screens */
  }

  .header-nav {
    margin-left: -20px !important;
    width: calc(100% + 40px) !important;
  }
}

/* Extra small screens adjustments */
@media (max-width: 360px) {
  .global-header {
    padding: 0 12px !important; /* side padding 12px on small screens to fit elements */
  }

  .header-nav {
    margin-left: -12px !important;
    width: calc(100% + 24px) !important;
  }

  .global-header .logo {
    font-size: 0.76rem !important;
  }
  
  .logo-icon {
    display: none !important; /* Hide logo icon on extremely small screens to save space */
  }
}
