/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFC;
  color: #27334A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #27334A;
  text-decoration: none;
  transition: color .2s;
}

/* TYPOGRAPHY SCALE */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #27334A;
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #27334A;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #27334A;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #27334A;
  font-weight: 500;
}
.subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: #526383;
  margin-bottom: 28px;
  line-height: 1.7;
}
p, ul, ol, li {
  font-size: 1rem;
  color: #27334A;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
}

/* LAYOUTS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, .about, .team, .philosophy, .services, .resources, .contact, .legal, .thank-you, .blog-list, .features, .cta, .contact-info, .testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 26px;
  background: #fffaf7;
  box-shadow: 0 8px 32px rgba(219, 169, 241, 0.12);
}
.hero {
  display: flex;
  align-items: center;
  min-height: 460px;
  background: linear-gradient(135deg,#f0eaff 0%, #faf7f7 100%);
  border-radius: 0 0 32px 32px;
  margin-bottom: 44px;
  box-shadow: 0 8px 32px rgba(108, 131, 181, 0.04);
}
.features ul, .services ul, .resources ul, .blog-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.features ul li, .services ul li, .resources ul li, .blog-list ul li {
  background: #f7f4fa;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(116, 117, 181, 0.07);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.features ul li img {
  width: 38px;
  height: 38px;
  margin-right: 16px;
}

.categories ul, .contact-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
}

.categories ul li {
  background: #faefe1;
  color: #9d8165;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}

.text-section ul {
  margin-left: 20px;
  list-style: disc;
  padding-left: 4px;
}
.text-section ul li {
  margin-bottom: 11px;
  color: #42396a;
}
.text-section + .cta-primary {
  margin-top: 24px;
}

/* CARDS & CARD CONTAINERS */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fbf7ff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(142, 136, 181,.08);
  padding: 28px 20px;
  transition: box-shadow .24s, transform .24s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(142, 136, 181,.16);
  transform: translateY(-4px) scale(1.015);
}

/* TESTIMONIALS */
.testimonials .testimonial-card, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(146, 128, 202, .09);
  min-width: 0;
}
.testimonial-card p {
  color: #27334A;
  font-size: 1.11rem;
  font-style: italic;
  margin-bottom: 0;
  text-align: center;
}
.testimonial-card strong {
  color: #6b539e;
  font-weight: 700;
  font-size: 1rem;
}

/* BUTTONS & CTA */
.cta-primary, .cta-secondary, .cookie-accept, .cookie-reject, .cookie-settings, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: inline-block;
  font-weight: 600;
  font-size: 1.08rem;
  border-radius: 60px;
  padding: 13px 32px;
  border: none;
  outline: none;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 14px rgba(100, 101, 161,0.07);
}
.cta-primary {
  background: #efd8fc;
  color: #5c4375;
  border: 2px solid #dfc0f3;
  font-size: 1.08rem;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fffbfc;
  color: #ae35b1;
  border-color: #ae35b1;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 4px 18px rgba(187, 113, 223,0.13);
}
.cta-secondary {
  background: #f6c358;
  color: #fff;
  border: 2px solid #fce6b5;
  font-size: 1.09rem;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff9ee;
  color: #be900c;
}

