/*--- RESET & NORMALIZE ---*/
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, blockquote, figure, pre {
  margin: 0; padding: 0; font-weight: inherit; font-style: inherit;
}
ul, ol { list-style: none; }
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
a { color: inherit; text-decoration: none; transition: color 0.25s; }
html, body { height: 100%; background: #F7F8F9; }

/*--- ROOT VARIABLES & PALETTE ---*/
:root {
  --primary: #05445E;
  --secondary: #3797A4;
  --accent: #F7F8F9;
  --art-yellow: #FFCC29;
  --art-pink: #FF6F91;
  --art-lime: #B2FF59;
  --art-blue: #53B8BB;
  --black: #19263A;
  --white: #fff;
  --shadow: 0 4px 20px 0 rgba(5,68,94,0.09);
  --radius-lg: 2.25rem;
  --radius-md: 1.25rem;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.7,.23,.21,.99);
}

/*--- TYPOGRAPHY ---*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900|Roboto:400,500,700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--black);
  line-height: 1.65;
  background: var(--accent);
  min-height: 100vh;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  color: var(--art-pink);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 10px;
}
p, li, label, cite { font-size: 1rem; color: var(--black); margin-bottom: 14px; }
strong { color: var(--primary); font-weight: 700; }
blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-left: 6px solid var(--art-yellow);
  background: var(--art-yellow);
  color: var(--black);
  border-radius: var(--radius-md);
  margin: 24px 0;
  padding: 20px 24px;
  font-size: 1.125rem;
  font-style: italic;
}
cite { color: var(--primary); font-size: 0.98rem; }

/*--- CONTAINER ---*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/*--- HEADER & NAV ---*/
header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}
header a img {
  max-height: 48px;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  color: var(--primary);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: var(--art-pink);
  width: 0;
  transition: width .3s;
  margin: 2px auto 0 auto;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--white);
  background: var(--art-pink);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 60%;
}
.main-nav .cta-btn {
  background: var(--secondary);
  color: var(--white);
  padding: 10px 26px;
  font-weight: 800;
  border-radius: var(--radius-md);
  margin-left: 14px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(53,184,187,0.13);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--art-pink);
  color: var(--white);
  box-shadow: 0 5px 24px rgba(255,111,145,0.12);
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: var(--art-pink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  z-index: 50;
}
.mobile-menu-toggle:active { background: var(--secondary); }

/*--- MOBILE MENU ---*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 0 64px rgba(5,68,94,0.23);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.7,.23,.21,.99);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 18px 18px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--art-yellow);
  border-radius: var(--radius-lg);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 1150;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--art-pink);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px 12px;
  color: var(--primary);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/*--- HERO SECTION ---*/
.hero {
  background: linear-gradient(96deg, var(--accent) 65%, var(--art-blue) 100%);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  margin-bottom: 60px; padding: 40px 20px;
  box-shadow: 0 4px 50px rgba(53,184,187,0.09);
  min-height: 220px;
  display: flex; align-items: center;
}
.hero .container {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px;
}
.hero h1 { color: var(--primary); font-size: 2.4rem; font-weight: 900; }
.hero p { color: var(--black); font-size: 1.1rem; max-width: 560px; }


/*--- SECTION DEFAULT STYLES ---*/
.section { margin-bottom: 60px; padding: 40px 20px; }

/*--- CONTENT WRAPPERS, FLEXBOX LAYOUTS ---*/
.content-wrapper,
.content-grid,
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.content-wrapper {
  flex-direction: column;
  gap: 24px;
}
.content-grid {
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}
.text-image-section {
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; background: var(--white); border-radius: var(--radius-md); padding: 28px 20px; box-shadow: var(--shadow); }

/*--- FEATURE GRIDS ---*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--art-lime);
  border-radius: var(--radius-md);
  padding: 28px 20px 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(53,184,187,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 34px rgba(53,184,187,0.15);
  transform: translateY(-5px) scale(1.02);
}
.feature-grid img {
  width: 38px; height: 38px; margin-bottom: 2px;
}

/*--- TESTIMONIAL SECTIONS ---*/
.testimonials-preview, .testimonial-grid {
  margin-bottom: 60px;
}
.testimonial-list, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px;
  background: var(--accent);
  border: 2px solid var(--art-pink);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px 0 rgba(53,184,187,0.06);
  min-width: 240px;
  max-width: 360px;
  margin-bottom: 20px;
  color: #222;
  font-size: 1.08rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 40px 0 rgba(255,111,145,0.13);
  border-color: var(--secondary);
}
.testimonial-card strong { color: var(--primary); font-weight: 700; font-size: 1rem; }

