/* =========================
   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, 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, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  font-size: 16px;
  background: #181C1B;
  color: #ECEFF1;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #181C1B;
  color: #ECEFF1;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }

/* =============================================
   BRAND COLORS, FONTS, AND DESIGN TOKENS
============================================= */
:root {
  --color-primary: #234D40;
  --color-secondary: #86B2A6;
  --color-accent: #F2EBE3;
  --color-bg: #181C1B;
  --color-bg-dark: #212524;
  --color-surface: #242826;
  --color-surface-light: #35413B;
  --color-metallic: #6C7A76;
  --color-steel: #A5A5A5;
  --color-heading: #F2EBE3;
  --color-text: #ECEFF1;
  --color-text-muted: #BBB;
  --color-shadow: 0 4px 24px rgba(30,34,32,0.16),0 1.5px 6px rgba(40,40,40,0.09);
  --color-shadow-strong: 0 8px 32px rgba(30,34,32,0.23);
  --radius: 14px;
  --radius-card: 16px;
  --radius-btn: 24px;
  --transition: 0.25s cubic-bezier(.6,.01,.25,1);
  --font-display: 'Quicksand', 'Montserrat', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}
/* Fallback fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Quicksand:wght@600;700&display=swap');

/* ===================================
   TYPOGRAPHY
=================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.012em;
  margin-bottom: 16px;
  text-shadow: 0 2px 2px rgba(68,77,73,0.25);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.14;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(68,77,73,0.10);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.21;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
p, li {
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
strong, b {
  font-weight: 600;
  color: var(--color-accent);
}

/* ====================
   LAYOUT CONTAINER
==================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-dark);
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  /* space out first-child/last-child for stack */
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ========================
   FLEXBOX SPACING RULES
======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--color-shadow);
  padding: 32px 24px;
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--color-metallic);
}
.card:hover, .card:focus-visible {
  box-shadow: var(--color-shadow-strong);
  border-color: var(--color-secondary);
  transform: translateY(-4px) scale(1.025);
}

.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* Features and testimonials */
.feature-grid, .class-listings, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid li, .class-listings li {
  background: var(--color-surface-light);
  padding: 32px 20px 24px 20px;
  border-radius: var(--radius-card);
  min-width: 230px;
  flex: 1 1 220px;
  box-shadow: var(--color-shadow);
  border: 1px solid var(--color-metallic);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-grid li:hover {
  box-shadow: var(--color-shadow-strong);
  border-color: var(--color-secondary);
  transform: translateY(-5px) scale(1.03);
}
.feature-grid img, .class-listings img {
  width: 36px;
  height: 36px;
  filter: grayscale(20%) brightness(0.8) contrast(1.3);
  margin-bottom: 10px;
}
.team-profiles {
  gap: 24px;
  margin-bottom: 26px;
}
.profile {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--color-surface-light);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: var(--color-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-metallic);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.profile:hover {
  box-shadow: var(--color-shadow-strong);
  border-color: var(--color-secondary);
  transform: translateY(-5px) scale(1.04);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =============================
   TESTIMONIALS
============================= */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-accent);
  color: #232823;
  border-radius: var(--radius-card);
  min-width: 250px;
  flex: 1 1 290px;
  box-shadow: 0 2px 12px rgba(36,40,39,0.14);
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #E2DCDA;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover{
  box-shadow: 0 8px 32px rgba(36,40,39,0.22);
  border-color: var(--color-secondary);
  transform: translateY(-3px) scale(1.03);
}
.testimonial-card p {
  color: #181C1B;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.55;
}
.testimonial-details {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .98rem;
  color: #444;
}
.client-name {
  font-weight: 700;
  color: var(--color-primary);
}
.location {
  color: var(--color-metallic);
  font-weight: 500;
}
.stars {
  letter-spacing: 0.15em;
  color: #FDBE39;
  font-size: 1.16em;
  margin-left: 4px;
  text-shadow: 0 1px 2px #fff,0 1px 8px #d8cba0;
}
@media (max-width: 768px) {
  .testimonial-cards {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 0;
  }
}

/* =====================
   HEADER & NAVIGATION
====================== */
header {
  background: var(--color-bg-dark);
  border-bottom: 2px solid var(--color-primary);
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 78px;
}
.logo img {
  height: 48px;
  width: auto;
  filter: brightness(0.93) contrast(1.15);
  margin-right: 8px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--color-accent);
  letter-spacing: .015em;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition);
}
nav a:hover, nav a:focus-visible {
  color: var(--color-secondary);
}
nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #234D40 77%, #86B2A6 100%);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  padding: 0.72em 2.2em;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px rgba(33,77,64,0.12);
  letter-spacing: .025em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(90deg, #178177 75%, #A5A5A5 102%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(44,84,61,0.18);
  transform: translateY(-2px) scale(1.045);
}

@media (max-width: 992px) {
  header .container {
    gap: 14px;
  }
  nav {
    gap: 18px;
  }
}

@media (max-width: 850px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
  }
  nav, .btn-primary {
    font-size: .99rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    min-height: 50px;
    padding-top:10px;
    padding-bottom:10px;
  }
  nav {
    display: none;
  }
  .btn-primary {
    padding: 0.56em 1.4em;
    font-size: .98rem;
  }
}

