/* -----------------------------------------------------
   RESET & NORMALIZE (MOBILE FIRST) 
----------------------------------------------------- */
* { box-sizing: border-box; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #FAF8F6;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: #394940;
  background: #FAF8F6;
  min-height: 100vh;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #4A6052;
  margin-top: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #FFF7, 0 2px 6px #E9E0D822;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
p, ul, ol, li { font-size: 1rem; line-height: 1.8; color: #394940; }
ul, ol { padding-left: 20px; }
a {
  color: #44695D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A3C1AD;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
strong {
  color: #4A6052;
  font-weight: 700;
}

/* -----------------------------------------------------
   BRAND COLORS & ACCENTS (PLAYFUL_DYNAMIC)
----------------------------------------------------- */
:root {
  --brand-primary: #4A6052;
  --brand-secondary: #E9E0D8;
  --brand-accent: #A3C1AD;
  --brand-highlight: #FFD662;
  --brand-magenta: #E95BF4;
  --brand-coral: #FF847C;
  --brand-powder: #DFFFE2;
  --brand-contrast: #fff;
}

/* -----------------------------------------------------
   CONTAINER & SECTION LAYOUTS (FLEXBOX ONLY)
----------------------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-secondary);
  border-radius: 28px;
  box-shadow: 0 2px 16px 0 #87B09E22;
  position: relative;
  transition: background 0.25s;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px #A3C1AD22, 0 4px 32px #87B09E10;
  margin-bottom: 20px;
  position: relative;
  padding: 24px 16px;
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 350px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px) rotate(-1deg) scale(1.03);
  box-shadow: 0 4px 32px #FFD66255, 0 8px 32px #A3C1AD30;
}

.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-left: 8px solid var(--brand-accent);
  border-radius: 24px;
  box-shadow: 0 3px 18px #A3C1AD22;
  margin-bottom: 20px;
  color: #394940;
  font-family: 'Lato', Arial, sans-serif;
}
.testimonial-card p {
  color: #394940;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #4A6052;
  opacity: 0.85;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
}

/* Footer Sections */
footer {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  padding: 40px 0 0 0;
  font-size: 1rem;
  border-top: 5px solid var(--brand-accent);
}
.footer-logo {
  margin-bottom: 20px;
}
.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #FFD662;
}

.newsletter-signup {
  padding: 24px 0 32px 0;
}
.newsletter-signup strong {
  color: var(--brand-highlight);
}

/* -----------------------------------------------------
   HEADER & NAVIGATION (FLEXBOX + BURGER MENU)
----------------------------------------------------- */
header {
  background-color: var(--brand-secondary);
  box-shadow: 0 4px 24px #A3C1AD22;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 10px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}
.desktop-nav a {
  color: var(--brand-primary);
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.desktop-nav a:hover {
  background: var(--brand-accent);
  color: #fff;
}

/* Burger Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: none;
  border-radius: 9px;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  box-shadow: 0 2px 8px #A3C1AD40;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1202;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-highlight);
}
.mobile-menu-toggle:hover {
  background: var(--brand-magenta);
  color: #fff;
}

/* BURGER NAVIGATION (OFFCANVAS) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88vw;
  max-width: 420px;
  min-width: 220px;
  background: var(--brand-secondary);
  box-shadow: -6px 0 28px #39494033;
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(.75,-0.03,0,1.15);
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-coral);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 32px;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 14px 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.17s;
  background: none;
  text-align: left;
}
.mobile-nav a:hover {
  background: var(--brand-accent);
  color: #fff;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Overlay when menu is open (optional, can be .mobile-menu-backdrop) */
.mobile-menu-backdrop {
  content: "";
  position: fixed;
  z-index: 1199;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #0006;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu.open ~ .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: all;
}

/* -----------------------------------------------------
   HERO SECTION & CALLS TO ACTION (DYNAMIC, PLAYFUL)
----------------------------------------------------- */
.hero {
  background: linear-gradient(90deg, #A3C1AD 25%, #FFD662 80%, #E95BF4 100%);
  padding: 50px 0 60px 0;
  margin-bottom: 44px;
  border-radius: 0 0 64px 64px;
  box-shadow: 0 7px 32px #FFD66260, 0 10px 72px #A3C1AD25;
  position: relative;
  min-height: 290px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
  text-shadow: 1px 3px 18px #4A6052AA, 0 2px #FFD662;
  font-size: 2.9rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.22rem;
  color: #4A6052;
  margin-bottom: 22px;
  line-height: 1.6;
  background: #fff9;
  padding: 8px 15px;
  border-radius: 14px;
  font-weight: 600;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  border-radius: 19px;
  padding: 13px 33px;
  border: none;
  background: var(--brand-magenta);
  color: #fff;
  box-shadow: 0 2px 14px #FFD66244, 0 6px 32px #87B09E33;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  outline: none;
  transition: background 0.16s, transform 0.23s, box-shadow 0.2s;
  position: relative;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--brand-magenta);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-highlight);
  color: var(--brand-primary);
  box-shadow: 0 8px 32px #FFD66266;
}
/* Accessibility: Remove rings for clickers/keep for keyboard nav */
.btn:focus {
  outline: 2px solid var(--brand-coral);
  outline-offset: 1px;
}

/* -----------------------------------------------------
   CARD/LIST STYLES (FEATURES, SERVICES, BENEFITS)
----------------------------------------------------- */
ul {
  margin: 0 0 8px 0;
}
ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-coral);
  position: absolute;
  left: 0;
  top: 9px;
  box-shadow: 1px 2px 8px #FFC30099;
}

/* Features/Benefits special marker */
.section ul li strong {
  background: var(--brand-powder);
  padding: 0 5px;
  border-radius: 6px;
  color: var(--brand-magenta);
}

/* -----------------------------------------------------
   FORMS (NEWSLETTER, INPUTS)
----------------------------------------------------- */
input, textarea {
  border-radius: 10px;
  border: 1.8px solid var(--brand-accent);
  padding: 11px 14px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.05rem;
  background: #fff;
  color: #394940;
  width: 100%;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--brand-magenta);
}