/*--- CTA SECTIONS ---*/
.cta {
  background: var(--art-pink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 16px 40px 16px;
  text-align: center;
  margin-bottom: 64px;
  box-shadow: 0 6px 48px rgba(255,111,145,0.10);
}
.cta h2 { color: var(--white); margin-bottom: 20px; }
.cta p { color: #fff; margin-bottom: 24px; }
.cta .cta-btn {
    background: var(--white);
    color: var(--art-pink);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    box-shadow: 0 2px 16px rgba(255,255,255,0.08);
    transition: background var(--transition), color var(--transition);
    padding: 13px 34px;
    font-weight: 800;
}
.cta .cta-btn:hover {
    color: var(--white);
    background: var(--secondary);
}

/*--- BUTTONS & CTA ---*/
.cta-btn, button, input[type="submit"], .cta .cta-btn {
  display: inline-block;
  outline: none;
  border: none;
  background: var(--art-pink);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 7px rgba(255,111,145,0.1);
}
.cta-btn:focus,
button:focus,
input[type="submit"]:focus {
  box-shadow: 0 0 0 2px var(--secondary), 0 2px 7px rgba(255,111,145,0.12);
}
.cta-btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px) scale(1.015);
}

/*--- CARDS, RESOURCES, ARTICLES, FAQ ---*/
.resource-list, .article-list, .faq-list, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 6px;
}
.resource-list > div, .article-list > div, .faq-list > div, .course-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.resource-list > div h3, .article-list > div h3, .faq-list > div h3, .course-list > div h3 {
  color: var(--primary); font-size: 1.13rem; font-weight: 700; margin-bottom: 7px;
}
.resource-list > div a, .article-list > div a, .faq-list > div a, .course-list > div a {
  color: var(--art-pink);
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.02rem;
  transition: color var(--transition);
}
.resource-list > div a:hover, .article-list > div a:hover, .faq-list > div a:hover, .course-list > div a:hover {
  color: var(--secondary);
}
.course-list > div .cta-btn {
  align-self: flex-start;
  margin-top: 10px;
}

/*--- FORMS ---*/
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  max-width: 480px;
}
label {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
input, textarea {
  font-size: 1rem;
  color: var(--black);
  padding: 10px 16px;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-md);
  background: var(--accent);
  margin-bottom: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--art-pink);
  outline: none;
}
textarea {
  min-height: 100px;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.privacy-note label a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 600;
}

/*--- STAT BLOCK, QUOTE BLOCK ---*/
.stat-block {
  background: var(--art-lime);
  border-radius: var(--radius-md);
  color: var(--black);
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  padding: 20px 24px;
}
.quote-block {
  background: var(--art-yellow);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1.1rem;
  font-style: italic;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 20px 24px;
  margin-top: 20px;
}

/*--- FOOTER ---*/
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.89;
  padding: 3px 0;
  transition: opacity .25s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  color: var(--art-yellow);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--accent);
  opacity: 0.91;
  max-width: 380px;
  text-align: right;
}


/*--- CUSTOM SPACING & ALIGNMENT ---*/
.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; }

/*--- RESPONSIVE DESIGN: MOBILE FIRST ---*/
@media (max-width: 990px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 820px) {
  .footer-contact { text-align: left; max-width: 100%; }
}
@media (max-width: 768px) {
  /* Header */
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  /* Hero */
  .hero { padding: 28px 3vw 32px 3vw; min-height: 140px; }
  .hero .container { gap: 11px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: 0.97rem; }

  /* Sections and layout */
  .section { padding: 28px 10px; }
  .content-wrapper, .content-grid, .feature-grid, .resource-list, .article-list, .faq-list, .course-list, .testimonial-list, .testimonial-grid, .card-container { flex-direction: column; gap: 21px; }
  .content-grid, .feature-grid { align-items: stretch; }
  .card, .testimonial-card, .feature-grid > div, .resource-list > div, .article-list > div, .faq-list > div, .course-list > div { min-width: 0; width: 100%; max-width: 100%; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.02rem; }
  h3 { font-size: 0.95rem; }
  .footer-contact, footer nav a { font-size: 0.95rem; }
  .container { padding-left: 7px; padding-right: 7px; }
}

