/* =====================================================
   CSS RESET & NORMALIZE (recommended subset)
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #FAF7F5;
  color: #213148;
  scroll-behavior: smooth;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #7E9BB5;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* =====================================================
   CSS VARIABLES FOR SOFT PASTEL THEME
====================================================== */
:root {
  --primary: #213148;
  --secondary: #7E9BB5;
  --accent: #F2E9DC;
  --bg: #FAF7F5;
  --pastel-blue: #B2D6F6;
  --pastel-pink: #F7CEE2;
  --pastel-yellow: #FFF4B7;
  --pastel-mint: #C8F7DC;
  --pastel-lavender: #E2E3F9;
  --shadow: 0 2px 16px 0 rgba(125, 147, 178, 0.09);
}

/* =====================================================
   FONT IMPORTS
====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* =====================================================
   LAYOUT HELPERS
====================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
@media (min-width: 992px) {
  .content-wrapper {
    gap: 38px;
  }
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 24px;
}

.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .card {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.17s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(125, 147, 178, 0.16);
  transform: translateY(-4px) scale(1.012);
}
.card {
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .text-section {
    gap: 24px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Testimonial Card Style */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-lavender);
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(99, 141, 237, 0.07);
  margin-bottom: 20px;
  color: #253046;
  font-size: 1.12rem;
}
.testimonial-card q {
  font-style: italic;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.08rem;
  color: #213148;
}
.testimonial-card strong {
  font-weight: 600;
  font-size: 1rem;
  color: #7E9BB5;
}

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

/* =====================================================
   TYPOGRAPHY
====================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.34rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol, address {
  font-size: 1.08rem;
  color: #33425B;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 600;
  color: #213148;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* Accent headings and highlight */
h1, h2, h3 {
  background: linear-gradient(89deg, var(--pastel-mint) 0%, var(--pastel-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.18rem;
  color: var(--secondary);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  letter-spacing: 0.027em;
}

/* =====================================================
   HEADER, NAVIGATION, BURGER MENU
====================================================== */
header {
  background: var(--pastel-blue);
  box-shadow: 0 3px 10px rgba(67, 119, 173, 0.06);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  margin-bottom: 36px;
  position: sticky;
  top: 0;
  z-index: 98;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  padding: 8px 12px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.12s, color 0.14s;
}
header nav a:hover,
header nav a:focus {
  background: var(--pastel-pink);
  color: var(--secondary);
}
.primary-cta {
  background: var(--secondary);
  color: #fff;
  border-radius: 40px;
  padding: 10px 28px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(126, 155, 181, 0.09);
  transition: background 0.22s, box-shadow 0.15s, transform 0.15s;
  margin-left: 10px;
  display: inline-block;
}
.primary-cta:hover,
.primary-cta:focus {
  background: var(--pastel-mint);
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(126, 155, 181, 0.22);
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 50%;
  background: var(--pastel-yellow);
  border: 2px solid var(--secondary);
  margin-left: 20px;
  box-shadow: 0 1px 8px rgba(232, 191, 255, 0.13);
  transition: background 0.18s;
  z-index: 110;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--pastel-pink);
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 990px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==================================================
   MOBILE MENU OVERLAY
================================================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(242,233,220,0.99);
  box-shadow: 0 8px 30px 10px rgba(126, 155, 181, 0.24);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(.21,.74,.43,1.01);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 34px 6px 0;
  font-size: 2rem;
  background: var(--pastel-mint);
  color: var(--primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border: 1.5px solid var(--secondary);
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 30px 20px 30px;
  gap: 18px;
  width: 100%;
  height: 100%;
}
.mobile-nav a {
  font-size: 1.23rem;
  padding: 14px 0 10px 8px;
  border-radius: 14px;
  color: var(--primary);
  background: none;
  transition: background 0.16s, color 0.18s;
  margin-bottom: 2px;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-lavender);
  color: var(--secondary);
}

@media (min-width: 990px) {
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 989px) {
  header nav {
    display: none;
  }
}

/* =====================================================
   MAIN PAGE SECTIONS
====================================================== */
main > section {
  background: none;
  border-radius: 20px;
  margin-bottom: 60px;
}

/* Feature Cards */
.feature-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: saturate(0.7) brightness(1.1);
}
/* Ul lists in features */
.feature-grid ul {
  padding-left: 20px;
}

/* List Style */
ul li::before {
  content: '\2022';
  color: var(--secondary);
  display: inline-block;
  width: 1.06em;
  margin-left: -1.06em;
  font-size: 1.01em;
}

