/* CoachMaster Academy - Base & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary-navy: #0e2038;
  --navy-dark: #0a1728;
  --navy-light: #162c4b;
  --navy-surface: #12243d;
  
  --accent-gold: #e5a91e;
  --gold-hover: #d29612;
  --gold-light: #fef3c7;
  --gold-glow: rgba(229, 169, 30, 0.25);
  
  --dark-slate: #24272c;
  --dark-slate-hover: #1b1e22;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --card-border: #e2e8f0;
  
  /* Category Accents */
  --accent-purple: #8b5cf6;
  --accent-teal: #0d9488;
  --accent-amber: #d97706;
  --accent-green: #10b981;
  
  /* Typography */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  
  /* Layout & Elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 32, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 32, 56, 0.12);
  --shadow-hover: 0 20px 48px rgba(14, 32, 56, 0.16);
  --shadow-glow: 0 10px 30px rgba(229, 169, 30, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #111827;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 169, 30, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: #ffffff;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold);
  color: #111827;
}

.btn-dark {
  background-color: var(--navy-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-funnel-dark {
  background-color: #2b333e;
  color: #ffffff;
}

.btn-funnel-dark:hover {
  background-color: #1e242c;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
  padding: 8px 0;
  gap: 14px;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 14px);
  flex-wrap: wrap;
}

.nav-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 4px 6px;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-gold);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  margin-left: auto;
}

/* Header Buttons: Compact padding, flex-wrap & no overflow */
.site-header .btn,
.header-actions .btn,
.header-actions .btn-sm,
.btn-contact-header {
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  min-height: 36px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-decoration: none;
}

.btn-contact-header {
  color: #1e293b;
  text-transform: uppercase;
  background-color: transparent;
  border: 1.5px solid #cbd5e1;
  transition: var(--transition);
}

.btn-contact-header:hover {
  background-color: #f1f5f9;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-dark);
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0c1624;
  color: #cbd5e1;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: #94a3b8;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-contact a {
  color: #cbd5e1;
}

.footer-contact a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 23, 40, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-hover);
  transform: scale(0.92);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: #e2e8f0;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-option:hover, .payment-option.active {
  border-color: var(--accent-gold);
  background-color: var(--gold-light);
  color: #92400e;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: auto;
  border-left: 4px solid var(--accent-gold);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-links {
    gap: 6px;
  }
  .nav-item {
    font-size: 0.76rem;
    padding: 3px 4px;
  }
  .site-header .btn,
  .header-actions .btn,
  .header-actions .btn-sm,
  .btn-contact-header {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 1040px) {
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 150;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 56px;
    height: auto;
    padding: 6px 0;
  }

  .logo-img {
    height: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-sm,
  .header-actions .btn-contact-header {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .modal-card {
    padding: 24px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   Shared Components: Feature Lists & Universal Sized SVG Icons
   ========================================================================== */
.feature-item,
.offer-feature-item,
.trainer-feature-item,
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.coach-creds-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.feature-item svg,
.offer-feature-item svg,
.trainer-feature-item svg,
.offer-benefit-item svg,
.p-benefit-item svg,
.cred-item svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}

/* FAQ Accordion & Questions Button Resets */
.faq-accordion-wrap,
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Universal Programs & Cross-Sell Cards Grid
   ========================================================================== */
.programs-section,
.other-programs-section {
  padding: 80px 0;
  background-color: #fafbfc;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.program-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.program-card.card-purple {
  border-color: rgba(139, 92, 246, 0.4);
}
.program-card.card-teal {
  border-color: rgba(13, 148, 136, 0.4);
}
.program-card.card-amber {
  border-color: rgba(229, 169, 30, 0.6);
}
.program-card.card-blue {
  border-color: rgba(14, 165, 233, 0.5);
}

.program-card:hover.card-purple {
  border-color: var(--accent-purple);
}
.program-card:hover.card-teal {
  border-color: var(--accent-teal);
}
.program-card:hover.card-amber {
  border-color: var(--accent-gold);
}
.program-card:hover.card-blue {
  border-color: #0284c7;
}

.program-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tag-purple { background-color: #f3e8ff; color: #7e22ce; }
.tag-teal { background-color: #ccfbf1; color: #0f766e; }
.tag-amber { background-color: #fef3c7; color: #b45309; }
.tag-blue { background-color: #e0f2fe; color: #0369a1; }

.program-header {
  text-align: center;
  margin-bottom: 24px;
}

.program-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-bottom: 14px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
  min-height: 42px;
}

.program-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-btn-wrap {
  margin-top: auto;
  text-align: center;
}

.program-btn-wrap .btn {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .programs-grid,
  .programs-grid.programs-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .programs-grid,
  .programs-grid.programs-grid-3 {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

.modal-whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e9fbf1;
  color: #128c4a;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid #bdf0d5;
  transition: background 0.2s ease;
}

.modal-whatsapp-link:hover {
  background: #d7f7e5;
}

.modal-whatsapp-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

