/* Fantasia Route "playful_dynamic" CSS – Responsive, Flexbox-only, Animated, Accessible */

/* === 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, 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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F3E3;
  color: #2A324B;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}

/* === Brand CSS Variables (fallbacks provided) === */
:root {
  --color-primary: #3B836F;
  --color-secondary: #F6F3E3;
  --color-accent: #CE7237;
  --color-dark: #21624D;
  --color-white: #fff;
  --color-black: #18181A;
  --color-grey: #E5E5E5;
  --color-contrast: #2A324B;

  --font-display: 'Montserrat', 'Comic Sans MS', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 5px 20px rgba(60, 130, 80, 0.11);
  --shadow-fun: 0 8px 32px rgba(206, 114, 55, 0.13);
  --transition: 0.25s cubic-bezier(0.6,0.3,0.4,1);
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 1px 3px 0 var(--color-accent), 0 0 4px rgba(206,114,55,0.07);
}
h2 {
  font-size: 2rem;
  font-weight: 800;
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
h4 {
  font-size: 1.15rem;
  font-weight: 700;
}
p, ul li, ol li, address {
  font-family: var(--font-body);
  font-size: 1.16rem;
  margin-bottom: 12px;
}
strong, b {
  color: var(--color-accent);
}
.text-section {
  margin-bottom: 24px;
}

/* === Layout Containers & Mandatory Patterns === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-fun);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(59,131,111,0.14);
  transform: translateY(-8px) scale(1.02) 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: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(59,131,111,0.10);
  margin-bottom: 20px;
  min-height: 84px;
  font-size: 1.1rem;
  color: var(--color-black);
  position: relative;
  border-left: 6px solid var(--color-accent);
}
.testimonial-card p {
  flex: 1;
  margin-bottom: 0;
  color: var(--color-contrast);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.11rem;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-primary);
}

/* Features List Styling (both ul/ol variants) */
.feature-item, .content-wrapper ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.content-wrapper ul img, .feature-item img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 4px;
  animation: pop 0.7s cubic-bezier(0.5,1.6,0.7,0.7) 1;
}
@keyframes pop {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  80% { transform: scale(1.1) rotate(7deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.content-wrapper ul li:hover, .feature-item:hover {
  box-shadow: 0 12px 25px -4px rgba(206,114,55,0.17);
  transform: translateY(-3px) scale(1.012) rotate(1deg);
}

/* === Header & Navigation === */
header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
header > a img {
  height: 48px;
  margin: 16px 20px 12px 12px;
  vertical-align: middle;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(206,114,55,0.24);
  background: var(--color-white);
  padding: 2px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px 0;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
  font-size: 1rem;
  margin-right: 2px;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 13px 25px;
  box-shadow: 0 6px 24px -6px rgba(206,114,55,0.18);
  font-size: 1.1rem;
  margin: 8px 10px 8px 20px;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  outline: none;
}
.cta-primary:after {
  content: '';
  display: block;
  background: var(--color-white);
  opacity: 0.24;
  width: 60%;
  height: 4px;
  border-radius: 2px;
  position: absolute;
  left: 20%;
  bottom: 7px;
  pointer-events: none;
  filter: blur(2px);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  outline: 2px solid var(--color-accent);
}
.cta-secondary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 5px 20px -8px var(--color-primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(2deg) scale(1.04);
  outline: 1.5px dashed var(--color-primary);
}

/* Header Flexbox Layout – Desktop */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
header > nav {
  flex: 1;
  min-width: 240px;
}
header .mobile-menu-toggle {
  display: none;
}

/* === Footer === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 0 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 26px;
}
footer > .content-wrapper > nav {
  display: flex;
  gap: 14px;
}
footer a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: text-shadow 0.13s, color var(--transition);
}
footer a:hover, footer a:focus {
  text-shadow: 0 4px 16px var(--color-accent);
  color: var(--color-accent);
}
footer img {
  height: 36px;
  margin-top: 0;
}
footer address {
  font-style: normal;
  color: #e2f9ea;
  font-size: 0.99rem;
}
footer div {
  font-size: 0.95rem;
  margin-top: 10px;
  color: #ffeedd;
}

/* === Section Spacing Patterns === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section .container {
  width: 100%;
}

/* === UL/OL Resets for feature lists/testimonials === */
.content-wrapper ul, .text-section ul {
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.content-wrapper ul li, .text-section ul li {
  flex: 1 1 260px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 13px 13px 10px;
  font-size: 1rem;
  color: var(--color-contrast);
  margin-bottom: 20px;
}

/* === Responsive Design – Mobile-first === */
@media (max-width: 992px) {
  .content-wrapper {
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 28px 7px 28px 7px;
  }

  .content-wrapper, .footer .content-wrapper {
    gap: 12px;
    padding: 0 2px 0 2px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 10px;
    min-height: 60px;
  }
  .feature-item, .content-wrapper ul li {
    min-width: 160px;
    padding: 10px 8px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.05rem;
  }

  /* Header mobile layout */
  header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 0;
  }
  header > nav {
    display: none;
  }
  .cta-primary {
    margin: 4px 6px 4px 8px;
    padding: 10px 14px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-block !important;
    font-size: 2.2rem;
    color: #fff;
    background: none;
    border: none;
    padding: 6px 14px;
    margin-left: auto;
    z-index: 120;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--color-accent);
    outline: 2px solid #fff;
  }
}

@media (max-width: 480px) {
  .footer .content-wrapper {
    gap: 10px;
    flex-direction: column;
  }
  .section {
    padding: 12px 0;
  }
  h1 {
    font-size: 1.35rem;
  }
}

/* === FUN Typography Accents === */
h1, h2, h3 {
  text-shadow: 1px 2px 0 #FFE0B3, 0 2px 24px rgba(206, 114, 55, 0.09);
}

/* === Micro-interactions & Transitions === */
a, button, .cta-primary, .cta-secondary {
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* === Micro-Animation on Cards === */
.card, .feature-item, .content-wrapper ul li {
  transition: box-shadow 0.22s cubic-bezier(0.55,0.38,0.21,0.91), transform 0.19s cubic-bezier(0.42,0.65,0.78,0.08);
}
.card:hover, .feature-item:hover, .content-wrapper ul li:hover {
  box-shadow: 0 16px 40px -6px rgba(59,131,111,0.16);
  transform: translateY(-3px) scale(1.009) rotate(-1deg);
}

/* === Mobile Burger Menu === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  margin-left: 12px;
  cursor: pointer;
  z-index: 140;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-primary);
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(0.57,0.05,0.22,1), opacity 0.3s;
  box-shadow: 4px 0 24px -2px rgba(59,131,111,0.12);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  margin: 20px 28px 0 0;
  padding: 0;
  cursor: pointer;
  z-index: 999;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 38px 18px 38px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  color: var(--color-primary);
  font-size: 1.26rem;
  font-family: var(--font-display);
  font-weight: 700;
  opacity: 0.97;
  padding: 10px 0;
  border-radius: 10px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-block;
  }
  .mobile-menu {
    display: flex;
  }
}

/* === Cookie Consent Banner === */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: #fff;
  z-index: 2222;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -4px 38px rgba(59,131,111,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: transform 0.35s, opacity 0.3s;
  font-size: 1.09rem;
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
#cookie-banner button {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
  padding: 9px 17px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
#cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: #257E69;
  transform: translateY(-1px);
}
#cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: #fff4ea;
  color: var(--color-accent);
}
#cookie-banner .settings {
  background: none;
  color: #fff;
  text-decoration: underline;
}
#cookie-banner .settings:hover, #cookie-banner .settings:focus {
  color: #ffe;
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: 0.97rem;
  }
  #cookie-banner .cookie-buttons {
    gap: 8px;
  }
}

