/* ========================================================
   CSS Reset & Normalize (mobile-first)
======================================================== */
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;
}
*, *::before, *::after {
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
}
body {
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5DC;
  color: #23483A;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  outline: none;
}
a {
  color: #23483A;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:focus, button:focus {
  outline: 2px dashed #83B67A;
  outline-offset: 2px;
}

/* ========================================================
   Brand Variables (with fallbacks)
======================================================== */
:root {
  --primary: #23483A;
  --secondary: #83B67A;
  --accent: #F5F5DC;
  --bright-1: #FFD95A;
  --bright-2: #FF7A9E;
  --bright-3: #47D5B3;
  --bright-4: #8A99E5;
  --error: #F64C4C;
  --shadow: 0 4px 16px rgba(36, 55, 45, 0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

/* ========================================================
   Global Typography & Headings (playful, energetic)
======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5em;
  color: var(--bright-2);
  text-shadow: 0 2px 5px #fff3;
}
h2 {
  font-size: 2em;
  color: var(--bright-4);
}
h3 {
  font-size: 1.5em;
  color: var(--primary);
}

p, ul, ol, li, blockquote, cite {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1em;
}

ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li {
  margin-bottom: 10px;
  position: relative;
  list-style-type: none;
  padding-left: 1.2em;
}
ul li:before {
  content: '•';
  color: var(--bright-3);
  font-size: 1.25em;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.2;
  font-family: var(--font-display);
}

blockquote {
  font-family: var(--font-display);
  color: var(--bright-2);
  background: #fff6fa;
  border-left: 6px solid var(--bright-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-style: italic;
}
cite {
  display: block;
  color: var(--primary);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ========================================================
   Containers, Sections, and Layouts
======================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: scale(1.025) rotate(-1deg);
  box-shadow: 0 8px 28px rgba(71,213,179,0.12);
}
.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;
  background: #fff;
  border: 2.5px dashed var(--bright-2);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px #ffb1c62a, var(--shadow);
  margin-bottom: 20px;
  padding: 20px;
  min-width: 0;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  border-color: var(--bright-3);
  box-shadow: 0 6px 16px #8a99e562;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing between cards/sections */
section + section {
  margin-top: 36px;
}

/* ========================================================
   Header & Navigation
======================================================== */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 20px #23483a18;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
header img {
  height: 42px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--bright-3);
  color: #23483A;
  transform: translateY(-2px) scale(1.07) rotate(-2deg);
}

/* ========================================================
   Mobile Navigation (Burger Menu)
======================================================== */
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bright-2);
  color: #fff;
  font-size: 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 52px;
  height: 52px;
  box-shadow: 0 3px 10px #ff7a9e28;
  z-index: 60;
  transition: background 0.18s, transform 0.18s;
  margin-left: 16px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--bright-4);
  transform: rotate(8deg) scale(1.12);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 32px #83b67a30;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
  transition: transform 0.3s cubic-bezier(0.65,0,0.35,1), opacity 0.18s;
}
.mobile-menu-close {
  background: var(--error);
  color: #fff;
  font-size: 30px;
  border: none;
  border-radius: 40px;
  width: 46px;
  height: 46px;
  margin: 22px 18px 16px 18px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 5;
  transition: background 0.16s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--bright-2);
  transform: scale(1.15) rotate(6deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 700;
  padding: 16px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bright-1);
  color: var(--bright-2);
  transform: scale(1.07);
}

