/* RESET & BASE --------------------------------------------------- */
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,
main, 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;
}
body {
  line-height: 1.5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #F5F3ED;
  color: #184C36;
  min-height: 100vh;
  font-size: 16px;
}
section, header, footer, nav, main {
  display: block;
}
a {
  color: #184C36;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A67E4E;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  display: block;
}

/* BRAND COLORS --------------------------------------------------- */
:root {
  --primary: #184C36;
  --secondary: #A67E4E;
  --accent: #F5F3ED;
  --fun-blue: #19B2FF;
  --fun-yellow: #FFF685;
  --fun-pink: #FF5DA1;
  --fun-green: #59E386;
  --fun-orange: #FFB55D;
  --gray-light: #ECECEC;
  --gray-dark: #313131;
  --shadow: 0 4px 18px 0 rgba(24,76,54,0.10);
}

/* CONTAINERS & SPACING ------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* TYPOGRAPHY ----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  letter-spacing: -1px;
  color: #184C36;
  line-height: 1.18;
}
h1 {
  font-size: 2.6rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.15rem;
}
p, ul, ol, li {
  color: #184C36;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong {
  font-weight: 600;
  color: var(--secondary);
}
blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-style: italic;
  background: var(--fun-yellow);
  border-left: 6px solid var(--fun-blue);
  padding: 20px 24px;
  margin-bottom: 12px;
  color: var(--gray-dark);
  border-radius: 14px 28px 18px 14px;
  box-shadow: 0 3px 10px 0 rgba(25,178,255,0.09);
  position: relative;
  transition: background 0.25s;
}
blockquote:hover {
  background: #FFFBBE;
}

/* PLAYFUL DYNAMIC STYLE EXTRAS ----------------------------------- */
body {
  background: var(--accent);
}

h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  height: 8px;
  width: 64px;
  background: var(--fun-blue);
  border-radius: 12px;
  margin: 14px 0 0 0;
  animation: move-bar 1.8s infinite alternate cubic-bezier(.5,.05,.65,1);
}
@keyframes move-bar {
  0% { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(24px) scaleX(1.3); }
}

/* BUTTONS, CTAS --------------------------------------------------- */
.cta-primary, .cta-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: linear-gradient(85deg, var(--fun-blue) 75%, var(--fun-pink) 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 24px;
  box-shadow: 0 6px 24px 0 rgba(25,178,255,0.18);
  cursor: pointer;
  margin-top: 7px;
  margin-bottom: 7px;
  transition: background 0.25s, transform 0.18s, box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(85deg, var(--fun-pink) 70%, var(--fun-blue) 100%);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 28px 0 rgba(255,93,161,0.14);
  text-shadow: 0 2px 8px rgba(25,178,255,0.13);
}
.cta-primary:active {
  transform: scale(0.97) rotate(-1deg);
}

/* PLAYFUL DYNAMIC SHADOWS ----------------------------------------- */
.card, .testimonial-card, table, .cookie-banner, .cookie-modal {
  box-shadow: var(--shadow);
  border-radius: 22px;
}

/* HERO SECTION ----------------------------------------------------- */
.hero {
  background: var(--fun-pink);
  background-image: linear-gradient(112deg, var(--fun-yellow) 60%, var(--fun-pink) 92%);
  border-radius: 0 0 32px 32px;
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 14px;
}
.hero p {
  color: var(--gray-dark);
  font-size: 1.18rem;
}

/* FLEX CONTAINERS ------------------------------------------------- */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div, .card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  min-width: 210px;
  flex: 1 1 260px;
  box-shadow: var(--shadow);
  transition: transform 0.19s, box-shadow 0.22s;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid > div:hover, .card:hover {
  transform: translateY(-7px) rotate(-1.5deg) scale(1.02);
  box-shadow: 0 9px 30px 0 rgba(25,178,255,0.15);
  z-index: 2;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIALS ----------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 20px;
  min-width: 240px;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px 0 rgba(25,178,255,0.13);
  transform: scale(1.04) rotate(-1deg);
}
.testimonial-meta {
  font-size: 0.99rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--fun-pink);
  font-weight: 700;
  margin-left: 18px;
}
.testimonial-card blockquote {
  color: var(--gray-dark);
  background: var(--fun-yellow);
  font-size: 1.02rem;
}

/* CTA BANNER ------------------------------------------------------- */
.cta-banner {
  background: var(--fun-green);
  color: var(--primary);
  border-radius: 32px;
  margin: 40px 0 0 0;
  padding: 44px 0;
  text-align: center;
  filter: drop-shadow(0 6px 26px rgba(89,227,134,0.13));
  position: relative;
}
.cta-banner h2 {
  color: var(--primary);
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--primary);
  font-size: 1.11rem;
}

/* TABLES ----------------------------------------------------------- */
table {
  border-spacing: 0;
  width: 100%;
  background: #fff;
  margin: 22px 0;
  font-size: 1rem;
  box-shadow: var(--shadow);
  border-radius: 15px;
  overflow: hidden;
}
table th, table td {
  padding: 15px 18px;
  text-align: left;
}
table th {
  background: var(--fun-blue);
  color: #fff;
  font-weight: bold;
}
table tr:nth-child(even) td {
  background: #F1FAFD;
}
table tr:nth-child(odd) td {
  background: #fff;
}

