/* ------- CSS RESET & BASE ------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #181818;
  background: #fff;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
:root {
  --brand-primary: #174288;
  --brand-secondary: #25866E;
  --accent-bg: #F2F6FE;
  --mono-black: #181818;
  --mono-dark: #232323;
  --mono-gray: #666;
  --mono-mid: #A8A8A8;
  --mono-light: #F8F8F8;
  --header-height: 72px;
  --container-width: 1200px;
  --shadow-base: 0 2px 12px rgba(24,24,24,0.08);
  --border-radius: 14px;
  --transition: 0.22s cubic-bezier(.7,0,.3,1);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
.footer-nav a:hover,
.main-nav a:hover {
  color: var(--mono-black);
}

/* ------- TYPOGRAPHY ------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--mono-black);
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #111;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul, li, address {
  color: var(--mono-gray);
  font-size: 1rem;
}
ul {
  margin-left: 20px;
  margin-bottom: 18px;
  list-style: disc;
}
strong {
  color: var(--mono-black);
  font-weight: 600;
}

/* Typography Scaling for Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* ------- LAYOUT -------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .container {
    padding: 0 14px;
  }
  .section {
    padding: 32px 8px;
  }
}

/* ------- HEADER & NAV --------- */
header {
  background: #fff;
  box-shadow: var(--shadow-base);
  position: sticky;
  top: 0;
  z-index: 1003;
}
.header-container {
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.logo img {
  height: 38px;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a, .footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--mono-dark);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.main-nav a.cta-primary {
  background: var(--mono-black);
  color: #fff;
  font-weight: 700;
  padding: 8px 22px;
  margin-left: 8px;
  border-radius: 30px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(24,24,24,0.12);
}
.main-nav a.cta-primary:hover {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(23,66,136,0.09);
}

/* ---------------- MOBILE NAVIGATION ------------------ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--mono-black);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  padding: 0 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent-bg);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,32,34, 0.98);
  color: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.9,.06,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin: 22px 32px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #18181830;
}
.mobile-nav {
  margin: 42px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 95vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  background: none;
  display: block;
  width: 100%;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-primary);
  color: #fff;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ------- HERO SECTION --------- */
.hero {
  background: #fff;
  padding: 56px 0 52px 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 24px rgba(24,24,24,0.09);
  border-radius: 0 0 18px 18px;
}
.hero h1 {
  color: var(--mono-black);
  font-size: 2.6rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.15rem;
  color: var(--mono-gray);
}
.hero .cta-primary {
  margin-top: 24px;
}
@media (max-width: 600px) {
  .hero {
    padding: 32px 0 30px 0;
    border-radius: 0 0 12px 12px;
  }
  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  .hero p { font-size: 0.98rem; }
}

/* ------- BUTTONS & CTAs -------- */
.cta-primary,
.button,
button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--brand-primary);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 34px;
  box-shadow: 0 4px 16px rgba(23,66,136,0.10);
  letter-spacing: 0.4px;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.cta-primary:hover,
