/* RESET + NORMALIZE */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html,body {
  height: 100%;
}
body {
  background: #F8F9FB;
  color: #273C75;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul,ol {
  list-style-position: outside;
  margin-left: 24px;
}

/* VARIABLES (fallbacks included) */
:root {
  --primary: #273C75;
  --secondary: #26C281;
  --accent: #F8F9FB;
  --text-main: #273C75;
  --text-dark: #182340;
  --text-light: #fff;
  --border: #DFE4EC;
  --shadow-card: 0 2px 12px rgba(39,60,117,0.07);
  --radius-card: 18px;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* BRAND TYPOGRAPHY */
h1, .hero-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
p, li, label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  color: var(--text-main);
}
strong {
  font-weight: 700;
}
.tagline {
  color: var(--secondary);
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin: 14px 0 0;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FLEX LAYOUTS */
.section,
.policy-section,
.confirmation-section,
.features-section,
.hero-section,
.services-section,
.program-preview,
.marathon-teaser,
.marathon-events,
.about-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.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: 20px;
  padding: 24px 30px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 2.5px solid var(--border);
  transition: box-shadow 0.25s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.125rem;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 20px;
  background: #fff;
  border-radius: 18px;
  border: 2.5px solid var(--secondary);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-item img {
  width: 42px;
  height: 42px;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1.25deg);
  box-shadow: 0 4px 20px rgba(38,194,129,0.12);
}
.feature-grid, .feature-icons, .program-cards, .service-list, .coach-profiles, .event-list, .success-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-icons img {
  background: #fff;
  border-radius: 14px;
  padding: 9px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  width: 48px;
  height: 48px;
  margin-right: 10px;
}
.program-card, .service-card, .coach-profile, .event-detail {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border);
  min-width: 250px;
  padding: 22px 20px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.program-card:hover, .service-card:hover, .coach-profile:hover, .event-detail:hover {
  box-shadow: 0 4px 24px rgba(39,60,117,0.11);
  transform: translateY(-5px) scale(1.025);
}

/* STAR RATING ICONS */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}
.star-rating img {
  width: 24px;
  height: 24px;
  filter: none;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(105deg, #F8F9FB 63%, #26C281 100%);
  position: relative;
  border-radius: 0 0 48px 48px/0 0 24px 24px;
  box-shadow: 0 8px 32px rgba(38,194,129,0.10);
}
.hero-section .container {
  padding-top: 42px;
  padding-bottom: 36px;
}
.hero-section h1 {
  color: var(--primary);
}
.hero-section p {
  font-size: 1.14rem;
  color: var(--primary);
}

/* BUTTONS */
.primary-cta, .secondary-cta, .cookie-accept, .cookie-reject, .cookie-settings {
  display: inline-block;
  padding: 12px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 36px;
  font-size: 1.125rem;
  transition: background 0.2s, color 0.2s, transform 0.17s;
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: 0 1.5px 6px rgba(38,194,129,0.10);
  margin: 8px 0;
  letter-spacing: 0.04em;
}
.primary-cta {
  background: var(--secondary);
  color: #fff;
}
.primary-cta:hover, .primary-cta:focus {
  background: #20a470;
  transform: scale(1.05) skew(-2deg);
}
.secondary-cta {
  background: #fff;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.secondary-cta:hover, .secondary-cta:focus {
  background: var(--secondary);
  color: #fff;
}

/* HEADER & MOBILE NAVIGATION */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(39,60,117,0.02);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
header nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header .main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.17s;
}
header .main-nav a:hover, header .main-nav a.active {
  background: var(--accent);
  color: var(--secondary);
}
/* Primary CTA distinct color in nav */
header .main-nav .primary-cta {
  background: var(--secondary);
  color: #fff;
  margin-left: 10px;
  padding: 11px 30px;
}
header .main-nav .primary-cta:hover {
  background: #20a470;
  color: #fff;
}
header img {
  height: 46px;
  width: auto;
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
  z-index: 51;
}
.mobile-menu-toggle:hover {
  background: #20a470;
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,60,117,0.93);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(110vw);
  transition: transform 0.40s cubic-bezier(0.42,0,0.58,1);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 30px 26px 10px 0;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1050;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  width: 94vw;
  margin-top: 24px;
  padding-right: 22px;
}
.mobile-nav a {
  font-size: 1.25rem;
  background: none;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.16s, color 0.16s;
  margin-right: 4px;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* Responsive Nav */
@media (max-width:1120px){
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 1020px) {
  header .main-nav a {
    font-size: 0.98rem;
    padding: 4px 6px;
  }
  .content-wrapper, .card-container, .content-grid, .feature-grid, .feature-icons, .program-cards, .service-list, .coach-profiles, .event-list {
    gap: 16px;
  }
}
@media (max-width:900px) {
  header .main-nav {
    gap: 14px;
  }
}
@media (max-width: 830px) {
  .feature-grid, .feature-icons, .program-cards, .service-list, .coach-profiles, .event-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, .policy-section, .confirmation-section, .features-section, .hero-section, .services-section, .program-preview, .marathon-teaser, .marathon-events, .about-section {
    padding: 28px 8px;
    margin-bottom: 33px;
  }
  .testimonial-card, .program-card, .service-card, .coach-profile, .feature-item, .event-detail {
    padding: 16px 8px;
  }
  .feature-item {
    min-width: 0;
  }
  .feature-grid, .feature-icons, .program-cards, .service-list, .coach-profiles, .event-list {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
}

/* Animations */
.primary-cta, .secondary-cta, .cookie-accept, .cookie-reject, .cookie-settings {
  will-change: transform, background, color;
}
section, .content-wrapper, .card, .testimonial-card, .feature-item, .program-card, .service-card {
  transition: box-shadow 0.18s, border 0.18s, background 0.18s;
}

/* Footer */
footer {
  background: #fff;
  border-top: 2.5px solid var(--border);
  padding: 28px 0 12px 0;
  margin-top: 10px;
  box-shadow: 0 -4px 20px rgba(39,60,117,0.04);
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  gap: 14px;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-main);
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--secondary);
}
.text-section p {
  margin-bottom: 6px;
  font-size: 0.97rem;
  color: var(--primary);
  opacity: 0.92;
}

