/* ----------------------------
   CSS 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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F7F8;
  color: #22314D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #17497A;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #F4B942;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}
ul, ol {
  list-style: inside disc;
}
strong, b {
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #17497A;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #17497A;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ----------------------------
   CONTAINER, WRAPPERS, SECTIONS
------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 12px;
}
.hero-section {
  padding: 60px 0 40px 0;
  background: #fff7e8;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 4px 20px rgba(244,185,66,0.12);
}
.cta-section {
  background: #17497A;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(23,73,122,0.08);
}
.cta-section h2, .cta-section p {
  color: #fff;
}
@media (max-width: 768px) {
  .section,
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .hero-section {
    padding: 36px 0 20px 0;
    border-radius: 0 0 18px 18px;
  }
}

/* ----------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
  background: #fff;
  border-bottom: 2px solid #F4B94210;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(23,73,122,0.05);
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #22314D;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: #FFF3D0;
  color: #17497A;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F4B942;
  color: #17497A;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 10px 32px;
  box-shadow: 0 4px 10px rgba(244,185,66,0.10);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, color 0.16s;
  text-decoration: none;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17497A;
  color: #fff;
  box-shadow: 0 4px 18px rgba(23,73,122,0.15);
}
header img {
  height: 46px;
  width: auto;
  border-radius: 10px;
}
@media (max-width: 1024px) {
  header .container{
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
  }
  .cta-btn{
    margin-left: 4px;
    padding: 9px 20px;
  }
}

/* -------------
   MOBILE MENU
-------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #17497A;
  cursor: pointer;
  margin-left: 8px;
  padding: 2px 12px;
  border-radius: 50%;
  z-index: 2001;
  transition: background .14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFF3D0;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  position: fixed;
  z-index: 2002;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffefb;
  box-shadow: 0 6px 30px 0 rgba(23,73,122,0.16);
  transform: translateX(-110%);
  transition: transform .37s cubic-bezier(.87,.01,.55,1);
  padding: 48px 28px 36px 28px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #17497A;
  cursor: pointer;
  margin-bottom: 6px;
  border-radius: 50%;
  padding: 4px 13px;
  transition: background .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFF3D0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #22314D;
  padding: 10px 0 10px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF3D0;
  color: #17497A;
}
@media (max-width: 900px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* -----------------------
   FLEX LAYOUT PATTERNS
-------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(23,73,122,0.06), 0 1.5px 10px rgba(244,185,66,0.06);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .17s, transform .15s;
  min-width: 230px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(23,73,122,0.15), 0 4px 18px rgba(244,185,66,0.10);
  transform: translateY(-4px) scale(1.015);
}
.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-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(23,73,122,0.07), 0 2px 8px rgba(244,185,66,0.09);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow .15s;
}
.testimonial-card p,
.testimonial-card span {
  color: #22314D;
}
.testimonial-card .star-rating {
  color: #F4B942;
  font-size: 1.07rem;
  letter-spacing: 2.5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(244,185,66,0.12), 0 5px 24px rgba(23,73,122,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(244,185,66,0.07), 0 1px 8px rgba(23,73,122,0.08);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(244,185,66,0.09), 0 2px 6px rgba(23,73,122,0.07);
  padding: 20px 16px 17px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .15s, transform .12s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px rgba(23,73,122,0.15), 0 4px 18px rgba(244,185,66,0.10);
  transform: translateY(-3px) scale(1.018);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  background: #FFF3D0;
  border-radius: 12px;
  padding: 4px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 140px;
    padding: 18px 7px;
  }
  .card {
    min-width: 160px;
    padding: 19px 8px;
  }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid, .card-container, .testimonial-row {
    flex-direction: column !important;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* Trainer Profile Styling (trainers page) */
