/* ==== CSS RESET & NORMALIZATION ==== */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.6;
  background-color: #F7F3E8;
  color: #206080;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #206080;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #B76E79;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: #206080;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* === RETRO/VINTAGE VIBRANT COLOR PALETTE === */
:root {
  --primary: #206080;
  --secondary: #A5D6C1;
  --accent: #F7F3E8;
  --retro-mustard: #FFC857;
  --retro-coral: #B76E79;
  --retro-green: #537a5a;
  --retro-cream: #F6EDD9;
  --retro-navy: #495579;
  --retro-brown: #7A5C38;
  --white: #fff;
  --black: #222;
  --shadow: rgba(32,96,128,0.05);
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background-color: var(--accent);
}
h1 {
  font-size: 2.5rem;
  font-family: 'Merriweather', Georgia, serif;
  color: var(--retro-brown);
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  font-family: 'Merriweather', Georgia, serif;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.3rem;
  color: var(--retro-green);
  font-family: 'Merriweather', Georgia, serif;
  margin-bottom: 16px;
  font-style: italic;
}
h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 600;
}
p, li, span, label {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--retro-navy);
}
strong {
  font-weight: bold;
  color: var(--primary);
}

/* === GENERAL LAYOUT === */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 2px solid var(--accent);
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section:last-child {
  margin-bottom:0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid var(--secondary);
  margin-bottom: 20px;
  min-width: 270px;
}
.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;
}

/* ===== FEATURED SECTIONS (Vintage cards/panels) ===== */
.features ul, .about-preview ul, .services-preview ul,
.team-section ul, .values-section ul, .resources-section ul,
.tips-section ul, .faq-section ul, .impact-section ul,
.legal-section ul, .calendar-section ul, .gdpr-section ul, .cookie-policy-section ul, .terms-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.features ul li, .about-preview ul li, .services-preview ul li,
.team-section ul li, .values-section ul li, .resources-section ul li,
.tips-section ul li, .faq-section ul li, .impact-section ul li,
.legal-section ul li, .calendar-section ul li, .gdpr-section ul li, .cookie-policy-section ul li, .terms-section ul li {
  background: var(--white);
  border-left: 8px solid var(--secondary);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--retro-navy);
  transition: background 0.2s;
}
.features ul li img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  filter: sepia(0.5) hue-rotate(-15deg) brightness(0.95);
}

/* ===== HEADER/NAVIGATION ===== */
header {
  background: var(--retro-cream);
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 18px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 7px 15px;
  background: transparent;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
  background: var(--secondary);
  color: var(--retro-brown);
}

.cta-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  padding: 13px 28px;
  background: var(--retro-mustard);
  color: var(--retro-brown);
  border: none;
  border-radius: 26px;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--shadow);
  letter-spacing: 0.5px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--retro-coral);
  color: var(--white);
  box-shadow: 0 5px 28px rgba(183,110,121,0.17);
  outline: none;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 1010;
  background: var(--retro-mustard);
  border: none;
  font-size: 2.2rem;
  padding: 7px 13px;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--retro-brown);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-coral);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.72,.04,.38,.96);
  z-index: 2000;
  box-shadow: 0 4px 24px var(--shadow);
  opacity: 0.99;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--white);
  align-self: flex-end;
  margin: 22px 22px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-mustard);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  padding-left: 26px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.2rem;
  padding: 10px 0;
  border-radius: 8px;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-mustard);
  color: var(--retro-brown);
}

/* === HERO SECTION === */
.hero {
  background: var(--secondary);
  border-bottom: 6px dotted var(--retro-mustard);
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--retro-coral);
  font-size: 2.6rem;
  line-height: 1.2;
  text-shadow: 1px 1px 0 var(--white), 1px 2px 4px #b8b8b82e;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 22px;
  color: var(--primary);
}

/* === TESTIMONIALS & CARDS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px var(--shadow);
  border-left: 5px solid var(--retro-coral);
  min-width: 250px;
  color: var(--black);
}
.testimonial-card p {
  color: var(--retro-navy);
  font-style: italic;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: var(--retro-green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* === TEXT-SECTION/ABOUT === */
