/* RESET & BASE STYLES */
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, sans-serif;
  color: #2d3440;
  background: #FCFBFF;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #15406A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFA300;
}

/* ======================== COLORS =============================== */
:root {
  --primary: #15406A;
  --primary-light: #3E82B7;
  --secondary: #FFA300;
  --secondary-light: #FFDCB3;
  --accent: #F6F6F6;
  --pastel-blue: #CFDFFC;
  --pastel-lilac: #EDE4FB;
  --pastel-yellow: #FFF7D7;
  --pastel-aqua: #DAF6F6;
  --pastel-pink: #FFE7EA;
  --shadow: 0 2px 16px 0 rgba(80, 92, 142, 0.11);
  --white: #fff;
  --dark: #26384D;
  --light-grey: #F6F6F6;
  --grey: #A9B4C2;
  --brand-green: #9EECC5;
}

/* ======================== TYPOGRAPHY ========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #15406A;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 22px;
}
h3 {
  font-size: 1.17rem;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, li, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  color: #2d3440;
}
p[is="lead"], .hero p, .lead {
  font-size: 1.2rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #2d3440;
  margin-bottom: 22px;}

strong, b {
  color: #15406A;
  font-weight: 700;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* ===================== FLEX CONTAINERS ======================= */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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(--pastel-yellow);
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  color: #2d3440;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== HEADER & NAVIGATION ==================== */
header {
  background: linear-gradient(120deg, var(--pastel-blue) 70%, var(--pastel-lilac) 100%);
  box-shadow: 0 2px 12px rgba(21,64,106,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
  gap: 8px;
  height: 62px;
}
.brand-logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  padding: 8px 0 8px 0;
  font-weight: 600;
  color: #15406A;
  letter-spacing: 0.01em;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a.cta-primary {
  background: linear-gradient(90deg, var(--secondary-light), var(--pastel-pink));
  color: var(--primary);
  padding: 8px 26px;
  border-radius: 18px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.2s, background 0.2s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: linear-gradient(90deg, var(--secondary), var(--pastel-pink));
  color: var(--white);
  box-shadow: 0 4px 18px 0 rgba(255,163,0,0.17);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--pastel-yellow);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  padding: 12px;
  transition: background 0.2s;
  border-radius: 8px;
  z-index: 60;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-yellow);
}

/* ===================== MOBILE NAV (Burger) ===================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(116deg, var(--pastel-blue) 80%, var(--pastel-lilac) 100%);
  padding: 0 0 0 0;
  box-shadow: 0 5px 40px rgba(21,64,106,0.12);
  z-index: 200;
  transform: translateX(-105%);
  transition: transform 0.37s cubic-bezier(.68,-0.55,.27,1.55);
  will-change: transform;
  overflow: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 18px 22px 8px 0px;
  cursor: pointer;
  border-radius: 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px 30px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border-radius: 14px;
  padding: 15px 10px;
  transition: background 0.14s, color 0.14s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ========================= HERO SECTION ========================= */
.hero {
  padding: 64px 0 52px 0;
  background: linear-gradient(120deg, var(--pastel-blue) 76%, var(--pastel-lilac) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.2rem;
  color: #2d3440;
  margin-bottom: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ====================== BUTTONS & CTA ======================== */
.cta-primary {
  background: linear-gradient(90deg, var(--secondary-light), var(--pastel-pink));
  color: var(--primary);
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 12px 38px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  box-shadow: 0 2px 18px 0 rgba(255, 163, 0, 0.08);
  outline: none;
  display: inline-block;
  margin-top: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--secondary), var(--pastel-pink));
  color: var(--white);
  box-shadow: 0 6px 22px 0 rgba(255,163,0,0.16);
  text-shadow: 0 1px 6px #a97d23cc;
}

button, .button, input[type="submit"] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  background: var(--pastel-blue);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.14s;
}
button:hover, .button:hover, input[type="submit"]:hover,
button:focus, .button:focus, input[type="submit"]:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 17px 0 rgba(21,64,106,0.12);
}

/* ====================== CARD & FEATURE STYLES ===================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature {
  background: var(--pastel-lilac);
  border-radius: 20px;
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.17s, box-shadow 0.19s;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 7px 32px 0 rgba(21,64,106,0.14);
}

.highlight-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}
.highlight-boxes > div {
  background: var(--pastel-aqua);
  border-radius: 16px;
  padding: 18px 20px 15px 20px;
  flex: 1 1 220px;
  min-width: 190px;
  box-shadow: var(--shadow);
  color: #15406A;
}

/* Step list */
.step-list {
  margin-bottom: 22px;
}
.step-list li {
  background: var(--pastel-pink);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 14px;
  position: relative;
  list-style: decimal inside;
  font-weight: 500;
  color: #15406A;
}
.tips-box {
  background: var(--pastel-aqua);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin-top: 15px;
}

/* Blog list & article lists */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 26px;
}
.blog-list h3 {
  color: var(--primary);
}
.popular-articles {
  background: var(--pastel-yellow);
  border-radius: 14px;
  padding: 14px 18px 12px 18px;
  box-shadow: var(--shadow);
}
.popular-articles h4 {
  margin-bottom: 7px;
}

