/* 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4ECE6;
  color: #183153;
  font-family: 'Merriweather', serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C5D86D;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li + li {
  margin-top: 8px;
}

/* BRAND FONTS LOADING (WEBSAFE/SIMILAR) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  color: #183153;
  background: #F4ECE6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Merriweather', serif;
  font-weight: 700;
  color: #183153;
  margin-bottom: 16px;
  line-height: 1.16;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 16px;
}
.subtitle {
  font-size: 1.25rem; /* 20px */
  font-style: italic;
  color: #41506b;
  margin-bottom: 24px;
}
p, blockquote, ul, ol {
  font-family: 'Merriweather', serif;
  font-size: 1.0625rem; /* 17px */
  color: #263960;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
blockquote {
  background: #fff;
  border-left: 4px solid #C5D86D;
  padding: 18px 30px;
  font-style: italic;
  color: #183153;
  margin-bottom: 12px;
  border-radius: 6px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  background: none;
  padding: 0;
  margin: 0 auto;
}

/* --- FLEX UTILITY CLASSES --- */
.features-grid, .card-container, .content-grid, .footer-main, .text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.features-grid {
  justify-content: space-between;
}
.content-grid {
  gap: 20px;
}
.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(24,49,83,0.06);
  padding: 30px 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s, transform 0.21s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(24,49,83,0.19);
  transform: translateY(-4px) scale(1.02);
}
.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: 12px;
  box-shadow: 0 2px 12px 0 rgba(24,49,83,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.testimonial-card blockquote {
  color: #263960;
  margin: 0;
  padding: 0 0 8px 0;
  font-size: 1.15rem;
}
.testimonial-card strong {
  color: #183153;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-block {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 15px 0 rgba(24,49,83,0.04);
  text-align: center;
  padding: 36px 24px;
  margin: 40px auto 0 auto;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #EDE8E0;
  box-shadow: 0 6px 18px -9px rgba(24,49,83,0.05);
  z-index: 100;
  width: 100%;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 18px;
}
.header-main > a img {
  height: 52px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Open Sans', serif;
  font-size: 1.063rem;
  color: #183153;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #C5D86D;
  border-bottom: 2px solid #C5D86D;
  background: none;
}
/* Call to action button in header */
.btn-primary {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  color: #fff;
  background: #183153;
  border-radius: 22px;
  padding: 12px 32px;
  font-size: 1.12rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.22s, color 0.2s;
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.07);
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #C5D86D;
  color: #183153;
}
.btn-secondary {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  background: #C5D86D;
  color: #183153;
  border-radius: 20px;
  padding: 11px 28px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.2s, box-shadow 0.22s;
  box-shadow: 0 2px 9px 0 rgba(197,216,109,0.10);
  display: inline-block;
  outline: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #183153;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #EDE8E0;
  padding-top: 40px;
  padding-bottom: 28px;
  margin-top: 40px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-main > a img {
  height: 50px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #183153;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C5D86D;
}
.footer-contact {
  font-size: 1rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #41506b;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin: 0;
  filter: grayscale(60%) brightness(0.9);
}

/* --- FAQ --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq div {
  padding: 18px 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(24,49,83,0.05);
  color: #183153;
}
.faq strong {
  color: #C5D86D;
  display: block;
  margin-bottom: 2px;
  font-size: 1.08em;
}

/* --- ICONS AND LISTS --- */
ul, ol {
  padding-left: 28px;
}
.content-wrapper ul li, .content-wrapper ol li {
  margin-bottom: 7px;
}
.content-wrapper li img {
  margin-right: 7px;
  vertical-align: -3px;
}

/* --- COOKIES BANNER AND MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #183153;
  color: #fff;
  box-shadow: 0 -2px 18px 0 rgba(24,49,83,0.10);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  align-items: center;
  padding: 26px 18px 22px 18px;
  gap: 18px;
  font-size: 1.0375rem;
  animation: slideUpBanner 600ms cubic-bezier(.37,.51,.69,.92);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', serif;
  border-radius: 19px;
  border: none;
  padding: 9px 26px;
  cursor: pointer;
  font-size: 1.02rem;
  transition: background 0.18s, color 0.15s;
  outline: none;
  margin-bottom: 0;
}
.btn-cookie-accept {
  background: #C5D86D;
  color: #183153;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: #B0C95E;
  color: #183153;
}
.btn-cookie-reject {
  background: #fff;
  color: #183153;
  border: 1px solid #C5D86D;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: #FAF8F3;
  color: #183153;
}
.btn-cookie-settings {
  background: #183153;
  color: #C5D86D;
  border: 1px solid #C5D86D;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #263960;
  color: #fff;
}
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,49,83,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 18px 28px 18px;
  box-shadow: 0 12px 46px -10px rgba(24,49,83,0.17);
  max-width: 94vw;
  min-width: 312px;
  width: 370px;
  font-size: 1.08rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeModal 0.36s cubic-bezier(.41,.84,.32,1.09);
}
@keyframes fadeModal {
  from { transform: translateY(60px) scale(.95); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-categories {
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.04em;
  color: #183153;
}
.cookie-toggle {
  accent-color: #C5D86D;
  transform: scale(1.24);
}
.close-cookie-modal {
  position: absolute;
  top: 14px;
  right: 22px;
  background: 0;
  border: 0;
  font-size: 1.32rem;
  color: #b0b9cc;
  cursor: pointer;
  transition: color 0.13s;
}
.close-cookie-modal:hover,
.close-cookie-modal:focus {
  color: #183153;
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 22px;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  color: #183153;
  background: #fff;
  border: 2px solid #C5D86D;
  border-radius: 15px;
  z-index: 1010;
  box-shadow: 0 2px 6px 0 rgba(24,49,83,0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #C5D86D;
  color: #183153;
  border-color: #183153;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  box-shadow: -7px 0 32px 0 rgba(24,49,83,0.19);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.41,.84,.32,1.09);
  padding: 40px 26px 20px 26px;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  border: 1px solid #EDE8E0;
  border-radius: 50%;
  font-size: 1.7rem;
  width: 40px;
  height: 40px;
  color: #183153;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, border-color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C5D86D;
  color: #183153;
  border-color: #C5D86D;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  color: #183153;
  font-size: 1.14rem;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C5D86D;
  color: #183153;
}
/* Overlay for mobile menu on small screens */
.mobile-menu-overlay {
  position: fixed;
  z-index: 1950;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,49,83,0.14);
  animation: fadeIn 0.2s;
}

