/* ==================================================  */
/*                    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,
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; 
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F8F6;
  color: #232D3B;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color .2s; }
a:focus, button:focus { outline: 2px solid #9A4F55; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #232D3B;
  font-weight: bold;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
strong { font-weight: bold; }
p { margin-bottom: 16px; }

/* ======================== */
/*   LAYOUT CONTAINERS      */
/* ======================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* Required Spacing */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px 0 rgba(154,79,85,0.10);
  position: relative;
  transition: box-shadow .3s;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(35,45,59,0.08);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 4px 28px 0 rgba(154,79,85,0.14);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.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: #FFF9F6;
  border-radius: 20px;
  box-shadow: 0 1px 7px 0 rgba(35,45,59,0.10);
  margin-bottom: 20px;
  font-size: 1.06rem;
  font-family: 'Merriweather', Georgia, serif;
  color: #232D3B;
}
.testimonial-card strong {
  color: #9A4F55;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98em;
  font-style: italic;
  margin-left: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== */
/*   HEADER & NAV        */
/* ===================== */
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #232D3B;
  padding: 16px 28px 16px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 16px 0 rgba(35,45,59,0.10);
}
header a img {
  height: 42px;
  margin-right: 20px;
  transition: transform .28s cubic-bezier(.68,-0.55,.27,1.55);
}
header a img:hover {
  transform: scale(1.07) rotate(-8deg);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav a {
  color: #F8F8F6;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background .2s, color .22s, box-shadow .19s;
  position: relative;
}
header nav a.selected, header nav a.active, header nav a:focus {
  background: #9A4F55;
  color: #FFF;
}
header nav a:hover {
  background: #fff;
  color: #9A4F55;
  box-shadow: 0 2px 12px 0 rgba(154,79,85,0.07);
}
header .cta.primary {
  background: #FFD85A;
  color: #232D3B;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 16px;
  padding: 10px 26px;
  margin-left: 26px;
  box-shadow: 0 2px 16px 0 rgba(255,216,90,0.13);
  border: none;
  cursor: pointer;
  transition: background .22s, color .17s, transform .26s;
  letter-spacing: 0.5px;
}
header .cta.primary:hover, header .cta.primary:focus {
  background: #9A4F55;
  color: #FFF;
  transform: scale(1.05) rotate(2deg);
}

/* =============================== */
/*    CTA & BUTTONS                */
/* =============================== */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: bold;
  border-radius: 16px;
  font-size: 1.1rem;
  padding: 10px 26px;
  border: none;
  cursor: pointer;
  transition: background .22s, color .22s, transform .22s;
  margin-top: 10px;
  box-shadow: 0 2px 14px 0 rgba(154,79,85,0.08);
}
.cta.primary, .btn.primary {
  background: #FFD85A;
  color: #232D3B;
}
.cta.primary:hover, .btn.primary:hover, .cta.primary:focus {
  background: #9A4F55;
  color: #fff;
  transform: scale(1.04) rotate(-1deg);
}
.cta.secondary, .btn.secondary {
  background: #9A4F55;
  color: #fff;
}
.cta.secondary:hover, .btn.secondary:hover, .cta.secondary:focus {
  background: #FFD85A;
  color: #232D3B;
  transform: scale(1.04) rotate(1deg);
}
.btn:active { transform: scale(0.96); }

/* ======================= */
/*   MAIN SECTIONS         */
/* ======================= */
main {
  width: 100%;
  padding-top: 16px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(35,45,59,0.10);
}
section:last-of-type { margin-bottom: 0; }

.text-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  background: #FFFFEC;
  color: #232D3B;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.text-section img {
  width: 36px;
  height: 36px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0 0;
}
.categories li {
  display: inline-flex;
  align-items: center;
  background: #FFD85A;
  color: #232D3B;
  font-weight: 600;
  border-radius: 12px;
  padding: 6px 18px;
  font-size: 1rem;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 8px 0 rgba(35,45,59,0.08);
  transition: background .15s, color .15s, transform .22s;
}
.categories li:hover, .categories li:focus {
  background: #9A4F55;
  color: #fff;
  cursor: pointer;
  transform: scale(1.08) rotate(-2deg);
}

/* ======================= */
/*    FOOTER               */
/* ======================= */
footer {
  width: 100%;
  background: #232D3B;
  color: #F8F8F6;
  padding: 32px 0 18px 0;
  display: flex;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 6px;
}
footer ul li a {
  color: #FFD85A;
  font-weight: 500;
  transition: color .2s;
  font-size: 1rem;
}
footer ul li a:hover {
  color: #fff;
}
footer p {
  font-size: 0.95rem;
  color: #EDEAE8;
}