.feature-list {
  margin-bottom: 16px;
}
.feature-list li {
  background: var(--pastel-pink);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 12px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
}

/* =================== CARDS & TESTIMONIALS =================== */
.testimonial-card {
  background: var(--pastel-yellow);
  color: #15406A; /* always strong text on soft pastel bg */
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-radius: 22px;
  padding: 20px 28px;
  min-width: 220px;
  font-size: 1.08rem;
  flex: 1 1 230px;
  transition: box-shadow 0.18s;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(254,193,72,0.12);
}

/* ==================== EVENT CALENDAR & DETAILS =============== */
.event-calendar ul {
  list-style: none;
  padding-left: 0;
}
.event-calendar li {
  background: var(--pastel-lilac);
  margin-bottom: 12px;
  border-radius: 13px;
  padding: 13px 19px;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(21,64,106,0.08);
}
.event-details {
  background: var(--pastel-yellow);
  border-radius: 15px;
  padding: 18px 18px 5px 18px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}

/* ========================= FOOTER ============================= */
footer {
  background: linear-gradient(90deg, var(--pastel-blue) 30%, var(--pastel-aqua) 100%);
  color: var(--primary);
  padding: 34px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #15406A;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: .85;
}
.footer-nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}
.footer-copy {
  opacity: .65;
  font-size: 0.95rem;
  margin-top: 7px;
}

/* ================ COOKIE CONSENT BANNER & MODAL ================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--white) 70%, var(--pastel-yellow));
  box-shadow: 0 -2px 20px rgba(21,64,106,0.08);
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 22px 24px;
  transition: transform 0.35s cubic-bezier(.87,-0.01,.17,1.05);
  transform: translateY(100%);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1 1 300px;
  color: #15406A;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--pastel-blue);
  color: #15406A;
  border: none;
  border-radius: 16px;
  padding: 9px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
  margin-right: 2px;
  font-weight: 600;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: #fff;
}

.cookie-btn.settings {
  background: var(--pastel-aqua);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary-light);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95vw;
  max-width: 460px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 7px 36px 0 rgba(21,64,106,0.17);
  z-index: 1001;
  padding: 30px 29px 22px 29px;
  transform: translate(-50%,-55%) scale(0.96);
  opacity: 0;
  transition: opacity 0.32s, transform 0.4s;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  margin-top: 0;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #15406A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 19px 0 22px 0;
}
.cookie-cat {
  background: var(--pastel-blue);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #15406A;
  font-size: 1rem;
}
.cookie-cat label {
  flex: 1 1 auto;
}
.cookie-cat input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 19px;
  height: 19px;
}
.cookie-cat .always-on {
  font-size: 0.98rem;
  color: #aaa;
  font-style: italic;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .container {
    padding: 0 10px;
  }
  .mobile-menu-close {
    font-size: 2.1rem;
    padding: 11px 15px 8px 0px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 4px;
  }
  .feature-grid, .highlight-boxes, .card-container, .footer-contact, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 16px;
  }
  .footer-contact {
    gap: 13px;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 17px 8px 15px 10px;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
  .cookie-modal {
    padding: 15px 6px 12px 13px;
    min-width: 0;
    max-width: 99vw;
  }
}

/* ============= MICRO INTERACTIONS & EFFECTS ============== */
.card, .feature, .testimonial-card, .tips-box, .highlight-boxes > div, .popular-articles {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .feature:hover, .tips-box:hover, .highlight-boxes > div:hover, .popular-articles:hover {
  box-shadow: 0 8px 32px 0 rgba(21,64,106,0.12);
  transform: translateY(-2px) scale(1.01);
}
li:hover, .feature-list li:hover {
  background: var(--pastel-yellow);
}

/* =================== SCROLLBAR SOFTENING =================== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--pastel-lilac);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--pastel-blue);
  border-radius: 6px;
}

/* =================== VISUAL ACCESSIBILITY =================== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ============ MEDIA QUERIES FOR RESPONSIVENESS ========== */
@media (max-width: 480px) {
  .hero {
    padding: 29px 0 28px 0;
    min-height: 160px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .section {
    padding-left: 3px;
    padding-right: 3px;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 10px 18px;
  }
  .testimonial-card {
    padding: 13px 7px;
    font-size: 0.98rem;
  }
}

/****** Utility Classes ******/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }

/****** Hide visually but accessible to screen readers ******/
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; border: 0 !important; }

/* ================= Flexbox alignment for all patterns ================== */
.section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  /* Already defined above as per requirements */
}

/* =============== PREVENT OVERLAPPING (margin/gap enforcement) ================ */
.section, .card, .testimonial-card, .feature, .highlight-boxes > div, .tips-box, .blog-list li, .feature-list li {
  margin-bottom: 20px;
}

/******** Scroll lock for open mobile menu or cookie modal (add .scroll-lock to body JS) *******/
body.scroll-lock {
  overflow: hidden;
}
