/* ===== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #191919;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #191919;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #191919;
  outline-offset: 2px;
}
strong {
  font-weight: 600;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.1em;
}
li {
  margin-bottom: 0.5em;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ===== BRAND FONTS (web-safe fallback used for demo) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --clr-text: #191919;
  --clr-bg: #fff;
  --clr-bg-alt: #f4f4f4;
  --clr-primary: #191919;
  --clr-grey-dark: #232323;
  --clr-grey: #5a5a5a;
  --clr-grey-light: #dedede;
  --clr-white: #fff;
  --clr-accent: #A05500;
  --clr-border: #dedede;
  --shadow-soft: 0px 2px 18px 0 rgba(36,36,36, 0.07);
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--clr-primary);
}
h1 { font-size: 2.4rem; line-height: 1.1; margin-bottom: 32px; letter-spacing: -0.01em; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { font-size: 1.06rem; font-weight: 600; margin-bottom: 6px; }
p, ul, ol, blockquote, address {
  font-size: 1rem;
  color: var(--clr-grey);
  margin-bottom: 18px;
}

/* Link style */
a {
  color: var(--clr-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border 0.2s;
}
a:hover {
  color: var(--clr-accent);
  border-bottom: 1px solid var(--clr-accent);
}

/* ======= LAYOUT BASICS ======= */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main {
  min-height: 60vh;
}

/* Section Spacing */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  width: 100%;
  background: var(--clr-bg);
}
@media (max-width: 768px) {
  section { padding: 30px 0; margin-bottom: 40px; }
}

