@tailwind base;
@tailwind components;
@tailwind utilities;

/* Dakservice Groep Design System - Nederlandse vakmanschap stijl
All colors MUST be HSL.
*/

@layer base {
  :root {
    /* Brand Colors - Based on Dak Advies Groep */
    --primary: 210 84% 20%;        /* Dark navy blue */
    --primary-foreground: 0 0% 98%;
    --primary-light: 195 85% 45%;  /* Teal/cyan accent */
    --primary-dark: 210 88% 15%;
    
    --secondary: 210 40% 92%;      /* Light blue-gray */
    --secondary-foreground: 210 22% 22%;
    
    --accent: 195 85% 45%;         /* Light blue zoals in hero tekst */
    --accent-foreground: 0 0% 98%;
    --accent-hover: 195 85% 38%;   /* Donkere variant voor hover */
    
    --muted: 210 40% 90%;
    --muted-foreground: 215 16% 47%;
    
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    
    --ring: 210 84% 20%;
    
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    
    --success: 142 71% 45%;
    --success-foreground: 0 0% 98%;
    
    --warning: 38 92% 50%;
    --warning-foreground: 0 0% 98%;

    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 1rem;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    /* Core colors - donkere modus */
    --background: 220 13% 9%;
    --foreground: 0 0% 95%;
    
    --card: 220 13% 12%;
    --card-foreground: 0 0% 95%;
    
    --popover: 220 13% 12%;
    --popover-foreground: 0 0% 95%;
    
    --primary: 222 84% 45%;
    --primary-foreground: 0 0% 9%;
    --primary-light: 222 84% 55%;
    --primary-dark: 222 84% 35%;
    
    --secondary: 220 13% 15%;
    --secondary-foreground: 0 0% 95%;
    
    --muted: 220 13% 15%;
    --muted-foreground: 220 9% 65%;
    
    --accent: 25 95% 55%;
    --accent-foreground: 0 0% 9%;
    --accent-hover: 25 95% 48%;
    
    --destructive: 0 84% 65%;
    --destructive-foreground: 0 0% 95%;
    
    --border: 220 13% 20%;
    --input: 220 13% 20%;
    --ring: 222 84% 45%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-sans antialiased;
    scroll-behavior: smooth;
  }

  /* Focus styles voor toegankelijkheid */
  *:focus-visible {
    @apply outline-none ring-2 ring-ring ring-offset-2;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    @apply bg-secondary;
  }

  ::-webkit-scrollbar-thumb {
    @apply bg-muted-foreground rounded-sm;
  }

  ::-webkit-scrollbar-thumb:hover {
    @apply bg-foreground;
  }
}

/* Custom Components */
.hero-gradient {
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('/dakservice-groep-pannendak-renovatie-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-gradient {
    background-attachment: scroll;
  }
  
  /* Mobile-optimized image positioning */
  .mobile-image-contain {
    object-fit: contain !important;
    object-position: center !important;
  }
  
  .mobile-image-cover-center {
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* Hero image mobile optimization */
  .hero-image-mobile {
    object-fit: cover !important;
    object-position: center 30% !important;
  }
  
  /* Ensure full image visibility on mobile */
  .mobile-full-image {
    object-fit: contain !important;
    background-color: hsl(var(--muted));
  }
}

.btn-cta {
  @apply bg-accent hover:bg-accent-hover text-accent-foreground font-semibold px-6 py-3 rounded-lg transition-colors duration-200;
}

.top-bar {
  @apply bg-primary text-primary-foreground;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.container-custom {
  @apply max-w-7xl mx-auto px-4;
}

.section-padding {
  @apply py-16 px-4 sm:px-6 lg:px-8;
}

/* Phone link styling */
.phone-link {
  @apply text-accent hover:text-[hsl(var(--accent-hover))] font-semibold transition-colors duration-200;
}

/* Primary button with custom styling */
.btn-primary {
  @apply bg-primary text-primary-foreground hover:bg-[hsl(var(--primary-dark))] transition-colors duration-200;
}