/* === Cookie Modal === */
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(59,131,111, 0.29);
  z-index: 2333;
  min-height: 100vh;
  transition: opacity 0.28s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 24px 26px 24px;
  box-shadow: 0 8px 52px rgba(206,114,55,0.17);
  min-width: 300px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalShow 0.32s cubic-bezier(0.7,0.2,0.5,1.4);
  max-width: 98vw;
}
@keyframes cookieModalShow {
  0% { transform: scale(0.82) translateY(40px); opacity: 0; }
  60% { transform: scale(1.04) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--color-accent);
  margin-bottom: 8px;
  font-size: 1.37rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.07rem;
}
.cookie-toggle-switch {
  width: 40px;
  height: 22px;
  background: #e5e5e5;
  border-radius: 11px;
  position: relative;
  transition: background 0.11s;
  margin-left: 9px;
  cursor: pointer;
}
.cookie-toggle-switch input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: transform 0.18s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: var(--color-accent);
  transform: translateX(18px);
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
}
#cookie-modal .close {
  background: none;
  color: var(--color-primary);
  font-size: 1.4rem;
  align-self: flex-end;
  border: none;
  cursor: pointer;
  margin-bottom: 4px;
}
#cookie-modal .close:hover, #cookie-modal .close:focus {
  color: var(--color-accent);
  outline: none;
  text-shadow: 0 2px 10px #e2b097;
}
@media (max-width: 430px) {
  .cookie-modal-content {
    padding: 18px 2vw;
    min-width: unset;
    font-size: 0.93rem;
  }
  .cookie-modal-buttons {
    gap: 7px;
  }
}

/* === Accessibility Focus Styles === */
a:focus:not(:hover),
button:focus:not(:hover) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Misc. Cards & Sections === */
.card {
  background: var(--color-white);
  padding: 24px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
}

/* === Smooth Animations for Hero Section === */
section .container, section .content-wrapper > * {
  animation: appearSection 0.7s cubic-bezier(0.25,0.75,0.3,1.3) both;
}
@keyframes appearSection {
  0% { opacity: 0; transform: translateY(32px) scale(0.93) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

/* === Utility: Hide visually but accessible === */
.visually-hidden {
  position: absolute!important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* === Overwrite autofill background === */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #eaffee inset;
  box-shadow: 0 0 0 1000px #eaffee inset !important;
  -webkit-text-fill-color: #333;
}

/* === Prevent content overlap by ensuring min spacing === */
section > *, .content-wrapper > *, .card-container > *, .content-grid > *,
.text-image-section > *, .testimonial-card > *, .feature-item > * {
  margin-bottom: 0;
}

/* === Print Styles (hide nav & cookie) === */
@media print {
  header, .mobile-menu, #cookie-banner, #cookie-modal, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
}

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