/* =================================
  MOBILE MENU (HAMBURGER)
================================== */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1111;
    background: var(--color-bg-dark);
    color: var(--color-accent);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 2em;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(40,62,51,0.18);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
  }
  .mobile-menu-toggle:active {
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    transform: scale(1.08);
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,77,64,0.98);
  z-index: 2222;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--transition), transform .4s var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin-top: 18px;
  margin-left: 16px;
  color: var(--color-accent);
  background: rgba(31,41,38,0.6);
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2223;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-close:active {
  background: var(--color-secondary);
  color: #222;
  transform: scale(1.09);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 32px 0 32px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242,235,227,0.18);
  width: 100%;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:active,
.mobile-nav a:focus-visible {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
}

/* Only show mobile menu elements on mobile */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
}

/* Hide mobile menu/hamburger on desktop */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================
   FOOTER STYLES
=================== */
footer {
  background: var(--color-bg-dark);
  padding: 32px 0 22px 0;
  border-top: 2px solid var(--color-primary);
  color: var(--color-accent);
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  font-size: .98rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-weight: 500;
  margin: 0 2px;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus-visible {color: var(--color-accent);}
.footer-contact {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  vertical-align: middle;
  filter: grayscale(40%) brightness(0.9);
  margin-right: 4px;
}
.footer-legal {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--color-metallic);
  opacity: .72;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 20px 0 12px 0;
  }
  .footer-wrapper {
    gap: 14px;
  }
}

/* ===================
   TABLE STYLES
=================== */
.schedule-table, .pricing-table {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  border: 1px solid var(--color-metallic);
  margin-bottom: 24px;
  overflow-x: auto;
}
.schedule-table th, .pricing-table th {
  background: var(--color-secondary);
  color: #232823;
  padding: 11px 8px;
  font-size: 1.04rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--color-primary);
}
.schedule-table td, .pricing-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #42534F;
  font-size: .98rem;
  background: var(--color-bg-dark);
}
.schedule-table tr:last-child td, .pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .schedule-table, .pricing-table, .schedule-table tbody, .pricing-table tbody {
    display: block;
    overflow-x: auto;
  }
  .schedule-table thead, .pricing-table thead { display: none;}
  .schedule-table tr, .pricing-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--color-surface-light);
  }
  .schedule-table td, .pricing-table td {
    padding: 10px 6px;
    border-bottom: none;
    background: inherit;
  }
}

/* ===================
   MAP/CONTACT
=================== */
.location-map {
  width: 100%;
  max-width: 340px;
  margin: 24px 0 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-metallic);
  box-shadow: 0 2px 9px rgba(34,58,40,0.09);
}

/* ===================
   LISTS & ICON-LISTS
=================== */
ul {
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-text);
}
ul li img {
  width: 24px;
  height: 24px;
  filter: grayscale(30%) brightness(0.8) contrast(1.2);
}

@media (max-width: 600px) {
  .location-map {
    max-width: 100%;
    margin: 12px 0 0 0;
  }
}

/* ===================
   MISC HELPERS
=================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mb-4 { margin-bottom: 4px !important; }

/* =============================
   COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  color: var(--color-accent);
  padding: 26px 18px 20px 18px;
  z-index: 3000;
  box-shadow: 0 -2px 20px rgba(34,77,64,0.23);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-top: 2px solid var(--color-primary);
  border-radius: 10px 10px 0 0;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.7,0,.3,1), opacity .36s var(--transition);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  flex: 2 1 240px;
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-accent);
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  outline: none;
  box-shadow: 0 2px 11px rgba(34,77,64,0.07);
}
.cookie-btn:hover, .cookie-btn:focus-visible {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
}
.cookie-btn.settings {
  background: var(--color-metallic);
  color: var(--color-accent);
}
.cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px !important;
    padding: 16px 8px 10px 8px;
    font-size: .98rem;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }
}

/* =============================
   COOKIE MODAL / POPUP
=============================== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,28,27, 0.84);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.visible {
  display: flex;
  animation: fadeInModal .38s cubic-bezier(.6,.01,.25,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-surface);
  color: var(--color-accent);
  border-radius: 16px;
  padding: 34px 28px 26px 28px;
  min-width: 300px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(34,77,64,0.20);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h2 {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cookie-modal-list {
  margin-bottom: 14px;
}
.cookie-modal-list li {
  color: var(--color-accent);
  font-size: 1rem;
  gap: 12px;
  padding: 7px 0;
}
.cookie-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.toggle-switch {
  appearance: none;
  width: 40px; height: 20px;
  background: var(--color-metallic);
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-switch:checked {
  background: var(--color-secondary);
}
.toggle-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 16px; height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: left var(--transition), background var(--transition);
}
.toggle-switch:checked:before {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.48em;
  cursor: pointer;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 16px 8px 11px 8px;
    width: 99vw;
    min-width: 0;
  }
  .cookie-modal-content h2 {
    font-size: 1.19rem;
  }
}

/* =========================================
   ANIMATIONS & MICRO-INTERACTIONS
========================================= */
a, button, .btn-primary, .card, .profile, .feature-grid li, .testimonial-card, .mobile-menu-toggle, .mobile-menu-close {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Misc. micro-interactions */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =========================
   RESPONSIVENESS
========================= */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.38rem; }
  h3, .h3 { font-size: 1.1rem; }
}

/* Extra: hide scrollbars for menu/modal overlays */
.mobile-menu, .cookie-modal {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar { display: none; }

/* =========================
   OVERRIDES FOR EDGE CASES
========================= */
/* Prevent overlap of fixed elements on mobile. */
body { padding-bottom: 80px; }
@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

/* Hide banner/modal when not triggered - classes handled by JS */
.cookie-banner:not(.visible), .cookie-modal:not(.visible) {
  pointer-events: none;
}

/* ===== END ===== */
