/*------------------------------------*
  CSS RESET & BASE STYLES
*------------------------------------*/
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, main, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #101721;
  color: #F6F8F9;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #5DBE9A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6F8F9;
  text-decoration: underline;
}

/*------------------------------------*
  TYPOGRAPHY
*------------------------------------*/
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F6F8F9;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #5DBE9A;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, blockquote, .text-section {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #E4E8EB;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
strong {
  color: #F6F8F9;
  font-weight: 600;
}

blockquote {
  border-left: 3px solid #5DBE9A;
  background: #1D2530;
  color: #19212B;
  padding: 16px 24px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-style: italic;
}

/*------------------------------------*
  LAYOUT CONTAINERS
*------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-container,
.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/*------------------------------------*
  NAVIGATION
*------------------------------------*/
header {
  background: #172434;
  box-shadow: 0 2px 12px rgba(22,48,79,0.15);
  z-index: 1001;
}
.logo img {
  height: 48px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: #5DBE9A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 4px 10px;
  transition: color 0.2s, background 0.2s;
  border-radius: 5px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F6F8F9;
  background: #2B3B49;
}

.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #5DBE9A;
  color: #16304F;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(22,48,79,0.08);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #16304F;
  color: #5DBE9A;
  box-shadow: 0 4px 18px rgba(93,190,154,0.20);
}

.secondary-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: transparent;
  color: #5DBE9A;
  border: 2px solid #5DBE9A;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-left: 8px;
  transition: color 0.2s, background 0.2s, border 0.2s;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #5DBE9A;
  color: #16304F;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #5DBE9A;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #5DBE9A;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #101721E5;
  z-index: 1005;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.87,0,0.13,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #F6F8F9;
  font-size: 2rem;
  padding: 18px 18px 8px 0;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 16px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 32px 24px 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #5DBE9A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #16304F;
  color: #F6F8F9;
}

/*------------------------------------*
  HERO SECTION
*------------------------------------*/
.hero {
  background: linear-gradient(120deg, #16304F 75%, #202F3C 100%);
  padding: 64px 0 56px 0;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.8rem;
  color: #F6F8F9;
  letter-spacing: 0.01em;
}
.hero h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: #5DBE9A;
}
.hero .cta-btn {
  margin-top: 18px;
}

/*------------------------------------*
  FEATURES
*------------------------------------*/
.features {
  background: #192840;
}

.features .content-wrapper h2 {
  color: #5DBE9A;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #223146;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  flex: 1 1 240px;
  min-width: 250px;
  max-width: 340px;
  box-shadow: 0 2px 16px rgba(30,40,53,0.11);
  border: 1.5px solid #283E56;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 4px 32px rgba(93,190,154,0.17), 0 6px 20px rgba(22,48,79,0.11);
  transform: translateY(-2px) scale(1.03);
  border-color: #5DBE9A;
}
.feature-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: grayscale(60%) contrast(1.4);
}
.feature-item h3 {
  font-size: 1.15rem;
  color: #F6F8F9;
}

/*------------------------------------*
  CARDS, BLOG, SERVICE SECTIONS
*------------------------------------*/
.card-container, .blog-list, .service-cards, .trainer-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card, .blog-preview, .service-card, .trainer-profile {
  background: #223146;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,40,53,0.09);
  border: 1.5px solid #2B3B49;
  margin-bottom: 20px;
  padding: 28px 18px 22px 18px;
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 340px;
  position: relative;
  transition: box-shadow 0.17s, border 0.17s, transform 0.17s;
}
.card:hover, .blog-preview:hover, .service-card:hover, .trainer-profile:hover {
  box-shadow: 0 6px 20px rgba(93,190,154,0.12);
  border-color: #5DBE9A;
  transform: translateY(-4px) scale(1.02);
}

/*------------------------------------*
  TESTIMONIALS
*------------------------------------*/
.testimonials {
  background: #F6F8F9;
  color: #16304F;
  padding-top: 50px;
  padding-bottom: 50px;
}
.testimonials .content-wrapper h2 {
  color: #16304F;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin: 0 0 20px 0;
  background: #E4E8EB;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(30,40,53,0.13);
  border-left: 6px solid #5DBE9A;
  color: #16304F;
  max-width: 720px;
  font-size: 1.10rem;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  padding: 0;
  background: none;
  color: #16304F;
  border: none;
}
.testimonial-author {
  font-size: 0.98rem;
  font-weight: 600;
  color: #5DBE9A;
  margin-left: 10px;
}

