/* ============================================================
   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;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F2E8D5;
  color: #4D351E;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
}
a {
  color: #613C23;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #d47500;
  outline: none;
}

/* ============================================================
   FLEX-UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(97,60,35,0.10);
  padding: 28px 24px 22px 24px;
  min-width: 220px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(97,60,35,0.20);
  transform: translateY(-4px) rotate(-3deg) scale(1.035);
}
.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;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(97,60,35,0.09);
  margin-bottom: 24px;
  min-width: 240px;
  position: relative;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================================================
   BRANDING / COLORS
   ============================================================ */
:root {
  --primary: #613C23;
  --secondary: #997960;
  --accent: #F2E8D5;
  --fun-pink: #FF6F91;
  --fun-yellow: #FFD447;
  --fun-blue: #53A2F5;
  --fun-green: #41EAD4;
  --fun-bg: #FFFCEA;
  --fun-orange: #FFB340;
  --white: #fff;
}

/* Use playful extra colors for playful/dynamic vibes */

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

h1, .display-title {
  font-family: 'Nunito', 'Comic Sans MS', sans-serif;
  font-weight: 900;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
@media (min-width: 768px) {
  h1, .display-title { font-size: 3.2rem; }
}

h2 {
  font-family: 'Nunito', cursive;
  font-weight: 700;
  color: var(--fun-pink);
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-family: 'Nunito', cursive;
  font-weight: 700;
  color: var(--fun-blue);
  font-size: 1.38rem;
  margin-bottom: 10px;
}

p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0.5em;
}
ul, ol {
  margin-bottom: 1.5em;
  margin-left: 2em;
}
strong { color: var(--primary); font-weight: bold; }

.subheadline {
  font-size: 1.28rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.019em;
}

blockquote {
  font-family: 'Nunito', cursive;
  font-size: 1.19rem;
  color: #663329;
  background: var(--accent);
  border-left: 5px solid var(--fun-orange);
  padding: 10px 20px;
  margin: 0;
  font-style: italic;
  border-radius: 13px;
}

.testimonial-author {
  display: block;
  font-weight: 700;
  color: var(--fun-pink);
  font-size: 1rem;
  margin-top: 10px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  background: var(--fun-bg);
  box-shadow: 0 2px 10px rgba(97,60,35,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: nowrap;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}
.logo:hover img, .logo:focus img {
  transform: scale(1.06) rotate(-7deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--secondary);
  font-family: 'Nunito', cursive;
  font-size: 1.10rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 14px;
  transition: background 0.16s, color 0.16s, transform 0.13s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--fun-yellow);
  color: #fff;
  transform: rotate(-6deg) scale(1.09);
}
.cta-button {
  background: var(--fun-pink);
  color: #fff;
  font-size: 1.16rem;
  font-family: 'Nunito';
  font-weight: 900;
  border: none;
  padding: 13px 26px;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(255,111,145,0.09);
  cursor: pointer;
  display: inline-block;
  margin-left: 8px;
  margin-right: 0;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--fun-yellow);
  color: var(--primary);
  transform: scale(1.07) rotate(-3.5deg);
  box-shadow: 0 4px 24px rgba(255,212,71,0.13);
}

