/* ===== CSS RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Georgia, serif;
  color: #222B35;
  background: #F8F7F4;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img,svg {
  max-width: 100%;
  display: block;
}
a {
  color: #589151;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:hover,a:focus {
  color: #222B35;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
}
strong, b {
  font-weight: 600;
}

/* ===== CONTAINER & SECTION LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 {
  font-family: 'Montserrat', 'Georgia', Times, serif;
  color: #222B35;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 10px; }
h4 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.subheadline {
  font-family: 'Roboto', Georgia, serif;
  color: #42505a;
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-style: italic;
}
p {
  margin-bottom: 16px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,43,53,0.05);
  border-bottom: 1px solid #e4e2df;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  max-height: 46px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  color: #222B35;
  letter-spacing: 0.01em;
  padding: 7px 0;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #589151;
  background: #edeae3;
}
.main-nav .cta-primary {
  background: #222B35;
  color: #fff;
  padding: 10px 26px;
  border-radius: 23px;
  font-size: 1rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  transition: background 0.25s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 9px rgba(34,43,53,0.07);
  margin-left: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  display: inline-block;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #589151;
  color: #fff;
  box-shadow: 0 5px 24px rgba(88,145,81,0.13);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #222B35;
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  margin-left: 28px;
  cursor: pointer;
  transition: background .19s, color .15s;
  z-index: 103;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #589151;
  background: #f7f5ea;
}
.mobile-menu {
  position: fixed;
  z-index: 103;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.67,0,.24,1);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  margin: 20px 28px 0 0;
  color: #222B35;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 104;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #589151;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding: 40px 38px 24px 38px;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: #222B35;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 1px;
  width: 100%;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #589151;
  background: #eeece3;
}

@media (max-width: 950px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .main-nav a { font-size: 0.98rem; }
  .main-nav .cta-primary { font-size: 0.99rem; padding: 8px 17px; margin-left: 0; }
}

@media (max-width: 750px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container { padding: 0 10px; }
}

/* ======= BUTTONS ======= */
.cta-primary, .btn, button {
  font-family: 'Montserrat', Georgia, serif;
  border: none;
  outline: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 22px;
  background: #222B35;
  color: #fff;
  padding: 12px 32px;
  font-size: 1.07rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(34,43,53,0.07);
  margin-top: 12px;
  transition: background 0.22s, box-shadow 0.17s, color 0.17s, border 0.14s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus, .btn:hover, .btn:focus, button:hover, button:focus {
  background: #589151;
  color: #fff;
  box-shadow: 0 4px 18px rgba(88,145,81,0.10);
}
.btn-secondary {
  background: #fff;
  color: #222B35;
  border: 1.5px solid #589151;
  font-weight: 500;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #f5fcf4;
  color: #589151;
}
.btn-accent {
  background: #F6C04A;
  color: #222B35;
}
.btn-accent:hover, .btn-accent:focus {
  background: #fecf68;
  color: #222B35;
}

/* ===== FLEXBOX UTILITY CLASSES (MANDATORY) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(34,43,53,0.07);
  padding: 28px 24px 24px 24px;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #f7f6f2;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(34,43,53,0.07);
  min-width: 240px;
  font-size: 1.15rem;
  color: #222B35;
  margin-bottom: 22px;
  border: 1.5px solid #eae7de;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(246,192,74,0.12);
  border-color: #F6C04A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #faf9f6;
  border-radius: 11px;
  padding: 19px;
}

/* ===== FEATURE/GRID & CARDS ===== */
.feature-grid, .service-grid, .benefit-grid, .trainer-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 15px;
}
.feature, .service, .benefit, .trainer-profile {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(88,145,81,0.02);
  padding: 26px 20px 20px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, border 0.17s;
  border: 1.5px solid #eae7de;
}
.feature img, .service img, .benefit img, .trainer-profile img {
  max-width: 48px;
  margin-bottom: 7px;
}
.feature:hover, .service:hover, .benefit:hover, .trainer-profile:hover {
  box-shadow: 0 8px 30px rgba(246,192,74,0.09);
  border-color: #F6C04A;
}

/* ===== LISTS & ICONS ===== */
ul.usp-list, ul.feature-list, ul.benefit-list, ul.description-list, .course-list {
  margin-bottom: 16px;
  margin-top: 10px;
  font-size: 1.07rem;
  color: #42505a;
}
ul.usp-list li, ul.feature-list li, ul.benefit-list li, ul.description-list li, .course-list li, ul.certification-list li, .directions ul li {
  list-style: disc;
  margin-bottom: 6px;
  margin-left: 20px;
}
ul.contact-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 7px;
  margin-bottom: 17px;
}
ul.contact-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.02rem;
}
ul.contact-list img {
  width: 21px;
  height: 21px;
}

