/* RESET & BASE TYPOGRAPHY */
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;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F5F7;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  overscroll-behavior-y: none;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: #FF5E42;
  transition: color 0.18s linear;
}
a:hover, a:focus {
  color: #18186D;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/******************************/
/* PLAYFUL DYNAMIC COLOR PALETTE USING BRAND COLORS + ADDITIONAL ACCENTS */
:root {
  --primary: #18186D;
  --secondary: #FF5E42;
  --accent: #F5F5F7;
  --yellow: #FFE066;
  --pink: #FF53B0;
  --teal: #31E7E7;
  --success: #14c871;
  --danger: #F9383A;
  --gray: #aaa;
}

/**********************/
/* TYPOGRAPHY SCALE & PLAYFUL HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

/***********************/
/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 32px 0 rgba(31, 73, 124, 0.12);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/****************/ 
/* MAIN NAV BAR */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px 0 rgba(24,24,109,0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}
.main-nav img {
  height: 38px;
  margin-right: 6px;
}
.main-nav a {
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--primary);
  opacity: 0.96;
  padding: 8px 14px;
  border-radius: 24px;
  transition: background 0.13s, color 0.13s;
  position: relative;
}
.main-nav a.primary-cta {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 8px 0 #ff5e4225;
  margin-left: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.15s;
}
.main-nav a.primary-cta:hover, .main-nav a.primary-cta:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06) rotate(-2deg);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--yellow);
  color: var(--primary);
  text-decoration: none;
}

/*******************
  MOBILE MENU
*******************/
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  position: absolute;
  right: 16px;
  top: 18px;
  width: 48px;
  height: 48px;
  z-index: 110;
  transition: background .2s;
  box-shadow: 0 2px 10px 0 #ff5e4230;
  cursor: pointer;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary);
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  z-index: 200;
  transform: translateX(-110vw);
  transition: transform .45s cubic-bezier(.85,.01,.16,1), opacity .25s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding-top: 34px;
  box-shadow: 4px 0 28px 0 rgba(31, 73, 124, 0.10);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 9px 24px 5px 0;
  padding: 2px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  background: var(--yellow);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 28px 0 0 40px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.19rem;
  padding: 14px 12px 14px 0;
  border-radius: 16px;
  font-weight: 600;
  transition: background 0.15s, transform 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus{
  background: var(--teal);
  color: #0a182e;
  transform: translateX(8px) scale(1.02) skewX(-2deg);
}
@media (min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/**********************/
/* HERO + CTAS */
.cta-button {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-weight: bold;
  font-size: 1.13rem;
  padding: 14px 38px;
  border-radius: 30px;
  margin: 18px 0 0 0;
  box-shadow: 0 6px 32px 0 #18186d30,0 2px 7px 0 #ff5e4235;
  border: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.17s, color 0.15s, box-shadow 0.16s;
  position: relative;
  display: inline-block;
  outline: 0;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 4px 14px 0 #18186d25,0 5px 18px 0 #ff5e4230;
}

/****************************/
/* PLAYFUL SHAPES (DECORATION) */
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: -32px;
  top: -28px;
  width: 48px;
  height: 48px;
  background: var(--pink);
  opacity: .18;
  border-radius: 32% 68% 61% 39%/49% 65% 35% 51%;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: -24px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  opacity: .17;
  border-radius: 65% 25% 65% 30% / 45% 65% 35% 54%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width:768px) {
  .section:before, .section:after {
    width: 32px;
    height: 32px;
    left: -16px;
    right: -16px;
    top: -12px;
    bottom: -18px;
  }
}

/****************************/
/* FEATURE/ SERVICE LISTS */
.features-list, .services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0 0 0;
}
.features-list li, .services-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  font-size: 1.1rem;
  background: var(--accent);
  border-radius: 22px;
  padding: 15px 19px;
  box-shadow: 0 2px 8px 0 #ff5e4215;
  margin-bottom: 12px;
  position: relative;
  min-height: 62px;
}
.features-list li img {
  width: 32px;
  height: 32px;
}
.services-list li {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 20px 22px;
}
.price {
  font-family: 'Montserrat',sans-serif;
  color: var(--secondary);
  background: var(--yellow);
  font-weight: 700;
  padding: 3px 13px 2px 13px;
  border-radius: 16px;
  font-size: 1rem;
  margin-top: 4px;
  margin-left: 8px;
  display: inline-block;
}

/***********************/
/* CARD & FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px 0 #18186d15;
  position: relative;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 460px;
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 42px 0 #ff5e4235,0 2px 14px #31e7e755;
  transform: translateY(-5px) rotate(-0.7deg) scale(1.021);
}
.tips-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .tips-cards, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFBEF;
  border-left: 7px solid var(--secondary);
  border-radius: 16px;
  box-shadow: 0 2px 12px #ff5e4233;
  margin-bottom: 22px;
  padding: 20px;
  position: relative;
  min-width: 220px;
  font-size: 1.07rem;
}
.testimonial-card blockquote {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1f2027;
}
.testimonial-card cite {
  margin-left: 18px;
  color: var(--primary);
  font-size: 1rem;
  font-style: normal;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
}
/* Ensure testimonials have readable dark text */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #24263a;
}

/*****************************/
/* GENERIC LIST STYLING */
ul, .text-section ul {
  margin-left: 0;
  list-style: none;
  margin-bottom: 16px;
}
.text-section ul li, ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.text-section ul li:before, ul li:before {
  content: "";
  display: block;
  position: absolute;
  left: 6px;
  top: 9px;
  width: 13px;
  height: 13px;
  background: var(--teal);
  border-radius: 50%;
}
ul.features-list li:before, ul.services-list li:before {
  display: none;
}

