/* === 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: 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.6;
  background: #fff;
  color: #22286a;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #f4be3c;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.2em;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  cursor: pointer;
  background: none;
  outline: none;
}
:root {
  --primary: #22286a;
  --secondary: #e6e9f5;
  --accent: #f4be3c;
  --warm-bg: #fff7ee;
  --card-bg: #fffdf9;
  --testimonial-bg: #fff9eb;
  --btn-hover: #fadb72;
  --shadow: 0 2px 12px rgba(244, 190, 60, 0.11), 0 1.5px 14px rgba(34,40,106,.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* === TYPOGRAPHY === */
body {
  font-family: var(--font-body);
  background: var(--warm-bg);
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: bold;
  line-height: 1.15;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #be861c;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.75;
  color: #232140;
  margin-bottom: 0;
}
strong {
  color: #ac7917;
}
small {
  font-size: 0.92rem;
  color: #9f9fbb;
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* === BASE LAYOUT === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 0;
  margin: 0 auto;
}

main {
  min-height: 65vh;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}

/* === HEADER & NAV === */
header {
  background: #fffdf9;
  box-shadow: 0 2px 16px rgba(244,190,60,0.075);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08em;
  padding: 8px 0;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: #be861c;
  background: var(--accent);
}
header .cta-button {
  margin-left: 8px;
}
@media (max-width: 950px) {
  header nav { gap: 18px; }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
}

/* === CTA BUTTONS === */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #22286a;
  font-family: var(--font-display);
  font-weight: bold;
  border-radius: var(--radius-md);
  font-size: 1.17rem;
  padding: 13px 28px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  margin-bottom: 8px;
  text-align: center;
  border: none;
  transition: background 0.22s, box-shadow 0.2s, transform 0.1s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--btn-hover);
  color: #a05b00;
  box-shadow: 0 4px 16px rgba(244, 190, 60, 0.20);
  transform: translateY(-2px) scale(1.035);
}

/* === BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 210;
  background: var(--accent);
  border-radius: var(--radius-lg);
  font-size: 2.2rem;
  color: #22286a;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(244,190,60,0.13);
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: #fadb72;
}
@media (max-width: 800px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,249,234,0.98);
  box-shadow: 0 2px 24px rgba(244,190,60,0.10);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.72,.07,.49,.94);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 4px 0;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(34,40,106,0.13);
  transition: background 0.22s;
}
.mobile-menu-close:hover {
  background: #3d4390;
}
.mobile-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding-left: 44px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.36rem;
  color: #22286a;
  padding: 12px 0 12px 5px;
  border-radius: var(--radius-md);
  min-width: 180px;
  transition: background 0.11s, color 0.11s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--btn-hover);
  color: #a76800;
}

@media (min-width: 801px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* === MAIN CONTENT & FLEX LAYOUTS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 26px 22px 18px 22px;
  min-width: 230px;
  flex: 1 1 230px;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 23px rgba(244,190,60,0.15);
  transform: translateY(-4px) scale(1.027);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.course-cards,
.workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.course-cards > div,
.workshop-list > div {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 215px;
  max-width: 330px;
  padding: 23px 20px 19px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.15s, transform 0.12s;
  position: relative;
}
.course-cards > div:hover, .workshop-list > div:hover {
  box-shadow: 0 8px 28px rgba(244,190,60,0.18);
  transform: translateY(-5px) scale(1.02);
}

@media (max-width: 950px) {
  .feature-grid, .course-cards, .workshop-list {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .course-cards, .workshop-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* CRITICAL FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 23px rgba(244,190,60,0.14);
  transform: translateY(-2px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 800px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.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: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--testimonial-bg);
  box-shadow: 0 2px 8px rgba(34,40,106, 0.09);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
  min-width: 0;
}
.testimonial-card blockquote {
  font-size: 1.18rem;
  font-family: var(--font-display);
  color: #47370b;
  background: transparent;
  border-left: 5px solid var(--accent);
  margin-right: 16px;
  padding-left: 15px;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card strong {
  display: inline-block;
  color: #8e6a00;
  font-size: 1.04em;
}
.testimonial-card > div:last-child {
  color: #53482c;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 15px 9px 15px 13px;
  }
  .testimonial-card blockquote {
    margin: 0 0 0 0;
    padding-left: 12px;
    font-size: 1rem;
  }
}

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

.text-section {
  margin-bottom: 18px;
  padding-bottom: 0;
}
.text-section ul {
  margin-top: 10px;
  margin-bottom: 0;
  padding-left: 1.1em;
}
.text-section li {
  margin-bottom: 7px;
}
.text-section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.14s;
}
.text-section a:hover,
.text-section a:focus {
  color: #a76800;
}

/* === FORMS (if present) === */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
input, textarea, select {
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 1.3px solid #e6e9f5;
  background: #fffdf9;
  padding: 12px 13px;
  font-size: 1rem;
  color: #232140;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.3px solid var(--accent);
  outline: none;
}