.text-section {
  margin-bottom: 20px;
  font-size: 1rem;
}
.text-section img {
  width: 28px;
  margin-right: 9px;
  vertical-align: middle;
}

.teacher-highlight {
  background: var(--retro-mustard);
  border-radius: 12px;
  padding: 12px 22px;
  margin-top: 16px;
  color: var(--retro-brown);
  font-family: 'Merriweather', serif;
  box-shadow: 0 2px 12px var(--shadow);
}
.teacher-highlight h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

/* === CTA-FINAL/CTA-SECTIONS === */
.cta-final,
.cta-section,
.cta-calendar,
.cta-contact {
  background: var(--retro-coral);
  color: var(--white);
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 2px 18px var(--shadow);
}
.cta-final h2,
.cta-section h2,
.cta-calendar h2,
.cta-contact h2 {
  color: var(--retro-mustard);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.cta-final p,
.cta-section p,
.cta-calendar p,
.cta-contact p {
  color: var(--accent);
  margin-bottom: 18px;
}

/* === FOOTER === */
footer {
  background: #00aaff;
  color: var(--white);
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 6px dotted var(--retro-mustard);
  letter-spacing: 0.3px;
}
footer .container {
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
footer nav {
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: var(--white);
  font-weight: 500;
  background: none;
  padding: 0 8px;
  border-radius: 0;
  font-size: 1rem;
}
footer nav a:hover {
  color: var(--retro-mustard);
  background: none;
}
footer .text-section {
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
  margin-top: 6px;
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #9f9589;
  color: var(--accent);
  padding: 24px 24px 10px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -3px 24px var(--shadow);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.07rem;
  border-radius: 20px 20px 0 0;
  animation: cookieSlideIn 0.5s cubic-bezier(.83,.09,.5,1.07);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
#cookie-banner button {
  margin-left: 14px;
  margin-right: 4px;
  padding: 10px 16px;
  border: none;
  border-radius: 30px;
  background: var(--retro-mustard);
  color: var(--retro-brown);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--shadow);
  transition: background 0.2s, color 0.2s;
}
#cookie-banner .cookie-reject {
  background: var(--retro-coral);
  color: var(--white);
}
#cookie-banner .cookie-settings {
  background: var(--secondary);
  color: var(--retro-green);
}
#cookie-banner button:hover, #cookie-banner button:focus {
  opacity: 0.85;
  outline: none;
  box-shadow: 0 2px 12px rgba(47,39,16,0.16);
}
/* Cookie modal */
#cookie-modal {
  background: var(--white);
  color: var(--primary);
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -65%);
  z-index: 5000;
  padding: 38px 30px 24px 30px;
  border-radius: 20px;
  min-width: 290px;
  max-width: 98vw;
  box-shadow: 0 12px 44px rgba(32,96,128,0.16);
  display: none;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.4s cubic-bezier(.8,.14,.6,.96);
}
@keyframes cookieModalIn {
  from { opacity:0; transform: translate(-50%,0); }
  to { opacity:1; transform: translate(-50%,-65%); }
}
#cookie-modal.open {
  display: flex;
}
#cookie-modal h2 {
  color: var(--retro-coral);
  margin-bottom: 2px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  background: var(--accent);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-category label {
  margin-left: 8px;
  font-weight: 600;
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-modal-actions button {
  background: var(--retro-mustard);
  color: var(--retro-brown);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal-actions button.cookie-reject {
  background: var(--retro-coral);
  color: var(--white);
}
.cookie-modal-actions button.cookie-save {
  background: var(--secondary);
  color: var(--retro-green);
}
.cookie-modal-actions button:focus {
  outline: 2px solid var(--retro-brown);
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--retro-brown);
  cursor: pointer;
  z-index: 9999;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: var(--retro-coral);
}

/* ======= CARDS, IMPACT, FAQ, VALUE SECTIONS stylings ======= */
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.feature-item {
  align-items: flex-start;
}

/* === Regular content links === */
.resources-section a, .tips-section a, .about-preview a, .legal-section a, .terms-section a, .cookie-policy-section a, .gdpr-section a, .services-section a {
  color: var(--retro-coral);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.16s;
}
.resources-section a:hover, .tips-section a:hover, .about-preview a:hover, .legal-section a:hover, .terms-section a:hover, .cookie-policy-section a:hover, .gdpr-section a:hover, .services-section a:hover {
  color: var(--retro-mustard);
}

/* === Patterned section backgrounds for RETRO FEEL === */
.section, .about-preview, .values-section, .services-section, .card, .faq-section {
  background-image: repeating-linear-gradient(135deg, rgba(255,200,87,0.07) 0 10px, transparent 10px 30px);
}
.cta-final, .cta-section, .cta-calendar, .cta-contact {
  background-image: repeating-linear-gradient(90deg, rgba(183,110,121,0.10) 0 18px, transparent 18px 36px);
}
footer {
  background-image: repeating-linear-gradient(-45deg, rgba(165,214,193,0.10) 0 12px, transparent 12px 36px);
}

/* ======= BUTTON & INPUT STYLES ======= */
button, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  background: var(--retro-mustard);
  color: var(--retro-brown);
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.15s, box-shadow 0.24s;
}
button:hover, input[type="submit"]:hover, button:focus, input[type="submit"]:focus {
  background: var(--retro-coral);
  color: var(--white);
  box-shadow: 0 5px 16px rgba(183,110,121,0.15);
  outline: none;
}

