/* =========================
   CSS RESET & NORMALIZATION
=========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  color: #31445E;
  background: linear-gradient(135deg, #f5f5f5 50%, #e2e7ef 100%);
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  padding-left: 1.4em;
}
li {
  margin-bottom: 8px;
}
:focus-visible {
  outline: 2px solid #B27D90;
  outline-offset: 2px;
}

/* =========================
   TYPOGRAPHY
=========================== */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #31445E;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #31445E;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #B27D90;
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: #31445E;
}
.subheadline {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  color: #B27D90;
  margin-bottom: 24px;
  line-height: 1.5;
}
p, .text-section p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #31445E;
}
strong {
  color: #31445E;
  font-weight: 700;
}
.text-section {
  font-size: 1rem;
  color: #31445E;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   LAYOUT STRUCTURE & SPACING
=========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(49,68,94,.06), 0 1.5px 8px 0 rgba(178,125,144,.04);
  padding: 36px 24px;
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: linear-gradient(120deg, #faf6f8 70%, #e2e7ef 100%);
  border-radius: 15px;
  box-shadow: 0 1px 6px 0 rgba(49,68,94,0.07);
  padding: 28px 20px 20px 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow .25s, transform .25s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(49,68,94,0.13);
  transform: translateY(-4px) scale(1.02);
}
.features-grid img {
  width: 38px;
  margin-bottom: 6px;
}

ul {
  margin-bottom: 18px;
}
.content-wrapper ul {
  padding-left: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 10px 0 rgba(49,68,94,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(49,68,94,0.13);
  transform: translateY(-5px) scale(1.03);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  background: #f5f5f5;
  box-shadow: 0 1px 10px 0 rgba(49,68,94,0.07);
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: #31445E;
}
.testimonial-card strong {
  color: #B27D90;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

footer {
  background: #31445E;
  color: #fff;
  padding: 40px 0 28px 0;
  margin-top: 40px;
  position: relative;
}
footer a {
  color: #fff;
  transition: color .17s;
}
footer a:hover {
  color: #B27D90;
}
footer .container {
  align-items: flex-start;
}
footer .footer-contact {
  margin-bottom: 6px;
  font-size: .95rem;
}
footer p:last-child {
  font-size: 0.92rem;
  color: #e3e7ef;
  margin-top: 13px;
}

/* =========================
   BUTTONS & LINKS
=========================== */
.cta-primary {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 30px;
  background: linear-gradient(90deg, #B27D90 0%, #31445E 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .02em;
  box-shadow: 0 2px 12px 0 rgba(178,125,144,0.09);
  margin-top: 8px;
  margin-bottom: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .2s, box-shadow .18s, transform .13s, color .11s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #31445E 0%, #B27D90 100%);
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(49,68,94,.15);
  transform: translateY(-2px) scale(1.02);
}
button, .button {
  border-radius: 26px;
  background: #B27D90;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 500;
  padding: 10px 24px;
  cursor: pointer;
  transition: background .18s, color .18s, transform .14s;
}
button:hover, .button:hover {
  background: #31445E;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.mobile-menu-toggle {
  display: none;
  background: #B27D90;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background .22s, color .16s, box-shadow .18s;
  z-index: 131;
  position: relative;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #31445E;
}

/* =========================
   HEADER & NAVIGATION
=========================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(49,68,94,0.07);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 74px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}
.main-nav a {
  color: #31445E;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 14px 6px 14px;
  border-radius: 18px;
  transition: background .15s, color .13s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  background: #B27D90;
  color: #fff;
}
.main-nav .cta-primary {
  margin-left: 10px;
}

/* ============
   MOBILE NAV
============== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49,68,94,0.97);
  z-index: 210;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 25px 24px 25px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.57,0.29,0,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: #B27D90;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #31445E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 500;
  padding: 10px 0px 10px 4px;
  width: 100%;
  border-radius: 8px;
  transition: background .14s, color .11s;
}
.mobile-nav a.cta-primary {
  background: linear-gradient(90deg, #B27D90 10%, #31445E 100%);
  color: #fff;
  margin-top: 4px;
  padding: 13px 24px;
  font-size: 1.22rem;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(178,125,144,0.16);
  color: #fff;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #f5f5f5, #e2e7ef 100%);
  color: #31445E;
  box-shadow: 0 -1.5px 14px 0 rgba(49,68,94,.09);
  padding: 24px 20px 24px 20px;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.cookie-banner.hidden {
  transform: translateY(140%);
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border-radius: 26px;
  padding: 9px 20px;
  font-size: 1rem;
  color: #fff;
  background: #B27D90;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .14s, color .12s, box-shadow .18s;
}
.cookie-btn.settings {
  background: #31445E;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #31445E;
}
.cookie-btn.reject {
  background: #c2c2c2;
  color: #31445E;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #B27D90;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,68,94,0.63);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s;
}
.cookie-modal {
  background: #fff;
  color: #31445E;
  border-radius: 18px;
  max-width: 410px;
  width: 92vw;
  padding: 30px 26px 22px 26px;
  box-shadow: 0 7px 34px 0 rgba(49,68,94,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-fade-in .42s cubic-bezier(0.33,1,0.68,1);
}
@keyframes cookie-modal-fade-in {
  0% { opacity: 0; transform: translateY(70px) scale(0.95);} 
  100% { opacity: 1; transform: none; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: #B27D90;
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  z-index: 2;
}
.cookie-modal .modal-close:hover {
  background: #31445E;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  margin-bottom: 10px;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1.01rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #B27D90;
  margin-left: 0.7em;
}
.cookie-category .always {
  color: #aaa;
  font-size: 0.96em;
  font-weight: 400;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 18px;
}

/* =============================
   RESPONSIVE DESIGN (MOBILE FIRST)
============================= */
@media (max-width: 1090px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 4vw;
  }
  .section, main > section {
    margin-bottom: 48px;
    padding: 28px 0 28px 0;
  }
  .content-wrapper {
    padding: 26px 10px;
    gap: 18px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    /* revealed via JS by toggling .open */
    display: flex;
    flex-direction: column;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 10px;
    gap: 13px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 6px;
    font-size: .98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .98rem;
    padding: 18px 8px 18px 8px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .content-wrapper {
    padding: 12px 3px;
  }
  .footer-contact p {
    font-size: .92rem;
    word-break: break-word;
  }
  .cta-primary, button, .button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
  }
  .features-grid > div, .card {
    min-width: 0;
    width: 100%;
    padding: 18px 8px 12px 8px;
  }
}

/* =========================
   ACCESSIBILITY/USABILITY
=========================== */
::selection {
  background: #B27D90;
  color: #fff;
}

/* ===============
   MICRO-INTERACTIONS
================== */
.card, .features-grid > div, .cta-primary, button, .mobile-menu-close {
  transition: box-shadow .22s, transform .16s, background .19s, color .13s;
}
.cta-primary:focus, .cookie-btn:focus { box-shadow: 0 0 0 3px #B27D9044; }

/* =========================
   Z-INDEX FOR OVERLAYS
=========================== */
.mobile-menu {
  z-index: 210;
}
.cookie-banner {
  z-index: 1200;
}
.cookie-modal-overlay {
  z-index: 1300;
}

/* =========================
   UTILITIES
=========================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.text-center { text-align: center !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* =========================
   PRINT STYLE (optional)
=========================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display:none !important; }
  body { background: #fff !important; }
}
