/* --- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #2A2E43;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
a {
  background: transparent;
  text-decoration: none;
  color: #2A2E43;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #BFA5A0;
  outline-offset: 4px;
}
ul, ol {
  list-style: none;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}

/* --- BRAND COLORS & FONTS --- */
:root {
  --color-primary: #2A2E43;
  --color-secondary: #BFA5A0;
  --color-accent: #F3E9E5;
  --color-bright-1: #FFD966;
  --color-bright-2: #61E4B7;
  --color-bright-3: #FF91AC;
  --color-bright-4: #97B8F7;
  --color-shade-1: #FFF8F3;
  --color-dark: #181A24;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- LAYOUT STRUCTURE --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-shade-1);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(248, 88, 153, 0.10);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(251, 188, 5, 0.13);
  padding: 32px 24px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 22px rgba(97, 228, 183, 0.12);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 32px;
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(97, 184, 247, 0.12);
  border: 2.5px dashed var(--color-bright-2);
  max-width: 480px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: var(--color-bright-3);
  box-shadow: 0 8px 28px rgba(255, 145, 172, 0.15);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(191, 165, 160, 0.07);
  margin-bottom: 24px;
  transition: background 0.18s;
}
.feature-item:hover {
  background: var(--color-bright-1);
}

.text-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- HEADINGS & TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-shadow: 0 2px 0px var(--color-accent);
}
h1 { font-size: 2.5rem; color: var(--color-bright-2); }
h2 { font-size: 2rem; color: var(--color-bright-3); }
h3 { font-size: 1.3rem; color: var(--color-bright-4); }
h4 { font-size: 1.1rem; color: var(--color-secondary); }
h5, h6 { font-size: 1rem; color: var(--color-primary); }

p, li, td, th, span {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 1.07rem;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.006em;
}

b, strong {
  font-weight: 700;
  color: var(--color-secondary);
}

/* Fun font touch for playful headings */
h1, h2, h3 {
  font-family: 'Montserrat', var(--font-display), cursive, sans-serif;
}
h1 {
  letter-spacing: 0.06em;
  /* Add a bit of rotation for playfulness */
  transform: rotate(-2deg);
}
h2 {
  transform: rotate(1.2deg);
}
h3 {
  font-style: italic;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(191,165,160,0.07);
  padding: 0;
  z-index: 23;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display), Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-bright-1);
  color: var(--color-dark);
  box-shadow: 0 1px 8px 0 rgba(251, 188, 5, 0.09);
  z-index: 3;
}
header .cta-primary {
  background: var(--color-bright-2);
  color: #fff !important;
  font-size: 1.08rem;
  font-weight: 800;
  border: none;
  border-radius: 25px;
  padding: 8px 28px;
  margin-left: 16px;
  box-shadow: 0 2px 9px rgba(97, 228, 183, 0.24);
  transition: background 0.15s, transform 0.12s, box-shadow 0.17s;
  cursor: pointer;
  letter-spacing: 0.06em;
}
header .cta-primary:hover, header .cta-primary:focus {
  background: var(--color-bright-3);
  color: #fff;
  transform: scale(1.055);
  box-shadow: 0 5px 16px rgba(255, 145, 172, 0.27);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: var(--color-bright-3);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(255,145,172,0.09);
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-bright-2);
  color: var(--color-primary);
  transform: scale(1.11);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(106deg, var(--color-bright-3) 60%, var(--color-bright-1) 100%);
  z-index: 99;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-primary);
  color: var(--color-bright-1);
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(42,46,67,0.09);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-bright-3);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px 30px;
  transition: background 0.22s, color 0.22s, transform 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-bright-2);
  color: #fff;
  transform: scale(1.06);
}

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* --- MAIN SECTIONS --- */
main {
  /* Fun bounce-in effect on main load */
  animation: main-bounce-in 0.8s 0.1s both cubic-bezier(.28,.87,.63,1.23);
}
@keyframes main-bounce-in {
  0% { opacity: 0; transform: scaleY(1.12) translateY(40px); }
  70% { opacity: 1; transform: scaleY(0.98) translateY(-4px); }
  95% { transform: scaleY(1.01) translateY(1px); }
  100% { opacity: 1; transform: scaleY(1) translateY(0); }
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(191, 165, 160, 0.07);
}
th, td {
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-accent);
  text-align: left;
}
th {
  background: var(--color-bright-1);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
}
tr:last-child td {
  border-bottom: none;
}

/* --- BUTTONS & LINKS --- */
.cta-primary, .cta-primary:visited {
  background: var(--color-bright-2);
  color: #fff !important;
  display: inline-block;
  border-radius: 25px;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  box-shadow: 0 2px 9px rgba(97, 228, 183, 0.25);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.14s, transform 0.13s;
  text-align: center;
  margin-top: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-bright-3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 145, 172, 0.19);
  transform: scale(1.043);
}

/* Secondary button (e.g. for cookies) */
.btn-secondary {
  background: var(--color-bright-1);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 22px;
  padding: 12px 28px;
  border: none;
  margin-right: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-bright-2);
  color: #fff;
}

/* --- MICRO-INTERACTIONS / ANIMATIONS --- */
.feature-item, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s, background 0.18s, border-color 0.14s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.022);
}
.cta-primary, .btn-secondary {
  transition: background 0.15s, box-shadow 0.14s, transform 0.13s;
}

