/* ==========================================================================
   Warriors Academy - Comprehensive Tailored Design System for Page Builder
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800;900&family=Public+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Base Reset & Variables */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e0bfbc;
}

:root {
  --primary: #7f0315;
  --primary-hover: #a12229;
  --deep-red: #7A1A1E;
  --on-primary: #ffffff;
  --primary-fixed: #ffdad7;
  --on-primary-fixed-variant: #8e121d;
  --surface: #fff8f7;
  --surface-variant: #f6dddb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #fff0ef;
  --surface-container: #ffe9e7;
  --surface-container-high: #fce2e1;
  --surface-container-highest: #f6dddb;
  --on-background: #251818;
  --on-surface: #251818;
  --on-surface-variant: #59413f;
  --outline: #8c706f;
  --outline-variant: #e0bfbc;
  --border-subtle: #E4E4E7;
  --text-muted: #71717A;
  --error: #ba1a1a;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Public Sans', sans-serif;
  color: var(--on-surface);
  background-color: var(--surface-container-lowest);
  -webkit-font-smoothing: antialiased;
}

/* Typography Fonts */
h1, h2, h3, h4, h5, h6,
.font-display-lg,
.font-headline-lg,
.font-headline-lg-mobile,
.font-title-md {
  font-family: 'Hanken Grotesk', sans-serif;
  margin-top: 0;
}

p, span, a, button, input, select, textarea, div,
.font-body-lg,
.font-body-md,
.font-label-md,
.font-label-sm {
  font-family: 'Public Sans', sans-serif;
}

