/* === 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;
}

html {
  scroll-behavior: smooth;
  background: #EEF5F9;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #223B53;
  background: #EEF5F9;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
a {
  color: #2174c7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F88409;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}

/* === VARIABLE SPRINGY COLORS === */
:root {
  --brand-primary: #223B53;
  --brand-secondary: #85A3B2;
  --brand-accent: #EEF5F9;
  --brand-pop: #FFCC29; /* playful yellow */
  --brand-fun: #F88409; /* energetic orange */
  --brand-vivid: #09C6F8; /* highlight blue */
  --brand-pink: #FF3981; /* bonus playful pink */
}

/* === TYPOGRAPHY (PLAYFUL DYNAMIC) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 2px 6px rgba(9,198,248,0.08);
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: var(--brand-fun);
}
h3 {
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
strong {
  color: var(--brand-vivid);
}
p, li {
  font-size: 1rem;
  color: #223B53;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* SECTION AND CONTAINER SPACING (MANDATORY) */
.section {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  box-shadow: 0 4px 20px 0 rgba(33,116,199,0.06);
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

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

/* ========= HEADER ========= */
header {
  background: #fff;
  box-shadow: 0 6px 18px rgba(33,59,83,0.04);
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 24px;
  transition: transform 0.18s;
}
.brand-logo:hover {
  transform: scale(1.07) rotate(-4deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 1.05rem;
  color: var(--brand-primary);
  padding: 8px 12px;
  border-radius: 14px;
  transition: background .18s, color .15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  background: var(--brand-fun);
  text-decoration: none;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--brand-pop);
  color: var(--brand-primary);
  padding: 11px 32px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  outline: none;
  margin-left: 20px;
  box-shadow: 0 4px 18px rgba(255,204,41,0.12);
  transition: background .17s, color .14s, box-shadow .2s;
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--brand-fun);
  color: #fff;
  box-shadow: 0 6px 26px rgba(248,132,9,0.25);
  transform: scale(1.04) rotate(-2deg);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--brand-fun);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: 16px;
  transition: color 0.15s, transform 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  color: var(--brand-pink);
}

/* ======== HERO SECTION ======== */
.hero {
  padding: 0;
  background: linear-gradient(87deg, #EEF5F9 56%, #FFCC29 100%);
  border-radius: 0 0 42px 42px;
  margin-bottom: 36px;
  box-shadow: 0 10px 28px 0 rgba(248,132,9,0.07);
}
.hero .container {
  padding: 58px 18px 48px 18px;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 18px;
}
.hero h1 {
  color: var(--brand-fun);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.7rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 15px rgba(255,204,41,0.1);
}
.hero p {
  color: var(--brand-primary);
  font-size: 1.1rem;
  max-width: 500px;
}

/* ==== FEATURES / CARDS / GRIDS ==== */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 26px 0 rgba(33,59,83,0.07);
}
.feature-grid, .feature-container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 20px;
}
.feature-grid > div {
  background: var(--brand-accent);
  border-radius: 22px;
  box-shadow: 0 2px 15px 0 rgba(33,116,199,0.07);
  padding: 28px 20px 22px 20px;
  min-width: 250px;
  max-width: 298px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .13s, transform .18s, background .19s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px 4px rgba(33,116,199,0.13);
  background: #fffbe9;
  transform: scale(1.04) rotate(-1deg);
}
.feature-grid h3 {
  color: var(--brand-fun);
  font-weight: 700;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 8px #09c6f815);
  animation: swing 2.2s infinite ease-in-out;
}
@keyframes swing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(7deg); }
}

/* === CARD CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px 0 rgba(255,51,129,0.04);
  position: relative;
  padding: 22px 18px;
  transition: transform .18s, box-shadow .15s, background .17s;
}
.card:hover {
  transform: scale(1.017) rotate(-2deg);
  background: #FFFAEA;
  box-shadow: 0 6px 38px 0 rgba(255,204,41,0.19);
}

/* == TESTIMONIALS == */
.testimonials {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 20px 0 rgba(255,51,129,0.07);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 20px;
  margin-bottom: 22px;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(34,59,83,0.08);
  transition: box-shadow .12s, transform .15s;
  border-left: 7px solid var(--brand-pop);
  max-width: 600px;
  color: #223B53;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-fun);
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #223B53;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(255,204,41,0.14);
  transform: scale(1.02); 
  border-left: 7px solid var(--brand-fun);
}

/* === ABOUT / INFO / CONTACT === */
.about, .contact, .services, .footer {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(9,198,248,0.06);
}
.about ul, .contact ul, .services ul {
  margin: 16px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--brand-secondary);
}
.about ul li:before, .services ul li:before {
  content: '★';
  color: var(--brand-vivid);
  margin-right: 8px;
  font-size: 0.95em;
  font-family: 'Montserrat', Arial, sans-serif;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08em;
  color: var(--brand-primary);
}
.contact ul img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

