/* ----------------------- CSS RESET & BASE ----------------------- */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* -------------------- CUSTOM PROPERTIES ------------------- */
:root {
  --color-primary: #6D4C8F;
  --color-secondary: #FFFFFF;
  --color-accent: #FFC145;
  --color-dark: #381A57;
  --color-light: #F8F5FB;
  --color-grey: #EFE7F6;

  --shadow-main: 0 6px 32px 0 rgba(109, 76, 143, 0.10), 0 1.5px 6px 0 rgba(109, 76, 143, 0.16);
  --shadow-card: 0 1.5px 9px 0 rgba(109,76,143,0.08);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  background: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 { font-size: 2.2rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 10px; }

p {
  font-size: 1.05em;
  color: var(--color-dark);
  margin-bottom: 18px;
}

b, strong {
  font-weight: 700;
  color: var(--color-primary);
}

blockquote {
  font-family: var(--font-display);
  font-size: 1.15em;
  color: var(--color-primary);
  padding-left: 24px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-grey);
  border-radius: 12px;
  margin-bottom: 10px;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
  color: var(--color-dark);
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
  font-size: 1em;
}
ul li::before {
  content: '•';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}
ol li {
  list-style-type: decimal;
  padding-left: 6px;
}

a:hover, .footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-accent);
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.text-section,
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------- CRITICAL CLASS-BASED SPACING & PATTERNS ---------- */
.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;
}

/* ------------------- HEADER & NAVIGATION ---------------------- */
header {
  background: var(--color-secondary);
  box-shadow: 0 1.5px 9px 0 rgba(109,76,143,0.06);
  position: sticky;
  top: 0;
  z-index: 102;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px 14px 18px;
}
.main-nav > a img { height: 40px; }
.main-nav ul {
  display: flex;
  flex: 1;
  gap: 20px;
  margin-left: 40px;
}
.main-nav li {
  list-style: none;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 24px;
  transition: background 0.17s, color 0.17s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--color-accent);
  color: #47336e;
}
.btn-primary {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 32px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-left: 20px;
  margin-right: 8px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 6px 32px 0 rgba(255,193,69,0.11), 0 1.5px 6px 0 rgba(109,76,143,0.18);
  transform: translateY(-3px) scale(1.04);
}

/* ------------- BURGER (HAMBURGER) MOBILE MENU --------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 22px;
  box-shadow: 0 2px 10px 0 rgba(255,193,69,0.12);
  transition: background 0.2s, color 0.2s;
  z-index: 202;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-secondary);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: -2px 0 32px 0 rgba(93,51,127,0.20);
  padding-top: 34px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 27px;
  right: 28px;
  font-size: 2.4rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 205;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  margin-top: 55px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  width: 100%;
  padding-left: 40px;
  padding-right: 15px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-secondary);
  padding: 12px 8px 12px 7px;
  border-radius: 16px;
  background: transparent;
  transition: background 0.19s, color 0.19s, padding-left 0.23s;
  min-width: 190px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  padding-left: 24px;
}

/* Hide main menu on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Disable background scroll when menu open */
body.menu-open {
  overflow: hidden;
}

/* ------------------------- HERO / CTA ---------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
}
section .container > h2:not(:first-child),
section .container > .content-wrapper > h2, 
section .container > h1 {
  margin-bottom: 16px;
}

/* ------------------------ SERVICE CARDS -------------------- */
.service-card {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px 25px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  max-width: 375px;
  flex: 1 1 225px;
  gap: 12px;
  transition: transform 0.21s, box-shadow 0.21s;
  border: 2px solid var(--color-light);
  position: relative;
  z-index: 1;
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--color-dark);
  font-family: var(--font-display);
}
.service-card span {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 14px;
  padding: 4px 13px 4px 13px;
  font-size: 0.99rem;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(109, 76, 143, 0.15), 0 1.5px 9px 0 rgba(255,193,69,0.12);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--color-accent);
}

/* Pricing table */
.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.pricing-table > div {
  background: var(--color-secondary);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05em;
  font-family: var(--font-body);
  color: var(--color-dark);
  transition: box-shadow 0.19s;
}
.pricing-table > div:hover {
  box-shadow: 0 3px 22px 0 rgba(255,193,69,0.14);
}
.pricing-table span {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}