/* Typography Sizes */
.text-display-lg { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; font-weight: 800; }
.text-headline-lg { font-size: 32px; line-height: 40px; font-weight: 700; }
.text-headline-lg-mobile { font-size: 28px; line-height: 36px; font-weight: 700; }
.text-title-md { font-size: 20px; line-height: 28px; font-weight: 600; }
.text-body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 24px; font-weight: 400; }
.text-label-md { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; }
.text-label-sm { font-size: 12px; line-height: 16px; font-weight: 500; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Text Colors */
.text-primary { color: #7f0315; }
.text-deep-red { color: #7A1A1E; }
.text-on-primary { color: #ffffff; }
.text-on-primary-fixed-variant { color: #8e121d; }
.text-on-background { color: #251818; }
.text-on-surface { color: #251818; }
.text-on-surface-variant { color: #59413f; }
.text-surface-variant { color: #f6dddb; }
.text-text-muted { color: #71717A; }
.text-error { color: #ba1a1a; }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* Dark container text defaults (CTA Card etc) */
.bg-on-background h1,
.bg-on-background h2,
.bg-on-background h3,
.text-on-primary h1,
.text-on-primary h2,
.text-on-primary h3 {
  color: #ffffff;
}

.bg-on-background p,
.bg-on-background .text-surface-variant {
  color: rgba(255, 255, 255, 0.8);
}

/* Backgrounds */
.bg-primary { background-color: #7f0315; }
.bg-primary-container { background-color: #a12229; }
.bg-primary-fixed { background-color: #ffdad7; }
.bg-deep-red { background-color: #7A1A1E; }
.bg-surface { background-color: #fff8f7; }
.bg-surface-container-lowest { background-color: #ffffff; }
.bg-surface-container-low { background-color: #fff0ef; }
.bg-surface-container { background-color: #ffe9e7; }
.bg-surface-container-high { background-color: #fce2e1; }
.bg-surface-container-highest { background-color: #f6dddb; }
.bg-surface-variant { background-color: #f6dddb; }
.bg-surface-gray { background-color: #F8F9FA; }
.bg-on-background { background-color: #251818; }
.bg-white { background-color: #ffffff; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-primary { border-color: #7f0315; }
.border-outline { border-color: #8c706f; }
.border-outline-variant { border-color: #e0bfbc; }
.border-border-subtle { border-color: #E4E4E7; }
.border-on-background { border-color: #251818; }
.border-surface-variant { border-color: rgba(255, 255, 255, 0.3); }

/* Border Radius */
.rounded-sm { border-radius: 0.125rem; }
.rounded, .rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Buttons Style */
a.bg-primary, button.bg-primary {
  background-color: #7f0315;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(127, 3, 21, 0.25);
  transition: all 0.2s ease-in-out;
}

a.bg-primary:hover, button.bg-primary:hover {
  background-color: #a12229;
  box-shadow: 0 6px 20px rgba(127, 3, 21, 0.35);
  transform: translateY(-1px);
}

/* Card Button: E-Learning Outline to Solid Red on Hover */
a.border-primary, button.border-primary {
  border: 2px solid #7f0315;
  color: #7f0315;
  background-color: transparent;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.25s ease-in-out;
}

a.border-primary:hover, button.border-primary:hover,
.group:hover a.border-primary, .group:hover button.border-primary,
.group:hover .group-hover\:bg-primary {
  background-color: #7f0315;
  color: #ffffff;
  border-color: #7f0315;
}

.group:hover .group-hover\:text-on-primary,
.group:hover .group-hover\:text-white {
  color: #ffffff;
}

/* Card Button: Bootcamp White Button on Dark Red */
a.bg-on-primary, button.bg-on-primary {
  background-color: #ffffff;
  color: #7f0315;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease-in-out;
}

a.bg-on-primary:hover, button.bg-on-primary:hover,
.hover\:bg-primary-fixed:hover {
  background-color: #ffdad7;
  color: #7f0315;
  transform: translateY(-1px);
}

a.border-on-background, button.border-on-background {
  border: 2px solid #251818;
  color: #251818;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

a.border-surface-variant, button.border-surface-variant {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

a.border-surface-variant:hover, button.border-surface-variant:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Footer Styling */
footer,
footer.bg-surface-container-lowest {
  background-color: #ffffff;
  border-top: 1px solid #e0bfbc;
  color: #251818;
}
footer .bg-surface-container {
  background-color: #ffe9e7;
}
footer .bg-surface-container-low {
  background-color: #fff0ef;
}
footer a {
  text-decoration: none;
  color: #59413f;
  transition: color 0.2s ease-in-out;
}
footer a:hover {
  color: #7f0315;
}
footer svg {
  display: inline-block;
  vertical-align: middle;
}

/* Badges */
span.bg-primary-fixed {
  background-color: #ffdad7;
  color: #8e121d;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* Layout & Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Grid */
.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)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gaps */
.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-gutter { gap: 24px; }

/* Spacing Padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.p-20 { padding: 5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5, .py-2_5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-0 { padding-top: 0; }
.pt-12 { padding-top: 3rem; }
.pb-24 { padding-bottom: 6rem; }

/* Margin Spacing */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.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; }
.mt-auto { margin-top: auto; }

/* Width & Max-width */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-max-width { max-width: 1280px; margin-left: auto; margin-right: auto; }
.px-margin-mobile { padding-left: 16px; padding-right: 16px; }
.px-margin-desktop { padding-left: 48px; padding-right: 48px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.opacity-10 { opacity: 0.1; }

/* Media & Images */
img { max-width: 100%; height: auto; vertical-align: middle; }
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Shadows */
.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 -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-primary\/20, .shadow-primary-20 { box-shadow: 0 10px 25px rgba(127, 3, 21, 0.2); }

/* Material Symbols Icon */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Responsive Desktop Rules (Screen width > 768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:gap-gutter { gap: 24px; }
  .md\:px-margin-desktop { padding-left: 48px; padding-right: 48px; }
  .md\:pt-24 { padding-top: 6rem; }
  .md\:pb-32 { padding-bottom: 8rem; }
  .md\:p-20 { padding: 5rem; }
  .md\:text-display-lg { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; font-weight: 800; }
  .md\:aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