/* =====================================================
   CARDS
====================================================== */
.card {
  background: var(--pastel-yellow);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  position: relative;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.14s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(182, 161, 227, 0.12);
  transform: translateY(-3px) scale(1.012);
}

/* =====================================================
   FOOTER
====================================================== */
footer {
  background: var(--pastel-mint);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 38px 0 14px 0;
  margin-top: 40px;
  color: var(--primary);
  font-size: 0.99rem;
  box-shadow: 0 -2px 12px rgba(126,155,181,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  width: 60px;
  margin-bottom: 5px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: none;
  transition: background 0.14s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
footer address {
  font-style: normal;
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
}
footer .social-links {
  display: flex;
  gap: 12px;
  margin: 5px 0;
}
footer .social-links a {
  background: var(--pastel-lavender);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(118, 185, 195, 0.10);
}
footer .social-links a:hover {
  background: var(--pastel-mint);
  box-shadow: 0 4px 16px rgba(68, 114, 244, 0.18);
}

/* =====================================================
   RESPONSIVE
====================================================== */
@media (max-width: 560px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  main > section {
    margin-bottom: 35px;
  }
  .section {
    margin-bottom: 35px;
    padding: 24px 4px;
  }
  .feature-grid > div,
  .card {
    padding: 16px 10px;
    min-width: 0;
  }
}

/* =====================================================
   BUTTONS & INTERACTIVE ELEMENTS
====================================================== */
button, .primary-cta, .mobile-menu-toggle {
  transition: all 0.16s cubic-bezier(.52,.13,.63,.98);
}

/* =====================================================
   FORM ELEMENTS (if present)
====================================================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1.5px solid var(--secondary);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
  color: var(--primary);
  transition: border 0.14s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--secondary);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
====================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20000;
  background: var(--accent);
  box-shadow: 0 -2px 16px 0 rgba(126,155,181, 0.13);
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 18px 18px 18px;
  max-width: 700px;
  margin: 0 auto;
  left: 0; right: 0;
  font-size: 1.08rem;
  color: var(--primary);
  box-sizing: border-box;
  animation: cookieSlideUp 0.6s cubic-bezier(.68,-0.34,.75,1.23) 1;
}
@keyframes cookieSlideUp {
  0% { transform: translateY(70%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  flex: 3 1 320px;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  border-radius: 14px;
  padding: 9px 18px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  outline: none;
  background: var(--pastel-blue);
  color: var(--primary);
  transition: background 0.18s, color 0.16s, transform 0.14s;
  box-shadow: 0 2px 8px 0 rgba(126,155,181,0.10);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--pastel-mint);
}
.cookie-btn.reject {
  background: var(--pastel-pink);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-2px) scale(1.03);
  background: var(--pastel-yellow);
  color: var(--primary);
}
@media (max-width: 680px) {
  .cookie-consent-banner {
    flex-direction: column;
    justify-content: flex-start;
    max-width: 98vw;
    padding: 16px 6px;
    gap: 8px;
  }
  .cookie-consent-actions {
    gap: 8px;
  }
}

/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20100;
  background: rgba(33,49,72,0.19);
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.35s cubic-bezier(.66,0,.43,1);
}
.cookie-modal.visible {
  display: flex;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 6px 40px 0 rgba(33,49,72,0.13);
  padding: 30px 34px;
  width: 90vw;
  max-width: 425px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--primary);
  animation: cookieScaleIn 0.23s cubic-bezier(.59,0,.49,1.3);
}
@keyframes cookieScaleIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1.0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.14rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--pastel-blue);
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 8px rgba(126,155,181,0.12);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* =====================================================
   MICRO-ANIMATIONS & TRANSITIONS
====================================================== */
.card, .feature-grid > div, .primary-cta, .cookie-btn {
  transition: box-shadow 0.14s, background 0.16s, transform 0.14s, color 0.14s;
}
nav a, .mobile-nav a {
  transition: color 0.15s, background 0.15s;
}

/* =====================================================
   UTILITY
====================================================== */
.hide {
  display: none !important;
}

/* Prevent element overlap */
.section:not(:last-child),
main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* Ensure min 20px space between cards */
.card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}

/* Z-index layering */
header {
  z-index: 98;
}
.mobile-menu {
  z-index: 9999;
}
.cookie-consent-banner {
  z-index: 20000;
}
.cookie-modal {
  z-index: 20100;
}

/* =====================================================
   COLOR ACCESSIBILITY FIX FOR TESTIMONIALS
====================================================== */
.testimonial-card, .testimonial-card * {
  color: #213148 !important;
}

/* =====================================================
   END OF CSS
====================================================== */