/*------------------------------------*
  CTA BANNER
*------------------------------------*/
.cta-banner {
  background: #16304F;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 24px rgba(22, 48, 79, 0.15);
  padding: 40px 0;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta-banner h2 {
  color: #5DBE9A;
  font-size: 2rem;
  margin-bottom: 14px;
}

/*------------------------------------*
  FOOTER
*------------------------------------*/
footer {
  background: #101721;
  border-top: 3px solid #2B3B49;
  font-size: 0.97rem;
  color: #B2BBC3;
  padding-bottom: 30px;
}
.footer-container {
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 0;
}
.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #5DBE9A;
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-logo img {
  width: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-nav a {
  color: #E4E8EB;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 0.18s;
  font-size: 0.98rem;
  border-radius: 4px;
  padding: 3px 7px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #5DBE9A;
  background: #2B3B49;
}
.footer-contact {
  color: #B2BBC3;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 400;
  margin-top: 4px;
}
.footer-contact a {
  color: #5DBE9A;
  font-weight: 500;
  transition: color 0.14s;
  margin-left: 3px;
}
.footer-contact a:hover { color: #F6F8F9; }
.footer-contact img {
  width: 18px;
  margin-right: 3px;
  display: inline-block;
  vertical-align: middle;
}

/*------------------------------------*
  PRICING TABLE
*------------------------------------*/
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  margin: 20px 0 32px 0;
  color: #F6F8F9;
  background: transparent;
}
.pricing-table th, .pricing-table td {
  padding: 13px 18px;
  text-align: left;
  background: #223146;
  border-radius: 8px;
  font-size: 1rem;
}
.pricing-table th {
  background: #1C2734;
  color: #5DBE9A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
}
.pricing-table tr {
  margin-bottom: 10px;
}
.pricing-table tr:hover td {
  background: #283E56;
  color: #5DBE9A;
  transition: background 0.19s, color 0.19s;
}

/*------------------------------------*
  MISCELLANEOUS STRUCTURES
*------------------------------------*/
.text-section {
  margin-bottom: 18px;
  color: #E4E8EB;
}
.confirmation {
  align-items: center;
  gap: 28px;
  text-align: center;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #192840;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.map-placeholder {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  background: #223146;
  border-radius: 9px;
  padding: 20px 20px;
  margin-top: 10px;
}
.map-placeholder img {
  width: 60px;
}

.newsletter-signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  align-items: center;
}
.newsletter-signup input[type="email"] {
  background: #2B3B49;
  border: 1.2px solid #5DBE9A;
  color: #F6F8F9;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  outline: none;
  width: 260px;
}
.newsletter-signup input[type="email"]:disabled {
  color: #B2BBC3;
  opacity: 0.6;
}
.newsletter-signup button[disabled] {
  background: #B2BBC3;
  color: #223146;
  cursor: not-allowed;
}

/*------------------------------------*
  RESPONSIVE DESIGN - MOBILE FIRST
*------------------------------------*/
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .main-nav { gap: 12px; }
  .footer-container { gap: 16px; }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .blog-list, .service-cards, .trainer-profiles {
    gap: 18px;
  }
  .card, .blog-preview, .service-card, .trainer-profile, .feature-item {
    min-width: 90vw;
    max-width: 99vw;
    margin-bottom: 16px;
  }
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; margin-bottom: 12px; }
  .header-container {
    flex-direction: row; /* keep logo and actions */
    gap: 10px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .cta-btn { margin-top: 0; }
  .container {
    padding: 0 9px;
  }
  .content-wrapper, .section {
    padding: 28px 6px;
  }
  .feature-grid, .card-container, .blog-list, .service-cards, .trainer-profiles {
    flex-direction: column;
    gap: 16px;
  }
  .cta-banner {
    padding: 22px 0;
    border-radius: 11px;
    margin-bottom: 22px;
  }
  .map-placeholder {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    max-width: 99vw;
  }
  .feature-item, .card, .blog-preview, .service-card, .trainer-profile {
    min-width: 91vw;
    max-width: 99vw;
    padding: 18px 8px 16px 8px;
  }
  .footer-logo {
    gap: 7px;
    font-size: 1.03rem;
  }
}
@media (max-width: 460px) {
  html { font-size: 15px; }
  .footer-logo img { width: 32px; }
  .footer-contact { font-size: 0.95rem; }
}

/*------------------------------------*
  COOKIE CONSENT BANNER
*------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: #223146;
  color: #F6F8F9;
  box-shadow: 0 -2px 16px rgba(22,48,79,0.18);
  padding: 20px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s, opacity 0.28s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: 0.98rem;
  color: #F6F8F9;
  text-align: center;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin-top: 4px;
}

.cookie-btn {
  background: #5DBE9A;
  color: #16304F;
  border: none;
  border-radius: 28px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(93,190,154,0.1);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #16304F;
  color: #5DBE9A;
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: #5DBE9A;
  border: 2px solid #5DBE9A;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #5DBE9A;
  color: #16304F;
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2600;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,23,33,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.cookie-modal {
  background: #F6F8F9;
  color: #16304F;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(22,48,79,0.19);
  padding: 36px 24px 24px 24px;
  max-width: 360px;
  min-width: 255px;
  width: 88vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in 0.3s cubic-bezier(.87,0,.13,1);
}
@keyframes modal-in {
  0% { opacity: 0; transform: scale(0.93) translateY(44px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.cookie-modal h2 {
  color: #16304F;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  color: #16304F;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
  font-size: 1rem;
  font-weight: 500;
  color: #16304F;
}
.cookie-switch {
  width: 38px;
  height: 20px;
  position: relative;
  margin-left: auto;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #B2BBC3;
  border-radius: 17px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .switch-slider {
  background: #5DBE9A;
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #F6F8F9;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(22,48,79,0.07);
}
.cookie-switch input:checked + .switch-slider:before {
  transform: translateX(18px);
  background: #16304F;
}
.cookie-category.essential {
  opacity: 0.99;
}
.cookie-modal .cookie-btn-row {
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  width: 100%;
  padding: 10px 0;
  border-radius: 9px;
}
.cookie-modal .cookie-btn + .cookie-btn {
  margin-top: 8px;
  margin-left: 0;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #16304F;
  font-size: 1.1rem;
  cursor: pointer;
}

/*------------------------------------*
  OTHER UI ADJUSTMENTS
*------------------------------------*/
::-webkit-scrollbar {
  background: #101721;
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #2B3B49;
  border-radius: 8px;
}

::-webkit-input-placeholder { color: #B2BBC3; }
::-moz-placeholder { color: #B2BBC3; }
:-ms-input-placeholder { color: #B2BBC3; }
::placeholder { color: #B2BBC3; }

/*------------------------------------*
  FLEXBOX SPACING & ALIGNMENT PATTERNS (AS REQUIRED)
*------------------------------------*/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width:768px){
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
}