/* Hide Mobile Menu on Desktop */
@media (min-width: 990px) {
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-overlay {
    display: none !important;
  }
}
@media (max-width: 989px) {
  .header-main .main-nav,
  .header-main .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- RESPONSIVE DESIGN, FLEX DIRECTION ADJUSTMENTS --- */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .container {
    max-width: 97vw;
  }
  .features-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .header-main {
    flex-direction: row;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.16rem; }
  .subtitle { font-size: 1rem; }
  .section {
    padding: 28px 7px;
    margin-bottom: 40px;
  }
  .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-main {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .container {
    max-width: 100vw;
    padding-left: 9px;
    padding-right: 9px;
  }
  .content-wrapper, .cta-block {
    padding-left: 0;
    padding-right: 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
  }
}
@media (max-width: 540px) {
  .header-main > a img, .footer-main > a img {
    height: 38px;
  }
  .cta-block {
    padding: 20px 6px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.btn-primary, .btn-secondary, .btn-cookie {
  transition: color 0.14s, background 0.14s, box-shadow 0.18s, border-color 0.17s;
}
.card, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.17s;
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(24,49,83,0.18);
  transform: scale(1.01);
}

/* --- UTILITY SPACING --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* --- SPECIAL CLASSES --- */
.cta-block a.btn-primary {
  margin-top: 16px;
}
.cta-block p {
  margin-bottom: 2px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- HIGHLIGHTING INPUTS, FOCUS STATE --- */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid #C5D86D;
  outline-offset: 2px;
}

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px dashed #C5D86D;
  outline-offset: 2px;
}

/* --- GENERAL SPACING RULES --- */
section + section {
  margin-top: 32px;
}
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-top: 20px;
}

/* --- PRINT STYLES --- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
  .container {
    max-width: 100vw;
    padding: 0;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
