/* =============================================================
   RESET & BASE STYLES
   ============================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #24496C;
  background: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #24496C;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #77B087;
  outline: none;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 20px;
}
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #24496C;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; font-weight: 500; }
h4, h5, h6 { font-size: 1rem; font-weight: 500; }
blockquote {
  font-style: italic;
  padding-left: 18px;
  border-left: 4px solid #77B087;
  color: #24496C;
  background: #F8EFD6;
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 14px 0 rgba(74, 84, 89, 0.05);
  /* functional beauty: subtle soft shape & air */
}
@media (max-width: 992px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.subheadline {
  font-size: 1.15rem;
  font-weight: 400;
  color: #466A92;
  margin-bottom: 18px;
}
/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(36,73,108,0.08);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header a img {
  height: 46px;
  width: auto;
  border-radius: 9px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #24496C;
  padding: 5px 13px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.main-nav a.cta {
  background: #24496C;
  color: #fff;
  font-weight: 600;
  padding: 7px 24px;
  border-radius: 30px;
  margin-left: 10px;
  box-shadow: 0 2px 10px 0 rgba(36,73,108,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a:not(.cta):hover, .main-nav a:not(.cta):focus {
  background: #F8EFD6;
  color: #466A92;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #77B087;
  color: #24496C;
  box-shadow: 0 4px 24px 0 rgba(36,73,108,0.08);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #24496C;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  border-radius: 10px;
  padding: 6px 12px;
  transition: background 0.13s;
  line-height: 1;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  background: #F8EFD6;
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding-top: 60px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.8,0.03,0.26,0.94);
  box-shadow: -10px 0 26px 0 rgba(68, 105, 129, 0.10);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #24496C;
  cursor: pointer;
  z-index: 2100;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  background: #F8EFD6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #24496C;
  padding: 8px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  font-weight: 500;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8EFD6;
  color: #77B087;
}
.mobile-nav a.cta {
  background: #24496C;
  color: #fff;
  padding: 11px 18px;
  margin: 8px 0;
  border-radius: 30px;
  font-size: 1.15rem;
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus {
  background: #77B087;
  color: #24496C;
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================================================
   MAIN SECTIONS, FLEX SPACING & LAYOUT
   ============================================================= */
.features-grid, .features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-list {
  list-style: none;
  margin-left: 0;
  width: 100%;
}
.features-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #F8EFD6;
  border-radius: 16px;
  padding: 20px 20px 18px 20px;
  box-shadow: 0 2px 8px 0 rgba(36,73,108, 0.05);
  flex: 1 1 170px;
  min-width: 200px;
  max-width: 240px;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.features-list li img {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
}
.price {
  margin-top: 6px;
  font-size: 1.06rem;
  color: #77B087;
  font-weight: 600;
  background: #fff;
  padding: 3px 11px;
  border-radius: 14px;
  border: 1px solid #eaddc5;
}
/* All lists visually in sections */
ul, ol {
  margin-bottom: 18px;
  font-size: 1rem;
}
/* For sectioned cards etc */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px 0 rgba(36,73,108,0.05);
  margin-bottom: 20px;
  min-width: 220px;
}
.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;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .features-list li, .card {
    min-width: 180px;
    max-width: 100%;
    padding: 18px 12px 14px 12px;
  }
  .content-grid, .card-container, .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .features-list {
    gap: 14px;
  }
  .card-container {
    gap: 14px;
  }
  .section {
    padding: 17px 2vw;
    margin-bottom: 28px;
  }
}

/* =============================================================
   BUTTONS & CTA STYLES
   ============================================================= */
.cta, .btn, button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #77B087;
  color: #24496C;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 30px;
  padding: 11px 32px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(36,73,108,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  margin-top: 7px;
  margin-bottom: 7px;
  display: inline-block;
}
.cta:hover, .btn:hover, button:hover, .cta:focus, .btn:focus, button:focus {
  background: #24496C;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(36,73,108,0.11);
}
input[type="submit"] {
  min-width: 140px;
  margin-top: 12px;
}

/* =============================================================
   TESTIMONIALS & REVIEW SECTIONS
   ============================================================= */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  min-width: 250px;
  box-shadow: 0 2px 10px 0 rgba(36,73,108,0.07);
  color: #24496C;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  flex-direction: column;
}
.testimonial-card blockquote {
  color: #24496C;
  font-style: italic;
  background: none;
  border: none;
  margin-bottom: 0;
  padding: 0;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card cite {
  font-size: 1rem;
  color: #77B087;
  font-style: normal;
  margin-left: 24px;
}
.testimonial-summary {
  font-weight: 600;
  color: #24496C;
  background: #F8EFD6;
  border-radius: 12px;
  padding: 13px 24px;
  margin-top: 7px;
  margin-bottom: 6px;
  box-shadow: 0 2px 10px 0 rgba(36,73,108,0.04);
  font-size: 1.07rem;
}
@media (max-width: 900px) {
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
  }
}

/* Strong color contrast for testimonials */
.testimonial-card, .testimonial-card blockquote, .testimonial-summary {
  background: #fff;
  color: #24496C;
}

/* =============================================================
   UTILITY CLASSES & MISCELLANEA
   ============================================================= */
.tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #466A92;
  font-size: 1.25rem;
  margin: 18px 0 16px 0;
  background: #F8EFD6;
  border-radius: 10px;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.price-info {
  background: #F8EFD6;
  color: #24496C;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 500;
  margin: 0 0 16px 0;
  font-size: 1rem;
  box-shadow: 0 1px 5px 0 rgba(36,73,108,0.04);
}
.rodo-reminder {
  background: #F8EFD6;
  color: #24496C;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(36,73,108,0.04);
}
.thankyou-message {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F8EFD6;
  padding: 24px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1.18rem;
  text-align: center;
  color: #24496C;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px 0 rgba(36,73,108,0.06);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  color: #24496C;
  font-family: 'Roboto', Arial, sans-serif;
}
.contact-details img {
  height: 19px;
  width: auto;
  margin-right: 4px;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: #fff;
  border-top: 1px solid #eae0c7;
  padding: 0;
  margin-top: 50px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 30px 0 18px 0;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #24496C;
  opacity: 0.92;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 7px;
  transition: background 0.1s, color 0.1s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F8EFD6;
  color: #77B087;
}
.brand-info {
  color: #466A92;
  font-size: 1rem;
  opacity: 0.80;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  filter: grayscale(30%) brightness(0.89) contrast(1.08);
  transition: filter 0.14s;
  border-radius: 6px;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(1.1) grayscale(0%) drop-shadow(0 1px 4px rgba(119,176,135,0.13));
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px 0;
    padding: 20px 0 13px 0;
    text-align: center;
  }
}

/* =============================================================
   COOKIE CONSENT BANNER & MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  background: #F8EFD6;
  color: #24496C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 4999;
  box-shadow: 0 6px 24px 0 rgba(36,73,108,0.17);
  padding: 22px 28px 22px 22px;
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.8,0.04,0.26,0.94), transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner__content {
  flex: 1 1 220px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #77B087;
  color: #24496C;
  border: none;
  padding: 9px 22px;
  border-radius: 24px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 5px 0 rgba(36,73,108,0.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #24496C;
  color: #fff;
}
.cookie-btn.cookie-reject-btn {
  background: #fff;
  color: #466A92;
  border: 1px solid #77B087;
}
.cookie-btn.cookie-settings-btn {
  background: #FAFAF8;
  color: #24496C;
  border: 1px solid #E3DAC1;
}
.cookie-btn.cookie-reject-btn:hover,
.cookie-btn.cookie-reject-btn:focus,
.cookie-btn.cookie-settings-btn:hover,
.cookie-btn.cookie-settings-btn:focus {
  background: #F8EFD6;
  color: #24496C;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px 0;
    padding: 15px 12px 15px 9px;
    font-size: 0.99rem;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Cookie Modal (hidden by default) */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,73,108,0.33);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__box {
  background: #fff;
  padding: 36px 26px 26px 26px;
  border-radius: 18px;
  max-width: 425px;
  width: 94vw;
  box-shadow: 0 7px 32px 0 rgba(36,73,108,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  color: #24496C;
}
.cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 13px;
  font-size: 1.65rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #24496C;
  opacity: 0.75;
  border-radius: 7px;
  transition: background 0.16s;
  padding: 2px 6px;
}
.cookie-modal__close:focus, .cookie-modal__close:hover {
  background: #F8EFD6;
  opacity: 1;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category label {
  font-weight: 500;
  color: #24496C;
}
input[type="checkbox"].cookie-toggle {
  width: 18px;
  height: 18px;
  accent-color: #77B087;
  margin-right: 3px;
  border-radius: 5px;
}
.cookie-category .cookie-essential {
  color: #8e8e8e;
  font-size: 0.98em;
  padding-left: 3px;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 8px;
}
/* =============================================================
   SCANDINAVIAN CLEAN OVERRIDES
   ============================================================= */
.section, .card, .features-list li, .price-info, .testimonial-card, .thankyou-message, .rodo-reminder, .testimonials, .cookie-modal__box {
  /* subtle shadow for scandinavian-light look */
  box-shadow: 0 2.5px 12px 0 rgba(36,73,108,0.06);
}
.section, .card, .features-list li, .testimonial-card, .cookie-modal__box {
  border-radius: 15px 24px 18px 18px/18px 15px 24px 18px; /* slightly organic corners */
}
.card, .features-list li, .testimonial-card {
  border: 1px solid #ece6d3;
}
.card {
  background: #F8EFD6;
}
h1, h2, h3 {
  text-shadow: 0 1px 0 #F8EFD6;
}
/* =============================================================
   FORM FIELDS (if needed on some pages)
   ============================================================= */
input[type="text"], input[type="email"], textarea {
  border: 1px solid #E3DAC1;
  border-radius: 10px;
  font-size: 1rem;
  padding: 9px 13px;
  margin-bottom: 14px;
  background: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  color: #24496C;
  transition: border 0.15s, box-shadow 0.15s;
  width: 100%;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #77B087;
  box-shadow: 0 0 0 2px #d9ead3;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 80px;
}

/* =============================================================
   TYPOGRAPHY HIERARCHY
   ============================================================= */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; margin-bottom: 17px; }
  h2 { font-size: 1.32rem; margin-bottom: 11px; }
  h3 { font-size: 1.06rem; margin-bottom: 8px; }
  .subheadline { font-size: 1rem; }
  .brand-info, .footer-nav a, .testimonial-card blockquote, .testimonial-summary { font-size: 0.97rem; }
}

