/* =========================
   CSS RESET & NORMALIZE
========================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { min-height: 100%; margin: 0; font-family: 'Merriweather', 'Times New Roman', Times, serif; background: #FFF7EB; color: #273238; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: #2281A4; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #355F6B; text-decoration: underline; outline: none; }
h1, h2, h3, h4, h5, h6 { color: #1e2d36; font-family: 'Playfair Display', 'Georgia', serif; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
h1 { font-size: 2.6rem; margin-bottom: 20px; }
h2 { font-size: 2.1rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
@media (max-width: 768px) { h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; } }
p, ul, ol, .text-section, .service-description { margin-bottom: 18px; font-family: 'Merriweather', 'Times New Roman', Times, serif; font-size: 1rem; line-height: 1.7; color: #273238; }
ul, ol { padding-left: 22px; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
input, button { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: #d1e4ec; }

/* =========================
   TYPOGRAPHY & BRAND FONTS
========================== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700|Merriweather:400,700&display=swap');

body {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  background: #FFF7EB;
}

.primary-cta, .primary-btn, .cookie-banner .cta, .cookie-banner .btn {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 32px;
  background: #2281A4;
  color: #fff;
  border: none;
  border-radius: 34px;
  box-shadow: 0 2px 8px rgba(34, 129, 164, 0.09);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.13s;
  display: inline-block;
  letter-spacing: 0.02em;
  margin: 8px 0;
}
.primary-cta:hover, .primary-btn:hover, .cookie-banner .cta:hover, .cookie-banner .btn:hover {
  background: #355F6B;
  color: #FFF7EB;
  box-shadow: 0 4px 16px rgba(53, 95, 107, 0.11);
  transform: translateY(-2px) scale(1.035);
}
.primary-cta:focus {
  outline: 2px solid #2281A4;
}

/* =========================
   LAYOUT: FLEXBOX ONLY
========================== */
.container {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.features-grid, .services-list, .resource-list, .team-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 16px;
}
.features-grid>div, .services-list>div, .resource-list>div, .team-list>div {
  flex: 1 1 255px;
  min-width: 230px;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 18px rgba(53, 95, 107, 0.07);
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.16s;
}
.features-grid>div:hover, .services-list>div:hover,
.resource-list>div:hover, .team-list>div:hover {
  box-shadow: 0 8px 26px rgba(53,95,107,0.16);
  transform: translateY(-2px) scale(1.03);
}

.services-list {
  gap: 28px;
  margin-bottom: 24px;
}
.services-list>div {
  border-left: 5px solid #2281A4;
  border-radius: 0 16px 16px 0;
}

