/* ==================== CSS 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-size: 100%; font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #1A2B3B;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after { box-sizing: inherit; }
img, picture, video, canvas, svg {
  display: inline-block; max-width: 100%; height: auto; vertical-align: middle;
}
input, button, textarea, select {
  font: inherit; color: inherit; margin: 0; outline: none;
}
a { color: inherit; text-decoration: none; transition: color 0.18s; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; padding: 0; }

/* ==================== BRAND COLORS / FONTS ==================== */
:root {
  --primary: #1A2B3B;
  --secondary: #D2AB67;
  --accent: #FAFAFA;
  --cream: #FDF6ED;
  --lavender: #D5C9EA;
  --rose: #FFD2D7;
  --teal: #25BBA7;
  --peach: #FFB480;
  --highlight: #E6EFFF;
  --shadow: rgba(30,42,60,0.09);
  --shadow-strong: rgba(30,42,60,0.17);
  --radius: 22px;
}

@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: var(--accent);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 2rem;  margin-bottom: 18px; }
h3 { font-size: 1.4rem;  margin-bottom: 12px; }
h4 { font-size: 1.2rem; }
p, li { font-size: 1rem;  line-height: 1.7; letter-spacing: 0.01em; color: var(--primary); }
strong { font-weight: bold; }

/* Artistic/creative accent font for special elements */
.level-badge, .tag {
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: var(--secondary);
}

/* ==================== CONTAINER ==================== */
.container {
  width: 100%;
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 720px;
}

/* ==================== HEADER / NAVIGATION ==================== */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 12px 0 var(--shadow);
  z-index: 999;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 42px; transition: transform 0.19s; }
.logo:hover img { transform: rotate(-4deg) scale(1.08); }
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.02rem;
  color: var(--primary);
  padding: 6px 13px;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.2s, background 0.22s;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-family: 'Merriweather', serif;
  border-radius: 32px;
  transition: all 0.19s cubic-bezier(0.6,0.6,0.15,1);
  font-weight: 700;
  box-shadow: 0 4px 16px 0 var(--shadow);
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--cream);
  color: var(--primary);
  border: 2px solid var(--secondary);
  transform: scale(1.055) rotate(-2deg);
  box-shadow: 0 4px 22px 0 var(--shadow-strong);
  outline: none;
}
.btn-secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--peach);
  color: var(--primary);
  border-color: var(--peach);
  transform: scale(1.055) rotate(2deg);
  box-shadow: 0 4px 18px 0 var(--shadow-strong);
  outline: none;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 2px 12px;
  color: var(--secondary);
  background: transparent;
  border: none;
  border-radius: 50%;
  transition: background 0.13s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--lavender);
  color: var(--primary);
}

/* ==================== MOBILE NAVIGATION ==================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #1A2B3Bef;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.7,0.2,0.2,1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 2rem;
  color: #fff;
  background: var(--secondary);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.16s, color 0.16s;
  z-index: 3;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: var(--lavender); color: var(--primary); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 90vw; max-width: 360px;
  height: 100vh;
  background: var(--accent);
  padding: 52px 24px 32px 36px;
  gap: 18px;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  box-shadow: -6px 0 30px -2px var(--primary);
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: 'Merriweather', serif;
  color: var(--primary);
  padding: 14px 0;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
  padding-left: 10px;
}

@media (max-width: 1020px) {
  .main-nav { gap: 9px; }
  .btn-primary { padding: 10px 17px; }
  header .container { gap: 10px; }
}

@media (max-width: 880px) {
  .main-nav, .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
}

/* ==================== HERO / ARTISTIC BACKGROUNDS ==================== */
.hero {
  background: linear-gradient(105deg, var(--cream), var(--lavender) 85%);
  padding-top: 68px; padding-bottom: 68px;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  box-shadow: 0 4px 28px 0 var(--shadow);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  display: block;
  position: absolute; left: -80px; top: 50px;
  width: 240px; height: 194px;
  background: var(--rose);
  border-radius: 38% 62% 74% 26% / 63% 32% 68% 37%;
  opacity: 0.28;
  z-index: 1;
}
.hero .container, .hero .content-wrapper {
  position: relative; z-index: 3;
}
.hero h1,
.hero p,
.hero .btn-primary {
  position: relative; z-index: 2;
}
.hero h1 { color: var(--primary); font-size: 2.5rem; }
.hero p { color: var(--primary); margin-bottom: 26px; font-size: 1.14rem; }