/*--- MICRO-INTERACTIONS & TRANSITIONS ---*/
a, button, .cta-btn, input, textarea {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card, .feature-grid > div, .resource-list > div, .article-list > div, .faq-list > div, .course-list > div {
  transition: box-shadow 0.19s cubic-bezier(.7,.38,.31,.97), transform 0.19s cubic-bezier(.7,.38,.31,.97);
}
.card:hover, .feature-grid > div:hover, .resource-list > div:hover, .article-list > div:hover, .faq-list > div:hover, .course-list > div:hover {
  box-shadow: 0 8px 36px rgba(5,68,94,0.13), 0 1.5px 5px rgba(255,105,180,0.06);
  transform: translateY(-3px) scale(1.012);
}

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--art-blue);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 20px 20px 20px;
  z-index: 2000;
  box-shadow: 0 -4px 32px rgba(53,184,187,0.10);
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.32s;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; }
.cookie-banner .cookie-text {
  flex: 1 1 190px;
  font-size: 1rem;
  color: var(--white);
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-size: 0.97rem;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button.accept { background: var(--art-pink); color: var(--white); }
.cookie-banner button.accept:hover { background: var(--secondary); }
.cookie-banner button.reject { background: var(--white); color: var(--primary); border: 1.5px solid var(--secondary); }
.cookie-banner button.reject:hover { color: var(--art-pink); border-color: var(--art-pink); }
.cookie-banner button.settings { background: var(--art-yellow); color: var(--primary); }
.cookie-banner button.settings:hover { background: var(--art-pink); color: var(--white); }

/*--- COOKIE PREFERENCES MODAL ---*/
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(5,68,94,0.23);
  z-index: 2050;
  min-width: 300px;
  max-width: 92vw;
  padding: 36px 24px 24px 24px;
  opacity: 1;
  transition: opacity .3s, transform .35s ease;
  display: none;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1.0);
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  color: var(--secondary);
  font-weight: 500;
}
.cookie-modal .cookie-category input[type=checkbox]:disabled+label {
  opacity: 0.5;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 10px; right: 16px;
  background: var(--art-yellow);
  font-size: 1.6rem;
  color: var(--primary);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  padding: 3px 12px;
  transition: background var(--transition);
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus { background: var(--art-pink); color: var(--white); }

/*--- VISUAL ARTISTIC EFFECTS ---*/
.hero, .section, .feature-grid > div, .testimonial-card, .cta, .card {
  position: relative;
}
.hero:before, .section:before, .feature-grid > div:before, .testimonial-card:before, .cta:before {
  content: '';
  position: absolute;
  z-index: 0;
  opacity: 0.10;
  pointer-events: none;
}
.hero:before {
  background: radial-gradient(circle at 80% 40%, var(--art-pink) 12%, transparent 75%);
  width: 260px; height: 180px;
  top: 6px; right: 8vw;
  border-radius: 240px;
}
.section:before {
  background: radial-gradient(circle at 20% 70%, var(--art-lime) 18%, transparent 71%);
  width: 180px; height: 130px;
  left: -30px; bottom: 4px;
  border-radius: 120px;
}
.feature-grid > div:before {
  background: radial-gradient(ellipse at 100% 0, var(--art-yellow) 11%, transparent 80%);
  width: 68px; height: 70px; right: 4px; top: 0px;
}
.testimonial-card:before {
  background: radial-gradient(circle at 85% 13%, var(--art-blue) 18%, transparent 80%);
  width: 54px; height: 38px;
  right: 0; top: 0;
  border-radius: 68px;
}
.cta:before {
  background: radial-gradient(circle at 20% 95%, var(--art-lime) 16%, transparent 80%);
  width: 110px; height: 85px; left: 0; bottom: 4px;
  border-radius: 80px;
}
@media (max-width: 768px) {
  .hero:before, .section:before { display: none; }
}

/*--- MISC --*/
::-webkit-input-placeholder { color: #7da2ad; opacity: 1; }
::-moz-placeholder { color: #7da2ad; opacity: 1; }
:-ms-input-placeholder { color: #7da2ad; opacity: 1; }
::placeholder { color: #7da2ad; opacity: 1; }
input[type=checkbox]:focus {
  outline: 2px solid var(--art-pink);
}

/*--- UTILITIES ---*/
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }

/*--- END ---*/
