/* ========================
   CSS RESET & NORMALIZATION
   ======================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #F9F7F2;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #F9F7F2;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  text-decoration: none;
  color: #13305B;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #47A045;
}

/* =========================
   BRAND COLOR VARIABLES
   ========================= */
:root {
  --brand-primary: #13305B;
  --brand-secondary: #47A045;
  --brand-accent: #F5F5F5;
  --brand-background: #F9F7F2;
  --brand-orange: #F6C453;
  --brand-yellow: #FFE6A7;
  --neutral-dark: #222;
  --neutral-mid: #666;
  --neutral-light: #fff;
  --shadow-main: 0 6px 24px rgba(19,48,91,0.07), 0 2px 6px rgba(70,160,69,0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* =========================
   BASIC TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.subheadline {
  font-size: 1.18rem;
  font-family: var(--font-body);
  color: var(--brand-secondary);
  margin-bottom: 18px;
  font-weight: 500;
}
p {
  color: var(--neutral-mid);
  margin-bottom: 18px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ===============
   LAYOUT SPACING
   =============== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--neutral-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  padding: 32px 22px;
  gap: 14px;
  margin-bottom: 24px;
}

/* =====================
   GLOBAL BUTTON STYLES
   ===================== */
.cta-btn {
  appearance: none;
  border: none;
  background: var(--brand-secondary);
  color: var(--neutral-light);
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(70,160,69,0.06);
  transition: background 0.16s, box-shadow 0.18s, transform 0.18s;
  margin-top: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-orange);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(246,196,83,0.10);
}
button {
  font-family: var(--font-body);
}

/* =====================
   HEADER & MAIN NAVIGATION
   ===================== */
header {
  width: 100%;
  background: var(--neutral-light);
  box-shadow: 0 3px 12px rgba(19,48,91,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0; left: 0;
  z-index: 1100;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 32px;
  border-radius: 0;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.03rem;
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-yellow);
  color: var(--brand-secondary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--brand-orange);
  color: var(--brand-primary);
  font-size: 2rem;
  border: none;
  padding: 7px 19px 5px 19px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(246,196,83,0.09);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary);
  color: var(--neutral-light);
}

/* ===================
   MOBILE MENU OVERLAY
   =================== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(19,48,91, 0.90);
  z-index: 14000;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 0 0;
  background: var(--brand-orange);
  color: var(--brand-primary);
  border: none;
  font-size: 2rem;
  padding: 10px 19px 8px 19px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(246,196,83,0.11);
  transition: background 0.13s, color 0.13s;
  z-index: 16001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: var(--neutral-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-top: 38px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--neutral-light);
  padding: 13px 10px 13px 0px;
  border-radius: var(--radius-lg);
  margin-right: 32px;
  margin-bottom: 9px;
  width: calc(100% - 32px);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-yellow);
  color: var(--brand-primary);
}

/* ===========================
   RESPONSIVE HEADER NAV LOGIC
   =========================== */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    display: none;
  }
}
@media (max-width: 670px) {
  header {
    flex-direction: row;
    padding: 10px 10px 10px 10px;
  }
  .container {
    padding: 0 4px;
  }
}

/* ============================
   HERO, FEATURES, GENERAL FLEX
   ============================ */
.feature-grid, .features-section, .equipment-features, .area-descriptions, .benefits-list,
.membership-options-list, .course-list, .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid, .features-section {
  gap: 30px 32px;
}
.feature-item {
  background: var(--brand-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(70,160,69,0.11);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 10px 28px rgba(19,48,91,0.09), 0 4px 14px rgba(70,160,69,0.08);
  transform: translateY(-3px) scale(1.03);
}

/* =============
   CARDS PATTERNS
   ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--neutral-light);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 390px;
  flex: 1 1 260px;
  overflow: hidden;
  transition: box-shadow 0.21s, transform 0.21s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px;
}
.card:hover {
  box-shadow: 0 14px 38px rgba(19,48,91,0.10);
  transform: translateY(-3px) scale(1.025);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ================
   TEAM/PROFILE LIST
   ================ */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.trainer-profile {
  background: var(--neutral-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(70,160,69,0.07);
  padding: 20px 19px 16px 19px;
  min-width: 210px;
  max-width: 350px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* ==============
   TESTIMONIALS
   ============== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #fffbe5;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(246,196,83,0.08);
  min-width: 240px;
  max-width: 390px;
  flex: 1 1 240px;
  margin-bottom: 24px;
  border: 1.5px solid #ffedbb;
}
.testimonial-card p {
  color: #13305B;
  font-size: 1.02rem;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.42;
}
.testimonial-card strong {
  color: var(--brand-secondary);
  font-size: .99rem;
  font-family: var(--font-display);
}

/* ===========================
   TABLE: MEMBERSHIP COMPARISON
   =========================== */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 30px;
}
.comparison-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  background: var(--neutral-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(19,48,91,0.05);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 11px 16px;
  text-align: center;
  border-bottom: 1px solid #fde4a1;
  font-size: 1rem;
}
.comparison-table th {
  background: #FFF5CC;
  color: var(--brand-primary);
  font-family: var(--font-display);
}
.comparison-table td {
  color: var(--neutral-mid);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--brand-primary);
  color: var(--neutral-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 38px 0 40px 0;
}
footer img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 0;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--brand-orange);
  font-family: var(--font-display);
  font-size: 1.04rem;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: background 0.13s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-orange);
  color: var(--brand-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--neutral-light);
  opacity: 0.9;
}