/* ==================================== */
/*   MOBILE NAVIGATION & BURGER MENU    */
/* ==================================== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 51;
    background: #9A4F55;
    color: #fff;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: background .2s, transform .22s;
    box-shadow: 0 2px 12px 0 rgba(154,79,85,0.09);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #FFD85A;
    color: #232D3B;
    transform: scale(1.08) rotate(-10deg);
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: #FFF;
    z-index: 60;
    flex-direction: column;
    align-items: flex-start;
    /* Slide in/out animation controlled with transform */
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.84,-0.01,.38,.97);
    box-shadow: 0 0 40px rgba(35,45,59,0.18);
    min-height: 100vh;
    width: 100vw;
    padding: 24px 32px;
  }
  body.menu-open .mobile-menu {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: #9A4F55;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2.1rem;
    margin-bottom: 18px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    overflow: visible !important;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #FFD85A;
    color: #232D3B;
    transform: rotate(-30deg) scale(1.10);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: flex-start;
  }
  .mobile-nav a {
    color: #232D3B;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.34rem;
    font-weight: 700;
    padding: 10px 0 10px 0;
    border-radius: 12px;
    transition: background .15s, color .22s, transform .13s;
  }
  .mobile-nav a:focus,
  .mobile-nav a:hover {
    background: #FFD85A;
    color: #9A4F55;
    padding-left: 12px;
    transform: scale(1.04) rotate(-3deg);
  }
}

/* ====================== */
/*     LIST ELEMENTS      */
/* ====================== */
ul, ol {
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
}
ol>li, ul>li {
  padding-left: 0px;
  position: relative;
}

/* ========================= */
/*     FORMS & INPUTS        */
/* ========================= */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #DDD;
  padding: 12px 14px;
  background: #FFF;
}
input:focus, select:focus, textarea:focus {
  border-color: #9A4F55;
  box-shadow: 0 2px 8px 0 rgba(154,79,85,0.08);
}

/* ====================== */
/*   ANIMATIONS & EFFECTS */
/* ====================== */
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  50% { transform: rotate(2.3deg); }
  75% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}
