/* ============ RESET & NORMALIZE ============ */
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,
b, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFB;
  color: #313C4C;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  color: inherit;
  border: none;
  outline: none;
}

/* ============ BRAND FONTS & COLORS ============ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500&display=swap');
:root {
  --color-primary: #23527C;
  --color-secondary: #A7B8C7;
  --color-accent: #F3F3F5;
  --color-white: #fff;
  --color-bg: #F8FAFB;
  --color-card: #FAFAFD;
  --color-pastel-blue: #E4ECF7;
  --color-pastel-peach: #FFF5E1;
  --color-pastel-lavender: #F6F0FF;
  --color-grey: #8C98A4;
  --color-border: #E6E8F0;
  --color-success: #B5E6CA;
  --color-error: #FFD6DA;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ============ GLOBAL LAYOUT ============ */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: #313C4C;
  font-size: 16px;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

header {
  background: linear-gradient(90deg, #E4ECF7 60%, #F6F0FF 100%);
  box-shadow: 0 2px 14px 0 rgba(35,82,124,0.04);
  position: relative;
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 16px;
}
header nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: var(--font-display);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #ECF2FA;
  color: #5577A8;
}
.cta-button {
  background: linear-gradient(90deg, #D9E9FC 0%, #FFF5E1 100%);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  padding: 10px 28px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(67,90,97,0.04);
  border: 2px solid var(--color-primary);
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-left: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #23527C 0%, #A7B8C7 100%);
  color: #fff;
  border-color: #5577A8;
}

/* ============ MOBILE MENU ============ */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-primary);
  border: 2px solid #A7B8C7;
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1020;
  position: relative;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(110deg, #ECEFFC 70%, #FFF5E1 100%);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(.33,1.81,.36,1);
  transform: translateX(-100vw);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  box-shadow: 0 10px 28px rgba(100, 80, 177, 0.12);
}
.mobile-menu-close {
  background: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 2010;
  padding: 8px;
  border-radius: 7px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E4ECF7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 80px;
  margin-left: 32px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECF2FA;
  color: #5577A8;
}