/* Fun subtle pulse animation for call-to-action */
.cta-primary {
  animation: cta-pulse 2.8s infinite cubic-bezier(.66,0,.8,1);
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 2px 14px rgba(97, 228, 183, 0.16); }
  50%   { box-shadow: 0 4px 23px rgba(255, 145, 172, 0.24); }
}

/* --- LISTS & ICON LISTS --- */
ul {
  list-style: none;
  gap: 10px;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
}
li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
li img {
  width: 26px;
  height: 26px;
  display: inline-block;
  margin-right: 4px;
  filter: drop-shadow(0 2px 2px rgba(42,46,67,0.06));
}

/* --- TESTIMONIALS --- */
.testimonial-card p {
  font-size: 1.14rem;
  color: var(--color-dark);
  font-style: italic;
  max-width: 360px;
  text-align: center;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-secondary);
}
.testimonial-card div {
  display: flex;
  gap: 7px;
}

.testimonial-card img {
  width: 26px;
  height: 26px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 80px;
  /* playful wavy border effect using SVG might be included in HTML in future */
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-direction: column;
}
footer a {
  color: var(--color-bright-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: var(--color-bright-3);
  text-decoration: underline wavy;
}
.footer-contact {
  font-size: 0.99rem;
  color: var(--color-accent);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  vertical-align: bottom;
  margin-right: 7px;
}
.copyright {
  background: var(--color-secondary);
  color: var(--color-primary);
  text-align: center;
  font-size: 0.98rem;
  padding: 10px 0;
  letter-spacing: 0.04em;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-bright-1);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px rgba(191,165,160,0.10);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cookie-slide-in 0.6s cubic-bezier(.5,1.3,.4,1.01);
  transition: transform 0.3s, opacity 0.3s;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner .btn-secondary {
  margin-right: 0;
  background: var(--color-bright-3);
  color: #fff;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: var(--color-bright-2);
}

.cookie-settings-modal {
  position: fixed;
  left: 50%;
  bottom: 10vh;
  transform: translate(-50%, 0);
  background: #fff;
  padding: 36px 28px 28px 28px;
  border-radius: 22px;
  box-shadow: 0 8px 38px rgba(42,46,67,0.18);
  z-index: 4050;
  min-width: 350px;
  max-width: 95vw;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.37s cubic-bezier(.3,1.4,.7,1.1);
  opacity: 1;
  transition: opacity 0.23s;
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translate(-50%, 44px) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.cookie-settings-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--color-bright-2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-settings-modal h3 {
  margin-bottom: 6px;
  color: var(--color-bright-2);
}
.cookie-settings-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-switch-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Custom toggle style */
.cookie-switch {
  width: 44px; height: 24px;
  border-radius: 22px;
  background: var(--color-bright-1);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-bright-2);
  transition: left 0.18s, background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked + .slider {
  left: 23px;
  background: var(--color-bright-3);
}
.cookie-switch[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
    max-width: 95vw;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 40px;
  }
  .card {
    padding: 24px 15px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
  .content-wrapper {
    padding: 0;
    gap: 13px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 4vw;
    max-width: 99vw;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 3vw;
  }
  .card {
    min-width: 98vw;
    margin-bottom: 18px;
    box-shadow: 0 2px 5px rgba(251, 188, 5, 0.10);
  }
  .content-grid, .card-container { flex-direction: column; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 18px 8vw;
    max-width: 100vw;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 9px;
    align-items: flex-start;
  }
  footer nav {
    flex-direction: row;
    gap: 12px;
  }
}

@media (max-width: 530px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
  .cta-primary, .btn-secondary { font-size: 0.99rem; padding: 10px 20px; }
  .footer-contact, .copyright { font-size: 0.88rem; }
  .cookie-banner { font-size: 0.98rem; flex-direction: column; gap: 12px; align-items: flex-start; }
  .cookie-settings-modal { min-width: 98vw; padding: 18px 7vw; }
}

/* --- PLAYFUL, DYNAMIC DECORATIVE ELEMENTS --- */
.card::before,
.feature-item::before {
  content: '';
  display: block;
  position: absolute;
  top: -20px; left: -20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-bright-3);
  opacity: 0.10;
  z-index: 1;
  pointer-events: none;
  animation: float-bubble 3.0s infinite alternate cubic-bezier(.38,1.3,.42,1);
}
@keyframes float-bubble {
  0% { transform: translateY(0) scale(1) rotate(-6deg); }
  100% { transform: translateY(-9px) scale(1.15) rotate(9deg); }
}
.card::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -14px; right: -18px;
  width: 28px; height: 28px;
  border-radius: 40% 60% 30% 70%/30% 30% 70% 70%;
  background: var(--color-bright-1);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  animation: float-bubble-after 3.6s infinite alternate-reverse cubic-bezier(.28,1.2,.55,1.10);
}
@keyframes float-bubble-after {
  0% { transform: translateY(0) scale(1) rotate(8deg); }
  100% { transform: translateY(11px) scale(1.17) rotate(-5deg); }
}

/* Remove on smallest screens to avoid overlap */
@media (max-width: 530px) {
  .card::before, .card::after, .feature-item::before { display: none !important; }
}

/* --- GENERAL UTILITY --- */
.hidden { display: none !important; }
.show-flex { display: flex !important; }

/* Scrollbar subtle styling */
body::-webkit-scrollbar { width: 10px; background: #F7EDE8; }
body::-webkit-scrollbar-thumb {
  background: var(--color-bright-4);
  border-radius: 10px;
}

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px); /* IE6, IE7 */
  white-space: nowrap; /* added line */
}

/* --- END OF STYLES --- */
