/* ==========================================================================
   TTG Golf School — Wilderness Club Montana (Variant B)
   Self-contained stylesheet for index-b.php.
   Adapts the toptiergolfschools.com design system (reset + tokens + global
   components + school components) for use inside the toptiergolf.com tree,
   plus bridge styles for legacy includes and a video-background hero.
   ========================================================================== */

/* ==========================================================================
   1. RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; border-spacing: 0; }
p { line-height: 1.9em; }
p, ul { font-size: 1.2em; }

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --color-primary:        #1a5632;
  --color-primary-light:  #2a7a48;
  --color-primary-dark:   #0e3b20;
  --color-secondary:      #9fcb3e;
  --color-secondary-light:#b5d96a;
  --color-white:          #ffffff;
  --color-off-white:      #f8f7f4;
  --color-light-gray:     #e8e6e1;
  --color-mid-gray:       #7a7a7a;
  --color-dark:           #1a1a1a;
  --color-body-text:      #333333;
  --color-overlay:        rgba(0, 0, 0, 0.55);
  --gradient-primary: linear-gradient(145deg,  rgba(173, 199, 87, 1) 0%, rgba(0, 71, 15, 1)  100%);

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto,
                  'Helvetica Neue', Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Layout */
  --max-width:  1200px;
  --max-width-narrow: 800px;
  --nav-height: 60px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   3. BASE + UTILITIES
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-body-text);
  background-color: var(--color-white);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow { max-width: var(--max-width-narrow); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section spacing */
.section { padding-block: var(--space-4xl); }
.section--alt { background-color: var(--color-off-white); }
.section--dark { background-color: var(--color-primary-dark); color: var(--color-white); }

.section__header { text-align: center; margin-bottom: var(--space-3xl); }
.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary-dark);
  margin: 0 auto var(--space-sm);
  max-width: 900px;

}
.section--dark .section__title { color: var(--color-white); }
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-mid-gray);
  max-width: 600px;
  margin-inline: auto;
}
.section--dark .section__subtitle { color: var(--color-light-gray); }

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: transparent;
  border-bottom: 0;
  /*transition: box-shadow var(--transition-base);*/
  transition: all .3s ease;
}
.header--scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo { display: flex; align-items: center; margin-right: 30px; }
.header__logo-img { width: 100%; max-width: 200px; }

.nav__list { display: flex; align-items: center; gap: 2.5rem; }
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link:hover, .nav__link--active { color: var(--color-secondary); }

.nav__cta {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  /*background-color: var(--color-secondary);*/
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.nav__cta:hover { background-color: var(--color-secondary-light); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); }
/*.btn--primary { background-color: var(--color-secondary); color: var(--color-white); }*/
.btn--primary { background: var(--gradient-primary); }
.btn--primary:hover { background-color: var(--color-secondary-light); color:#fff; }
.btn--outline { border: 2px solid var(--color-white); color: var(--color-white); background: transparent; }
.btn--outline:hover { background-color: var(--color-white); color: var(--color-primary-dark); }
.btn--outline-dark { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline-dark:hover { background-color: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   6. ABOUT / PREVIEW (Online Academy block)
   ========================================================================== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-preview__img {
  border-radius: var(--border-radius-lg);
  width: 100%;
  object-fit: cover;
}
.about-preview__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}
.about-preview__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
}
.about-preview__text { color: var(--color-mid-gray); margin-bottom: var(--space-xl); line-height: 1.75; }

/* ==========================================================================
   7. CTA BANNER
   ========================================================================== */
.cta-banner {
  text-align: center;
  padding-block: var(--space-5xl);
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.cta-banner__title { font-family: var(--font-heading); font-size: var(--text-4xl); margin-bottom: var(--space-md); }
.cta-banner__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  margin-inline: auto;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}
.footer__logo { width: 100%; max-width: 200px; margin-bottom: var(--space-md); }
.footer__brand-desc { font-size: var(--text-sm); line-height: 1.7; max-width: 320px; }
.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}
.footer__link { display: block; font-size: var(--text-sm); padding-block: var(--space-xs); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--color-secondary); }
.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  font-size: var(--text-xs);
}
.footer__disclaimer { text-align: center; font-size: var(--text-xs); line-height: 1.7; margin-bottom: var(--space-md); opacity: 0.7; }

/* ==========================================================================
   9. SCROLL ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in--visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   10. SCHOOL HERO (video background)
   ========================================================================== */
.school-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 140px 0 70px;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.school-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.school-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 59, 32, 0.5), rgba(14, 59, 32, 0.82));
}
.school-hero__content { position: relative; z-index: 2; max-width: 820px; text-align:center; }
.school-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.school-hero__title { text-align:center; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 800; margin-bottom: 1rem; }
.school-hero__subtitle { font-size: 1.15rem; opacity: 0.95; margin-bottom: 2rem; }
.school-hero__hosted { font-weight: 600; opacity: 0.95; margin-bottom: 0.5rem; }
.school-hero__actions { display: flex; flex-wrap: wrap; justify-content:center; gap: 1rem; margin-bottom: 2.5rem; }
.school-hero__partners { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.school-hero__partners img { display: inline-block; }

/* ==========================================================================
   11. PROSE
   ========================================================================== */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.1rem; }
.prose h3 { color: var(--color-primary-dark); margin: 1.75rem 0 0.75rem; font-size: var(--text-2xl); }
.prose .lead { font-size: 1.2rem; font-weight: 600; }
.prose a { color: var(--color-primary); font-weight: 600; }
.prose a:hover { color: var(--color-secondary); }

