/* =====================================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FFF;
  color: #49290B;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-size: 16px;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: #49290B;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,1.45,.63,1.15);
}
a:hover, a:focus {
  color: #BFA97A;
}
button {
  font-family: inherit;
  font-size: 16px;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #BFA97A;
  outline-offset: 2px;
}

/* =====================================================
   BRAND COLORS & VARIABLES (FALLBACKS)
===================================================== */
:root {
  --color-brand-primary: #49290B;
  --color-brand-secondary: #BFA97A;
  --color-brand-accent: #ECE1D5;
  --color-bg-light: #fff9f2;
  --color-bg-section: #FDF6ED;
  --color-bg-card: #fff;
  --color-highlight: #FFE562;
  --color-error: #ec4242;
  --color-text-dark: #49290B;
  --color-text-light: #fff;
  --shadow-card: 0 4px 24px 0 rgba(191,169,122,0.15);
  --shadow-raised: 0 8px 24px 0 rgba(73,41,11,0.10);
  --radius-main: 18px;
  --radius-btn: 30px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #49290B;
  font-weight: 900;
  line-height: 1.1;
  /* Fun shadow for playful vibe */
  text-shadow: 0 2px 0 #FFE562, 1px 4px 1px rgba(191,169,122,0.12);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

p, ul, ol, li, a, strong, span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #49290B;
}
strong {
  font-weight: 700;
  color: #BFA97A;
}
.subheadline {
  font-size: 1.15rem;
  color: #BFA97A;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 600;
}

.text-section {
  margin: 16px 0 0 0;
}
.text-section p {
  margin-bottom: 12px;
}
.text-section h3 {
  color: var(--color-brand-secondary);
  font-size: 1.15rem;
  margin: 18px 0 8px 0;
}
.text-section ul,
.text-section ol {
  margin-top: 6px;
  margin-bottom: 12px;
  padding-left: 22px;
}

