/* ==========================================================================
   1. RESET & CSS VARIABLES
   ========================================================================== */
:root {
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Primary & Accent Palettes */
  --color-forest: #033b22;
  --color-forest-hover: #022817;
  --color-forest-light: #055c35;

  --color-crimson: #bd121a;
  --color-crimson-hover: #9a0e15;
  --color-crimson-light: #d61a23;

  /* Neutral Stone Tones */
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;

  /* Emerald Accents */
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;
  --color-emerald-950: #022c22;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans) !important;
  background-color: var(--color-stone-50);
  color: var(--color-stone-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-serif-title {
  font-family: var(--font-sans) !important;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

img, video {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: var(--color-forest);
  color: #ffffff;
}

/* ==========================================================================
   2. CORE UTILITIES & LAYOUT
   ========================================================================== */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }

.border-white { border-color: #ffffff; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-stone-100 { border-color: var(--color-stone-100); }
.border-stone-200 { border-color: var(--color-stone-200); }
.border-stone-200\/80 { border-color: rgba(231, 229, 228, 0.8); }
.border-stone-300 { border-color: var(--color-stone-300); }
.border-stone-800 { border-color: var(--color-stone-800); }
.border-emerald-800\/60 { border-color: rgba(6, 95, 70, 0.6); }

.bg-white { background-color: #ffffff; }
.bg-stone-50 { background-color: var(--color-stone-50); }
.bg-stone-900 { background-color: var(--color-stone-900); }
.bg-\[\#033b22\] { background-color: var(--color-forest); }
.bg-\[\#bd121a\] { background-color: var(--color-crimson); }
.bg-emerald-950\/70 { background-color: rgba(2, 44, 34, 0.7); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

.text-white { color: #ffffff; }
.text-stone-200 { color: var(--color-stone-200); }
.text-stone-400 { color: var(--color-stone-400); }
.text-stone-500 { color: var(--color-stone-500); }
.text-stone-600 { color: var(--color-stone-600); }
.text-stone-700 { color: var(--color-stone-700); }
.text-stone-800 { color: var(--color-stone-800); }
.text-stone-900 { color: var(--color-stone-900); }
.text-emerald-300 { color: var(--color-emerald-300); }
.text-emerald-400 { color: var(--color-emerald-400); }
.text-\[\#033b22\] { color: var(--color-forest); }
.text-\[\#bd121a\] { color: var(--color-crimson); }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; } .h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.h-44 { height: 11rem; }
.h-96 { height: 24rem; }

.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.transition-all { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.transition-transform { transition: transform 0.2s ease-in-out; }
.duration-500 { transition-duration: 500ms; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
  border-bottom: 1px solid var(--color-stone-200);
}

.hover\:text-\[\#bd121a\]:hover { color: var(--color-crimson); }
.hover\:text-\[\#033b22\]:hover { color: var(--color-forest); }
.hover\:text-white:hover { color: #ffffff; }

.hover\:bg-\[\#022817\]:hover { background-color: var(--color-forest-hover); }
.hover\:bg-\[\#9a0e15\]:hover { background-color: var(--color-crimson-hover); }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }

.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.hover\:border-\[\#bd121a\]:hover { border-color: var(--color-crimson); }
.hover\:border-\[\#033b22\]\/30:hover { border-color: rgba(3, 59, 34, 0.3); }

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.min-h-\[620px\] {
  min-height: 620px;
}

.mix-blend-multiply {
  mix-blend-mode: multiply;
}

.bg-\[\#033b22\]\/75 {
  background-color: rgba(3, 59, 34, 0.75);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, #033b22, rgba(3, 59, 34, 0.8), transparent);
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.leading-\[1\.15\] {
  line-height: 1.15;
}

/* ==========================================================================
   5. INTERACTIVE GRIDS & HOVER STATES
   ========================================================================== */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:text-\[\#bd121a\] {
  color: var(--color-crimson);
}

.group:hover .group-hover\:bg-\[\#033b22\] {
  background-color: var(--color-forest);
}

.group:hover .group-hover\:text-white {
  color: #ffffff;
}

.group:hover .group-hover\:border-\[\#033b22\] {
  border-color: var(--color-forest);
}

.group:hover .group-hover\:shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
}

.divide-stone-100 > * + * {
  border-top-color: var(--color-stone-100);
}

.divide-emerald-900\/60 > * + * {
  border-top-color: rgba(6, 78, 59, 0.6);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (sm, md, lg)
   ========================================================================== */

/* Small Devices (>= 640px) */
@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* Medium Devices (>= 768px) */
@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }

  .md\:divide-y-0 > * + * {
    border-top-width: 0;
  }

  .md\:divide-x > * + * {
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: var(--color-stone-100);
  }

  .md\:pt-0 { padding-top: 0; }
  .md\:pt-2 { padding-top: 0.5rem; }
  .md\:pl-6 { padding-left: 1.5rem; }
  .md\:border-t-0 { border-top-width: 0; }
  .md\:border-l { border-left-width: 1px; border-left-style: solid; }

  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Large Devices (>= 1024px) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }

  .lg\:pr-6 { padding-right: 1.5rem; }
}