input, textarea, select {
  border: 2px solid var(--secondary);
  background: var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 10px;
  margin-bottom: 14px;
  width: 100%;
  color: var(--primary);
  transition: border 0.2s, background 0.1s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-coral);
  background: #fffbe7;
  outline: none;
}

/* ======= RESPONSIVE BREAKPOINTS ======= */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 8vw;
  }
  .section, section {
    padding: 24px 4vw;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 10px 8px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-button {
    font-size: 1.05rem;
    padding: 9px 19px;
    margin-left: 7px;
  }
  .hero, .section, section {
    padding: 20px 7px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.97rem;
    gap: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .container {
    padding: 0 3vw;
    gap: 10px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .cta-button, button { font-size: 0.95rem; padding: 7px 11px; }
  .container { padding: 0 2vw; }
  #cookie-banner { flex-direction: column; gap: 7px; padding: 18px 7px 6px 8px; font-size: 0.97rem; border-radius: 14px 14px 0 0; }
}

/* === MICRO-INTERACTIONS === */
.card, .testimonial-card, .feature-item, .section {
  transition: box-shadow 0.23s, background 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(47,39,16,0.11);
  background: #fffce5;
}
.features ul li:hover {
  background: #fffbe7;
  border-left-color: var(--retro-mustard);
}
.cta-button:active, button:active {
  transform: scale(0.98);
}
.content-grid > * {
  flex: 1 1 240px;
}

/* === VISUAL RETRO ELEMENTS === */
h1, h2, h3, .logo {
  text-shadow: 1.5px 1px 0 #FFD58013;
  letter-spacing: 1px;
}
.section, .card, .testimonial-card {
  border-radius: 18px;
  border: 2.3px solid var(--retro-mustard);
}

.card:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  width: 48px;height: 20px;
  left: 22px; top: -16px;
  background: repeating-linear-gradient(90deg, var(--retro-coral) 0 9px, transparent 9px 18px);
  border-radius: 16px 16px 0 0;
  z-index: 1;
  opacity: 0.075;
  pointer-events:none;
}
.card, .testimonial-card { position: relative; }

/* === FORM ELEMENTS (if any) === */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
label { font-weight: 600; margin-bottom: 3px; }

/* === PRINT STYLES (for accessibility) === */
@media print {
  header, nav, .mobile-menu, .cta-button, #cookie-banner, #cookie-modal, footer { display: none !important; }
  html, body, .container { background: #fff !important; color: #000 !important; }
}

/* ====== UTILITY CLASSES (MARGINS, GAPS) ====== */
.mb-12 { margin-bottom: 12px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mt-20 { margin-top: 20px !important; }
.text-center { text-align: center !important; }

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