/*****************************/
/* MAP PLACEHOLDER */
.map-placeholder {
  background: var(--yellow);
  border-radius: 16px;
  text-align: center;
  padding: 19px 18px;
  color: var(--primary);
  font-style: italic;
  font-size: 1.09rem;
  margin: 24px 0 0 0;
}

/********************************/
/* FOOTER STYLES */
footer {
  background: var(--primary);
  color: #fff;
  padding: 44px 0 28px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 65px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--yellow);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background 0.14s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--yellow);
  color: #18186D;
}
footer p {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-size: 1rem;
  opacity: .87;
}

/***********************************/
/* SPACING, GAPS AND LAYOUT FLEXBOX PATTERNS (MANDATORY) */
.section { margin-bottom: 60px; padding: 40px 20px; position: relative; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/*********************/
/* RESPONSIVE DESIGN */
@media (max-width: 860px) {
  .main-nav { gap: 9px; padding: 10px 6px; }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .footer-nav {
    gap: 10px;
  }
  .section {
    padding: 26px 4px;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container {
    max-width: 99vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .main-nav img {
    height: 30px;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

/************************/ 
/* BUTTONS (FORMS, COOKIE) */
button, .btn {
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s, color 0.11s, transform 0.10s;
  box-shadow: 0 2px 8px #FF5E4235;
  outline: 0;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
button.accept, .btn.accept {
  background: var(--success);
  color: #fff;
}
button.reject, .btn.reject {
  background: var(--danger);
  color: #fff;
}
button.settings, .btn.settings {
  background: var(--teal);
  color: var(--primary);
}

/****************************************/
/* MICRO-ANIMATIONS & HOVER INTERACTIONS */
a {
  position: relative;
  transition: color .13s;
}
a:not(.primary-cta):after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform .19s, opacity .17s;
  border-radius: 1px;
}
a:hover:after, a:focus:after {
  opacity: 1;
  transform: scaleX(1);
}

/*****************/
/* COOKIE CONSENT BANNER & MODAL */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100vw;
  background: #fff;
  border-top: 5px solid var(--secondary);
  box-shadow: 0 -4px 24px #18186d10;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .4s cubic-bezier(.78,.01,.18,1), opacity .21s cubic-bezier(.65,.03,.45,1);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(160px);
}
.cookie-consent-banner .cookie-text {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.01rem;
  color: #222;
  text-align: center;
}
.cookie-consent-banner .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
}
.cookie-consent-banner button {
  min-width: 120px;
  font-size: 1.02rem;
  margin: 0 3px;
}
.cookie-consent-banner button.settings {
  background: var(--teal);
  color: var(--primary);
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(24,24,109,0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s cubic-bezier(.6,.08,.5,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 36px #18186d45;
  padding: 34px 26px 26px 26px;
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 8px;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--teal);
  color: var(--primary);
}
.cookie-modal h3 {
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 9px;
  font-size: 1.01rem;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 23px; height: 23px;
  accent-color: var(--secondary);
  cursor: pointer;
}
.cookie-modal .cookie-category .always {
  font-size: 1rem;
  color: var(--gray);
}
.cookie-modal .cookie-category.disabled {
  opacity: 0.62;
}
.cookie-modal .button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/*******************/
/* FORM ELEMENTS */
input, textarea, select {
  font-family: inherit;
  border-radius: 10px;
  border: 1.7px solid var(--teal);
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color .12s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 14px #ff53b033;
}
label {
  margin-bottom: 4px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
}

/***************************/
/* ICONS (WITHIN LISTS) */
.text-section img, ul li img {
  width: 22px;
  height: 22px;
  vertical-align: -5px;
  margin-right: 9px;
  display: inline-block;
}

/***************************/
/* ANIMATIONS: floaty, wiggle, fade-in */
@keyframes floaty {
  0%   { transform:translateY(0) rotate(-3deg); }
  40%  { transform:translateY(-7px) rotate(2deg); }
  60%  { transform:translateY(-4px) rotate(-2deg); }
  100% { transform:translateY(0) rotate(-3deg); }
}
@keyframes wiggle {
  0% { transform: rotate(-1deg); }
  50%{ transform: rotate(2.5deg) scale(1.06); }
  100%{ transform: rotate(-1deg); }
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.cta-button, .card, .testimonial-card, .cookie-consent-banner {
  animation: fade-in 0.9s cubic-bezier(.84,-0.03,.38,1.09);
}
.cta-button:hover, .testimonial-card:hover {
  animation: wiggle .38s cubic-bezier(.52,-0.15,.67,1.44) 1;
}
.section:before, .section:after {
  animation: floaty 8.5s linear infinite;
}

/*****************************************/
/* MISC. UTILS */
.text-section {
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.text-section h3 {
  margin-top: 14px;
  font-size: 1.17rem;
  color: var(--secondary);
}
.text-section p {
  margin-bottom: 6px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/*********************
 Fix min spacing/gap between elements,
 NEVER use display:grid or CSS columns!
*********************/
.section > * + * {
  margin-top: 22px;
}
.card-container > * + * {
  margin-left: 0;
}
.card + .card {
  margin-left: 0;
}
.tips-cards > * + * {
  margin-left: 0;
}
.content-wrapper > * + * {
  margin-top: 20px;
}

/******************
 Ensure NO overlap on ANY breakpoint
*******************/
@media (max-width: 768px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .card-container,
  .tips-cards,
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    min-width: 0;
    max-width: 100%;
  }
}

/***************/
/* PRINT STYLES */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
}
