@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Georgia&display=swap&display=swap');

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

/* Garage Door Haines City - Charcoal Orange Design System */
@layer base {
  :root {
    /* Charcoal-Orange Color Palette */
    --background: 0 0% 100%;
    --foreground: 220 20% 20%;

    --card: 0 0% 100%;
    --card-foreground: 220 20% 20%;

    --popover: 0 0% 100%;
    --popover-foreground: 220 20% 20%;

    /* Primary - Orange */
    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;
    --primary-hover: 24 95% 45%;

    /* Secondary - Charcoal */
    --secondary: 220 15% 25%;
    --secondary-foreground: 0 0% 100%;

    --muted: 220 10% 96%;
    --muted-foreground: 220 10% 45%;

    --accent: 24 95% 95%;
    --accent-foreground: 24 95% 40%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 220 10% 90%;
    --input: 220 10% 90%;
    --ring: 24 95% 53%;

    --radius: 0.5rem;

    /* Custom Design Tokens */
    --charcoal: 220 15% 20%;
    --charcoal-light: 220 12% 35%;
    --charcoal-dark: 220 18% 12%;
    --orange: 24 95% 53%;
    --orange-light: 24 90% 60%;
    --orange-dark: 24 95% 45%;
    --cream: 40 30% 97%;
    --warm-gray: 30 10% 92%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220 15% 20% / 0.85) 0%, hsl(220 18% 12% / 0.95) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(24 95% 53%) 0%, hsl(24 95% 45%) 100%);
    --gradient-section: linear-gradient(180deg, hsl(40 30% 97%) 0%, hsl(0 0% 100%) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px hsl(220 15% 20% / 0.05);
    --shadow-md: 0 4px 6px -1px hsl(220 15% 20% / 0.1), 0 2px 4px -2px hsl(220 15% 20% / 0.1);
    --shadow-lg: 0 10px 15px -3px hsl(220 15% 20% / 0.1), 0 4px 6px -4px hsl(220 15% 20% / 0.1);
    --shadow-xl: 0 20px 25px -5px hsl(220 15% 20% / 0.1), 0 8px 10px -6px hsl(220 15% 20% / 0.1);
    --shadow-orange: 0 10px 30px -10px hsl(24 95% 53% / 0.4);

    --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 {
    --background: 220 18% 10%;
    --foreground: 0 0% 95%;

    --card: 220 15% 15%;
    --card-foreground: 0 0% 95%;

    --popover: 220 15% 15%;
    --popover-foreground: 0 0% 95%;

    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;

    --secondary: 220 10% 30%;
    --secondary-foreground: 0 0% 95%;

    --muted: 220 10% 20%;
    --muted-foreground: 220 10% 60%;

    --accent: 24 50% 20%;
    --accent-foreground: 24 95% 65%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 95%;

    --border: 220 10% 25%;
    --input: 220 10% 25%;
    --ring: 24 95% 53%;

    --sidebar-background: 220 18% 10%;
    --sidebar-foreground: 0 0% 95%;
    --sidebar-primary: 24 95% 53%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 220 10% 20%;
    --sidebar-accent-foreground: 0 0% 95%;
    --sidebar-border: 220 10% 25%;
    --sidebar-ring: 24 95% 53%;
  }
}

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

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground font-body antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-heading font-bold tracking-tight;
  }
}

@layer components {
  .container-custom {
    @apply mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl;
  }

  .section-padding {
    @apply py-16 md:py-24;
  }

  .text-gradient {
    @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-orange-light;
  }

  .card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
  }

  .btn-primary {
    @apply bg-primary text-primary-foreground font-semibold px-6 py-3 rounded-md shadow-orange transition-all duration-300 hover:bg-primary/90 hover:shadow-xl;
  }

  .btn-secondary {
    @apply bg-secondary text-secondary-foreground font-semibold px-6 py-3 rounded-md transition-all duration-300 hover:bg-secondary/90;
  }

  .link-underline {
    @apply relative after:absolute after:bottom-0 after:left-0 after:w-0 after:h-0.5 after:bg-primary after:transition-all after:duration-300 hover:after:w-full;
  }
}

@layer utilities {
  .parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

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

  .animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
  }

  .animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
  }

  .animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