/* === FOOTER === */
footer {
  background: #fcebbe;
  color: #22286a;
  box-shadow: 0 -2px 14px rgba(244,190,60,0.08);
  padding-top: 36px;
  padding-bottom: 20px;
  margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #7a660c;
  font-family: var(--font-display);
  font-size: 1.01rem;
  padding: 4px 0 3px 3px;
  transition: color 0.13s;
  border-radius: var(--radius-sm);
}
footer nav a:hover {
  color: #b99613;
}
footer .text-section {
  max-width: 280px;
  margin-top: 9px;
  font-size: 0.98rem;
}
footer a {
  color: #7a660c;
  text-decoration: underline;
  transition: color 0.11s;
}
footer a:hover {
  color: #ad8e17;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer {
    margin-top: 36px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8e3;
  color: #452d08;
  box-shadow: 0 -4px 22px rgba(244,190,60,0.17);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 5000;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 38px;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieSlideIn 0.75s cubic-bezier(.82,.06,.5,1.05);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  60% { transform: translateY(-8px); }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  max-width: 540px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  background: var(--accent);
  color: #22286a;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 21px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.19s, color 0.18s, transform 0.13s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--btn-hover);
  color: #aa7a12;
  transform: translateY(-1px) scale(1.03);
}
.cookie-btn.secondary {
  background: #e6e9f5;
  color: #7983c3;
  font-weight: 500;
}
.cookie-btn.secondary:hover {
  background: #f6f5eb;
}
@media (max-width: 730px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 22px 10px 13px 10px;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    flex-direction: row;
    gap: 9px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,40,106,.25);
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBackdropFadeIn 0.4s;
}
@keyframes modalBackdropFadeIn {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: #fffefb;
  color: #232140;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 40px rgba(34,40,106,0.16);
  max-width: 460px;
  width: 100%;
  padding: 38px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalSlideUp 0.38s cubic-bezier(.78,.11,.4,1.2);
}
@keyframes modalSlideUp {
  0% { transform: translateY(60px); opacity: 0; }
  60% { transform: translateY(-7px); }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.04em;
  color: #403000;
  font-family: var(--font-display);
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 22px;
  background: #ffe1a6;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-right: 6px;
  border: 1.5px solid #fde4ce;
  flex-shrink: 0;
}
.cookie-toggle.active {
  background: var(--accent);
  border-color: #f4be3c;
}
.cookie-toggle-switch {
  position: absolute;
  top: 2.8px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(244,190,60,.13);
  transition: left 0.18s;
}
.cookie-toggle.active .cookie-toggle-switch {
  left: 23px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  min-width: 108px;
}
@media (max-width: 530px) {
  .cookie-modal { padding: 19px 7px 17px 14px; max-width: 99vw; }
}

/* === UTILS / MISC STYLES === */
::selection {
  background: var(--accent);
  color: #fff;
}

hr {
  border: 0;
  height: 1.5px;
  background: var(--secondary);
  margin: 34px 0;
  border-radius: 3px;
}

.section + .section {
  margin-top: 0;
}

/* Sticky footer for short pages */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations for hover cards */
.card, .feature-grid > div, .course-cards > div, .workshop-list > div {
  transition: box-shadow 0.16s, transform 0.125s;
}

/* ============== RESPONSIVE ADJUSTMENTS ============== */
@media (max-width: 1150px) {
  .container { max-width: 96vw; }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .section {
    padding: 22px 3vw;
    margin-bottom: 24px;
  }
}

/* === ICON RESETS === */
.text-section img {
  vertical-align: middle;
  width: 21px;
  height: 21px;
  margin-right: 7px;
  margin-bottom: -4px;
  display: inline-block;
  opacity: 0.88;
}

/* === VISUAL HIERARCHY SHORTHANDS === */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 7px !important; }
.mt-2 { margin-top: 15px !important; }
.mt-3 { margin-top: 22px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 7px !important; }
.mb-2 { margin-bottom: 15px !important; }
.mb-3 { margin-bottom: 22px !important; }

/* === HIDE SCROLL ON MODALS/MENU === */
.body--noscroll {
  overflow: hidden !important;
}

/* === COLOR ACCESSIBILITY === */
.testimonial-card, .testimonial-card blockquote, .cookie-banner, .cookie-modal {
  color: #332908;
  background: #fff9eb;
}

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