/* NAVIGATION ------------------------------------------------------ */
header {
  background: #fff;
  border-bottom: 4px solid var(--fun-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 20px;
}
header img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.14s, color 0.15s;
  color: var(--primary);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--fun-blue);
  color: #fff;
  text-decoration: none;
}
.main-nav .cta-primary {
  margin-left: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--fun-yellow);
  border: none;
  font-size: 2.35rem;
  color: var(--primary);
  border-radius: 40%;
  padding: 7px 15px 5px 15px;
  cursor: pointer;
  transition: background 0.23s, transform 0.19s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--fun-blue);
  color: #fff;
  transform: scale(1.08);
}

/* MOBILE MENU ----------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #fff;
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.87,-0.41,.19,1.34);
  box-shadow: 0 4px 60px 0 rgba(25,178,255,0.13);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--fun-pink);
  color: #fff;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin: 25px 28px 0 0;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.16s, transform 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--fun-blue);
  transform: scale(1.07) rotate(-5deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 18px;
  color: var(--primary);
  padding: 13px 0;
  transition: background 0.15s, color 0.17s;
  width: fit-content;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--fun-yellow);
  color: var(--fun-pink);
}

/* FOOTER ---------------------------------------------------------- */
footer {
  background: #fff;
  border-top: 4px solid var(--fun-blue);
  padding: 32px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer img {
  width: 70px;
  height: auto;
  margin-right: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--fun-pink);
}
.footer-contact {
  font-size: 0.98rem;
}
.footer-contact a {
  color: var(--primary);
  font-weight: 600;
}
footer p {
  color: var(--gray-dark);
  margin-bottom: 3px;
}

/* SECTION SPACING ------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX WRAP RULES EXAMPLE ------------------------------------------ */
@media (max-width: 900px) {
  .container { padding: 0 12px; }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    min-height: 200px;
    border-radius: 0 0 22px 22px;
    padding: 38px 0;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .cta-banner {
    padding: 28px 0;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .footer-nav { min-width: 130px; }
}

/* LISTS ----------------------------------------------------------- */
ul, ol {
  margin-bottom: 14px;
}
li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 1rem;
}
ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--fun-blue);
  font-size: 1.2em;
  line-height: 1;
}
ol li::before {
  display: none;
}

/* FORMS (if any) -------------------------------------------------- */
input, textarea, select, button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  padding: 11px 18px;
  margin-bottom: 10px;
  background: #fff;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--fun-blue);
  outline: none;
}
button {
  cursor: pointer;
  background: var(--fun-orange);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 18px;
  padding: 12px 26px;
  transition: background 0.14s;
  margin: 5px 0;
}
button:hover, button:focus {
  background: var(--fun-pink);
}

/* COOKIE CONSENT BANNER ------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 4000;
  background: #fff;
  color: var(--primary);
  border-top: 4px solid var(--fun-pink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 19px 24px;
  gap: 18px;
  box-shadow: 0 -2px 18px 0 rgba(25,178,255,0.10);
  animation: slideUp 0.64s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes slideUp { from { transform: translateY(100%);} to { transform: translateY(0); } }
.cookie-banner p {
  flex: 2 1 280px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  padding: 11px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept {
  background: var(--fun-green);
  color: var(--primary);
}
.cookie-banner .cookie-btn.accept:hover,
.cookie-banner .cookie-btn.accept:focus {
  background: var(--fun-blue);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--fun-pink);
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: var(--fun-orange);
}
.cookie-banner .cookie-btn.settings {
  background: var(--fun-yellow);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: var(--fun-blue);
  color: #fff;
}

/* COOKIE MODAL ---------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5000;
  width: 92vw;
  max-width: 420px;
  background: #fff;
  transform: translate(-50%, -55%) scale(1);
  border-radius: 20px;
  box-shadow: 0 12px 88px 0 rgba(25,178,255,0.17);
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  animation: popIn .28s cubic-bezier(.37,1.61,.35,.98) both;
}
.cookie-modal[hidden] {
  display: none;
  opacity: 0;
}
@keyframes popIn { 0%{ transform: translate(-50%, 100%) scale(0.85); opacity: 0;} 100%{ transform: translate(-50%, -55%) scale(1); opacity:1; } }
.cookie-modal h2 {
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--fun-blue);
  width: 19px;
  height: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 20px; top: 22px;
  background: var(--fun-pink);
  color: #fff;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.15s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--fun-blue);
  transform: scale(1.10);
}

/* ERROR/SUCCESS/ALERT MESSAGES (if any) --------------------------- */
.alert {
  background: var(--fun-yellow);
  color: var(--primary);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 13px;
  box-shadow: 0 1px 10px 0 rgba(255,246,133,0.14);
}
.success {
  background: var(--fun-green);
  color: var(--primary);
}

/* MISCELLANEOUS ANIMATIONS/ICONS --------------------------------- */
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 44px;
  }
  .feature-grid {
    flex-direction: row;
  }
}

/* Hide native scroll on mobile menu open for better experience */
body.menu-open {
  overflow: hidden;
}

/* SPACING CONSISTENCY -------------------------------------------- */
.card:not(:last-child),
.testimonial-card:not(:last-child),
.feature-grid > div:not(:last-child) {
  margin-bottom: 20px;
}
section:not(:last-child) {
  margin-bottom: 60px;
}

/* PREVENT OVERLAPS ----------------------------------------------- */
section, .card, .testimonials, .testimonial-card, .feature-grid > div {
  box-sizing: border-box;
}

/* PRINT-FRIENDLY (optional) -------------------------------------- */
@media print {
  header, footer, .cta-banner, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; border-radius: 0 !important; background: #fff !important; }
}