.button:hover,
button:hover,
.cta-primary:focus,
.button:focus {
  background: var(--mono-black);
  color: #fff;
  box-shadow: 0 8px 40px rgba(24,24,24,0.11);
  outline: none;
}
.button-secondary {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  font-weight: 600;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ------- FLEXBOX GRIDS & FEATURES -------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.features-grid > div {
  background: var(--accent-bg);
  flex: 1 1 min(268px, 100%);
  min-width: 260px;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 1px 7px rgba(24,24,24,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow var(--transition), background var(--transition);
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px rgba(23,66,136,0.11);
  background: #f7f7f7;
}
.features-grid img {
  width: 38px;
  min-width: 38px;
  margin-bottom: 7px;
}
@media (max-width: 850px) {
  .features-grid {
    gap: 16px;
  }
  .features-grid > div {
    min-width: 47%;
    padding: 18px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    flex-direction: column;
    gap: 12px;
  }
  .features-grid > div {
    min-width: 0;
    padding: 14px;
    width: 100%;
  }
}

/* ------- TESTIMONIALS & REVIEW --------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.testimonial-card {
  background: #fff;
  color: #222;
  flex: 1 1 300px;
  min-width: 266px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(24,24,24,0.10);
  padding: 28px 28px 18px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card p {
  color: #232323;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.testimonial-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
}
.testimonial-meta img {
  height: 1.2em;
  width: 1.2em;
  margin: 0 1px;
}
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    min-width: 0;
    padding: 18px 12px 14px 14px;
  }
}

/* ------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, #fff 80%, #F4F5F5 100%);
  box-shadow: 0 2px 12px rgba(60,60,60,0.13);
  border-radius: 22px;
  padding: 60px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-section h2 {
  color: var(--brand-primary);
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .cta-section {
    border-radius: 10px;
    padding: 32px 10px;
  }
}

/* ------- TEXT & IMAGE SECTIONS -------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.02rem;
}
.text-section > img {
  width: 32px;
  margin-right: 14px;
}
.text-section a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
}
.text-section a:hover {
  color: var(--mono-black);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ------- UPDATES/LISTS ------- */
.upcoming-sessions {
  margin-top: 30px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(24,24,24,0.08);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upcoming-sessions h3 {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.10rem;
}

/* ------- FOOTER --------- */
footer {
  background: #17181a;
  padding-top: 60px;
  padding-bottom: 0;
  color: #fff;
  font-size: 1rem;
}
.footer-container {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #e6e6e6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color .18s, text-shadow .18s;
  text-shadow: none;
}
.footer-nav a:hover {
  color: var(--brand-primary);
  text-shadow: 0 1px 6px rgba(23,66,136,0.13);
}
.footer-contact {
  min-width: 220px;
  color: #dedede;
  font-size: .97rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact h4 {
  color: #fff;
  margin-bottom: 7px;
  font-weight: 700;
}
.footer-contact address {
  font-style: normal;
  color: #dedede;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.99rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 6px;
  width: 18px;
}
.footer-hours {
  display: block;
  color: #bbb;
  font-size: 0.97rem;
  margin-top: 5px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  margin-top: 14px;
}
.footer-social img {
  width: 28px;
  opacity: 0.88;
  transition: opacity .16s,filter .16s;
  filter: grayscale(.85);
}
.footer-social a:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.footer-bottom {
  border-top: 1.5px solid rgba(255,255,255,0.09);
  margin-top: 24px;
  padding: 20px 0 10px 0;
  text-align: center;
  color: #f5f5f5;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  footer {
    padding-top: 36px;
    font-size: .98rem;
  }
}

/* ------ CARDS & GENERAL FLEX PATTERNS -------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 28px rgba(24,24,24,0.13);
  transform: translateY(-4px) scale(1.025);
}
.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;
}
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* -------- MAP EMBED (Contact) --------- */
.map-embed {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(24,24,24,0.10);
}
.map-embed img {
  width: 100%;
  min-width: 220px;
  min-height: 120px;
  object-fit: cover;
}

/* --------- COOKIE CONSENT BANNER --------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #181818;
  color: #fafafa;
  box-shadow: 0 -2px 16px rgba(24,24,24,0.11);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 22px 20px;
  font-size: 1rem;
  animation: cookieBannerIn 0.44s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0;} 
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fafafa;
  font-size: 1.02rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .button {
  border-radius: 30px;
  font-size: 0.97rem;
  padding: 8px 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin: 0;
  box-shadow: none;
  background: var(--brand-primary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button.button-secondary {
  background: #fff;
  color: var(--brand-primary);
  border: 1.4px solid var(--brand-primary);
}
.cookie-banner button.button-secondary:hover {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: var(--mono-black);
  color: #fff;
}
.cookie-banner button.cookie-settings:hover {
  background: var(--brand-secondary);
  color: #fff;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw 18px 6vw;
    gap: 14px;
    font-size: .97rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/*  Cookie preferences modal  */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,24,24,0.54);
  z-index: 5001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s cubic-bezier(.7,0,.3,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232323;
  border-radius: 18px;
  max-width: 400px;
  min-width: 280px;
  padding: 36px 28px 18px 28px;
  box-shadow: 0 7px 46px rgba(24,24,24,0.14);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalIn 0.24s cubic-bezier(.7,0,.3,1);
}
@keyframes modalIn {
  from { transform: scale(0.98) translateY(40px); opacity: 0; }
  to {   transform: scale(1)   translateY(0);      opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
  color: var(--mono-black);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--accent-bg);
  border-radius: 8px;
  padding: 10px 11px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: #232323;
  font-weight: 500;
  margin-left: 4px;
}
.cookie-category input[type=checkbox] {
  width: 19px;
  height: 19px;
  accent-color: var(--brand-primary);
  border-radius: 4px;
  margin-right: 3px;
}
.cookie-modal-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  color: #232323;
  border: none;
  font-size: 1.47rem;
  cursor: pointer;
  border-radius: 5px;
}
.cookie-modal-close:hover {
  background: var(--accent-bg);
}
@media(max-width: 600px) {
  .cookie-modal {
    max-width: 96vw;
    min-width: 0;
    padding: 24px 8vw 14px 8vw;
  }
}

/* ------- SPACING AND FLEX PATTERNS -------- */
.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; }

/* ------- GENERAL TRANSITIONS & EFFECTS ---------- */
section, .card, .features-grid > div, .cta-section, .cookie-banner, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
}

/* ------- ACCENT CLASSES ---------- */
.bg-accent {
  background: var(--accent-bg) !important;
}
.bg-dark {
  background: var(--mono-black) !important;
  color: #fff !important;
}
.text-primary { color: var(--brand-primary) !important; }
.text-dark { color: var(--mono-black) !important; }
.rounded { border-radius: var(--border-radius); }

/* ------- MISCELLANEOUS ---------- */
::-webkit-scrollbar {
  width: 11px;
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

@media(max-width: 600px) {
  html {
    font-size: 15px;
  }
}

/* Extra: Hide outline only for mouse users, not keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ACCESSIBILITY */
@media (max-width: 500px) {
  .container {
    padding: 0 7px;
  }
  footer .container { padding: 0 12px;}
  .footer-bottom { padding: 12px 0 7px 0; }
}
