/* ------------------ 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 {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: #F8FAFB;
  color: #273956;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #36A863;
  text-decoration: none;
  transition: color 0.24s;
}
a:hover, a:focus {
  color: #133356;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button { cursor: pointer; }

/* ------------------ Brand Font Face (with Google Fonts Fallback) ------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ------------------ Base Layout ------------------ */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main {
  min-height: 40vh;
  padding-bottom: 48px;
}

/* ------------------ Typography (Soft Pastel Hierarchy) ------------------ */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #133356;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
@media (min-width: 600px) {
  h1, .hero h1 {
    font-size: 2.75rem;
  }
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  color: #133356;
  margin-bottom: 8px;
  margin-top: 0;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: #334481;
  margin-bottom: 6px;
}
h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #133356;
  margin-bottom: 6px;
}
p, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #273956;
}
strong, b {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #133356;
}
small {
  font-size: 0.92rem;
  color: #627198;
}

/* Dreamy Pastel Colors (Brand & Accent) */
:root {
  --primary: #133356;
  --secondary: #36A863;
  --accent: #F2EADA;
  --pastel-pink: #ffd9ec;
  --pastel-blue: #c8e3ff;
  --pastel-mint: #d6f5e6;
  --pastel-lavender: #ece4ff;
  --pastel-yellow: #fffbe1;
  --shadow: 0 6px 28px rgba(120,160,180,0.10);
  --card-radius: 18px;
  --transition-std: 0.22s cubic-bezier(.39,.58,.57,1);
}

/* ------------------ Header & Navigation ------------------ */
header {
  width: 100%;
  background: linear-gradient(90deg, #ffd9ec 0%, #d6f5e6 100%);
  box-shadow: 0 2px 8px rgba(158, 180, 255, 0.04);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #334481;
  padding: 7px 11px;
  border-radius: 9px;
  transition: background var(--transition-std), color 0.18s;
  position: relative;
}
nav a.cta-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 22px;
  box-shadow: 0 2px 12px 0 rgba(81, 205, 180, .13);
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: #2e8756;
  color: #fff;
}
nav a:hover, nav a:focus {
  background: #ece4ff;
  color: #133356;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #273956;
  transition: color 0.18s;
  z-index: 1020;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
}

