/* =======================================================================
   CSS RESET & NORMALIZE (Mobile-first, wide browser support)
   ======================================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #183D59 0%, #246792 100%);
  color: #183D59;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.3em;
}
a {
  color: #183D59;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F9BF62;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #183D59;
  margin-bottom: 16px;
  line-height: 1.25;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 8px;
}
strong { font-weight: bold; }
small { font-size: 0.9em; color: #555; }

/* =======================================================================
   LAYOUT STRUCTURE & FLEXBOX DESIGN
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(24,61,89,0.08);
  transition: box-shadow 0.3s;
}
.section:last-child { margin-bottom: 0; }

/* =======================================================================
   HEADER, NAVIGATION & HERO
   ======================================================================= */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 1px 16px 0 rgba(24,61,89,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  color: #183D59;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.22s, color 0.22s;
}
.main-nav a.button-primary {
  background: #183D59;
  color: #FFFFFF;
  font-weight: 700;
  padding: 8px 22px;
  margin-left: auto;
  margin-right: 0;
  border-radius: 10px;
  box-shadow: 0 4px 20px 0 rgba(24,61,89,0.07);
  transition: background 0.22s, box-shadow 0.22s, color 0.22s;
}
.main-nav a.button-primary:hover,
.button-primary:hover {
  background: #185e90;
  color: #F9BF62;
  box-shadow: 0 7px 28px 0 rgba(24,61,89,0.13);
}
.main-nav a:hover, .main-nav a:focus {
  background: #F9BF62;
  color: #183D59;
  outline: none;
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 24px;
  margin-left: 0;
}
.button-primary {
  display: inline-block;
  background: #183D59;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 36px;
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(24,61,89,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-align: center;
  margin-top: 10px;
}
.button-primary:active {
  background: #246792;
  transform: scale(0.99);
}
.button-primary:focus {
  outline: 2px solid #F9BF62;
}

/* Hamburger Button (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #183D59;
  font-size: 2rem;
  border: none;
  padding: 4px 14px;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 99;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F9BF62;
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,61,89,0.95);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.7,.2,.2,1);
  z-index: 1100;
  overflow-y: auto;
  padding: 24px 28px 0 28px;
  box-shadow: 5px 0 40px 0 rgba(24,61,89,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #F9BF62;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  z-index: 1110;
  padding: 4px 12px;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFFFFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 36px;
}
.mobile-nav a {
  color: #FFFFFF;
  font-size: 1.3rem;
  text-decoration: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9BF62;
  color: #183D59;
}

/* =======================================================================
   HERO/INTRO SECTION
   ======================================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #FFFFFF 70%, #F9BF62 100%);
  box-shadow: 0 2px 32px 0 rgba(24,61,89,0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}
section:first-child {
  margin-top: 24px;
}
section:last-child {
  margin-bottom: 0;
}
section .container {
  padding-left: 0;
  padding-right: 0;
}

/* Visual Tagline */
.tagline {
  background: #F9BF62;
  color: #183D59;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  font-size: 1rem;
  margin-top: 8px;
}

/* =======================================================================
   CARDS, FEATURES, FLEX GRIDS, TESTIMONIALS
   ======================================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 250px;
  min-width: 250px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 3px 32px 0 rgba(24,61,89,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 24px 20px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(24,61,89,0.14);
  transform: translateY(-6px) scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-item {
  background: #F8FAFB;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(24,61,89,0.05);
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s;
}
.feature-item img {
  height: 42px;
  width: 42px;
  margin-bottom: 6px;
}
.feature-item h3 {
  color: #183D59;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.feature-item p {
  margin-bottom: 0;
  color: #576066;
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 6px 20px 0 rgba(24,61,89,0.13);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F9F9FB;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 16px 0 rgba(24,61,89,0.07);
  margin-bottom: 20px;
  border-left: 5px solid #F9BF62;
}
.testimonial-card p {
  color: #183D59;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
}
.testimonial-meta {
  color: #185e90;
  font-size: 0.96rem;
  margin-top: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.testimonial-meta span {
  display: inline-block;
}

.trainer-bio {
  background: #FFFFFF;
  padding: 18px 20px 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(24,61,89,0.06);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.trainer-bio h3 {
  color: #183D59;
  font-size: 1.15rem;
}
.trainer-bio ul {
  margin-top: 4px;
}

/* Schedule Table Styling */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  margin: 20px 0 16px 0;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(24,61,89,0.09);
  font-size: 1rem;
  overflow: hidden;
}
.schedule-table th, .schedule-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #EEE;
}
.schedule-table th {
  background: #F9BF62;
  color: #183D59;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.05rem;
}
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  width: 100%;
  background: #183D59;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 15px 28px 15px;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #FFFFFF;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #F9BF62;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #F9BF62;
  font-size: 0.96rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1200;
  background: #183D59;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 -2px 18px 0 rgba(24,61,89,0.13);
  transition: transform 0.35s;
}
.cookie-consent-banner .cookie-text {
  font-size: 1.07rem;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 24px;
  margin: 0 2px;
  background: #F9BF62;
  color: #183D59;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 10px 0 rgba(24,61,89,0.09);
}
.cookie-btn.settings {
  background: #FFFFFF;
  color: #183D59;
  border: 1px solid #F9BF62;
}
.cookie-btn.accept:hover {
  background: #183D59;
  color: #F9BF62;
}
.cookie-btn.reject {
  background: #fff0de;
  color: #183D59;
}
.cookie-btn.reject:hover {
  background: #F9BF62;
  color: #183D59;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 200px) scale(0.97);
  opacity: 0;
  z-index: 1250;
  min-width: 310px;
  max-width: 97vw;
  background: #FFFFFF;
  color: #183D59;
  border-radius: 18px;
  box-shadow: 0 6px 40px 0 rgba(24,61,89,0.26);
  padding: 36px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.33s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal .category-label {
  font-weight: 600;
  font-size: 1.05rem;
}
.cookie-modal .toggle-switch {
  margin-left: auto;
  appearance: none;
  width: 38px;
  height: 22px;
  background: #F9BF62;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch:checked {
  background: #183D59;
}
.cookie-modal .toggle-switch:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 6px rgba(24,61,89,0.12);
}
.cookie-modal .toggle-switch:checked:before {
  left: 20px;
}
.cookie-modal .essential:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn.close {
  background: #FFFFFF;
  color: #183D59;
  border: 1px solid #F9BF62;
  font-size: 1rem;
}
.cookie-modal .cookie-btn.save {
  background: #183D59;
  color: #FFFFFF;
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (mobile-first, with breakpoints)
   ======================================================================= */
@media (max-width: 1100px) {
  .container { max-width: 100vw; }
}
@media (max-width: 900px) {
  .card, .feature-item {
    min-width: 180px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  h3, h4 { font-size: 1.06rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .section, section {
    padding: 26px 7px;
    margin-bottom: 40px;
  }
  .testimonial-card, .trainer-bio {
    padding: 16px 8px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 540px) {
  .card, .feature-item {
    padding: 14px 5px;
    min-width: 90px;
  }
  section, .section {
    padding: 14px 2.5vw;
  }
  .cookie-modal { padding: 18px 7px; }
}

/* ====================================================================
   FLEX UTILITIES (Used across structure for forced layout)
   ==================================================================== */
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }

/* =======================================================================
   ADDITIONAL MICRO-INTERACTIONS & TRANSITIONS
   ======================================================================= */
.button-primary,
.feature-item, .card, .testimonial-card, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.22s, transform 0.19s, background 0.22s, color 0.18s;
}

/* Focus styles for accessibility */
a:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid #F9BF62;
  outline-offset: 3px;
}

/* =======================================================================
   DARK TEXT for Testimonial Cards (on white/light BG)
   ======================================================================= */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-meta {
  color: #183D59 !important;
}

/* =======================================================================
   OVERRIDE TABLES FOR HORIZONTAL SCROLL ON MOBILE
   ======================================================================= */
@media (max-width: 620px) {
  .schedule-table, .schedule-table thead, .schedule-table tbody, .schedule-table tr, .schedule-table th, .schedule-table td {
    display: block;
    width: 100%;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tr {
    margin-bottom: 20px;
  }
  .schedule-table td {
    padding: 10px 6px;
    border: none;
    border-bottom: 1px solid #EEE;
    position: relative;
  }
}

/* END OF MAIN STYLE.CSS */