/* Playful font for accent elements */
.playful-font {
  font-family: 'Merriweather', cursive, serif;
  color: #FFD504;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

/* =====================================================
   LAYOUT & CONTAINER
===================================================== */
.container {
  width: 100%;
  max-width: 1150px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
main {
  flex: 1;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s cubic-bezier(.45,1.65,.6,1.12);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .25s cubic-bezier(.45,1.65,.6,1.12), transform .22s cubic-bezier(.45,1.65,.6,1.12);
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(191,169,122,0.25);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
  z-index: 2;
}

/* Content grid for feature sections or cards */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
/* For text-image splits */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Feature List */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-card);
  padding: 18px 22px;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 10px 0 rgba(191,169,122,0.10);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #49290B;
  border-radius: 26px;
  box-shadow: 0 4px 32px 0 rgba(73,41,11,.07);
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  transition: box-shadow .27s;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-card strong,
.testimonial-card em {
  color: #BFA97A;
  font-weight: 700;
  font-size: 1.02em;
  margin-left: 16px;
}

/* =====================================================
   HEADER & NAVIGATION (MAIN + FOOTER)
===================================================== */
header {
  background: #fff9f2;
  box-shadow: 0 2px 9px 0 rgba(191,169,122,0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 26px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border-radius: 20px;
  padding: 7px 18px;
  transition: background 0.12s, color 0.15s, transform 0.2s;
}
.main-nav a:hover:not(.cta-primary) {
  background: #FFE562;
  color: #49290B;
  transform: translateY(-2px) scale(1.07) rotate(-2deg);
}
.cta-primary {
  background: linear-gradient(101deg, #FFE562 0%, #FACED1 100%);
  color: #49290B !important;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(191,169,122,0.10);
  transition: box-shadow 0.17s, background 0.17s;
  border: 2px solid #FFE562;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: #BFA97A;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(191,169,122,0.24) !important;
}
.cta-secondary {
  background: #ECE1D5;
  color: #49290B;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-size: 1.06rem;
  font-weight: 600;
  box-shadow: 0 0.5px 3px 0 rgba(191,169,122,0.08);
  border: 2px solid #ECE1D5;
  margin-top: 14px;
}
.cta-secondary:hover {
  background: #FFE562;
  color: #49290B;
  border-color: #FFD504;
}

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 12px 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px 0 rgba(191,169,122,0.18);
  transition: box-shadow 0.18s, background 0.18s;
  border: 2px solid #fff9f2;
}
.social-links a:hover {
  background: #FFE562;
  box-shadow: 0 2px 18px rgba(191,169,122,0.22);
  transform: rotate(-7deg) scale(1.08);
}
.social-links a img {
  height: 19px;
  width: 19px;
  display: block;
}

/* Footer */
footer {
  background: #49290B;
  color: #BFA97A;
  padding: 36px 0 12px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #BFA97A;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.13s, text-decoration 0.15s;
}
.footer-nav a:hover {
  color: #FFE562;
  text-decoration: underline;
}
footer .text-section p {
  color: #ece1d5;
  margin-bottom: 0;
  font-size: 0.97rem;
)
footer p:last-child {
  color: #BFA97A;
  font-size: 0.93rem;
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  background: linear-gradient(98deg, #FFE562 0%, #ECE1D5 100%);
  position: relative;
  padding: 48px 0 32px 0;
  border-radius: var(--radius-main);
  box-shadow: 0 4px 24px 0 rgba(191,169,122,0.19);
  margin-bottom: 48px;
  overflow: hidden;
  min-height: 300px;
  z-index: 1;
  animation: hero-pop 0.8s cubic-bezier(.4,1.45,.63,1.15);
}
@keyframes hero-pop {
  0% { opacity: 0; transform: scale(0.93) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #49290B;
  margin-bottom: 8px;
}
.hero .subheadline {
  color: #49290B;
  font-weight: 500;
  font-size: 1.13rem;
}
.hero .cta-primary {
  margin-top: 18px;
}

/* =====================================================
   LISTS FOR FEATURES/BENEFITS
===================================================== */
ul,ol {
  margin-left: 24px;
  margin-bottom: 12px;
}
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}
li {
  margin-bottom: 10px;
  font-size: 1.01em;
  line-height: 1.58;
}
ul li strong, ol li strong {
  color: #BFA97A;
}

/* =====================================================
   MOBILE MENU & OVERLAY (SLIDE-IN)
===================================================== */
.mobile-menu-toggle {
  display: none;
  background: #FFE562;
  border-radius: 50%;
  padding: 10px;
  font-size: 2rem;
  color: #49290B;
  outline: none;
  margin-left: 22px;
  box-shadow: 0 2px 10px rgba(191,169,122,0.17);
  border: 2px solid #FFE562;
  transition: box-shadow 0.15s, background 0.15s, transform 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #BFA97A;
  color: #fff;
  box-shadow: 0 6px 18px rgba(191,169,122,0.23);
  transform: scale(1.1);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(252,239,213, .98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.6,1.6,.28,1.22);
  box-shadow: 0 10px 40px rgba(73,41,11,0.17);
  overflow-y: auto;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FFE562;
  color: #49290B;
  font-size: 2.3rem;
  border-radius: 50%;
  padding: 10px 17px;
  margin: 24px auto 10px 18px;
  align-self: flex-start;
  border: 2px solid #FFD504;
  box-shadow: 0 1.5px 6px rgba(191,169,122,0.16);
  transition: background 0.13s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ec4242;
  color: #fff;
  border-color: #ec4242;
  transform: rotate(-8deg) scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 34px 28px 36px;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.38rem;
  font-weight: 700;
  color: #49290B;
  background: none;
  padding: 13px 0 13px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.14s, color 0.18s, transform 0.20s;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE562;
  color: #EC4242;
  transform: translateX(8px) scale(1.04);
}
.mobile-menu.open {
  box-shadow: 0 10px 40px rgba(73,41,11,0.23);
}

/* Hide main nav on mobile */
@media (max-width: 950px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
===================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff9f2;
  box-shadow: 0 -2px 20px rgba(191,169,122,0.22);
  z-index: 21000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 24px 18px 24px;
  font-size: 1em;
  animation: cookieappear 0.6s cubic-bezier(.33,1.3,.51,1.12);
}
@keyframes cookieappear {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  flex: 1 0 240px;
  min-width: 160px;
  color: #49290B;
  font-size: 1rem;
  font-weight: 400;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  border-radius: var(--radius-btn);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 9px 22px;
  background: #FFE562;
  color: #49290B;
  border: 2px solid #FFE562;
  margin-top: 4px;
  transition: background 0.13s, color 0.13s, box-shadow 0.16s;
}
.cookie-btn.settings {
  background: #BFA97A;
  color: #fff;
  border-color: #BFA97A;
}
.cookie-btn.accept:hover {
  background: #BFA97A;
  color: #fff;
}
.cookie-btn.reject {
  background: #ECE1D5;
  color: #49290B;
  border-color: #ECE1D5;
}
.cookie-btn.reject:hover {
  background: #EC4242;
  color: #fff;
  border-color: #EC4242;
}
.cookie-btn.settings:hover {
  background: #49290B;
  color: #FFE562;
  border-color: #49290B;
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(73,41,11, 0.22);
  z-index: 22000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalAppear 0.25s cubic-bezier(.4,1.45,.63,1.15);
}
@keyframes modalAppear {
  from { opacity:0; transform: scale(.93);} to {opacity:1; transform:scale(1);}
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 430px;
  width: calc(100vw - 32px);
  box-shadow: 0 8px 52px rgba(191,169,122,0.38);
  padding: 36px 30px 32px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 22010;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: #FFE562;
  color: #49290B;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-modal-close:hover {
  background: #ec4242;
  color: #fff;
}
.cookie-modal h2 {
  font-size: 1.26rem;
  color: #49290B;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ECE1D5;
  padding: 10px 12px 10px 18px;
  border-radius: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  color: #49290B;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #BFA97A;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #FFE562;
}
.cookie-toggle:disabled {
  opacity: 0.47;
  background: #ece1d5;
  cursor: not-allowed;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s;
}
.cookie-toggle:checked::before {
  left: 19px;
  background: #49290B;
}
.cookie-category.essential label {
  color: #BFA97A;
}

/* =====================================================
   MICRO-ANIMATIONS & PLAYFUL DECORATIONS
===================================================== */
a, button, .card, .testimonial-card, .cookie-btn, .mobile-nav a, .social-links a {
  transition-property: background, color, box-shadow, border, transform;
  transition-duration: 0.13s, 0.15s, 0.17s, 0.18s, 0.19s;
  transition-timing-function: cubic-bezier(.53,1.56,.66,1.19);
}

.card::before {
  content: '';
  display: block;
  position: absolute;
  top: -24px; right: -24px;
  width: 48px; height: 48px;
  background: #FFE562;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(191,169,122,0.12);
  animation: playful-bounce 2.5s infinite both alternate-reverse cubic-bezier(.72,1.68,.48,1.14);
}
@keyframes playful-bounce {
  0% { transform: scale(.98) translateY(0) rotate(0deg); }
  22% { transform: scale(1.06) translateY(-8px) rotate(-13deg); }
  51% { transform: scale(1.03) translateY(4px) rotate(6deg); }
  100% { transform: scale(0.9) translateY(0px) rotate(7deg); }
}

.cta-primary::after {
  content: url('../assets/favicon.svg');
  display: inline-block;
  height: 18px;
  width: auto;
  margin-left: 6px;
  vertical-align: middle;
  animation: icon-pop .9s 1 cubic-bezier(.7,1.79,.33,1.16);
}
@keyframes icon-pop {
  0% { transform: scale(.5) rotate(-45deg); opacity:0; }
  80% { transform: scale(1.3) rotate(23deg); opacity:1; }
  100% { transform: scale(1) rotate(0deg); opacity:1; }
}

/* =====================================================
   RESPONSIVENESS & MOBILE FIRST
===================================================== */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 18px 0;
    gap: 14px;
  }
  .section {
    padding: 20px 8px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
  .hero {
    padding: 30px 0 16px 0;
    border-radius: 10px;
    min-height: 170px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 15px 11px;
    margin-bottom: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.93rem;
    border-radius: 14px;
    padding: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .social-links {
    gap: 12px;
    margin: 10px 0;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 530px) {
  body, html {
    font-size: 14px;
  }
  .container {
    padding: 0 6px;
  }
  header .container {
    padding-right: 4px;
    padding-left: 4px;
  }
  .hero {
    padding: 15px 0 7px 0;
  }
  .main-nav a, .footer-nav a {
    font-size: 0.87rem;
    padding: 5px 13px;
  }
  .cta-primary, .cta-secondary {
    padding: 8px 13px;
    font-size: .96rem;
  }
}

/* Utility spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 28px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 28px; }

/* =====================================================
   Z-INDEX LAYERING
===================================================== */
header { z-index: 200; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 21000; }
.cookie-modal-overlay { z-index: 22000; }

/* =====================================================
   PRINT STYLES (Optional minor reset)
===================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body, main, section, .container, .content-wrapper {
    background: #fff !important;
    color: #49290B;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* =====================================================
   END
===================================================== */