/* ------------------ Mobile Menu ------------------ */
.mobile-menu {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(125deg, #d6f5e6 0%, #ffd9ec 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  will-change: transform;
  transition: transform 0.43s cubic-bezier(.73,-0.01,.23,1);
  box-shadow: 2px 0 44px rgba(81, 118, 136, .11);
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #273956;
  font-size: 2.6rem;
  padding: 18px;
  align-self: flex-end;
  margin-right: 6vw;
  margin-top: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.17s;
  z-index: 1200;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e4fbe7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 0 10vw;
  width: 80vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.26rem;
  color: #273956;
  border-radius: 10px;
  padding: 12px 22px;
  background: transparent;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fffbe1;
  color: var(--secondary);
}

/* Hide Desktop Nav, Show Burger on Mobile */
@media (max-width: 1010px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1011px) {
  .mobile-menu { display: none !important; }
}

/* ------------------ Hero Section ------------------ */
.hero {
  background: linear-gradient(125deg, #ece4ff 0%, #d6f5e6 65%, #fffbe1 100%);
  border-radius: 0 0 42px 42px;
  box-shadow: 0 10px 24px 0 rgba(120, 160, 180, 0.12);
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
@media (min-width: 768px) {
  .hero { padding: 56px 0 70px 0; }
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero p {
  font-size: 1.18rem;
  color: #334481;
  margin-bottom: 18px;
}

/* ------------------ Section Spacing & Containers ------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 240px;
  transition: box-shadow .23s, transform .22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 32px 0 rgba(120, 160, 180, 0.17);
  transform: translateY(-4px) scale(1.012);
}

/* ------------------ Feature Grid ------------------ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 220px;
  background: linear-gradient(115deg, #fffbe1 60%, #fff 100%);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .24s, transform .23s;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 38px 0 rgba(158,180,255,0.13);
  transform: scale(1.03);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ece4ff;
  box-shadow: 0 2px 11px 0 rgba(158,180,255,.07);
  margin-bottom: 0;
}

/* ------------------ Cards & General Card Patterns ------------------ */
.usp-cards, .team, .community-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.usp-cards > div, .team > div, .community-facts {
  flex: 1 1 220px;
  min-width: 210px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team > div {
  background: #f6f9fa;
}

.community-facts {
  flex-direction: column;
  background: #ece4ff;
}

.community-facts h3 {
  color: #36A863;
}

/* ------------------ Testimonial Cards ------------------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fffbe1 70%, #d6f5e6 100%);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 18px 0 rgba(85,180,180,0.10);
  color: #273956;
}
.testimonial-card p {
  font-size: 1.11rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #133356;
  font-size:1.03rem;
}

/* ------------------ Buttons & Links ------------------ */
.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.08rem;
  border-radius: 38px;
  transition: background .21s, color .20s, box-shadow .20s, transform .17s;
  padding: 12px 30px;
  margin-top: 10px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(54,168,99,0.07);
  border: none;
}
.cta-primary {
  background: var(--secondary);
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #287947;
  color: #fff;
  box-shadow: 0 4px 28px rgba(54,168,99,0.13);
  transform: translateY(-1px) scale(1.04);
}
.cta-secondary {
  background: #ece4ff;
  color: #133356;
  margin-left: 0;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #ffd9ec;
  color: #133356;
  box-shadow: 0 4px 18px 0 rgba(233,182,182,0.12);
}

/* ------------------ List Styles & Icon lists ------------------ */
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.65;
}
li img {
  width: 24px;
  height: 24px;
}

/* ------------------ Flex Pattern Classes ------------------ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ------------------ Footer ------------------ */
footer {
  background: linear-gradient(90deg, #ece4ff 0%, #ffd9ec 100%);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -6px 28px rgba(158, 180, 255, 0.07);
  padding: 38px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
}
footer nav a {
  font-size: 1rem;
  color: #334481;
  margin-bottom: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}
footer nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: #273956;
  opacity: .87;
}
.footer-contact img {
  width: 30px;
  height: 30px;
}

/* ------------------ Cookie Consent Banner + Modal ------------------ */
.cookie-banner {
  position: fixed;
  z-index: 2000;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fffbe1 0%, #ffd9ec 100%);
  box-shadow: 0 -4px 34px 0 rgba(81, 118, 136, .17);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 18px 22px 28px;
  border-radius: 24px 24px 0 0;
  font-size: 1rem;
  color: #133356;
}
.cookie-banner p {
  flex: 2 1 220px;
  min-width: 180px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 28px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover { background: #287947; }
.cookie-banner .reject {
  background: #ece4ff;
  color: #133356;
}
.cookie-banner .reject:hover {
  background: #ffd9ec;
  color: #133356;
}
.cookie-banner .settings {
  background: #ffd9ec;
  color: #133356;
}
.cookie-banner .settings:hover { background: #ece4ff; }

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,67,100,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: linear-gradient(125deg, #fffbe1 70%, #d6f5e6 100%);
  border-radius: 18px;
  max-width: 95vw;
  width: 430px;
  padding: 36px 28px 28px 28px;
  color: #273956;
  box-shadow: 0 12px 44px 0 rgba(158,180,255,0.18);
  animation: cookieModalFadeIn .7s cubic-bezier(.52,.13,.77,.62);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes cookieModalFadeIn {
  from { transform: translateY(40px) scale(.97); opacity: 0.35; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #133356;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-category {
  background: #fff;
  border-radius: 10px;
  padding: 16px 12px 13px 12px;
  box-shadow: 0 1.5px 6px 0 rgba(54,168,99,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #273956;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #36A863;
  border-radius: 4px;
  margin-right: 8px;
}
.cookie-modal .cookie-category.essential label {
  font-weight: 600;
  color: #133356;
}
.cookie-modal .cookie-category.essential input[type='checkbox'] {
  accent-color: #133356;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #133356;
  border-radius: 50%;
  padding: 4px 7px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #ece4ff;
}

/* ------------------ Responsive Design ------------------ */
@media (max-width: 1010px) {
  .footer-contact {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .feature-grid > div, .usp-cards > div, .team > div {
    min-width: 80vw;
  }
}
@media (max-width: 830px) {
  .container { padding: 0 10px; }
  .feature-grid, .usp-cards, .team {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .content-grid { flex-direction: column; gap: 0; }
  .feature-grid { flex-direction: column; gap: 10px; }
  .usp-cards, .team { flex-direction: column; gap: 10px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section { padding: 28px 7vw; margin-bottom: 34px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .hero .content-wrapper { text-align: left; align-items: flex-start; }
  footer .container { gap: 8px; }
}
@media (max-width: 600px) {
  .footer-contact img { width: 22px; height: 22px; }
  .card, .feature-grid > div, .usp-cards > div, .team > div, .community-facts {
    min-width: unset;
    padding: 14px 12px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.09rem; }
  .cta-primary, .cta-secondary { padding: 9px 14px; }
  .cookie-modal { min-width: unset; width: 96vw; padding: 20px 5vw 20px 5vw; }
}

/* ------------------ Util Classes and Animations ------------------ */
@media (hover:hover) {
  .card, .feature-grid > div, .cta-primary, .cta-secondary {
    transition: box-shadow .17s, transform .13s, background .13s;
  }
}

/* Hide visually but keep accessible */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* ------------------ MODAL BODY SCROLL LOCK ------------------ */
body.modal-open {
  overflow: hidden !important;
}