@keyframes bounceIn {
  0% { transform: scale(1.18) translateY(24px); opacity: 0.7; }
  60% { transform: scale(1.05) translateY(-14px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cta.primary, .cta.secondary, .btn.primary, .btn.secondary {
  animation: bounceIn .55s cubic-bezier(.27,.7,.49,1.38) 0.1s both;
}
/* Add a playful wiggle to cards/testimonials on hover */
.card:hover, .testimonial-card:hover {
  animation: wiggle .23s linear 1;
}

/* ====================== */
/*    CARD ELEMENTS       */
/* ====================== */
.card {
  padding: 28px 24px 22px 24px;
  min-width: 270px;
  min-height: 180px;
  background: #fffbe9;
  border: 2px solid #FFD85A;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(35,45,59,0.09);
}


/* ====================== */
/*   MISC COMPONENTS      */
/* ====================== */
.content-wrapper > h2 {
  color: #9A4F55;
  font-family: 'Merriweather', Georgia, serif;
}
.content-wrapper > h1 {
  color: #232D3B;
}

.text-section strong {
  color: #9A4F55;
}

/* Spacing guidelines - breathing room & gaps */
section, .section, .content-wrapper, .card-container, .content-grid,
.text-image-section, .testimonial-card, .feature-item, .categories {
  gap: 20px;
}

/* Z-index layering for modals & mobile menu */
.mobile-menu { z-index: 60; }
.mobile-menu-close { z-index: 61; }
.cookie-banner { z-index: 1000; }
.cookie-modal { z-index: 1050; }

/* ===================== */
/*   COOKIE CONSENT      */
/* ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 28px;
  background: #FFD85A;
  color: #232D3B;
  box-shadow: 0 -2px 24px rgba(35,45,59,0.16);
  font-size: 1.1rem;
  border-top: 2px solid #9A4F55;
  animation: bounceIn .6s cubic-bezier(.15,.71,.4,1.02) 0.23s both;
}
.cookie-banner p {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-banner .cookie-btn {
  display: inline-flex;
  margin-left: 8px;
  margin-right: 2px;
  font-size: 1rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 13px;
  border: none;
  margin-top: 0;
  box-shadow: 0 1px 8px 0 rgba(35,45,59,0.10);
  cursor: pointer;
  transition: background .15s, color .16s, transform .14s;
}
.cookie-banner .cookie-btn.accept {
  background: #9A4F55;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #232D3B;
  color: #FFD85A;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: #9A4F55;
  border: 1px solid #9A4F55;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD85A;
  color: #232D3B;
}
.cookie-banner .cookie-btn.settings {
  background: #FFD85A;
  color: #232D3B;
  border: 1px solid #9A4F55;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #9A4F55;
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,45,59,0.62);
  align-items: center;
  justify-content: center;
  z-index: 1050;
  transition: opacity .23s;
}
.cookie-modal.open {
  display: flex;
  animation: bounceIn .4s cubic-bezier(.3,.9,.6,1.2) 0.1s both;
}
.cookie-modal .modal-content {
  background: #FFF;
  border-radius: 22px;
  max-width: 420px;
  min-width: 90vw;
  margin: 12px;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 3px 36px 0 rgba(35,45,59,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1080;
}
@media (min-width: 500px) { .cookie-modal .modal-content { min-width: 420px;} }
.cookie-modal h2 { color: #9A4F55; font-size: 1.3rem; margin-bottom: 8px; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #FFD85A;
  border-radius: 11px;
  position: relative;
  outline: none;
  border: 1.5px solid #9A4F55;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle:checked {
  background: #9A4F55;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 1.5px;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 17px;
}
.cookie-modal .modal-actions {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-modal .modal-actions button {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Merriweather', Georgia, serif;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background .14s, color .14s, transform .12s;
}
.cookie-modal .modal-actions .accept {
  background: #9A4F55;
  color: #fff;
  font-weight: 700;
}
.cookie-modal .modal-actions .accept:hover {
  background: #FFD85A;
  color: #232D3B;
}
.cookie-modal .modal-actions .reject {
  background: #fff;
  border: 1.2px solid #9A4F55;
  color: #9A4F55;
}
.cookie-modal .modal-actions .reject:hover {
  background: #FFD85A;
  color: #232D3B;
}
.cookie-modal .modal-actions .close {
  background: #FFD85A;
  color: #232D3B;
  border: 1.2px solid #9A4F55;
}
.cookie-modal .modal-actions .close:hover {
  background: #FFF;
  color: #9A4F55;
}

/* Cookie modal close button (x) in top right */
.cookie-modal .close-x {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #9A4F55;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color .17s, transform .18s;
}
.cookie-modal .close-x:hover { color: #FFD85A; transform: scale(1.08) rotate(-14deg); }

/* ===================================== */
/*        RESPONSIVENESS   (mobile up)   */
/* ===================================== */
@media (max-width: 1300px) {
  .container { max-width: 96vw; padding: 0 12px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; padding: 0 6px; }
  section, .section {
    padding: 30px 10px;
    margin-bottom: 36px;
    border-radius: 20px;
  }
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 16px;
    padding: 0;
  }
  .content-grid,.card-container { gap: 14px; }
  .testimonial-card { gap:12px; padding: 12px; font-size: 1rem; border-radius: 13px; }
  .text-section { padding: 10px 12px; gap:10px; font-size:0.98em; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 600px) {
  header { padding: 10px 5px 10px 5px; }
}
@media (max-width: 580px) {
  .testimonial-card strong { margin-left: 6px; font-size: 0.93em; }
  .card { min-width: 100%; padding: 12px 7px; border-radius: 14px; }
  .content-wrapper { gap:9px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ============================= */
/*      PLAYFUL DYNAMIC DECOR    */
/* ============================= */
section:before {
  content: '';
  display: block;
  position: absolute;
  right: -16px;
  top: -24px;
  width: 68px;
  height: 68px;
  z-index: 0;
  background: #FFD85A;
  opacity: 0.19;
  border-radius: 54% 58% 44% 56%/60% 47% 63% 44%;
  pointer-events: none;
  animation: wiggle 2.8s linear infinite alternate;
}
section:nth-child(even):before {
  left: -18px;
  right: auto;
  top: -16px;
  opacity: 0.14;
}

/* More playful highlights for key elements */
h1, h2, h3 {
  position: relative;
  z-index: 2;
}
h2:after {
  content: '';
  display: block;
  position: absolute;
  left: 6px; bottom: -7px;
  width: 64px;
  height: 8px;
  background: #FFD85A;
  border-radius: 6px;
  opacity: 0.36;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-2deg);
  animation: bounceIn .8s 0.12s cubic-bezier(.88,-0.33,0,1.54) both;
}
@media (max-width: 600px) {
  h2:after { width: 36vw; max-width: 160px; }
}

/* ============================= */
/*        SCROLLBAR              */
/* ============================= */
::-webkit-scrollbar {
  width: 12px;
  background: #f8f8f6;
}
::-webkit-scrollbar-thumb {
  background: #FFD85A;
  border-radius: 7px;
  border: 2px solid #9A4F55;
}

/* ============================= */
/*     RESPONSIVE GAPS           */
/* ============================= */
.card-container, .content-grid, .categories {
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px){
  .card-container, .content-grid, .categories {
    gap: 10px;
    margin-bottom: 10px;
  }
}

/* ========================== */
/*    VISUAL HIERARCHY        */
/* ========================== */
main > section:first-of-type h1,
main > section:first-of-type h2 {
  font-size: 2.5rem;
  color: #9A4F55;
  line-height: 1.2;
  letter-spacing: -1px;
}
@media (max-width: 700px) {
  main > section:first-of-type h1,
  main > section:first-of-type h2 {
    font-size: 1.7rem;
  }
}

/* ========================== */
/*    FOCUSED/LINKS STATES    */
/* ========================== */
a:active {
  color: #9A4F55;
}
footer p {
  color: white !important;
}
/* ========================== */
/*    ACCESSIBILITY           */
/* ========================== */
*:focus-visible {
  outline: 2.5px solid #9A4F55;
  outline-offset: 1.5px;
}

/* Prevent text overlapping */
.card, .testimonial-card, section, .content-wrapper, .container {
  min-width: 0;
  min-height: 0;
  word-break: break-word;
  overflow-x: auto;
}

/* ========================== */
/*     PRINT-FRIENDLY         */
/* ========================== */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
