/* ============================================
   NEW GAME TAEKWONDO - MAIN STYLESHEET
   Consolidated CSS for home page rebuild
   ============================================ */

/* ----------- 1. CSS Custom Properties (Design Tokens) ----------- */
:root {
  /* Colors */
  --color-primary: #0055ff;
  --color-primary-hover: #0044cc;
  --color-text: #000000;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-dark: #000000;
  --color-border: #000000;
  --color-offer-bg: #ffcc00;
  --color-offer-text: #000000;

  /* Typography */
  --font-family-base: 'Roboto', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing - use Bootstrap utilities where possible */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2.5rem;   /* 40px */
  --spacing-xl: 3rem;     /* 48px */

  /* Borders */
  --border-radius: 10px;
  --border-radius-sm: 5px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.5s ease-in-out;
}

/* ----------- 2. Base Styles ----------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

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

/* ----------- 3. Typography ----------- */
.section-heading {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text);
}

/* ----------- 4. Hero Section ----------- */
#hero {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#heroContainer {
  position: relative;
  height: 100%;
  min-height: 700px; /* Ensure enough space for hero content on mobile */
}

/* Logo - hidden by default, shown via media queries */
#logo {
  display: none;
}

#logoMOB {
  display: none;
}

.logo {
  position: relative;
  display: block;
  margin: 0 auto;
}

/* Hero Block - default mobile styles */
#heroBlock {
  position: absolute;
  padding: 30px;
  bottom: 0;
  color: #ffffff;
  z-index: 10;
}

/* Video container */
#hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
}

#hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-brow {
  font-size: 1.125rem;
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--spacing-xs);
}

.hero-headline {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero-subhead {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

/* Offer Callout - NEW */
.offer-callout {
  background-color: var(--color-offer-bg);
  color: var(--color-offer-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  display: table;
}

.offer-label {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.offer-value {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.offer-text {
  font-size: 1.125rem;
  margin: 0;
}

.offer-text strong {
  font-weight: var(--font-weight-bold);
}

/* Hero Video */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #000;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------- 5. CTA Buttons ----------- */
.hero-cta {
  display: inline-block;
  padding: 20px 30px;
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  background-color: var(--color-primary);
  text-decoration: none;
  text-align: center;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.hero-cta:hover,
.hero-cta:focus {
  color: var(--color-primary);
  background-color: #ffffff;
  text-decoration: none;
}

/* ----------- 6. Programs Section ----------- */
.programs-section {
  background-color: var(--color-bg);
}

.program-card {
  padding: 0;
}

.program-card-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.program-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.program-age {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
}

.program-desc {
  font-size: 1rem;
  line-height: 1.6;
}

.program-eligibility {
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
}

/* ----------- 7. Schedule Section ----------- */
.schedule-section {
  background-color: var(--color-bg);
  text-align: center;
}

.schedule-day {
  margin-bottom: var(--spacing-lg);
}

.schedule-day-header {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
}

.schedule-block {
  display: grid;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--color-border);
  min-height: 130px;
  margin-bottom: 10px;
}

.schedule-block-empty {
  border-color: transparent;
}

.schedule-class {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}

.schedule-audience {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.schedule-time {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ----------- 8. Facility Section ----------- */
.facility-section {
  background-color: var(--color-bg);
}

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

/* ----------- 9. Footer ----------- */
.footer-section {
  background-color: var(--color-bg);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
}

.footer-tagline {
  font-size: 1.125rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  color: var(--color-text);
  text-decoration: none;
  transition: text-decoration var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  text-decoration: underline;
  color: var(--color-text);
}

.footer-address {
  font-style: normal;
  font-size: 1rem;
}

.footer-address p {
  margin-bottom: var(--spacing-sm);
}

.footer-affiliations-label {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
}

.footer-affiliations {
  display: flex;
  gap: 20px;
}

.footer-affiliations img {
  height: 80px;
  width: auto;
}

.footer-credits,
.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
}

.footer-legal a {
  font-size: 0.875rem;
}

/* ----------- 10. Sliding CTA Bar ----------- */
.sliding-cta {
  position: fixed;
  top: -150px;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: top var(--transition-medium);
}

.sliding-cta.visible {
  top: 0;
}

/* ----------- 11. Responsive Design (Mobile First) ----------- */

/* Mobile (375px and up) */
@media screen and (min-width: 375px) {
  #logo {
    display: none;
  }

  #logoMOB {
    display: block;
    position: absolute;
    height: 100px;
    margin-top: 20px;
    left: 50%;
    transform: translate(-50%);
    z-index: 10;
  }

  #heroBlock {
    position: absolute;
    padding: 30px;
    bottom: 0;
    color: #ffffff;
  }

  .hero-headline {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-headline {
    font-size: 2.25rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .section-heading {
    font-size: 2.25rem;
  }

  .schedule-day {
    margin-bottom: 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #heroContainer {
    min-height: 60vh; /* Landscape video - use viewport-based height */
  }

  #logo {
    display: block;
    position: absolute;
    height: 180px;
    margin-top: 40px;
    left: 50%;
    transform: translate(-50%);
    z-index: 10;
  }

  #logoMOB {
    display: none;
  }

  #heroBlock {
    position: absolute;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.25);
    bottom: 10%;
    left: 10%;
    color: #ffffff;
    border-radius: var(--border-radius);
  }

  .hero-brow {
    font-size: 1.5rem;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .hero-subhead {
    font-size: 1.25rem;
  }

  .hero-cta {
    font-size: 1.25rem;
    padding: 25px 40px;
  }

  .offer-callout {
    padding: var(--spacing-sm) var(--spacing-lg);
  }

  .offer-text {
    font-size: 1.25rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-headline {
    font-size: 3.375rem;
  }
}

/* ----------- 12. Reduced Motion ----------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ----------- 13. Print Styles ----------- */
@media print {
  .hero-video-container,
  .sliding-cta,
  #map {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    background: #fff;
  }

  .hero-content {
    position: static;
    color: #000;
    background: none;
  }
}