/* ============
   MISC SECTIONS
   ============ */
.background-highlight {
  background: var(--brand-yellow);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 1.05rem;
  font-family: var(--font-display);
  margin: 18px 0 0 0;
  display: inline-block;
}
.philosophy-statement {
  background: var(--brand-yellow);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  text-align: center;
  font-size: 1.13rem;
  font-family: var(--font-display);
  margin-top: 12px;
  margin-bottom: 8px;
  font-style: italic;
  box-shadow: 0 2px 10px rgba(246,196,83,0.06);
}
.contact-form-hint {
  background: #f7faeed8;
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 1px 6px rgba(70,160,69,0.08);
  margin-bottom: 8px;
}
.map-preview {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 16px 0 18px 0;
}
.map-preview img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(19,48,91,0.08);
}

/* ===========================
   RESPONSIVE DESIGN MOBILE FIRST
   =========================== */
@media (max-width: 900px) {
  .testimonial-slider, .content-grid, .feature-grid, .team-list, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 96vw;
    padding: 0 6px;
  }
  .section {
    padding: 28px 3vw;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  img, .map-preview img {
    max-width: 100%;
  }
  .main-nav {
    display: none !important;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.41rem; }
  h3 { font-size: 1.12rem; }
  .feature-item, .card, .trainer-profile, .testimonial-card {
    min-width: 95vw;
    max-width: 98vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ====================
   HOVER, MICRO-ACTIONS
   ==================== */
a, button, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, .mobile-menu-close {
  outline: none;
  transition: box-shadow 0.18s, color 0.10s, background 0.13s, transform 0.16s;
}
a:focus, button:focus {
  box-shadow: 0 0 0 2px var(--brand-orange);
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  bottom: 0;
  background: #FFF5CC;
  color: var(--brand-primary);
  box-shadow: 0 -2px 14px rgba(246,196,83,0.13);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 22px 20px 24px 20px;
  z-index: 25000;
  animation: slideup-cookie 0.7s cubic-bezier(0.72,0.04,0.25,1);
}
@keyframes slideup-cookie {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  max-width: 600px;
  font-size: 1.04rem;
  color: var(--brand-primary);
}
.cookie-banner__btns {
  display: flex;
  gap: 10px;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 1.01rem;
  font-family: var(--font-display);
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, transform 0.11s;
}
.cookie-btn-accept {
  background: var(--brand-secondary);
  color: var(--neutral-light);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--brand-orange);
  color: var(--brand-primary);
}
.cookie-btn-reject {
  background: var(--brand-orange);
  color: var(--brand-primary);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--brand-primary);
  color: var(--neutral-light);
}
.cookie-btn-settings {
  background: var(--neutral-light);
  color: var(--brand-primary);
  border: 1.2px solid var(--brand-primary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--brand-yellow);
  color: var(--brand-secondary);
}

/* =====================
   COOKIE PREFERENCES MODAL
   ===================== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19,48,91,0.62);
  z-index: 30001;
  transition: background 0.23s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  animation: fadein-modal 0.28s cubic-bezier(0.7,0,0.3,1);
}
@keyframes fadein-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: var(--neutral-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 24px rgba(70,160,69,0.11);
  padding: 38px 30px 30px 30px;
  max-width: 430px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  z-index: 40001;
  animation: popcookie 0.44s cubic-bezier(0.7,0,0.3,1);
}
@keyframes popcookie {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal__title {
  font-size: 1.44rem;
  color: var(--brand-primary);
  font-family: var(--font-display);
  margin-bottom: 11px;
}
.cookie-modal__cat {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  background: var(--brand-accent);
  border-radius: var(--radius-md);
  padding: 12px 17px;
}
.cookie-modal__cat-label {
  flex: 1;
  color: var(--brand-primary);
  font-weight: 600;
  font-family: var(--font-display);
}
.cookie-modal__cat-toggle {
  font-size: 1.2rem;
  margin-left: 4px;
}
.cookie-modal__cat input[type='checkbox'] {
  accent-color: var(--brand-secondary);
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.cookie-modal__cat--essential input[type='checkbox'] {
  accent-color: var(--brand-orange);
}
.cookie-modal__actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ====================
   MISC: TABLES, FORMS
   ==================== */
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 12px;
  text-align: center;
  font-size: 1rem;
}

/* ===========
   UTILITIES
   =========== */
.mt-1 { margin-top: 10px !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 22px !important; }
.mt-2 { margin-top: 22px !important; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 16px; }

/* ===================
   BRAND FONT LOADING
   =================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ==============
   FOCUS VISUALS
   ============= */
a:active, button:active, .cta-btn:active, .main-nav a:active, .footer-nav a:active, .mobile-nav a:active {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-secondary);
}

/* ===============
   HIDE ELEMENTS
   =============== */
[hidden] { display: none !important; }

/* =====================
   ENSURE NO ABSOLUTE/GRID/COLUMNS FOR CARDS/SECTIONS
   ===================== */
/* (No forbidden properties used anywhere above) */