/* NAVIGATION */
header {
  background: rgba(255,255,255,0.98);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(224,187,241,0.03);
  position: relative;
  z-index: 99;
}
.logo img {
  height: 47px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #6f56a3;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .14s, color .14s;
}
.main-nav a:hover {
  background: #f3e2ff;
  color: #3e2063;
}
header .cta-primary {
  margin-left: 34px;
  border-radius: 40px;
  padding: 12px 28px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  position: fixed;
  top: 19px;
  right: 18px;
  z-index: 110;
  background: #efd8fc;
  color: #6b539e;
  font-size: 2.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(119,94,163,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform .2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #e4b7fc;
  color: #ae35b1;
  transform: scale(.96);
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(238, 199, 239, 0.98);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #ffd0e0;
  color: #973676;
  font-size: 2.0rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  margin: 14px 24px 18px 0;
  box-shadow: 0 2px 10px rgba(181,90,129,0.07);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff5fe;
  color: #450b3c;
  transform: scale(1.06);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 43px 32px 0 0;
  align-items: flex-end;
}
.mobile-nav a {
  color: #3e2063;
  background: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.19rem;
  font-weight: 500;
  border-radius: 16px;
  padding: 14px 30px;
  min-width: 220px;
  text-align: right;
  transition: background .14s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #efdaff;
  color: #ae35b1;
}

@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 768px) {
  header .logo { z-index: 105; }
  .main-nav, header .cta-primary {
    display: none !important;
  }
  header {
    justify-content: flex-start;
  }
}