@media (max-width: 1060px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
  }
}
@media (max-width: 820px) {
  header nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============ MAIN SECTIONS & SPACING ============ */
main {
  width: 100%;
  background: none;
  min-height: 60vh;
  margin-bottom: 40px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 12px;
  background: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.text-section {
  margin-bottom: 34px;
  background: none;
  font-size: 18px;
  color: #405170;
}

/* ======= TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.35rem;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, ul, ol, blockquote {
  font-size: 1.09rem;
  color: #485469;
  margin-bottom: 15px;
  line-height: 1.7;
  font-family: var(--font-body);
}
ul, ol {
  margin-left: 28px;
  margin-bottom: 18px;
}
ul ul, ul ol, ol ol, ol ul {
  margin-bottom: 0;
}
li {
  margin-bottom: 9px;
  position: relative;
  padding-left: 7px;
}
li::before {
  content: '•';
  color: var(--color-secondary);
  margin-right: 6px;
  font-size: 1rem;
}
blockquote {
  border-left: 4px solid #C7D8F9;
  background: #F6F8FC;
  color: #4C599A;
  margin: 20px 0 22px 0;
  padding: 14px 22px;
  font-style: italic;
  border-radius: 15px 4px 18px 4px;
}
strong, b {
  font-weight: 700;
  color: #325070;
}

/* ======= CARDS, GRID, FLEXBOX LAYOUTS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: 22px;
  box-shadow: 0 1px 12px rgba(166,185,200,0.13);
  padding: 28px 22px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(35,82,124,0.14);
  transform: translateY(-6px) scale(1.025);
}
.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;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  margin-bottom: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F7F6;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(155, 143, 207, 0.04);
  padding: 26px 18px 24px 18px;
  min-width: 225px;
  min-height: 220px;
  flex: 1 1 225px;
  max-width: 330px;
  font-size: 1rem;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(163,177,210,0.18);
  transform: translateY(-4px) scale(1.03);
}
.feature-item h3 {
  color: #5B6E88;
  font-weight: 700;
  font-size: 1.14rem;
  margin-bottom: 8px;
}

/* Trainer Profiles Grid */
.trainer-profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 32px 0;
}
.trainer-profile {
  background: #F6F0FF;
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(166, 185, 200, 0.09);
  padding: 25px 20px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
}
.qualification-list {
  margin-top: 22px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF5E1;
  border-radius: 22px;
  box-shadow: 0 4px 26px 0 rgba(141,171,207,0.11);
  margin-bottom: 22px;
  margin-top: 10px;
  color: #283455;
}
.testimonial-card p {
  color: #283455;
  font-size: 1.13rem;
}
.testimonial-footer {
  margin-left: auto;
  color: #5B6E88;
  font-weight: bold;
  background: #F6F0FF;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 1rem;
  box-shadow: 0 1px 5px 0 rgba(180,150,225,0.07);
}

/* Footer Styles */
footer {
  background: linear-gradient(90deg, #F6F0FF 60%, #E4ECF7 100%);
  color: var(--color-primary);
  padding: 38px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 15px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #ECF2FA;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: #325070;
  font-size: 15px;
  line-height: 1.5;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.footer-contact a {
  color: #5678A8;
  font-size: 15px;
  text-decoration: underline dotted;
}

/* ========== Forms, Contact and Misc ======== */
.contact-details-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 26px 0;
}
.contact-info, .map-block {
  flex: 1 1 240px;
  background: #E4ECF7;
  border-radius: 18px;
  padding: 22px 18px 16px 18px;
  font-size: 1rem;
  color: #29416C;
}
.map-block h3 {
  margin-top: 0;
  font-size: 1.04rem;
  color: #20476D;
}

/* =========== Newsletter Signup ========= */
.newsletter-signup {
  background: #FFF5E1;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(155, 143, 207, 0.04);
  padding: 28px 18px 24px 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* =========== Responsive Flexbox Rules ========== */
@media (max-width: 1050px) {
  .feature-grid, .card-container, .trainer-profiles-grid, .content-grid, .contact-details-block {
    flex-wrap: wrap;
  }
}
@media (max-width: 880px) {
  .feature-grid, .card-container, .trainer-profiles-grid, .content-grid, .contact-details-block {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .feature-item, .card, .trainer-profile, .map-block, .contact-info {
    max-width: 100%;
    min-width: unset;
  }
}
@media (max-width: 650px) {
  section, .section {
    padding: 32px 10px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.04rem; }
  .content-wrapper, .text-section, .newsletter-signup {
    padding-left: 4px;
    padding-right: 4px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .card, .feature-item, .trainer-profile, .newsletter-signup, .contact-info, .map-block {
    padding: 16px 7px 14px 7px;
  }
  .footer-contact {
    font-size: 13px;
    gap: 6px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

/* ============ Button and Link Micro-interactions ============ */
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, border 0.19s, transform 0.17s;
}
button:active, .cta-button:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.96);
}

a, button {
  cursor: pointer;
}

a:focus, .cta-button:focus, button:focus {
  outline: 2px solid #CCE5FD;
  outline-offset: 0;
}

/* ============== Cookie Consent Banner & Modal ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(110deg, #FFF5E1 70%, #F6F0FF 100%);
  color: #2F405F;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
  padding: 22px 16px 22px 16px;
  z-index: 3000;
  font-size: 15px;
  box-shadow: 0 -3px 26px 0 rgba(188,175,214,0.11);
  border-radius: 18px 18px 0 0;
  animation: fadeInBanner 0.8s;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 24px;
  border: none;
  background: #E4ECF7;
  color: #2F405F;
  margin-left: 0;
  transition: background 0.19s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 5px rgba(180,180,226,0.07);
}
.cookie-banner .accept {
  background: #B5E6CA;
  color: #176147;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #98dbb6;
}
.cookie-banner .reject {
  background: #FFD6DA;
  color: #941221;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #FFB1BB;
}
.cookie-banner .settings {
  background: #ECEFFC;
  color: #5B6E88;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #DFE2ED;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(90,97,155,0.13);
  z-index: 4000;
  transition: opacity 0.2s;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInModalBg 0.25s;
}
@keyframes fadeInModalBg {
  from {opacity: 0;} to {opacity: 1;}
}
.cookie-modal {
  background: linear-gradient(115deg, #EEEEFF 68%, #FFD6DA 100%);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(86,120,168,0.19);
  padding: 38px 34px 26px 34px;
  max-width: 410px;
  width: 90vw;
  color: #274160;
  font-size: 16px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: #2A4672;
  margin-bottom: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  color: #2A4672;
  border-radius: 6px;
  transition: background 0.18s;
  padding: 4px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #ECEFFC;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: #FCFAFF;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(140,140,200,0.07);
  font-size: 15px;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type="checkbox"] {
  width: 34px; height: 18px;
  appearance: none;
  background: #E4ECF7;
  border-radius: 20px;
  position: relative;
  outline: none;
  margin: 0 2px 0 0;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: #B5E6CA;
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 2px rgba(100,100,150,0.06);
  transition: left 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 17px;
}
.cookie-category .always {
  color: var(--color-success);
  font-weight: 700;
  font-size: 12px;
  margin-left: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  border-radius: 13px;
  font-size: 15px;
  font-family: var(--font-display);
  padding: 7px 22px;
  margin-left: 0;
  border: none;
  background: #E4ECF7;
  color: #335066;
  font-weight: 600;
  transition: background 0.17s;
}
.cookie-modal .accept-settings {
  background: #B5E6CA;
  color: #0B4A32;
}
.cookie-modal .accept-settings:hover, .cookie-modal .accept-settings:focus {
  background: #98dbb6;
}
.cookie-modal .cancel-settings {
  background: #FFD6DA;
  color: #941221;
}
.cookie-modal .cancel-settings:hover, .cookie-modal .cancel-settings:focus {
  background: #FFB1BB;
}

/* ======= Accessibility: Focus Indicators ======= */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px dashed #98dbb6;
  outline-offset: 1.5px;
}

/* ========== Utility Classes ========== */
.d-none { display: none; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ========== Animate In ========== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-32px); }
  to { opacity:1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity:1; transform: translateY(0); }
}

section, .card, .feature-item, .testimonial-card {
  animation: fadeInDown 0.6s cubic-bezier(.33,1.81,.36,1);
}

/* ============ Print styles =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section, main {
    background: none !important;
    padding: 0 !important;
  }
}
