@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* Core Brand Colors (extracted from CMYK) */
  --color-primary-red: #F20033; /* Updated brand red */
  --color-accent-yellow: #FFD414; /* Updated brand yellow */
  --color-accent-green: #40BF00; /* Updated brand green */
  --color-bg-creme: #F9F9F6; /* C:0 M:0 Y:2 K:3 */
  
  /* Neutral Palette */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F2F2Ef;
  --color-text-dark: #1A1A1A;
  --color-text-muted: #555555;
  --color-border: #E5E5E0;
  
  /* Typography */
  --font-hero: 'Bombardier', 'Arial Black', Impact, sans-serif;
  --font-heading: 'Libre Baskerville', 'Baskerville', serif;
  --font-body: 'Galano Grotesque', 'Montserrat', sans-serif;

  /* Shadows & UI Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-btn: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* ==========================================
   CSS RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-creme);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.about-hero-bg-wrapper {
  position: relative;
  width: 100%;
  margin-top: 150px;
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-story-hero {
  font-family: var(--font-hero);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.font-hero {
  font-family: var(--font-hero);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-primary { color: var(--color-primary-red); }
.text-yellow  { color: var(--color-accent-yellow); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.bg-yellow { background-color: var(--color-accent-yellow); }

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Yellow Tag Labels */
.section-tag {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-tag {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.hide-on-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.bg-white { background-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(3px); }
.bg-creme { background-color: rgba(250, 246, 240, 0.4); backdrop-filter: blur(3px); }
.bg-light { background-color: rgba(247, 247, 247, 0.4); backdrop-filter: blur(3px); }
.bg-red { 
  background-color: var(--color-primary-red); 
  color: #fff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .bg-red::before {
    display: none;
  }
}

.bg-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hss-banner-bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.bg-red > .container {
  position: relative;
  z-index: 2;
}

.bg-red h2, .bg-red h3, .bg-red p.subtitle { color: #fff; }

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 992px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* Helpers */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.p-3 { padding: 1.5rem; }
.d-inline-block { display: inline-block; }
.flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Utilities */
.text-gradient-teal {
  background: linear-gradient(90deg, var(--color-primary-red), var(--color-accent-yellow), var(--color-accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-multi {
  background: linear-gradient(
    to right,
    #F20033 0%,
    #FFD414 50%,
    #40BF00 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
}

/* ==========================================
   MOBILE RESPONSIVENESS (OVERRIDE)
   ========================================== */
@media (max-width: 768px) {
  .logo img {
    height: 55px !important; /* Force smaller size on mobile */
  }
  .header .container {
    padding: 1rem 1.5rem;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 576px) {
  .hero .flex, 
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .btn {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .stat-circle {
    width: 110px;
    height: 110px;
  }
}

/* ==========================================
   IMAGE HOVER ANIMATIONS
   ========================================== */
.img-wrapper {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  background-color: var(--color-bg-light);
}

.img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.img-wrapper:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.img-wrapper:hover img {
  transform: scale(1.08);
}
