/* === 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section { display: block; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
:focus { outline: none; }

/* === Soft Pastel Theme Variables (with fallbacks) === */
:root {
  --primary: #1B384D;
  --secondary: #F7D146;
  --accent: #F9F6F2;
  --pastel-pink: #FDE8F0;
  --pastel-mint: #E1F8F6;
  --pastel-lavender: #EAE6FA;
  --pastel-blue: #D2EDFF;
  --pastel-yellow: #FFF6D7;
  --text-dark: #293042;
  --text-light: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

body {
  background: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.1px;
  transition: background 0.3s, color 0.3s;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === HEADER === */
header {
  background: linear-gradient(90deg, #FDE8F0 0%, #E1F8F6 100%);
  box-shadow: 0 2px 8px 0 rgba(31, 56, 77, 0.04);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}
header img {
  height: 44px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}
header .cta.primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  display: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: var(--pastel-mint);
}

/* === HERO/BASIC SECTIONS === */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px 0 rgba(200,200,220,0.10);
  /* Give each main section a gentle pastel backdrop for dreamy look */
}
main > section:nth-child(odd) {
  background: var(--pastel-lavender);
}
main > section:nth-child(even) {
  background: var(--pastel-mint);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
}
h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
h4, h5 { font-size: 1.1rem; font-weight: 500; }

p, ul, ol, li, strong, em, span {
  font-family: var(--font-body);
}

strong {
  font-weight: 700;
  color: var(--primary);
}
em {
  font-style: italic;
  color: #755ec6;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 16px;
}
ul li, ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
ul li::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pastel-pink);
  left: 0; top: 8px;
  position: absolute;
}
ol li::before {
  display: none;
}

.text-section {
  background: var(--pastel-yellow);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.05rem;
  /* micro shadow for dreamy effect */
  box-shadow: 0 2px 8px 0 rgba(247,209,70,0.08);
}

.quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.quicklinks a {
  background: var(--pastel-blue);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 6px 0 rgba(100,100,140,0.04);
  transition: background 0.2s, color 0.2s;
  border: none;
}
.quicklinks a:hover, .quicklinks a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== CARD & FEATURE LAYOUTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(230, 160, 220, 0.12);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(135, 166, 218, 0.18);
  transform: translateY(-6px) scale(1.015);
}

.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;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(31, 56, 77, 0.09);
  margin-bottom: 20px;
  position: relative;
  font-size: 1.06rem;
  color: var(--primary);
  font-family: var(--font-body);
  flex-direction: row;
  transition: box-shadow 0.18s, transform 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(31, 56, 77, 0.13);
  transform: translateY(-4px) scale(1.012);
}
.testimonial-card p {
  color: var(--primary);
  font-weight: 400;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #4e5276;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ====== CUSTOM FLEXBOX GRIDS ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--pastel-lavender);
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 3px 10px 0 rgba(234,230,250,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature-grid > div:hover {
  box-shadow: 0 0px 32px 0 rgba(127,150,230,0.14);
}
.feature-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}
.principle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.principle-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--pastel-mint);
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 3px 10px 0 rgba(225,248,246,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.principle-grid > div:hover {
  box-shadow: 0 0px 32px 0 rgba(127,190,230,0.12);
}
.principle-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}

/* ===== BUTTONS & CTA ===== */
.cta,
button,
input[type="submit"],
.mobile-menu-toggle {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(247,209,70,0.05);
  transition: background 0.18s, color 0.17s, box-shadow 0.19s, transform 0.17s;
  display: inline-block;
}
.cta.primary,
input[type="submit"].primary, 
button.primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 16px 0 rgba(247,209,70,0.08);
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffe47d;
  color: var(--primary);
}
.cta.secondary,
button.secondary {
  background: var(--pastel-lavender);
  color: var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--pastel-yellow);
  color: var(--primary);
}
.cta:active {
  transform: scale(0.98);
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 16px 0 rgba(41,48,66,0.06);
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 36px 20px 24px 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
footer nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-mint);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  font-size: 1rem;
  color: var(--primary);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
footer p {
  font-size: 0.96rem;
  color: #727891;
  margin-top: 14px;
}

/* ===== MAP SECTION ===== */
.map-location {
  background: var(--pastel-mint);
  border-radius: 12px;
  padding: 14px 17px;
  font-size: 1.01rem;
  color: var(--primary);
  margin-top: 18px;
}