/* CARDS LAYOUTS for other sections */
.success-stories, .testimonial-card, .testimonial-list {
  margin-bottom: 12px;
}
.map-embed {
  margin: 24px 0;
  font-size: 1rem;
  color: #555;
}
.back-home-link {
  margin: 30px 0 0 0;
}

/* CONTACT INFO FLEX */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 8px 0;
}
.address-info, .phone-email, .working-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 145px;
}
.address-info img, .phone-email img, .working-hours img {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}

/* POLICY SECTION TEXT */
.policy-section .text-section {
  margin-top: 10px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 18px 16px;
  border: 2px solid var(--border);
}
.policy-section h2 {
  font-size: 1.11rem;
  margin-top: 22px;
  color: var(--secondary);
  text-transform: none;
  letter-spacing: 0;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2.5px 22px rgba(39,60,117,0.07);
  border-top: 3px solid var(--secondary);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 23px 12vw 22px 6vw;
  gap: 30px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.53,.11,.6,.99);
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-content {
  flex: 2 1 0%;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #20a470;
}
.cookie-reject {
  background: #f9f9f9;
  color: var(--primary);
  border: 2px solid var(--border);
  font-weight: 700;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #DFE4EC;
  color: var(--secondary);
}
.cookie-settings {
  background: none;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(39,60,117,0.37);
  z-index: 2050;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 30px 22px;
  box-shadow: 0 8px 36px rgba(39,60,117,0.13);
  width: 99vw;
  max-width: 400px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalIn 0.38s cubic-bezier(.53,.11,.6,.99);
  position: relative;
}
@keyframes modalIn {
  from { transform: scale(0.94) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.15rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category input[type="checkbox"]:disabled+span,
.cookie-category input[type="checkbox"][disabled] + span {
  opacity: 0.75;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

/* Utility */
.d-none { display: none !important; }

/* COLOR & ACCESSIBILITY: Testimonials/reviews must have dark text on light backgrounds */
.testimonials-section, .testimonials-list, .success-stories, .testimonial-card {
  background: transparent;
}
.testimonial-card p, .testimonial-card strong, .star-rating {
  color: var(--primary);
}
.testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-card);
}
/* Prevent overlap: Adequate spacing everywhere */
.card, .card-container > * {
  margin-bottom: 20px;
}
.section > *, .content-wrapper > * {
  margin-bottom: 18px;
}

/* --- MISC COMPONENTS --- */
.marathon-highlight, .date-countdown {
  background: var(--accent);
  border-left: 7px solid var(--secondary);
  padding: 12px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 500;
}
.event-detail span {
  color: var(--secondary);
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

/* Checkbox Customization for Cookie Modal */
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--secondary);
  margin-right: 7px;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 9px;
  background: #DFE4EC;
}
body::-webkit-scrollbar-thumb {
  background: #26C281;
  border-radius: 13px;
}

/* PRINT (for policies) */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  body { background: #fff; color: #273C75; }
}