/* Burger menu (default hidden) */
.mobile-menu-toggle {
  appearance: none;
  outline: none;
  border: none;
  font: inherit;
  font-size: 2.2rem;
  background: var(--fun-yellow);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255,212,71,0.13);
  cursor: pointer;
  display: none;
  transition: background 0.17s, transform 0.14s;
  margin-left: 10px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--fun-pink);
  color: #fff;
  transform: scale(1.13) rotate(10deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(97,60,35,0.95);
  z-index: 1003;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.82,0,.35,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  padding-left: 28px;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 24px;
  background: var(--fun-pink);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 11px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255,111,145,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, transform 0.22s;
  z-index: 1005;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--fun-yellow);
  color: var(--primary);
  transform: scale(1.09) rotate(7deg);
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 70vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Nunito', cursive;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 13px 10px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, transform 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-green);
  color: var(--primary);
  transform: scale(1.06) rotate(-5deg);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 2vw;
  }
  .cta-button {
    padding: 10px 15px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ============================================================
   HERO & SPECIAL SECTIONS
   ============================================================ */
section {
  margin-bottom: 60px;
  padding: 40px 10px;
}
.content-wrapper {
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 1px 10px rgba(153,121,96,0.06);
  padding: 36px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
  animation: floatIn .8s cubic-bezier(.5,1.25,.5,1) 1 both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 180px;
  background: var(--fun-bg);
  border-radius: 21px;
  box-shadow: 0 1px 6px rgba(255,111,145,0.09);
  padding: 24px 18px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s, transform 0.22s, background 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 32px rgba(255,111,145,0.15);
  transform: scale(1.045) rotate(-4deg);
  background: var(--fun-green);
}
.feature-grid img {
  max-width: 52px;
  margin-bottom: 12px;
  transition: transform 0.22s;
}
.feature-grid > div:hover img {
  transform: rotate(-12deg) scale(1.13);
}

/* ============================================================
   CONTACT & MAP
   ============================================================ */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.contact-info > div {
  background: var(--accent);
  border-radius: 17px;
  padding: 18px 22px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--primary);
  box-shadow: 0 1px 7px rgba(255,212,71,0.08);
  gap: 7px;
}
.contact-info img {
  height: 30px;
  margin-bottom: 7px;
}
.location-map {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 10px 0;
  color: var(--primary);
  background: none;
  border-radius: 0;
  font-size: 1rem;
}
.location-map img {
  height: 32px;
  margin-right: 10px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(97,60,35,0.09);
  margin-bottom: 24px;
  min-width: 240px;
  padding: 24px 20px 18px 24px;
  color: #302018;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border-left: 5px solid var(--fun-pink);
  transition: box-shadow 0.24s, transform 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: scale(1.03) rotate(-2.5deg);
  box-shadow: 0 4px 25px rgba(255,111,145,0.20);
  z-index: 2;
}
.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}
.testimonial-rating img {
  width: 24px;
}
/* For strong contrast */
.testimonial-card blockquote, .testimonial-card .testimonial-author {
  color: #302018;
  background: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--secondary);
  color: #fff;
  padding: 36px 0 18px 0;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  background: var(--fun-pink);
  padding: 8px 13px;
  border-radius: 10px;
  font-family: 'Nunito', cursive;
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.015em;
  transition: background 0.18s, transform 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--fun-yellow);
  color: var(--primary);
  transform: scale(1.09) rotate(-4deg);
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}

/* ============================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================================ */
button, .cta-button, input[type="submit"], input[type="button"] {
  outline: none;
  transition: background 0.16s, box-shadow 0.14s, color 0.14s, transform 0.14s;
}
button:active, .cta-button:active {
  transform: scale(0.98);
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--fun-blue);
  color: #fff;
  z-index: 1010;
  box-shadow: 0 -2px 18px rgba(53,162,245,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 26px 24px;
  font-size: 1rem;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  animation: slideBannerIn 0.85s cubic-bezier(0.51,1.01,.63,1) 1 both;
}
@keyframes slideBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .cookie-message {
  flex: 1 1 250px;
  min-width: 180px;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
#cookie-banner button {
  background: #fff;
  color: var(--fun-blue);
  font-family: 'Nunito';
  font-weight: 900;
  border: none;
  border-radius: 18px;
  font-size: 1.02rem;
  padding: 10px 18px;
  box-shadow: 0 1px 6px rgba(53,162,245,0.08);
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.14s, color 0.14s, transform 0.13s;
}
#cookie-banner button.accept {
  background: var(--fun-green);
  color: var(--primary);
}
#cookie-banner button.reject {
  background: var(--fun-pink);
  color: #fff;
}
#cookie-banner button.settings {
  background: var(--fun-yellow);
  color: var(--primary);
}
#cookie-banner button:hover, #cookie-banner button:focus {
  transform: scale(1.07) rotate(-3deg);
  background: var(--accent);
  color: var(--fun-pink);
}