/* -----------------------------------------------------
   ANIMATIONS & MICRO-INTERACTIONS (SOFT BOUNCE, FADE)
----------------------------------------------------- */
@keyframes playful-bounce-in {
  0% { opacity: 0; transform: translateY(40px) scale(0.95) rotate(-2.5deg); }
  60% { opacity: 1; transform: translateY(-7px) scale(1.03) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1.00) rotate(0); }
}
@keyframes playful-pop {
  0% { transform: scale(0.93); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.section, .hero, .card, .testimonial-card, .btn {
  animation: playful-bounce-in 0.75s cubic-bezier(.61,.03,.51,1.19) both;
  animation-delay: 0.08s;
}
.btn {
  animation: playful-pop 0.4s cubic-bezier(.61,.03,.51,1.19) both;
  animation-delay: 0.18s;
}

/* -----------------------------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST) 
----------------------------------------------------- */
@media (max-width: 768px) {
  .container { padding: 0 7vw; }
  .section {
    padding: 28px 7vw;
    margin-bottom: 42px;
    border-radius: 18px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border-radius: 15px;
  }
  .footer-links nav {
    gap: 10px;
  }
  .hero {
    border-radius: 0 0 32px 32px;
    min-height: 170px;
    padding: 35px 0 36px 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
}

@media (max-width: 545px) {
  .container { padding: 0 5vw; }
  .hero { min-height: 120px; padding: 16px 0 26px 0; }
  h1 { font-size: 1.22rem; }
  .card {
    min-width: 80vw;
    padding: 16px 8px;
    font-size: 1rem;
  }
}

/* -----------------------------------------------------
   COOKIE CONSENT BANNER (FIXED, ANIMATED)
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-highlight);
  color: #394940;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2140;
  width: 100vw;
  padding: 15px 9vw 15px 9vw;
  box-shadow: 0 -3px 22px #FFD66233;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-size: 1.03rem;
  animation: playful-bounce-in 0.54s cubic-bezier(.61,.03,.51,1.19) both;
  gap: 13px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 26px;
  font-size: 1rem;
  border-radius: 16px;
  border: none;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, transform 0.13s;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 2px 7px #A3C1AD28;
}
.cookie-btn:hover {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn.accept {
  background: var(--brand-magenta);
  color: #fff;
}
.cookie-btn.accept:hover { background: var(--brand-highlight); color: #394940; }
.cookie-btn.reject {
  background: var(--brand-coral);
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #fff;
  color: var(--brand-coral);
}
.cookie-btn.settings {
  background: var(--brand-highlight);
  color: #394940;
}
.cookie-btn.settings:hover {
  background: #fff;
  color: var(--brand-highlight);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2222;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #0007;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.3s;
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 52px #A3C1AD44, 0 1.5px 6px #FFD66233;
  min-width: 90vw;
  max-width: 380px;
  padding: 34px 24px 17px 24px;
  color: #394940;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: playful-pop 0.36s cubic-bezier(.61,.03,.51,1.19) both;
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-top: 0;
  color: var(--brand-magenta);
  margin-bottom: 8px;
}
.cookie-modal .modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  margin: 8px 0;
}
.cookie-modal-toggle {
  width: 40px; height: 22px; position: relative; display: inline-block;
}
.cookie-modal-toggle input {
  opacity: 0; width: 0; height: 0;
}

/* Toggle Switch */
.cookie-modal-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brand-accent);
  border-radius: 16px;
  transition: background 0.16s;
}
.cookie-modal-toggle input:checked + .cookie-modal-slider {
  background: var(--brand-magenta);
}
.cookie-modal-slider:before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: var(--brand-secondary);
  border-radius: 50%;
  transition: transform 0.23s;
}
.cookie-modal-toggle input:checked + .cookie-modal-slider:before {
  transform: translateX(18px);
}
.cookie-modal .essential[disabled] {
  opacity: 0.7; cursor: not-allowed;
}
/* Modal close button */
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.18rem;
  color: var(--brand-primary);
  align-self: flex-end;
  margin-bottom: -10px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover { background: var(--brand-magenta); color: #fff; }

/* -----------------------------------------------------
   CUSTOM TYPOGRAPHY - FONT LOADING
----------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@400;700;900&display=swap');

body, html {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #FAF8F6;
}
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #394940;
  margin-bottom: 0.3em;
}

/* -----------------------------------------------------
   SPACING PATTERNS (MANDATORY CLASSES) + OVERRIDES
----------------------------------------------------- */
.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; }

/* Ensure no overlapping */
.card, .card-container, .section, .testimonial-card, .feature-item {
  margin-bottom: 20px !important;
}
.section:last-child, .card-container:last-child, .testimonial-card:last-child { margin-bottom: 0 !important; }

/* -----------------------------------------------------
   Z-INDEX STACKING (MAIN STRUCTURAL)
----------------------------------------------------- */
header { z-index: 50; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 2140; }

/* -----------------------------------------------------
   VISUAL ACCENTS: BADGES, SPECIAL MARKERS, ETC.
----------------------------------------------------- */
.badge, .label-special {
  display: inline-block;
  background: var(--brand-highlight);
  color: var(--brand-primary);
  font-weight: bold;
  border-radius: 10px;
  padding: 2px 13px;
  font-size: 0.97rem;
  margin-left: 8px;
  box-shadow: 0 1px 4px #FFD66250;
}

/* -----------------------------------------------------
   MISC: Hide/show sections on specific breakpoints
----------------------------------------------------- */
@media (max-width: 499px) {
  .footer-logo,
  .footer-links nav a {
    font-size: 0.95rem;
  }
  .newsletter-signup strong {
    font-size: 1rem;
  }
}
