/* ===========================
   CSS Variables
   =========================== */
:root {
  --red: #f44336;
  --dark: #1a1a1a;
  --charcoal: #333333;
  --gray-bg: #f5f5f5;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===========================
   Typography
   =========================== */
.font-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.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-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.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; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   Layout
   =========================== */
.container { width: 100%; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 64rem; }
.max-w-6xl { max-width: 84rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===========================
   Flexbox
   =========================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* ===========================
   Spacing — Padding
   =========================== */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2-5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }

/* ===========================
   Spacing — Margin
   =========================== */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-0-5 { margin-top: 0.125rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.ml-auto { margin-left: auto; }

/* ===========================
   Spacing — Gap
   =========================== */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ===========================
   Spacing — Space Between
   =========================== */
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-10 > * + * { margin-left: 2.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ===========================
   Sizing — Width
   =========================== */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }

/* ===========================
   Sizing — Height
   =========================== */
.h-full { height: 100%; }
.h-half { height: 0.125rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.min-h-600 { min-height: 600px; }
.min-h-350 { min-height: 350px; }
.h-screen { height: 100vh; }

/* ===========================
   Text Colors
   =========================== */
.text-white { color: #fff; }
.text-red { color: var(--red); }
.text-dark { color: var(--dark); }
.text-charcoal { color: var(--charcoal); }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-dark { color: #15803d; }
.text-red-dark { color: #b91c1c; }

/* ===========================
   Background Colors
   =========================== */
.bg-white { background-color: #fff; }
.bg-red { background-color: var(--red); }
.bg-dark { background-color: var(--dark); }
.bg-gray { background-color: var(--gray-bg); }
.bg-transparent { background-color: transparent; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-800 { background-color: #1f2937; }
.bg-green-light { background-color: #dcfce7; }
.bg-red-light { background-color: #fee2e2; }
.bg-white-10 { background-color: rgba(255,255,255,0.1); }
.bg-dark-95 { background-color: rgba(26,26,26,0.95); }
.bg-dark-70 { background-color: rgba(26,26,26,0.7); }
.bg-dark-75 { background-color: rgba(26,26,26,0.75); }

/* CMS badge colors */
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-yellow-500 { background-color: #eab308; }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-yellow-700 { background-color: #a16207; }
.bg-purple-600 { background-color: #9333ea; }
.bg-purple-700 { background-color: #7e22ce; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-pink-600 { background-color: #db2777; }
.bg-pink-700 { background-color: #be185d; }
.bg-orange-600 { background-color: #ea580c; }
.bg-orange-700 { background-color: #c2410c; }
.bg-teal-600 { background-color: #0d9488; }
.bg-teal-700 { background-color: #0f766e; }

/* ===========================
   Gradients
   =========================== */
.gradient-dark-right {
  background-image: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
}
.gradient-dark-top {
  background-image: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

/* ===========================
   Borders
   =========================== */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }

.border-red { border-color: var(--red); }
.border-red-light { border-color: #f87171; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-green { border-color: #4ade80; }
.border-red400 { border-color: #f87171; }

/* ===========================
   Border Radius
   =========================== */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* ===========================
   Shadows
   =========================== */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* ===========================
   Opacity
   =========================== */
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }

/* ===========================
   Effects
   =========================== */
.grayscale { filter: grayscale(100%); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.accent-red { accent-color: var(--red); }
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }

/* ===========================
   Transition
   =========================== */
.transition { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ===========================
   Object Fit
   =========================== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ===========================
   Position
   =========================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }

/* ===========================
   Z-Index
   =========================== */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===========================
   Display & Overflow
   =========================== */
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.leading-none { line-height: 1; }

/* ===========================
   Hover States
   =========================== */
.hover-text-red:hover { color: var(--red); }
.hover-text-dark:hover { color: var(--dark); }
.hover-text-white:hover { color: #fff; }
.hover-text-red-dark:hover { color: #b91c1c; }
.hover-bg-red:hover { background-color: var(--red); }
.hover-bg-red-dark:hover { background-color: #b91c1c; }
.hover-bg-white:hover { background-color: #fff; }
.hover-bg-green-700:hover { background-color: #15803d; }
.hover-border-red:hover { border-color: var(--red); }
.hover-shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* ===========================
   Group Hover
   =========================== */
.group:hover .group-hover-text-red { color: var(--red); }
.group:hover .group-hover-scale { transform: scale(1.05); }

/* ===========================
   Responsive — md (768px)
   =========================== */
@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-block { display: block; }
  .md-hidden { display: none; }
  .md-flex-row { flex-direction: row; }
  .md-px-16 { padding-left: 4rem; padding-right: 4rem; }
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .md-col-1 { grid-column: span 1 / span 1; }
  .md-col-3 { grid-column: span 3 / span 3; }
  .md-h-96 { height: 24rem; }
  .md-text-5xl { font-size: 3rem; line-height: 1; }
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ===========================
   Responsive — lg (1024px)
   =========================== */
@media (min-width: 1024px) {
  .lg-text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ===========================
   Navigation Link
   =========================== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--red);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(26,26,26,0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* ===========================
   Prose (Article Content)
   =========================== */
.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #4b5563;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #4b5563;
}
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.prose blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--charcoal);
  margin: 1.5rem 0;
}