/* -------------------- TESTIMONIALS ---------------------- */
.testimonial-card {
  background: var(--color-grey);
  border-radius: 20px;
  flex-direction: column;
  box-shadow: 0 3px 20px 0 rgba(93, 51, 127, 0.07);
  padding: 24px 22px 18px 22px;
  margin-bottom: 20px;
  max-width: 560px;
  min-width: 220px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card footer {
  background: transparent !important;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 9px 26px 0 rgba(255,193,69,0.15), 0 1.5px 9px 0 rgba(93, 51, 127, 0.11);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  color: var(--color-dark);
  font-size: 1.14em;
  line-height: 1.45;
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid var(--color-accent);
}
.testimonial-card footer {
  font-size: 1em;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
}

/* Ensure readable text in testimonial */
.testimonial-card, .testimonial-card * {
  color: #2B2042;
}

/* --------------------- FOOTER ------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 45px 0 0 0;
  position: relative;
  z-index: 10;
  font-size: 0.98em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 15px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 54px;
  margin-bottom: 18px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 130px;
  font-family: var(--font-display);
}
.footer-nav a, .footer-legal a {
  color: var(--color-secondary);
  padding: 5px 0;
  border-radius: 8px;
  font-size: 1em;
  transition: background 0.19s, color 0.19s;
}
.footer-nav a:hover, .footer-legal a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1em;
  align-items: flex-start;
}
.footer-contact address {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}

/* ------------- Special Text/Image Section Modifier ------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section p {
  margin-bottom: 6px;
}

/* ------------- FAQ & DL styling ------------------ */
dl {
  margin-bottom: 16px;
}
dt {
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-top: 10px;
  margin-bottom: 4px;
}
dd {
  margin-left: 0;
  font-size: 1em;
  margin-bottom: 8px;
}

/* ------------- Map and embedded elements ------------- */
.map-embed {
  background: var(--color-grey);
  border-radius: 12px;
  padding: 18px 12px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ------------- Energetic Playful Micro-decor ------------- */
.btn-primary::after {
  content: '';
  position: absolute;
  right: -9px; bottom: -10px;
  width: 25px; height: 25px;
  background: var(--color-accent);
  border-radius: 99px;
  opacity: 0.32;
  z-index: -1;
  display: block;
  transition: transform 0.18s;
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateY(4px) scale(1.17);
  opacity: 0.52;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -16px; left: -18px;
  width: 31px; height: 31px;
  background: var(--color-accent);
  border-radius: 84% 92% 63% 57%;
  opacity: 0.18;
  z-index: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 0.31; }

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -12px; right: -18px;
  width: 21px; height: 21px;
  background: var(--color-accent);
  border-radius: 60% 80% 51% 71%;
  opacity: 0.21;
  z-index: 0;
  pointer-events: none;
}

/* ------------- Responsive & Mobile Layout -------------- */
@media (max-width: 1024px) {
  .main-nav, footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .main-nav { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .main-nav > a img { height: 32px; }
  section, .section {
    padding: 28px 6vw 30px 6vw;
    margin-bottom: 38px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px;
  }
  .card, .service-card, .testimonial-card {
    min-width: 90%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
  }
  .footer-brand img { margin-bottom: 11px; }
  .footer-nav, .footer-legal {
    flex-direction: row;
    gap: 11px;
    margin-bottom: 5px;
    flex-wrap: wrap;
  }
  .footer-contact address { margin-bottom: 5px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.12rem; }
}

/* ------ Spacing for popular utility containers ------ */
main .container > *, .container > *:not(:last-child) {
  margin-bottom: 20px;
}
main .container > h1, main .container > h2 {
  margin-bottom: 16px;
}

/* ------------- Cookie Banner & Modal ------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  box-shadow: 0 -2px 32px 0 rgba(93,51,127,0.15);
  z-index: 9999;
  font-size: 1em;
  transition: transform 0.35s, opacity 0.33s;
  font-family: var(--font-display);
}
.cookie-consent-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: var(--color-secondary);
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 28px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  font-size: 0.96em;
  transition: background 0.19s, color 0.19s;
  cursor: pointer;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--color-secondary);
  color: var(--color-dark);
  border-radius: 16px;
  box-shadow: 0 5px 44px 0 rgba(93,51,127,0.19);
  min-width: 300px;
  max-width: 96vw;
  min-height: 220px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  padding: 32px 18px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1em;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--color-accent);
  width: 19px;
  height: 19px;
}
.cookie-category .category-label {
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 43px; height: 43px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ------------- Custom playful fun font tweaks ---------- */
h1, h2, .btn-primary, .pricing-table span, .service-card h3, .mobile-nav a {
  font-family: var(--font-display), 'Comic Sans MS', cursive, sans-serif;
  /* Fallback for playful font feel */
}

/* -------- Subtle Animations (Hero, Cards, CTA) ---------- */
.hero-animate, .service-card, .testimonial-card, .btn-primary {
  will-change: transform, box-shadow;
}
@media (prefers-reduced-motion:no-preference) {
  .service-card, .testimonial-card, .btn-primary {
    transition-timing-function: cubic-bezier(.44,.13,.44,1.27);
  }
}

/* ------------------ Accessibility focus ring ------------------ */
a:focus,
.btn-primary:focus,
input:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.cookie-btn:focus,
.cookie-modal-close:focus {
  outline: 2.5px dashed var(--color-accent) !important;
  outline-offset: 2px;
}

/* ------------- MISC UI UTILITIES -------------- */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
/* Utility for visually hiding content but keeping accessible */
.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }

/* ------------- Hide last margin-bottom in sections/list --------------- */
section > *:last-child,
.text-section > *:last-child,
.content-wrapper > *:last-child,
.container > *:last-child,
.card-container > *:last-child { margin-bottom: 0 !important; }


/* ENDS CSS */