@media (max-width: 768px) {
  .hero {
    padding-top: 40px; padding-bottom: 32px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    margin-bottom: 20px;
  }
  .hero h1 { font-size: 1.66rem; }
}

/* ==================== FLEX PATTERNS (MANDATORY) ==================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 340px;
  min-width: 270px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 var(--shadow-strong);
  transform: scale(1.03) translateY(-2px);
}
.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;
  margin-bottom: 20px;
  border-radius: calc(var(--radius) + 5px);
  background: #fff;
  box-shadow: 0 2px 14px 0 var(--shadow);
  border-left: 7px solid var(--secondary);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 var(--shadow-strong);
}
.testimonial-card blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.11rem;
  font-style: italic;
  color: var(--primary);
  margin-right: 18px;
}
.testimonial-card div { color: var(--primary); font-size: 1rem; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px 0 var(--shadow);
  padding: 28px 28px 22px 28px;
  margin-bottom: 24px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.feature-item img {
  width: 40px; height: 40px; object-fit: contain; margin-bottom: 4px;
}
.feature-item:hover {
  transform: scale(1.034) rotate(-1.5deg);
  box-shadow: 0 6px 18px var(--shadow-strong);
}
.feature-item h3 {
  font-size: 1.17rem; margin-bottom: 0.15em;
  color: var(--primary);
  font-weight: 900;
}
.feature-item p {
  color: var(--primary); font-size: 1rem;
}
.level-badge {
  display: inline-block;
  padding: 2px 13px;
  background: var(--lavender);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.98rem;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ==================== SECTIONS & FLEX LAYOUTS ==================== */
.features .feature-grid,
.courses .feature-grid,
.resources-list .feature-grid,
.blog-list .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.features .feature-grid > .feature-item,
.courses .feature-grid > .feature-item,
.resources-list .feature-grid > .feature-item,
.blog-list .feature-grid > .feature-item{
  flex: 1 1 280px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 20px;
}
.tag {
  background: var(--lavender);
  color: var(--primary);
  border-radius: 18px;
  padding: 5px 17px;
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1.03rem;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 var(--shadow);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 38px; padding: 22px 7px;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .card, .testimonial-card {
    min-width: 0; max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ==================== UL / LI / FAQ LIST ==================== */
ul, ol { margin-left: 1.1em; }
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0.7em;
  position: relative;
  color: var(--primary);
}
ul li:before {
  content: '•'; color: var(--secondary); font-size: 1.2em;
  margin-right: 0.57em;
  position: absolute; left: -1.1em; top: 2px;
}
.faq-list {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 8px;
}
.faq-list > div {
  background: var(--cream);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: 0 1px 5px var(--shadow);
}

/* ==================== RESOURCE & BLOG ==================== */
.resources-list ul,
.blog-list ul {
  margin-left: 0;
  padding-left: 0; 
}
.resources-list li, .blog-list li {
  margin-bottom: 16px;
}
.resources-list ul li a {
  color: var(--teal);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.15s;
}
.resources-list ul li a:hover {
  color: var(--primary);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 38px;
  padding-bottom: 24px;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 44px;
  filter: drop-shadow(0 2px 5px var(--shadow));
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  opacity: 0.9;
  font-family: 'Merriweather', serif;
  transition: color 0.16s, opacity 0.14s;
}
.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
  color: var(--accent);
  max-width: 260px;
}
.footer-contact img { width: 17px; height: 17px; vertical-align: middle; margin-right: 4px; }
@media (max-width: 820px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
}