/* === BUTTONS === */
button, .cta-btn {
  cursor: pointer;
  user-select: none;
  transition: background .13s, box-shadow .14s, color .14s, transform .14s;
}
button:active {
  transform: scale(0.97);
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  padding: 35px 0 20px 0;
  margin-top: 60px;
  box-shadow: 0 -3px 24px 0 rgba(34,59,83,0.06);
}
footer .container {
  gap: 28px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-logo {
  flex: 1 1 132px;
  margin-right: 16px;
}
.footer-logo img {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 3px 8px #09c6f815);
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--brand-secondary);
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .15s, background .17s;
  padding: 5px 0 5px 0;
  border-radius: 10px;
}
.footer-links a:hover {
  color: var(--brand-pink);
  background: #ffcc2944;
}
.footer-contact {
  flex: 2 1 190px;
  font-size: 0.96rem;
  color: var(--brand-secondary);
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 6px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 3px 10px 0 rgba(9,198,248,0.07);
  transition: background .16s, transform .16s;
}
.footer-social a:hover{
  background: var(--brand-fun);
  transform: rotate(-9deg) scale(1.09);
}
.footer-social img {
  width: 18px; height: 18px; display: block;
}

/* === FLEXBOX UTILS === */
.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;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: rgba(34,59,83,0.84);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.86,0,0.07,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 25px 22px 12px 0;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .14s, transform .14s;
  z-index: 3;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-fun);
  color: #fff;
  transform: rotate(7deg) scale(1.13);
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  padding: 12px 38px 12px 0;
  margin-top: 28px;
  z-index: 2;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 0 13px 18px;
  border-radius: 11px 0 0 11px;
  margin-bottom: 6px;
  min-width: 180px;
  display: block;
  transition: background .15s, color .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-pop);
  color: var(--brand-primary);
}

/* 
  * Only show burger menu below desktop
  * Hide nav on mobile, show on desktop
*/
@media (max-width: 1050px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; } 
}
@media (min-width: 1051px) {
  .mobile-menu { display: none !important; }
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #223B53;
  color: #fff;
  box-shadow: 0 0 16px 0 #0002;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 32px 22px 32px;
  font-size: 1rem;
  border-radius: 26px 26px 0 0;
  animation: bannerIn 0.6s cubic-bezier(.6,0,.3,1);
}
@keyframes bannerIn {
  from { transform: translateY(160px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner .banner-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  padding: 7px 20px;
  background: var(--brand-pop);
  color: var(--brand-primary);
  cursor: pointer;
  margin: 0;
  transition: background .15s, color .14s;
}
.cookie-banner button:hover {
  background: var(--brand-fun);
  color: #fff;
}
.cookie-banner .settings-btn {
  background: var(--brand-fun);
  color: #fff;
}
.cookie-banner .settings-btn:hover {
  background: var(--brand-pink);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,59,83, 0.76);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 22px;
  box-shadow: 0 8px 44px 6px rgba(33,59,83,0.18);
  max-width: 390px;
  min-width: 320px;
  padding: 36px 32px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn 0.35s cubic-bezier(.7,0,.4,1);
}
@keyframes popIn {
  from { transform: scale(.74); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-fun);
  margin-bottom: 4px;
  font-size: 1.37rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1.02rem;
  color: var(--brand-primary);
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--brand-fun);
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  margin-right: 11px;
  margin-left: 2px;
}
.cookie-modal .cookie-save-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none; 
  border: none;
  font-size: 1.41rem; 
  color: var(--brand-secondary);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: background .14s, color .13s;
}
.cookie-modal .close-modal:hover {
  background: var(--brand-accent);
  color: var(--brand-fun);
}

.toggle-switch input[type=checkbox] {
  display: none;
}
.toggle-switch {
  width: 38px;
  height: 21px;
  background: #eee;
  border-radius: 13px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background .2s;
}
.toggle-switch:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px #FFD70022;
  transition: left .19s, background .18s;
}
.toggle-switch input[type=checkbox]:checked + .toggle-switch:before {
  left: 19px;
  background: var(--brand-fun);
}
.toggle-switch input[type=checkbox]:checked + .toggle-switch {
  background: var(--brand-pop);
}

/* == MISC == */
strong {
  font-weight: 700;
  color: var(--brand-vivid);
}
code {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: 0.97em;
  background: #fffaea;
  color: var(--brand-primary);
  border-radius: 5px;
  padding: 2px 8px;
}

/* =============== MEDIA QUERIES =============== */
@media (max-width: 1050px) {
  .container {
    padding: 0 8px;
    max-width: 98vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-links {
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 170px;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 3vw; }
  .section, .about, .contact, .features, .services, .testimonials, .footer {
    padding: 30px 7px;
    margin-bottom: 44px;
    border-radius: 16px;
  }
  .hero .container {
    padding: 34px 7px 32px 7px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  .cta-btn {font-size: 0.98rem; padding: 8px 21px;}
  .cookie-banner { flex-direction: column; padding: 15px 8px; gap: 15px; }
  .mobile-menu-close { margin: 18px 8px 18px 0; }
  .mobile-nav { padding-right: 9px; }
  .feature-grid > div, .card {
    min-width: 99vw;
    max-width: 99vw;
    border-radius: 9px;
  }
}
/* ===== ANIMATIONS & SMALL MICRO-INTERACTIONS ===== */
.cta-btn, .card, .feature-grid > div, .testimonial-card, .footer-social a, .main-nav a, .mobile-nav a {
  will-change: transform;
}

::selection {
  background: var(--brand-pop);
  color: #223B53;
}
