/* ================================== */
/*      CSS RESET & NORMALIZATION     */
/* ================================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #17365D;
  background: #F6F7FB;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #39A7D0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17365D;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
strong {
  font-weight: 600;
  color: #17365D;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
:focus-visible {
  outline: 2px solid #39A7D0;
  outline-offset: 2px;
}

/* =========================== */
/*       TYPOGRAPHY SCALE      */
/* =========================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: #17365D;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #17365D;
  line-height: 1.15;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #17365D;
}
p, li, .body {
  font-size: 1rem;
  color: #17365D;
}
.subheadline {
  font-size: 1.15rem;
  color: #17365D;
  margin-bottom: 28px;
}

/* =========================== */
/*      REUSABLE CONTAINER     */
/* =========================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(23,54,93,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================== */
/*            HEADER               */
/* =============================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,54,93,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 20px;
  min-height: 62px;
}
header img {
  width: 140px;
  min-width: 108px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #17365D;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F7FB;
  color: #39A7D0;
}
.main-nav .cta-primary {
  background: #39A7D0;
  color: #fff;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(57,167,208,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #17365D;
  color: #fff;
  box-shadow: 0 6px 18px rgba(23,54,93,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: #39A7D0;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.5rem;
  margin-left: 18px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #17365D;
}

/* =============================== */
/*        MOBILE MENU LAYER        */
/* =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,54,93,0.88);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 0 12px 22px;
  font-size: 2rem;
  background: none;
  color: #fff;
  border-radius: 50%;
  outline: none;
  align-self: flex-start;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #39A7D0;
  color: #fff;
}
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================================ */
/*            HERO AREA             */
/* ================================ */
.hero {
  position: relative;
  background: #F6F7FB;
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero h1 {
  font-size: 2.5rem;
  text-align: center;
}
.hero .cta-primary {
  margin-top: 18px;
}

/* ================================ */
/*           FEATURE GRID           */
/* ================================ */
.features {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(23,54,93,.05);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-grid > div {
  background: #F6F7FB;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(23,54,93,0.03);
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 22px 20px 22px;
  transition: box-shadow 0.23s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 38px rgba(57,167,208,0.10);
  transform: translateY(-3px) scale(1.012);
}
.feature-grid img {
  width: 48px; height: 48px;
  margin-bottom: 5px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================ */
/*           CARDS/CONTAINERS       */
/* ================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(23,54,93,.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 22px;
  min-width: 240px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 36px rgba(57,167,208,0.13);
  transform: translateY(-2px) scale(1.009);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* ================================ */
/*         TESTIMONIAL CARDS        */
/* ================================ */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 14px rgba(23,54,93, .08);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  color: #17365D;
  max-width: 520px;
  min-width: 210px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(23,54,93,0.14);
  transform: translateY(-3px);
}
.testimonial-card p {
  font-size: 1.07rem;
  line-height: 1.6;
  color: #17365D;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #39A7D0;
  font-weight: 600;
  margin-left: 8px;
}

.member-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

/* ================================= */
/*             UPDATE, BANNERS       */
/* ================================= */
.notification-banner {
  background: #E6F4FA;
  color: #17365D;
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 18px;
  font-size: 1rem;
}
.alert-banner {
  background: #FFEDE6;
  color: #17365D;
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 18px;
  font-size: 1rem;
}

/* ================================= */
/*             BUTTONS               */
/* ================================= */
.cta-primary {
  display: inline-block;
  background: #39A7D0;
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(57,167,208,0.08);
  border: none;
  outline: none;
  text-align: center;
  cursor: pointer;
  margin: 0;
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #17365D;
  color: #fff;
  box-shadow: 0 8px 24px rgba(23,54,93,.13);
  transform: translateY(-2px);
}
.button-secondary, .cookie-btn-secondary {
  background: #fff;
  color: #17365D;
  border: 1px solid #39A7D0;
  border-radius: 999px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  transition: background 0.15s, color 0.16s, border 0.16s;
  margin-right: 12px;
}
.button-secondary:hover, .cookie-btn-secondary:hover, .button-secondary:focus {
  background: #39A7D0;
  color: #fff;
  border-color: #39A7D0;
}

/* ================================ */
/*          FOOTER DESIGN           */
/* ================================ */
footer {
  background: #F6F7FB;
  border-top: 1px solid #E0E2E8;
  padding: 38px 0 18px 0;
  color: #7C91A9;
  font-size: 0.97rem;
  margin-top: 66px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #17365D;
  font-weight: 500;
  font-size: 0.99rem;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #E6F4FA;
  color: #39A7D0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img {
  width: 44px;
}
.footer-legal {
  color: #7C91A9;
  font-size: 0.98rem;
  margin-top: 10px;
}

/* ================================ */
/*          ABOUT/TEAM PAGE         */
/* ================================ */
.team .trainer-profiles {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}
.team .trainer-profiles > div {
  background: #F6F7FB;
  border-radius: 12px;
  flex: 1 1 200px;
  min-width: 200px;
  padding: 23px 20px 18px 20px;
  margin-bottom: 18px;
}
.team .trainer-profiles h3 {
  font-size: 1.12rem;
  margin-bottom: 7px;
}
.community .member-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===================================== */
/*       CONTACT & INFO SECTIONS         */
/* ===================================== */
.contact-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px; height: 22px;
}
.address-map {
  margin-bottom: 12px;
  color: #17365D;
}
.opening-hours {
  font-size: 1rem;
  background: #F6F7FB;
  border-radius: 9px;
  padding: 8px 14px;
  margin-top: 6px;
  display: inline-block;
}
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.faq-list li {
  font-size: 1rem;
}

/* ===================================== */
/*            SCHEDULE PAGE              */
/* ===================================== */
.timetable ul {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-tabs {
  margin: 14px 0 0 0;
  padding: 7px 13px;
  background: #E6F4FA;
  border-radius: 6px;
  font-size: 0.99rem;
  color: #17365D;
}
.next-available-sessions, .recent-changes {
  margin-top: 16px;
}
.recent-changes ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===================================== */
/*           COOKIE CONSENT BANNER       */
/* ===================================== */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E0E2E8;
  box-shadow: 0 -3px 20px rgba(23,54,93,0.07);
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 18px 16px 18px 16px;
  font-size: 1rem;
  transition: transform 0.26s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  color: #17365D;
  max-width: 420px;
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: #39A7D0;
  color: #fff;
  border-radius: 999px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  transition: background 0.18s, box-shadow 0.18s;
  margin-right: 3px;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #17365D;
}
.cookie-btn-reject {
  background: #fff;
  color: #17365D;
  border: 1px solid #39A7D0;
  border-radius: 999px;
  padding: 10px 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  margin-right: 3px;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #39A7D0;
  color: #fff;
}
.cookie-btn-settings {
  background: transparent;
  color: #39A7D0;
  padding: 8px 1px;
  font-size: 0.98rem;
  text-decoration: underline;
  border: none;
  border-radius: 8px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  color: #17365D;
  background: #F6F7FB;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,54,93,0.54);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(23,54,93,0.18);
  max-width: 420px;
  width: 96vw;
  padding: 34px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn 0.34s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes modalIn {
  0% { transform: translateY(60px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0px) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17365D;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #17365D;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #39A7D0;
  width: 22px; height: 22px;
  margin-top: 2px;
}
.cookie-btn-modal-accept, .cookie-btn-modal-reject {
  margin-top: 12px;
  margin-right: 8px;
  padding: 10px 26px;
}
.cookie-btn-modal-accept {
  background: #39A7D0;
  color: #fff;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-btn-modal-accept:hover, .cookie-btn-modal-accept:focus {
  background: #17365D;
}
.cookie-btn-modal-reject {
  background: #fff;
  color: #17365D;
  border: 1px solid #39A7D0;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-btn-modal-reject:hover, .cookie-btn-modal-reject:focus {
  background: #39A7D0;
  color: #fff;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  color: #39A7D0;
  font-size: 1.32rem;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6F7FB;
}

/* Essential always-on tag */
.cookie-category .always-on {
  background: #E6F4FA;
  font-size: 0.91rem;
  color: #7C91A9;
  border-radius: 6px;
  padding: 1px 8px 2.5px 8px;
  margin-left: 10px;
}

/* ================================ */
/*             CTA, FORMS           */
/* ================================ */
.cta {
  background: #F6F7FB;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(23,54,93,0.08);
  padding: 36px 20px;
  margin-bottom: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta h2 {
  text-align: center;
}
.cta .cta-primary {
  margin-top: 12px;
}

/************************************/
/*         RESPONSIVE LAYOUT        */
/************************************/
@media (max-width: 1150px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 991px) {
  .feature-grid {
    gap: 18px;
  }
  .card-container,
  .member-stories,
  .team .trainer-profiles {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  h1, .h1 { font-size: 2rem; }
  .feature-grid > div, .card {
    min-width: 48vw;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.45rem; }
  h2, .h2 { font-size: 1.1rem; }
  header .container {
    padding: 10px 10px 10px 14px;
  }
  .main-nav {
    display: none;
  }
  .content-wrapper {
    gap: 12px;
  }
  .container {
    padding: 0 7px;
  }
  .feature-grid,
  .card-container,
  .member-stories,
  .contact-details,
  .team .trainer-profiles,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .card, .feature-grid > div {
    min-width: 92vw;
    max-width: 98vw;
    margin-bottom: 16px;
    padding: 22px 10px;
  }
  .section, .features, .cta {
    padding: 20px 7px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 14px 8px;
  }
  .hero {
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .team .trainer-profiles > div {
    min-width: 88vw;
    padding: 15px 8px;
  }
  .opening-hours {
    padding: 6px 7px;
  }
  .mobile-menu {
    padding-top: 0;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 20px 8px 20px 12px;
  }
}
@media (max-width: 576px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-menu {
    gap: 14px;
    flex-direction: column;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 5px 17px 9px;
  }
}

/***********************************/
/*              MISC               */
/***********************************/
.confirmation-message {
  background: #E6F4FA;
  border-radius: 10px;
  padding: 17px 19px;
  color: #17365D;
  margin-bottom: 24px;
}
.next-steps {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
}
.update-highlights ul, .highlighted-events ul, .upcoming-workshops ul, .sports-highlights ul, .facility-descriptions ul, .faq ul, .faq-list, .timetable ul, .recent-changes ul {
  margin-top: 0.45em;
}
.faq-teaser {
  margin-top: 14px;
  font-size: 0.98rem;
}

/***********************************/
/*         TRANSITIONS             */
/***********************************/
.cta-primary, .main-nav a, .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings, .button-secondary, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.14s;
}

/***********************************/
/*         PRINT OVERRIDE          */
/***********************************/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
}