.trainer-profile {
  background: #FFF7E8;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(244,185,66,0.08);
  padding: 24px 22px 16px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trainer-profile blockquote {
  color: #F4B942;
  font-style: italic;
  border-left: 4px solid #F4B942;
  padding-left: 18px;
  margin-top: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Blog Categories Navigation */
.blog-categories {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.blog-categories a {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border-radius: 99px;
  background: #FFF3D0;
  color: #17497A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.14s;
}
.blog-categories a:hover, .blog-categories a:focus {
  background: #F4B942;
  color: #fff;
}

/* ----------------
   LISTS/ARTICLE
----------------- */
ul, ol {
  padding-left: 20px;
  margin-bottom: 22px;
  margin-top: 6px;
  line-height: 1.8;
}
article {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(244,185,66,0.07);
  padding: 20px 17px 14px 17px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .13s;
}
article:hover {
  box-shadow: 0 7px 22px rgba(23,73,122,0.11), 0 5px 24px rgba(244,185,66,0.12);
}

/* ------------
   CTA BUTTONS
------------ */
.cta-btn {
  min-width: 120px;
  margin: 0;
  margin-top: 12px;
  box-shadow: 0 4px 10px rgba(244,185,66,0.08);
}
.cta-btn:active {
  background: #e09d18;
  color: #fff;
}

/* ------------------------
   FOOTER BRAND & CONTACT
-------------------------*/
footer {
  background: #17497A;
  color: #fff;
  padding: 38px 0 26px 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -5px 28px rgba(23,73,122,0.12), 0 -1.5px 10px rgba(244,185,66,0.08);
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-brand img {
  background: #fffbe9;
  height: 46px;
  width: 46px;
  border-radius: 15px;
  padding: 5px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 2px 0;
  border-radius: 6px;
  transition: color 0.14s, background 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #17497A;
  background: #F4B942;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
}
.footer-contact-data {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact-data img {
  width: 23px;
  height: 23px;
  background: #F4B942;
  border-radius: 8px;
  padding: 3px;
}
footer span {
color: white;}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .footer-brand img {
    height: 41px;
    width: 41px;
  }
  .footer-contact {
    max-width: 100%;
  }
}

/* -----------
   CONTACT
------------- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.contact-details > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(244,185,66,0.08);
  padding: 18px 14px;
  min-width: 180px;
  flex: 1 1 220px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact-details img {
  width: 35px;
  height: 35px;
  background: #FFF3D0;
  border-radius: 10px;
  padding: 3.5px;
}
@media (max-width: 768px) {
  .contact-details {
    flex-direction: column;
    gap: 16px;
  }
}

/* ---------------
   COOKIE BANNER
---------------- */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FFF3D0;
  color: #22314D;
  border-top: 1.5px solid #F4B942;
  box-shadow: 0 -2px 22px rgba(244,185,66,0.13);
  padding: 18px 5vw 18px 5vw;
  z-index: 3000;
  font-size: 1.03rem;
  transition: transform .32s cubic-bezier(.9,.01,.67,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner p {
  flex: 1;
  margin-right: 16px;
}
.cookie-buttons {
  display: flex;
  gap: 11px;
}
.cookie-btn {
  background: #F4B942;
  color: #17497A;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 18px;
  margin-right: 0;
  transition: background 0.14s, color 0.13s, box-shadow .18s;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #17497A;
  color: #fff;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #22314D;
  border: 1px solid #F4B942;
  box-shadow: 0 2px 6px rgba(244,185,66,0.08);
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #F7F7F8;
  color: #17497A;
}
@media (max-width: 610px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 10px;
    font-size: 0.98rem;
    gap: 15px;
  }
}

/* ------------
   COOKIE MODAL
-------------- */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,31,77,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade .28s;
}
@keyframes cookieModalFade {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal-content {
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 2px 30px rgba(244,185,66,0.14), 0 5px 18px rgba(23,73,122,0.10);
  padding: 34px 22px 26px 22px;
  max-width: 375px;
  width: 89vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalSlide 0.25s;
}
@keyframes modalSlide {
  from {transform: translateY(120px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-modal-content h2 {
  color: #22314D;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  gap: 7px;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #17497A;
  font-size: 1.5rem;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  border-radius: 50%;
  padding: 1.5px 10px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFF3D0;
}

/* Cookie Category Toggles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.cookie-switch input {display:none;}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #F4B942;
  border-radius: 99px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background 0.18s;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(23,73,122,0.11);
}
.cookie-switch input:checked + .cookie-slider {
  background: #17497A;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

/* Essential cookies badge */
.cookie-essential {
  font-size: 0.87rem;
  background: #F4B942;
  color: #17497A;
  padding: 0 9px;
  border-radius: 8px;
  margin-left: 10px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 510px) {
  .cookie-modal-content {
    padding: 23px 8px 17px 8px;
    max-width: 99vw;
  }
}

/* ----------
   UTILITIES
----------- */
.text-center {
  text-align: center;
}
.d-flex {
  display: flex !important;
}
.d-column {
  flex-direction: column !important;
}
.gap-20 {
  gap: 20px !important;
}
.rounded {
  border-radius: 18px !important;
}

/* -------------------
   SPACING UTILITIES
-------------------- */
.mt-24 {margin-top: 24px;}
.mb-24 {margin-bottom: 24px;}
.mt-32 {margin-top: 32px;}
.mb-32 {margin-bottom: 32px;}
.pt-24 {padding-top: 24px;}
.pb-24 {padding-bottom: 24px;}

/* Micro-interactions */
button, .cta-btn, .cookie-btn, .mobile-menu-toggle,
.mobile-menu-close, .blog-categories a {
  transition: background 0.13s, color 0.11s, box-shadow .16s, border-color 0.13s, transform .11s;
}
button:active, .cta-btn:active, .cookie-btn:active, .mobile-menu-toggle:active {
  transform: scale(.97);
}

/* Hide visually but accessible */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------
   TYPOGRAPHY POLISH
-------------------- */
body, p, li, span {
  color: #22314D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
h1, h2, h3, h4 {
  color: #17497A;
}

/* Typography scale for hierarchy */
@media (min-width: 768px) {
  h1 {font-size: 2.8rem;}
  h2 {font-size: 2.1rem;}
  h3 {font-size: 1.5rem;}
}

/* -------------------
   FORMS (generic)
-------------------- */
input, textarea, select {
  border: 1px solid #F4B942;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fffbe9;
  box-shadow: 0 1px 6px rgba(244,185,66,0.10);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #17497A;
  background: #fff;
}

/* Required for proper white background on cards/sections */
.white-bg,
section.white-bg {
  background: #fff;
}

/* ================================
   SCROLLBAR (for modern browsers)
================================== */
::-webkit-scrollbar {
  width: 12px;
  background: #fffbe9;
}
::-webkit-scrollbar-thumb {
  background: #F4B942;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e9ae26;
}

/* ================================
   END OF CSS
================================== */