/* =============================================================
   MICRO-INTERACTIONS & SMOOTH TRANSITIONS
   ============================================================= */
.section, .card, .features-list li, .testimonial-card, .footer-content, .cookie-modal__box {
  transition: box-shadow 0.18s;
}
.cta, .btn, button, input[type="submit"] {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s;
}
input[type="text"], input[type="email"], textarea {
  transition: border 0.14s, box-shadow 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 26px 0 rgba(36,73,108,0.13);
}
.features-list li:hover {
  box-shadow: 0 5px 20px 0 rgba(36,73,108,0.11);
  border-color: #cffece;
  background: #eafae4;
}

/* =============================================================
   RESPONSIVE ADJUSTMENTS & FLEXBOX ENFORCEMENT
   ============================================================= */
@media (max-width: 768px) {
  .text-image-section {flex-direction: column;}
  .features-grid, .card-container, .content-grid, .testimonials { flex-direction: column; gap: 16px;}
  .footer-content { flex-direction: column; gap: 11px;}
}

/* Always flex, never grid/columns */
.features-list, .testimonials, .footer-content, .content-grid,
.card-container, .features-grid, .text-image-section, .feature-item {
  display: flex;
  flex-wrap: wrap;
}

/* Gap/margin for all cards/sections */
.section, .card, .features-list li, .testimonial-card {
  margin-bottom: 20px;
}

/* Prevent overlap always */
.section, .card, .features-list li, .content-wrapper, .testimonial-card {
  min-width: 0;
  word-break: break-word;
}

/* =============================================================
   CUSTOM SCROLLBAR (OPTIONAL, MODERN ONLY)
   ============================================================= */
::-webkit-scrollbar {
  width: 9px;
  background: #E3DAC1;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #ccddb4;
  border-radius: 11px;
}

/* =============================================================
   HIDE OUTLINES ON MOUSE, SHOW FOR KEYBOARD NAVIGATION
   ============================================================= */
:focus:not(:focus-visible) {outline: none;}
:focus-visible {outline: 2px solid #24496C; outline-offset: 2px;}

/* =============================================================
   ACCESSIBILITY: HIGH CONTRAST FOR TESTIMONIALS/REVIEWS
   ============================================================= */
.testimonial-card,
.testimonial-card blockquote,
.testimonial-summary {
  color: #24496C !important;
  background: #fff !important;
}

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