/* Cookie settings modal */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(97,60,35,0.87);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.55,0,0.45,1);
}
#cookie-modal .cookie-modal-content {
  background: var(--accent);
  border-radius: 27px;
  padding: 40px 32px 32px 32px;
  max-width: 470px;
  width: 92vw;
  box-shadow: 0 4px 25px rgba(255,111,145,0.16);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: floatIn .7s cubic-bezier(.53,1.3,.3,.9) 1 both;
  position: relative;
}
#cookie-modal h3 {
  color: var(--fun-blue);
  font-size: 1.28rem;
  margin-bottom: 16px;
}
#cookie-modal .modal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
}
#cookie-modal label {
  font-family: 'Open Sans';
  font-size: 1.01rem;
  color: var(--primary);
}
#cookie-modal input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--fun-pink);
  margin-right: 4px;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 16px;
}
#cookie-modal button {
  background: var(--fun-green);
  color: var(--primary);
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-family: 'Nunito';
  font-weight: 900;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.18s, color 0.14s, transform 0.13s;
}
#cookie-modal button.reject {
  background: var(--fun-pink);
  color: #fff;
}
#cookie-modal button.close {
  background: var(--fun-yellow);
  color: var(--primary);
  position: absolute;
  right: 18px;
  top: 14px;
  border-radius: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
#cookie-modal button:hover, #cookie-modal button:focus {
  background: var(--primary);
  color: var(--fun-green);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1100px) {
  .feature-grid, .contact-info {
    gap: 16px;
  }
  .container {
    padding-left: 12px; padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 23px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
  }
  .contact-info {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 5px 28px 5px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    padding: 18px 8px;
    border-radius: 16px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 23px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
    margin: 0 auto;
  }
  .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    min-width: unset;
    width: 100%;
    border-radius: 13px;
    padding: 15px 8px 14px 12px;
  }
  .card {
    min-width: unset;
    width: 100%;
    border-radius: 13px;
    padding: 17px 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .contact-info, .footer-menu {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  #cookie-banner {
    padding: 12px 8px 12px;
    font-size: 0.97rem;
    border-radius: 0;
    flex-direction: column;
    gap: 9px;
  }
  #cookie-modal .cookie-modal-content {
    padding: 18px 7vw 24px 7vw;
    width: 96vw;
    border-radius: 18px;
  }
  footer .container {
    gap: 7px;
  }
}

/* SMALLER FONT SIZES ON MOBILE */
@media (max-width: 600px) {
  h1, .display-title { font-size: 1.65rem; }
  h2 { font-size: 1.15rem; }
  .logo img { height: 38px; }
}

/* ============================================================
   PLAYFUL SHAPES & DECORATIVE ELEMENTS
   ============================================================ */
.card, .content-wrapper, .testimonial-card, .feature-grid > div {
  /* Wavy playful border effect */
  border-bottom-left-radius: 40px 16px;
  border-bottom-right-radius: 40px 16px;
  /* Subtle shadow for depth */
  box-shadow: 0 2px 13px rgba(255,212,71,0.06), 0 1.5px 8px rgba(255,111,145,0.07);
}

/* === Micro Interactions === */
.card, .content-wrapper, .feature-grid > div, .cta-button, .footer-menu a {
  will-change: transform, box-shadow, color, background;
}

/* ============================================================
   MISC / OVERRIDES FOR HTML MARKUP CLASSES
   ============================================================ */
.text-section {
  gap: 13px;
  font-size: 1.06rem;
}
ul, ol {
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 6px;
}

/* For hero or thank you pages' container improvements */
main > section:first-of-type .container {
  margin-top: 20px;
}

/* === Hide cookie banner/modal if not shown (handled by JS) === */
#cookie-banner[aria-hidden="true"], #cookie-modal:not(.open) {
  display: none !important;
  pointer-events: none;
}

/* ============================================================
   PRINT (OPTIONAL, CAN BE IGNORED/REMOVED)
   ============================================================ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .main-nav, .cta-button, #cookie-banner, #cookie-modal, footer {
    display: none !important;
  }
}