/* ======= SPECIAL SECTIONS (MAP, LEGAL, THANK YOU) ======= */
.map-embed {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background: #faf9f6;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.map-embed img {
  width: 36px;
}
.legal-section {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(34,43,53,0.06);
  padding: 30px 26px;
  margin-bottom: 14px;
  color: #222B35;
}
.thank-you-section {
  background: #f7f6f2;
  border-radius: 13px;
  padding: 40px 32px;
  box-shadow: 0 1px 4px rgba(34,43,53,0.08);
  text-align: center;
}

/* ===== TABLE STYLES ===== */
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34,43,53,0.06);
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.02rem;
}
.pricing-table th, .pricing-table td {
  border: 1px solid #ece6da;
  padding: 13px 11px;
  text-align: left;
}
.pricing-table th {
  background: #f8f7f4;
  color: #222B35;
  font-size: 1.09rem;
  font-weight: 600;
}
.pricing-table td {
  color: #4d5a62;
}

/* ===== FOOTER ===== */
footer {
  background: #222B35;
  color: #edeae3;
  padding: 40px 0 25px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  max-width: 108px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  justify-content: center;
}
.footer-nav a {
  color: #F6C04A;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 0.99rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  font-size: 0.99rem;
  text-align: center;
  color: #d5d2cb;
}
.footer-contact a {
  color: #F6C04A;
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-contact a:hover, .footer-contact a:focus { color: #fff; }
.footer-copy {
  font-size: 0.93rem;
  color: #cac8c2;
  margin-top: 2px;
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
.cta-primary, .btn, button, .mobile-menu, .testimonial-card, .feature, .service, .benefit {
  transition: background 0.22s, box-shadow .18s, color 0.13s, border 0.19s, transform 0.22s;
}
.card:hover, .feature:hover, .service:hover, .benefit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(246,192,74,0.13);
  border-color: #F6C04A;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1150px) {
  .container { max-width: 94vw; }
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .benefit-grid, .trainer-profiles {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.66rem; }
  h2 { font-size: 1.26rem; }
  h3 { font-size: 1rem; }
  .container { padding: 0 9px; }
  .feature-grid, .service-grid, .benefit-grid, .trainer-profiles {
    flex-direction: column;
    gap: 17px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section, .contact-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav { gap: 10px; }
  .map-embed {
    flex-direction: column;
    gap: 7px;
  }
  .testimonial-card { font-size: 1rem; padding: 14px; }
  .legal-section, .thank-you-section {
    padding: 18px 8px;
  }
}
@media (max-width: 540px) {
  .section { padding: 30px 6px; }
  header .container { min-height: 54px; }
  .footer-logo img { max-width: 80px; }
  .footer-nav { flex-direction: column; gap: 5px; }
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  background: #fffdfa;
  color: #222B35;
  border-top: 2px solid #e1ddd7;
  box-shadow: 0 -3px 24px rgba(88,145,81,0.07);
  padding: 24px 18px 17px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 1.04rem;
  animation: slideUpBanner 0.46s cubic-bezier(.66,0,.2,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(70px); opacity:0; } to { transform:none; opacity:1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  margin-left: 21px;
}
.cookie-banner button {
  font-size: 0.99rem;
  padding: 9px 26px;
  border-radius: 18px;
  font-weight: 500;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  border: 1.5px solid #589151;
  color: #589151;
  transition: background 0.14s, color 0.14s, border 0.14s;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #f5fcf4;
  color: #222B35;
  border-color: #F6C04A;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 130;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,43,53,0.3);
  align-items: center;
  justify-content: center;
  animation: fadeModal 0.39s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeModal {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #222B35;
  border-radius: 14px;
  padding: 34px 22px 23px 22px;
  min-width: 300px;
  max-width: 95vw;
  box-shadow: 0 4px 30px rgba(88,145,81,0.09);
  animation: popInModal 0.32s cubic-bezier(.65,0,.22,1);
}
@keyframes popInModal {
  from { transform: scale(.91); opacity:0;} to { transform: none; opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #589151;
  width: 17px;
  height: 17px;
}
.cookie-category .essential-mark {
  font-size: 0.9rem;
  color: #589151;
  margin-left: 5px;
  font-weight: 600;
}
.cookie-modal .modal-footer {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .btn-secondary,
.cookie-modal .cookie-settings-btn { margin-top: 0; padding: 7px 18px; }
.cookie-modal .btn-accent { padding: 7px 18px; }

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: .99rem;
    padding: 20px 8px 14px 8px;
  }
  .cookie-banner .cookie-btns {
    margin-left: 0; gap: 8px; flex-direction: row;
  }
}

/* ===== UTILITIES ===== */
.text-section { flex: 1; }
.contact-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.feature-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  margin: 12px 0;
}
.trainer-quotes {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 12px;
}
.quote {
  font-style: italic;
  color: #42505a;
  background: #f7f6f2;
  border-radius: 7px;
  padding: 14px 10px;
}

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container { box-shadow: none; }
}