/* ===== SOCIAL ICONS ===== */
ul li img {
  margin-right: 9px;
  vertical-align: middle;
  height: 22px;
  width: 22px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 249, 252, 0.98);
  box-shadow: 0 2px 32px 0 rgba(41,56,74,0.16);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.5,1,0.89,1), opacity 0.35s;
  transform: translateX(100vw);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--primary);
  margin: 18px 24px;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 8px;
}
.mobile-menu-close:hover {
  color: #9d9ef7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  padding: 12px 2px 12px 6px;
  border-radius: 7px;
  width: 100%;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: #496282;
}

/* Hide navigation and show burger on mobile */
@media (max-width: 1024px) {
  header nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: linear-gradient(90deg, #EAE6FA 0%, #E1F8F6 100%);
  box-shadow: 0 -2px 16px 0 rgba(31,56,77,0.12);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 26px 12px 20px 12px;
  gap: 32px;
  font-size: 1.08rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.38s cubic-bezier(0.72,0,0.36,1.44);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-text {
  color: var(--primary);
  font-family: var(--font-body);
  margin-right: 12px;
  flex: 2;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-banner button, .cookie-banner .cta {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 9px;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 20px;
  margin: 0;
  box-shadow: 0 0px 8px 0 rgba(31,56,77,0.04);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffe47d;
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--pastel-lavender);
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: var(--pastel-yellow);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: var(--pastel-pink);
  color: var(--primary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(250, 249, 252, 0.90);
  z-index: 3500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: #fff;
  padding: 38px 25px 32px 25px;
  border-radius: 17px;
  box-shadow: 0 8px 34px 0 rgba(84,110,185,0.15);
  min-width: 328px;
  max-width: 95vw;
  font-size: 1.08rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  animation: fadeInModal 0.35s cubic-bezier(.95,.05,.29,.93);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(0.96) translateY(34px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.29rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}
.cookie-category .category-name {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.07rem;
}
.cookie-category .category-desc {
  font-size: 0.99rem;
  color: #7083ad;
}
.category-toggle {
  width: 42px;
  height: 24px;
  background: var(--pastel-blue);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
  border: none;
}
.category-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.category-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.13s;
  box-shadow: 0 1px 2px 0 rgba(41,56,77,0.10);
}
.category-toggle[aria-checked="true"]::before {
  left: 21px;
}

.cookie-modal-footer {
  margin-top: 13px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  align-self: flex-end;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

/* === RESPONSIVE LAYOUT === */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid, .principle-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    height: 60px;
    gap: 14px;
  }
  .feature-grid > div, .principle-grid > div {
    min-width: 180px;
    padding: 18px 10px;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 24px 7px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 14px;
    margin-bottom: 6px;
    border-radius: 10px;
  }
  .feature-grid, .principle-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .principle-grid > div {
    min-width: 120px;
    width: 100%;
    border-radius: 10px;
    padding: 16px 6px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    padding: 15px 10px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
  .map-location {
    padding: 10px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 5px 14px 5px;
    font-size: 1rem;
  }
  .cookie-banner-text {
    margin-right: 0;
    margin-bottom: 8px;
    text-align: center;
  }
  .cookie-modal {
    min-width: 0;
    max-width: 99vw;
    padding: 24px 7px 18px 7px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.13rem; }
  .container, .content-wrapper {
    padding-left: 2px;
    padding-right: 2px;
  }
  .footer-contact {
    font-size: 0.91rem;
  }
}

/* ===== MICROINTERACTIONS ===== */
.card, .feature-grid > div, .principle-grid > div, .testimonial-card, .cta, button {
  transition-property: box-shadow, transform, background, color;
  transition-timing-function: cubic-bezier(.7,.37,.46,.86);
  transition-duration: 0.20s;
}
.cta:focus, .cookie-btn:focus, .cookie-banner .cta:focus {
  box-shadow: 0 0 0 3px var(--secondary), 0 1px 4px 0 rgba(48, 79, 141, 0.06);
}

/* ======= MISC & UTILITIES ======= */
::-webkit-scrollbar {
  width: 8px;
  background: #f8f4ff;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #e3e6fa;
  border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4e6f2;
}

/** Hide visually but remain accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width:570px){
  footer {
    margin-top: 32px;
    border-radius: 9px 9px 0 0;
  }
  footer .container {
    padding-top: 17px;
    padding-bottom: 8px;
  }
  .footer-contact {
    gap: 8px;
  }
}
