/* ==========================================================================
   Delicious Milk - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* Colors - Primary */
  --color-primary: #2E90FA;
  --color-primary-light: #53A8FF;
  --color-primary-dark: #1570CD;

  /* Colors - Neutral */
  --color-dark: #000719;
  --color-dark-secondary: #0A1628;
  --color-gray-900: #18181B;
  --color-gray-800: #27272A;
  --color-gray-700: #3F3F46;
  --color-gray-600: #667085;
  --color-gray-500: #98a2b3;
  --color-gray-400: #98a2b3;
  --color-gray-300: #D4D4D8;
  --color-gray-200: #E4E4E7;
  --color-gray-100: #F4F4F5;
  --color-gray-50: #FAFAFA;
  --color-white: #FFFFFF;

  /* Colors - Semantic */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Typography - Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typography - Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Typography - Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Typography - Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;
}

/* --------------------------------------------------------------------------
   CSS Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--color-primary-dark);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Base Typography
   -------------------------------------------------------------------------- */

.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

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

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

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-gray-300);
  color: var(--color-dark);
}

.btn-outline:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* --------------------------------------------------------------------------
   CTA Section (Shared Component)
   -------------------------------------------------------------------------- */

.cta-section {
  padding: var(--space-24) 0;
}

.cta-box {
  background: var(--color-dark);
  padding: var(--space-20) var(--space-16);
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-tight);
}

@media (max-width: 1024px) {
  .cta-section {
    padding: var(--space-16) 0;
  }

  .cta-box {
    padding: var(--space-12);
  }

  .cta-box h2 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: var(--space-12) 0;
  }

  .cta-box {
    padding: var(--space-8);
  }

  .cta-box h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: var(--space-10) 0;
  }

  .cta-box {
    padding: var(--space-6);
  }

  .cta-box h2 {
    font-size: var(--text-lg);
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints Reference
   --------------------------------------------------------------------------

   lg:  1024px  - Tablet
   md:  768px   - Mobile
   sm:  480px   - Small mobile

   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }

  .h1 {
    font-size: var(--text-4xl);
  }

  .h2 {
    font-size: var(--text-3xl);
  }

  .h3 {
    font-size: var(--text-2xl);
  }

  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}