/* FOOTER */
footer {
  background: linear-gradient(90deg,#fce6ff 0%, #f8f5e6 80%);
  padding: 38px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.footer-nav a {
  color: #af8cda;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #f7defd;
  color: #85269a;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.footer-branding img {
  height: 36px;
}
.footer-branding span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #9b7dbc;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #fde6fb;
  box-shadow: 0 -2px 12px rgba(187, 113, 223, 0.09);
  z-index: 3000;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 18px 22px 18px;
}
.cookie-banner p {
  font-size: 1rem;
  color: #7d4790;
  text-align: center;
  max-width: 520px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-accept {
  background: #c7e4be;
  color: #206241;
  border: 2px solid #90ce9f;
}
.cookie-accept:hover {
  background: #aedfa4;
  color: #135933;
}
.cookie-reject {
  background: #ffdfde;
  color: #b84646;
  border: 2px solid #ffd8ea;
}
.cookie-reject:hover {
  background: #ffe9e9;
  color: #7c1818;
}
.cookie-settings {
  background: #e9e4f8;
  color: #564995;
  border: 2px solid #cabde7;
}
.cookie-settings:hover {
  background: #f6f0fd;
  color: #43356a;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  transition: opacity .27s;
}
.cookie-modal {
  background: #fff9fc;
  border-radius: 22px;
  padding: 38px 28px 26px 28px;
  max-width: 400px;
  box-shadow: 0 10px 32px rgba(189,156,231,0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
  text-align: left;
  animation: fadeInModal .35s cubic-bezier(.63,0,.27,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  color: #7640ae;
  font-size: 1.21rem;
  margin-bottom: 10px;
}
.cookie-pref-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-pref-category label {
  color: #3e2063;
  font-size: 1.01rem;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  background: #f0eaff;
  border-radius: 16px;
  position: relative;
  margin-left: 6px;
  transition: background .18s;
}
.cookie-switch input[type='checkbox'] {
  display: none;
}
.cookie-switch span {
  position: absolute;
  left: 3px; top: 3px;
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #b192ef;
  transition: left .15s, background .2s;
}
.cookie-switch input:checked + span {
  left: 19px;
  background: #6ccdb9;
}
.cookie-modal .cookie-actions {
  gap: 15px;
}
.cookie-close-modal {
  position: absolute;
  right: 14px; top: 16px;
  border: none;
  background: transparent;
  color: #b38dd7;
  font-size: 1.36rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-close-modal:hover {
  color: #6e2b8b;
}

/* CONTACT INFO LIST */
.contact-info ul, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex-wrap: wrap;
}
.contact-info ul li, .contact-info li {
  font-size: 1.08rem;
  color: #543c66;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-info ul li img, .contact-info li img {
  height: 22px;
  width: 22px;
  margin-right: 7px;
}
.contact-info li a {
  color: #8f56d7;
  font-weight: 500;
  margin-left: 6px;
}
.contact-info li a:hover {
  color: #ea34c1;
  text-decoration: underline;
}

/* ABOUT & SECTIONS */
.about, .team, .philosophy, .legal, .thank-you {
  background: #fefaed;
  box-shadow: 0 2px 10px rgba(208,171,239,0.11);
  border-radius: 25px;
}
.text-section {
  padding: 0;
  margin-bottom: 0;
}
.text-section h2,.text-section h3 {
  margin-top: 13px;
  margin-bottom: 9px;
}

/* CTA SECTIONS */
.cta {
  background: #f2eaff;
  border-radius: 26px;
  box-shadow: 0 2px 12px rgba(100, 101, 161,0.03);
  text-align: center;
  padding: 48px 18px 36px 18px;
  margin-bottom: 56px;
}
.cta h2 {
  font-size: 1.45rem;
}

/* BLOG CATEGORIES */
.categories h2 {
  color: #ae35b1;
  font-size: 1.18rem;
  margin-top: 16px;
}

/* SECTION & CARD SPACING */
.section:not(:last-child), .about:not(:last-child), .features:not(:last-child), .testimonials:not(:last-child), .cta:not(:last-child), .legal:not(:last-child), .thank-you:not(:last-child) {
  margin-bottom: 60px;
}
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* FORCED SPACING FROM INSTRUCTIONS (for flex containers) */
.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; }

/* FLEXBOX breakpoints and stacking logic */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1,.hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  .section, .about, .features, .cta, .testimonials, .team, .philosophy, .legal, .thank-you, .blog-list, .resources, .services {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 15px;
  }
  .hero {
    min-height: 260px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 24px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .features ul, .services ul, .resources ul, .blog-list ul, .categories ul, .card-container, .content-grid, .contact-info ul {
    flex-direction: column;
    gap: 13px;
  }
  .categories ul {
    gap: 8px;
  }
  .card, .features ul li, .services ul li, .resources ul li, .blog-list ul li, .testimonial-card {
    padding: 18px 10px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(142, 136, 181,.07);
  }
  .section, .content-wrapper, .about, .team, .philosophy, .services, .resources, .contact, .legal, .thank-you, .blog-list, .features, .cta, .contact-info, .testimonials {
    gap: 15px !important;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}

/* MICRO-INTERACTIONS */
a, button, .cta-primary, .cta-secondary {
  transition: all 0.17s cubic-bezier(.7,.05,.4,.84);
}
img {
  max-width: 100%;
  height: auto;
}

/* ACCESSIBILITY & FOCUS */
a:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible, .cookie-accept:focus-visible, .cookie-reject:focus-visible, .cookie-settings:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid #efb8db;
  outline-offset: 2px;
  background: #fcf5ff;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
  width: 10px;
  background: #f3eaff;
}
body::-webkit-scrollbar-thumb {
  background: #e6d4f5;
  border-radius: 5px;
}

/* RESPONSIVE IMAGES */
.logo img, .footer-branding img {
  max-width: 100%;
  display: block;
}

/* SOFT SHADOWS & PASTEL AESTHETIC */
.section, .card, .features ul li, .testimonial-card, .about, .team, .philosophy, .cta, .legal, .thank-you {
  box-shadow: 0 2px 10px rgba(189,156,231,.08);
  background: #fffaf7;
}

/* DREAMY GRADIENT BORDERS FOR HERO */
.hero {
  border-bottom: 5px solid #efb8db;
  background: linear-gradient( 115deg, #f8e6f4 0%, #eaf0fd 100%);
}

/* SOFT LIGHTS EFFECTS (decorative only - not for content cards) */
.hero:after {
  content: '';
  position: absolute;
  right: 15vw; top: 25px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle,#f6c35833 0%, #fff0 80%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
}

/* PRINT STYLES (for legal pages) */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle, .cta-primary, .cta-secondary { display: none !important; }
  .section, .about, .legal { background: #fff !important; box-shadow: none !important; }
  body { background: #fff !important; color: #27334A !important; }
}