/* ======= HEADER & NAVIGATION ======= */
header {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-grey-light);
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px 0 rgba(24, 24, 24, 0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
header img {
  height: 52px;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.nav-cta {
  margin-left: 24px;
  padding: 10px 24px;
  border-radius: 32px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0px 3px 14px 0 rgba(34, 34, 34, 0.08);
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.mobile-menu-toggle {
  display: none;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: 2rem;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--clr-accent);
}

/* Mobile navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 2.1rem;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  z-index: 211;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--clr-accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 60px;
  width: 100%;
  gap: 18px;
  padding: 0 28px;
}
.mobile-nav a {
  color: var(--clr-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 16px 0;
  width: 100%;
  display: block;
  border: none;
  border-bottom: 1px solid rgba(244,244,244,0.08);
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:active {
  color: var(--clr-accent);
}

@media (max-width: 992px) {
  nav {
    display: none;
  }
  .nav-cta { display: none; }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none; }
}

/* ===== HERO/CTA ===== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.content-wrapper.text-section {
  align-items: flex-start;
}
.primary-btn {
  display: inline-block;
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 13px 36px;
  border-radius: 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.13rem;
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0px 2px 18px 0 rgba(40,40,40,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0px 4px 22px 0 rgba(40,40,40,0.19);
}

/* ===== FEATURE/GRID, CARDS, LISTS ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 240px;
  min-width: 260px;
  max-width: 370px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 32px 24px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.22s, border 0.18s, background 0.22s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 8px 32px rgba(35,35,35, 0.12);
  border-color: var(--clr-accent);
}
.feature-grid img {
  height: 48px; width: 48px;
  margin-bottom: 8px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  width: 100%;
}
.service-list li {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 460px;
  background: var(--clr-white);
  border: 1px solid var(--clr-grey-light);
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 28px 24px 22px 24px;
  transition: box-shadow 0.22s, border 0.16s;
}
.service-list li:hover {
  box-shadow: 0 8px 28px rgba(22,22,22,0.13);
  border-color: var(--clr-accent);
}
.service-list img {
  height: 46px; width: 46px; margin-right: 10px;
  flex-shrink: 0;
}
.service-list h3 {
  margin-bottom: 8px; margin-top: 0;
}

.blog-article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.blog-article-grid article {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 380px;
  border: 1px solid var(--clr-grey-light);
  background: var(--clr-white);
  padding: 24px 20px 18px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.22s, border 0.18s;
  margin-bottom: 20px;
}
.blog-article-grid article:hover {
  box-shadow: 0 8px 32px rgba(29,29,29, 0.13);
  border-color: var(--clr-accent);
}

.featured-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-posts article {
  border-left: 4px solid var(--clr-primary);
  background: var(--clr-bg);
  padding: 18px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(22,22,22,0.05);
}

.trainer-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.trainer-profiles div {
  flex: 1 1 210px;
  background: var(--clr-bg);
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--clr-grey-light);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.trainer-profiles img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.certifications {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 18px;
}
.certifications span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--clr-grey-dark);
  background: var(--clr-bg);
  border: 1px solid var(--clr-grey-light);
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 500;
}

/* Text and Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #f8f8f9;
  color: #191919;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 22px 0 rgba(24,24,24,0.07);
  border: 1.5px solid #dedede;
  margin-bottom: 20px;
  max-width: 680px;
  font-size: 1.1rem;
  font-style: italic;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(18,18,18,0.17);
}
.testimonial-card blockquote {
  margin: 0;
  color: #191919;
  font-size: 1.07rem;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card footer {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: #4a4a4a;
  margin-left: 12px;
}

/* CONTACT DETAILS/STYLED ICONS */
.contact-details, .footer-contact address, .map-placeholder {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.contact-details img, .footer-contact img, .map-placeholder img {
  height: 24px;
  width: 24px;
  margin-right: 8px;
  opacity: 0.75;
  vertical-align: middle;
}
.contact-details p, .footer-contact address {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-placeholder {
  background: #f7f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22,22,22,0.04);
  padding: 18px 20px 9px 20px;
  margin-top: 12px;
  max-width: 420px;
}

/* ======= FOOTER ======= */
footer {
  background: #191919;
  color: #fff;
  width: 100%;
  margin-top: 80px;
  padding: 38px 0 24px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #e8e8e8;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-bottom: none;
  transition: color 0.18s;
}
footer nav a:hover {
  color: var(--clr-accent);
}
.footer-contact address {
  color: #dadada;
  font-size: 0.96rem;
  font-style: normal;
}
.footer-logo img {
  height: 48px;
  margin-top: 6px;
  filter: grayscale(1) brightness(2.2);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-logo img {
    margin: 0;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232323;
  color: #fff;
  width: 100vw;
  padding: 22px 20px 18px 20px;
  z-index: 9000;
  box-shadow: 0 -2px 32px rgba(19,19,19,0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 38px;
  font-size: 1.08rem;
  transition: transform 0.41s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-text {
  max-width: 700px;
  margin-right: 34px;
}
.cookie-banner button {
  margin-left: 8px;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 26px;
  padding: 8px 24px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0px 1.5px 7px rgba(24,24,24,0.09);
  transition: background 0.18s, color 0.2s, box-shadow 0.2s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #191919;
  color: #fff;
  box-shadow: 0px 4px 18px 0 rgba(37,37,37,0.16);
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #232323;
  border: 1px solid #cdcdcd;
  margin-left: 12px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
  transition: opacity 0.3s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #191919;
  padding: 36px 32px 26px 32px;
  border-radius: 18px;
  min-width: 340px;
  max-width: 520px;
  box-shadow: 0 8px 48px rgba(21,21,21,0.26);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookie-modal-in 0.32s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-modal-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0);} }
.cookie-modal-close {
  background: none;
  border: none;
  color: #191919;
  font-size: 2rem;
  position: absolute;
  top: 14px;
  right: 20px;
  cursor: pointer;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #191919;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ececec;
  padding: 12px 0;
}
.cookie-modal .category-label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #232323;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #e1e1e1;
  border-radius: 9px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-switch input[type="checkbox"]:checked {
  background: var(--clr-accent);
}
.cookie-switch input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(10,10,10,0.09);
}
.cookie-switch input[type="checkbox"]:checked:before {
  transform: translateX(16px);
}
.cookie-switch input[type="checkbox"][disabled] {
  background: #bbb;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 15px;
}
.cookie-modal-actions button {
  background: var(--clr-accent);
  color: #fff;
  padding: 8px 24px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #191919;
  color: #fff;
}

/* Responsive cookie banner/modal */
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .cookie-banner .cookie-banner-text { margin-right: 0; }
  .cookie-modal { padding: 20px 10px; min-width: 0; max-width: 98vw; }
}

/* ====== MISC FLEX/UTILITY CLASSES ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 24px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Default ul styling for text-section */
.text-section ul {
  list-style: disc inside;
  margin-bottom: 14px;
}
.text-section li {
  color: var(--clr-grey-dark);
  font-size: 1.04rem;
  margin-bottom: 7px;
  font-weight: 400;
}

/* MODERN LISTS WITH ICONS */
ul li img {
  margin-right: 7px;
  vertical-align: middle;
  height: 22px;
  width: 22px;
}

/* Miscellaneous sections */
.map-placeholder {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ==== SPACING PATTERNS as requested ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { 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; }

/* ==== RESPONSIVE DESIGN (MOBILE FIRST) ==== */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .feature-grid, .service-list, .card-container, .blog-article-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .feature-grid li,
  .service-list li, .card {
    max-width: 100vw; min-width: 0;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.29rem; }
  .container { padding: 0 5px; }
  .content-wrapper { padding: 0; }
  .feature-grid, .service-list, .card-container, .blog-article-grid {
    gap: 14px; 
  }
  .card, .blog-article-grid article, .testimonial-card {
    padding: 16px 9px;
  }
}

/* ====== MICRO-INTERACTIONS & TRANSITIONS ====== */
button, a {
  transition: color 0.17s, background 0.19s, box-shadow 0.21s, border 0.17s;
}
section, .card, .testimonial-card, .blog-article-grid article {
  transition: box-shadow 0.23s, border 0.17s, background 0.18s;
}

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