/* Hide burger menu button and mobile menu on desktop */
@media (min-width: 885px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 884px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ========================================================
   Call-to-Action Button (.cta-button)
======================================================== */
.cta-button {
  font-family: var(--font-display);
  font-size: 1.25em;
  font-weight: 900;
  background: var(--bright-3);
  color: var(--primary);
  padding: 18px 40px;
  padding-top: 10px;
  border: none;
  border-radius: 38px;
  margin-top: 10px;
  box-shadow: 0 4px 18px #47d5b360;
  transition: background 0.21s, color 0.21s, transform 0.14s;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  outline: none;
  min-width: 180px;
  align-self: flex-start;
  animation: ctaPulse 2s infinite cubic-bezier(0.6,0.2,0.4,1);
}
.cta-button:hover, .cta-button:focus {
  background: var(--bright-2);
  color: #fff;
  transform: scale(1.07) rotate(-3deg);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 18px #47d5b335; }
  50% { box-shadow: 0 8px 48px #47d5b335; }
}

/* ========================================================
   Cards, Feature Items, Icons
======================================================== */
.card img {
  height: 60px;
  width: 60px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px #83b67a33;
  background: var(--accent);
  margin-bottom: 14px;
}
.card b {
  color: var(--bright-2); font-weight: 900;
}
.feature-item img {
  height: 36px;
  width: 36px;
  margin-bottom: 6px;
}

/* ========================================================
   Footer
======================================================== */
footer {
  width: 100%;
  background: var(--primary);
  color: #fff;
  margin-top: 80px;
  padding-top: 35px;
  padding-bottom: 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 20px #23483a18;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}
footer nav a {
  color: #fff;
  background: var(--bright-2);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--bright-4);
  color: var(--primary);
}
footer img {
  height: 36px;
  margin-bottom: 8px;
}
footer p {
  margin-top: 8px;
  font-size: 0.97em;
  color: #fff;
  opacity: 0.82;
}

/* ========================================================
   Cookie Consent Banner + Modal
======================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  background: #fff;
  box-shadow: 0 4px 24px #23483a2e;
  padding: 28px 24px 18px 24px;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--bright-3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 430px;
  min-width: 220px;
  animation: bannerSlideUp 0.65s cubic-bezier(0.68,0,0.32,1);
}
@keyframes bannerSlideUp {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1.07em;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1em;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  margin-top: 0px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  background: var(--bright-1);
  color: var(--primary);
  font-weight: 700;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--bright-2);
  color: #fff;
  transform: scale(1.06);
}
.cookie-banner .cookie-settings {
  background: var(--bright-4);
  color: #fff;
}
.cookie-banner .cookie-settings:hover {
  background: var(--bright-3);
  color: var(--primary);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #23483abd;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalfadein 0.25s cubic-bezier(0.5,0,0.3,1);
}
@keyframes modalfadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px #83b67a4a;
  padding: 32px 28px 22px 28px;
  max-width: 430px;
  min-width: 220px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.4em;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--error);
  color: #fff;
  border: none;
  border-radius: 100px;
  width: 36px; height: 36px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--bright-2);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: var(--radius-md);
  background: var(--accent);
  padding: 12px 10px;
  font-size: 1em;
  color: var(--primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--bright-3);
  width: 22px; height: 22px;
}
.cookie-category input[disabled] {
  opacity: 0.7;
  filter: grayscale(0.2);
}
.cookie-category span {
  font-weight: 700;
}
.cookie-modal .cookie-save-btn {
  font-family: var(--font-display);
  font-size: 1.1em;
  padding: 10px 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bright-3);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 18px #47d5b320;
  margin-top: 7px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform .11s;
}
.cookie-modal .cookie-save-btn:hover {
  background: var(--bright-2);
  color: #fff;
  transform: scale(1.04);
}

/* ========================================================
   Misc (Icon Styling & Fun Micro-interactions)
======================================================== */
li img, .feature-item img {
  vertical-align: middle;
  margin-right: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
section ul {
  margin-bottom: 8px;
}

/* Animated underline for section links */
.text-section a, .content-wrapper a:not(.cta-button) {
  position: relative;
  color: var(--bright-4);
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  display: inline-block;
  padding-right: 2px;
  transition: color 0.18s;
}
.text-section a:after, .content-wrapper a:not(.cta-button):after {
  display: block;
  content: '';
  height: 3px;
  width: 100%;
  background: var(--bright-1);
  border-radius: 2px;
  position: absolute;
  left: 0; bottom: -3px;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.text-section a:hover:after, .content-wrapper a:not(.cta-button):hover:after,
.text-section a:focus:after, .content-wrapper a:not(.cta-button):focus:after {
  transform: scaleX(1);
}
.text-section a:hover, .content-wrapper a:not(.cta-button):hover {
  color: var(--bright-2);
}

/* ========================================================
   Responsive: Mobile Layouts and Section Breakpoints
======================================================== */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 14px 8px;
  }
  .section {
    margin-bottom: 42px;
    padding: 30px 7px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 12px;
    font-size: 1em;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .content-wrapper {
    padding-top: 0px;
  }
  .cookie-banner {
    left: 3vw; right: 3vw;
    max-width: 97vw;
    padding: 18px 7px 12px 10px;
  }
  .cookie-modal {
    padding: 18px 6vw 12px 6vw;
    max-width: 98vw;
    min-width: 0;
  }
  footer {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-top: 32px;
    padding-bottom: 14px;
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.4em;
  }
}
@media (max-width: 481px) {
  h1 {
    font-size: 1.25em;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.05em;
    margin-bottom: 5px;
  }
  .card, .testimonial-card, .section {
    padding: 12px 3vw;
    border-radius: var(--radius-sm);
  }
  .cta-button {
    font-size: 1em;
    padding: 12px 16px;
    min-width: 100px;
  }
}

/* ========================================================
   Playful Dynamic Animations & Hover States
======================================================== */
@media (hover: hover) {
  nav a, .content-wrapper a:not(.cta-button), .text-section a {
    transition: background 0.18s, color 0.18s, transform 0.18s, filter 0.13s;
  }
  .card:hover, .testimonial-card:hover {
    filter: brightness(1.04) saturate(1.13) drop-shadow(0 1px 16px #83b67a12);
    cursor: pointer;
  }
}

.card, .testimonial-card, .section, .cookie-banner, .cookie-modal {
  animation: playfulPop .4s cubic-bezier(0.68,-0.35,0.27,1.55);
}
@keyframes playfulPop {
  from { transform: scale(0.97) rotate(-3deg) translateY(24px); opacity: 0.4; }
  70% { transform: scale(1.06) rotate(2deg) translateY(-7px); opacity: 1.1; }
  to { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; }
}

/* Micro-interaction for links */
a:active, .cta-button:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
}

/* ========================================================
   Accessibility Contrast Fix for Testimonial Section
======================================================== */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #222 !important;
  background: #fff !important;
  font-family: var(--font-body);
}
.testimonial-card blockquote {
  color: var(--bright-2) !important;
  background: transparent !important;
}

/* ========================================================
   Z-Index for menus and overlays
======================================================== */
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 9999; }
.cookie-modal-overlay { z-index: 10000; }

/* Hide main menu by default in mobile */
@media (max-width: 884px) {
  header nav {
    display: none !important;
  }
}