.team-list {
  gap: 28px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  background: #FFF7EB;
  border: 1.5px solid #e8e2d6; 
  border-radius: 25px;
  box-shadow: 0 1px 12px rgba(53,95,107,0.09);
  padding: 28px 26px 19px 26px;
  min-width: 270px;
  max-width: 370px;
  flex: 1 1 254px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  color: #212F36;
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #2281A4;
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.testimonial-card p {
  font-size: 1rem;
  color: #273238;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(34,129,164,0.13);
  border-color: #2281A4;
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .features-grid, .services-list, .resource-list, .team-list, .testimonial-list { gap: 20px; }
}
@media (max-width: 768px) {
  .features-grid, .services-list, .resource-list, .team-list, .testimonial-list { flex-direction: column; }
  .features-grid>div, .services-list>div, .resource-list>div, .team-list>div, .testimonial-card { min-width: 0; max-width: 100%; }
}

/* Cards container (Generic pattern for groupings) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { 
  background: #fff; 
  border-radius: 18px; 
  box-shadow: 0 2px 9px rgba(53,95,107,0.08); 
  margin-bottom: 20px; 
  position: relative;
  padding: 23px 23px 15px 23px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover { box-shadow: 0 8px 26px rgba(53,95,107,0.15); transform: scale(1.022); }

/* Content grid */
.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) {
  .text-image-section { flex-direction: column; gap: 24px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

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

/* =====================
   HEADER & NAVIGATION
====================== */
header {
  background: #fff;
  border-bottom: 2.5px solid #F1EEDD;
  box-shadow: 0 1px 15px rgba(34, 129, 164, 0.02);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img { height: 48px; width: auto; margin-right: 15px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  color: #273238;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.18s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #2281A4;
  color: #fff;
}
.main-nav .primary-cta {
  margin-left: 16px;
  background: #2281A4;
  color: #fff;
  border-radius: 32px;
  padding: 10px 23px;
  font-size: 1.055rem;
  font-family: 'Playfair Display', 'Georgia', serif;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(34, 129, 164, 0.12);
}
.main-nav .primary-cta:hover {
  background: #355F6B;
}

/* Hamburger menu button (mobile trigger) */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #2281A4;
  color: #fff;
  font-size: 2rem;
  border-radius: 22px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 20px;
  transition: background 0.18s, box-shadow 0.16s;
  z-index: 9992;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #2281A4;
}
.mobile-menu-toggle:hover {
  background: #355F6B; 
}

/* ==========
   Mobile Nav
============ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 11000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transition: transform 0.32s cubic-bezier(.77,0,.175,1);
  transform: translateX(105%);
  box-shadow: 0 5px 36px rgba(34, 129, 164, 0.19);
  padding: 0 18px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: #2281A4;
  color: #FFF;
  border-radius: 23px;
  font-size: 2rem;
  margin: 28px 8px 10px 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  background: #355F6B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 39px;
  padding-bottom: 20px;
}
.mobile-nav a {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  color: #2281A4;
  padding: 13px 9px 13px 0;
  border-radius: 10px;
  background: transparent;
  transition: background 0.16s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2281A4;
  color: #fff;
  text-decoration: none;
}
.mobile-nav a.primary-cta {
  background: #355F6B;
  color: #fff;
  text-align: center;
  font-family: 'Playfair Display', 'Georgia', serif;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ===============
   GENERAL SPACING
================= */
main { margin-bottom: 60px; }
section { margin-bottom: 60px; padding: 40px 20px; }
@media (max-width: 768px) {
  section, .section, main { margin-bottom: 36px; padding: 20px 7px; }
}

/* ===============
   SPECIAL GRIDS (Index, About, Programs)
================= */
.schedule-overview, .pricing-grid, .pricing-info { margin-top: 14px; }
.pricing-grid, .schedule-overview { background: #fff; border-radius: 17px; box-shadow: 0 2px 10px rgba(53,95,107,0.08); padding: 20px 24px; margin-bottom: 20px; }
.pricing-info {
  background: #fff7eb; border-radius: 15px; box-shadow: 0 1px 7px rgba(53,95,107,.04); padding: 19px 24px; font-size: 1.02rem; margin-bottom: 16px;
}

/* ===============
   FORMS & FIELDS
================= */
input, textarea, select {
  border: 1.5px solid #d1dedc;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 1.07rem;
  margin-bottom: 12px;
  background: #fff;
  color: #273238;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #2281A4;
  outline: none;
}
label { display: block; margin-bottom: 7px; font-family: 'Merriweather', serif; font-weight: 500; }

/* ===============
   TEXT BLOCKS and SERVICE DESCRIPTION
================= */
.text-section {
  margin-bottom: 14px;
  color: #273238;
  font-size: 1.1rem;
  background: transparent;
}
.service-description {
  font-size: 1.04rem;
  padding: 13px 0 0 0;
}

/* ===============
   FOOTER
================= */
footer {
  background: #F2EBE2;
  border-top: 2px solid #DDD5C5;
  margin-top: 48px;
  padding: 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 32px 18px 30px 18px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 1.01rem;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #355F6B;
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 8px;
  transition: background 0.13s, color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #2281A4;
  color: #fff;
}
.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 7px;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.brand-info img {
  height: 36px;
  margin-bottom: 4px;
}
.brand-info p {
  font-size: 0.95rem;
  color: #355F6B;
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
}

/* ===============
   COOKIE CONSENT BANNER
================= */
.cookie-banner {
  position: fixed;
  width: 100vw;
  bottom: 0; left: 0;
  background: #fff7eb;
  border-top: 1.5px solid #DDCFC2;
  box-shadow: 0 -2px 20px rgba(34,129,164,0.07);
  z-index: 20000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 23px 16vw 22px 18px;
  font-family: 'Merriweather', serif;
  font-size: 1.04rem;
  color: #273238;
}
.cookie-banner__text { flex: 1; }

.cookie-banner button, .cookie-banner .cta {
  margin-left: 17px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.0rem;
  padding: 10px 27px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #2281A4;
  color: #fff;
  transition: background 0.16s, color 0.13s;
}
.cookie-banner .reject, .cookie-banner .btn-reject {
  background: #fff;
  color: #2281A4;
  border: 1.3px solid #2281A4;
  margin-left: 12px;
}
.cookie-banner .cta:hover, .cookie-banner .btn:hover, .cookie-banner .btn-reject:hover {
  background: #355F6B; color: #fff;
}
.cookie-banner .btn-reject:hover { background: #fff; color: #355F6B; border-color: #355F6B; }

@media (max-width: 990px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 10vw 19px 13px; gap: 18px; }
  .cookie-banner__text, .cookie-banner__actions { width: 100%; }
  .cookie-banner button, .cookie-banner .btn { margin: 8px 9px 8px 0; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(39,50,56,0.23);
  z-index: 20030;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 6px 30px rgba(34,129,164,0.19);
  padding: 36px 34px 28px 34px;
  max-width: 400px;
  width: 90vw;
  z-index: 20051;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalIn 0.3s cubic-bezier(.77,0,.175,1);
}
@keyframes modalIn {
  0% { transform: translateY(58px) scale(0.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 { font-size: 1.16rem; margin-bottom: 10px; }
.cookie-modal label {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  font-size: 1.01rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 11px;
}
.cookie-modal .btn {
  font-family: 'Merriweather', serif;
  padding: 8px 22px;
  border-radius: 19px;
  background: #2281A4;
  color: #fff;
  transition: background 0.18s, color 0.13s;
  border: none;
}
.cookie-modal .btn:hover { background: #355F6B; color: #FFF7EB; }

/* ===============
   UTILITY CLASSES
================= */
.muted { color: #7c858e; }
.subtitle {
  font-size: 1.2rem;
  color: #355F6B;
  margin-bottom: 8px;
  margin-top: -10px;
  font-family: 'Merriweather', serif;
  font-weight: normal;
}
.mission-statement, .vision-statement {
  font-style: italic;
  color: #355F6B;
  margin-bottom: 11px;
  font-size: 1.12rem;
}

/* ===============
   ANIMATIONS/MICRO-INTERACTIONS
================= */
.card, .features-grid>div, .testimonial-card, .services-list>div {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .features-grid>div:hover, .testimonial-card:hover, .services-list>div:hover {
  box-shadow: 0 8px 30px rgba(34,129,164,0.10);
  transform: translateY(-3px) scale(1.021);
}
.primary-cta, .primary-btn { transition: background 0.15s, box-shadow 0.13s, color 0.11s, transform 0.13s; }
.primary-cta:hover, .primary-btn:hover { box-shadow: 0 2px 10px rgba(53,95,107,0.14); background: #355F6B; }

/* ===============
   RESPONSIVE DESIGN
================= */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header .container { height: 62px; }
  .logo img { height: 36px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container, .content-wrapper, footer .container { padding: 0 8px; }
  .brand-info img { height: 27px; }
  .footer-menu { gap: 12px; font-size: 0.95rem; }
}
@media (max-width: 540px) {
  .container, .content-wrapper, .section, section { padding-left: 2px; padding-right: 2px; }
  .cookie-banner { font-size: 0.98rem; padding: 18px 6vw 13px 7px; }
  .cookie-modal { padding: 14px 7px 12px 7px; }
}

/* ===============
   MISC ELEMENTS
================= */
::-webkit-input-placeholder { color: #BCC2B9; }
::-moz-placeholder { color: #BCC2B9; }
:-ms-input-placeholder { color: #BCC2B9; }
::placeholder { color: #BCC2B9; }

/* Hide elements from accessibility tree */
[aria-hidden="true"] { display: none !important; }

/* ===============
   ACCESSIBILITY FOCUSES
================= */
a:focus-visible, button:focus-visible, .primary-cta:focus-visible {
  outline: 2.5px solid #2281A4;
  outline-offset: 2.5px;
}

/* ===============
   SECTION PADDINGS and GAPS: CRITICAL
================= */
section, .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; }