/* ==================== SOCIAL LINKS ==================== */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.social-links a img {
  height: 32px; width: 32px; opacity: 0.72;
  transition: opacity 0.17s, transform 0.19s;
}
.social-links a:hover img, .social-links a:focus img {
  opacity: 1;
  transform: scale(1.16) rotate(-6deg);
}

/* ==================== ABOUT/INFO PAGES ==================== */
.about, .info, .values, .thank-you, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use {
  background: var(--lavender);
  border-radius: var(--radius);
  margin-bottom: 54px;
  padding: 40px 20px;
  box-shadow: 0 2px 12px 0 var(--shadow);
}

@media (max-width: 768px) {
  .about, .info, .values, .thank-you, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use {
    padding: 16px 6px; 
    margin-bottom: 27px;
    border-radius: 13px;
  }
}

/* ==================== ARTISTIC & CREATIVE ACCENTS ==================== */
.feature-item {
  border-left: 7px solid var(--secondary);
  border-right: 0;
}
.feature-item:nth-child(2n) {
  border-left: 0;
  border-right: 7px solid var(--teal);
}
.feature-item:nth-child(3n) {
  border-left: 0;
  border-right: 7px solid var(--peach);
}
.feature-item::after {
  content: '';
  display: block;
  position: absolute;
  right: 14px; bottom: 9px;
  width: 18px; height: 18px;
  background: var(--rose);
  opacity: 0.19;
  border-radius: 50%;
  z-index: 0;
}
.feature-item:nth-child(2n):after {
  background: var(--lavender);
  opacity: 0.15;
}
.feature-item:nth-child(3n):after {
  background: var(--teal);
  opacity: 0.17;
}
.level-badge { box-shadow: 0 0px 4px 0 var(--shadow); }

/* ==================== MICRO-INTERACTIONS ==================== */
a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle { transition: all 0.21s cubic-bezier(0.62,0.09,0.23,1); }
.feature-grid .feature-item:active, .card:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.98) rotate(-1deg);
  box-shadow: 0 2px 6px 0 var(--shadow);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* ==================== RESPONSIVE TYPE SCALE ==================== */
@media (max-width: 520px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.96rem; }
  .btn-primary, .btn-secondary { font-size: 0.97rem; padding: 9px 10vw; }
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 22px var(--shadow-strong);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 20px 18px 20px;
  transition: transform 0.33s cubic-bezier(0.7,0.2,0.2,1), opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}
.cookie-banner button {
  font-size: 1.06rem;
  font-family: 'Merriweather', serif;
  border-radius: 80px;
  padding: 10px 28px;
  margin: 0;
  min-width: 124px;
  font-weight: bold;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
  margin-right: 3px;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--lavender);
  color: var(--primary);
}
.cookie-banner .settings {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--teal);
  color: #fff;
}
.cookie-banner p { color: var(--primary); text-align: center; margin-bottom: 0; font-size: 1rem; }

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26,43,59,0.65);
  justify-content: center;
  align-items: center;
  transition: opacity 0.23s cubic-bezier(0.62,0.09,0.23,1);
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  background: #fff;
  min-width: 300px;
  max-width: 96vw;
  padding: 32px 30px 28px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 38px 0 var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: var(--secondary);
  color: #fff;
  border-radius: 22px;
  padding: 5px 13px;
  font-size: 1.3rem;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus { background: var(--primary); }

.cookie-modal label {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  margin-right: 10px;
}
.cookie-modal .modal-actions {
  display: flex; gap: 14px; margin-top: 12px; justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  font-size: 0.98rem;
  padding: 8px 21px;
  border-radius: 22px;
}
.cookie-modal .essential[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 540px) {
  .cookie-modal .modal-content { padding: 10vw 2vw 6vw 2vw; min-width: 0; }
}

/* ==================== UTILITIES & SPACING ==================== */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.text-center { text-align: center; }

/* ==================== ACCESSIBILITY ENHANCEMENTS ==================== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  z-index: 2;
}

/* ==================== END OF CSS ==================== */