/* ==========================================================================
   12. VALUE CHECKLIST
   ========================================================================== */
.school-checklist { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.school-checklist li { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 600; color: #131313; }
.school-checklist svg { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; color: var(--color-primary-dark); margin-top: 0.15rem; }

/* ==========================================================================
   13. RESPONSIVE VIDEO
   ========================================================================== */
.school-video {
  width: 100%;
  max-width: 880px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}
.school-video video { display: block; width: 100%; height: auto; }

/* ==========================================================================
   14. COACHES
   ========================================================================== */
.coach { max-width: 880px; margin: 0 auto 2.5rem; }
.coach__head { text-align: center; margin-bottom: 1rem; }
.coach__name { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; color: var(--color-primary-dark); }
.coach__title { color: var(--color-primary-dark); font-weight: 700; }
.coach__photo-wrap { position: relative; display: inline-block; margin: 0 auto 1rem; }
.coach__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; }
.coach__badge { position: absolute; right: 0; bottom: 0; max-width: 75px; height: auto; border-radius: 0; }
.coach__bio {
  text-align: left;
  line-height: 1.8;
  background: #fff;
  border: 2px solid #cad89e;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   15. WEEKLY SCHEDULE
   ========================================================================== */
.schedule { display: grid; gap: 1.25rem; max-width: 880px; margin: 0 auto; }
.schedule__day {
  background: #fff;
  border: 2px solid #cad89e;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.15);
}
.schedule__day h3 { font-size: 1.2rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 0.75rem; text-transform: uppercase; }
.schedule__day p { margin-bottom: 0.6rem; }
.schedule__day ul { margin: 0.5rem 0 0.75rem 1.25rem; list-style: disc; }
.schedule__day ul ul { list-style: circle; }
.schedule__day li { margin-bottom: 0.4rem; }
.schedule__note {
  max-width: 880px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-style: italic;
  color: var(--color-mid-gray);
}

/* ==========================================================================
   16. FEATURE ROWS (What To Expect)
   ========================================================================== */
.feature-rows { display: grid; gap: 2rem; max-width: 980px; margin: 0 auto; }
.feature-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 2px solid #cad89e;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.15);
}
.feature-row__img { width: 100%; border-radius: 8px; object-fit: cover; }
.feature-row__body h3 { font-size: 1.25rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.feature-row__body p { margin-bottom: 0.6rem; }
.feature-row__lead { font-weight: 700; color: var(--color-primary-dark); }

/* ==========================================================================
   17. COURSE GALLERY
   ========================================================================== */
.school-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.school-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.school-feature-video {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 1.5rem 0;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   18. BOOKING + AS-SEEN-ON
   ========================================================================== */
.booking { background: var(--color-primary-dark); }
.booking .section__title, .booking .section__subtitle { color: #fff; }

.booking .btn,
.booking .btn:hover ,
.booking .btn--outline { color: var(--color-white); }
.booking .btn--outline:hover { color: var(--color-primary-dark); }

section.as-seen {
  padding-top: 30px;
}

.as-seen-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.as-seen-on__label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary-dark); }
.as-seen-on__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; }
.as-seen-on__logos img { display: inline-block; }

.section__divider { border: 0; border-top: 1px solid var(--color-light-gray); max-width: 760px; margin: 0 auto var(--space-2xl); }

/* ==========================================================================
   19. COST LIST
   ========================================================================== */
.cost-list { list-style: disc; margin: 1.25rem 0 1.25rem 1.5rem; }
.cost-list li { margin-bottom: 0.6rem; font-weight: 500; }

/* ==========================================================================
   20. BRIDGE STYLES FOR LEGACY INCLUDES
   ========================================================================== */
/* holiday_banner.php uses .wte-area + .container + bootstrap-ish classes */
.wte-area { padding-block: var(--space-2xl); }
.wte-area .container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-lg); }
.rounded { border-radius: var(--border-radius-lg); }
.img-fluid { max-width: 100%; height: auto; }
.text-center { text-align: center; }
.pt-0 { padding-top: 0 !important; }
.pt-5 { padding-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* school_dates.php (.byp-top / .cal-*) — harmonize with brand greens.
   The include ships its own layout CSS; we only theme the accent color and
   add a section wrapper + heading style. */
.dates-section { background-color: var(--color-off-white); }
.byp-top-1 { text-align: center; width: 100%; }
.byp-top a { color: inherit; }
p.cal-title {
  background-color: var(--color-primary) !important;
  text-transform: capitalize!important;
}
.cal-container {
  background: #fff;
  border: 2px solid #1a5631;
  border-radius: 16px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.cal-month, .cal-date { color: var(--color-body-text); }

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-preview { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .feature-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }
  .nav--open { transform: translateX(0); }
  .nav__list { flex-direction: column; padding: var(--space-xl); gap: 0; align-items: stretch; }
  .nav__link {
    display: block;
    padding-block: var(--space-md);
    font-size: var(--text-base);
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-light-gray);
  }
  .nav__cta { margin-top: var(--space-md); text-align: center; width: 100%; color: var(--color-white); }
  .nav__toggle { display: flex; }

  .section__title, .about-preview__title, .cta-banner__title { font-size: var(--text-3xl); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer__bottom { text-align: center; }
}

@media (max-width: 480px) {
  .school-hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
