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

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    /* Greg Knopp CPA Brand Colors - Armonia-inspired soft earth tones */
    --background: 42 28% 96%; /* Cream/Warm Sand #F6F3EA */
    --foreground: 180 7% 5%; /* Ink #0E1111 */

    --card: 42 28% 98%; /* Slightly lighter cream for cards */
    --card-foreground: 180 7% 5%;

    --popover: 42 28% 98%;
    --popover-foreground: 180 7% 5%;

    --primary: 150 28% 18%; /* Deep Forest Green #1C3A2E */
    --primary-foreground: 42 28% 96%;

    --secondary: 150 8% 55%; /* Sage #7E8F87 */
    --secondary-foreground: 180 7% 5%;

    --muted: 150 8% 90%; /* Very light sage for muted backgrounds */
    --muted-foreground: 150 8% 45%;

    --accent: 40 35% 60%; /* Brass/Gold Accent #C8A96A */
    --accent-foreground: 180 7% 5%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 42 28% 96%;

    --border: 150 8% 85%; /* Soft sage border */
    --input: 150 8% 90%;
    --ring: 150 28% 18%;

    --radius: 1.5rem; /* 24px rounded corners - Armonia style */

    /* Custom Brand Variables */
    --cream: 42 28% 96%; /* #F6F3EA */
    --forest: 150 28% 18%; /* #1C3A2E */
    --sage: 150 8% 55%; /* #7E8F87 */
    --brass: 40 35% 60%; /* #C8A96A */
    --ink: 180 7% 5%; /* #0E1111 */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--forest) / 0.8), hsl(var(--forest) / 0.6));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted)));
    
    /* Shadows - Soft, low elevation */
    --shadow-card: 0 2px 8px hsl(var(--forest) / 0.05);
    --shadow-hover: 0 4px 12px hsl(var(--forest) / 0.08);
    --shadow-button: 0 1px 3px hsl(var(--forest) / 0.1);
    
    /* Transitions - Gentle, Armonia-style */
    --transition-gentle: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --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-body;
  }
  
  h1, h2, h3, h4, h5, h6 {
    @apply font-display;
  }
}

@layer components {
  /* Armonia-inspired utilities */
  .hero-overlay {
    background: var(--gradient-hero);
  }
  
  .card-elevation {
    box-shadow: var(--shadow-card);
    transition: var(--transition-gentle);
  }
  
  .card-elevation:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
  }
  
  .btn-shadow {
    box-shadow: var(--shadow-button);
  }
  
  .gentle-transition {
    transition: var(--transition-gentle);
  }
  
  .smooth-transition {
    transition: var(--transition-smooth);
  }
  
  .bg-gradient-hero {
    background: var(--gradient-hero);
  }
  
  .bg-gradient-subtle {
    background: var(--gradient-subtle);
  }
  
  /* Typography scales */
  .text-display-xl {
    font-size: 4rem; /* 64px */
    line-height: 4.5rem; /* 72px */
  }
  
  .text-display-lg {
    font-size: 2.5rem; /* 40px */
    line-height: 3rem; /* 48px */
  }
  
  .text-display-md {
    font-size: 1.75rem; /* 28px */
    line-height: 2.25rem; /* 36px */
  }
  
  .text-body-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
  }
}
