/* RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F5EC;
  color: #23496B;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23496B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8BC63E;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.5em;
}

/* FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #23496B;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: #376186;
  margin-bottom: 24px;
}
strong, b {
  font-weight: 700;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 820px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
main > section.hero {
  margin-bottom: 0;
  padding-bottom: 24px;
  background: #FDFBF5;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 3px 16px 0 rgba(35,73,107,0.07);
}

/* --- FLEXBOX LAYOUTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 24px 0 rgba(35,73,107,0.07);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  max-width: 288px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.16s, box-shadow 0.18s;
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 4px 32px 0 rgba(35,73,107,0.17);
}

.service-list {
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}
.service-list li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,73,107,0.08);
  padding: 22px 18px;
}

.testimonial-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.testimonial-card {
  background: #F7F5EC;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(35,73,107,0.04);
  padding: 20px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1rem;
  color: #23496B;
  gap: 14px;
  min-width: 230px;
  max-width: 340px;
  margin-bottom: 20px;
}
.testimonial-meta {
  font-size: 0.98em;
  font-style: italic;
  color: #7e6046;
}
.star-ratings {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 500;
  font-size: 1.1rem;
}
.star-ratings img {
  width: 22px;
  height: 22px;
}
.star-ratings span {
  color: #23496B;
  margin-left: 8px;
}

.card, .feature-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 13px 0 rgba(35,73,107,0.09);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 4px 32px 0 rgba(35,73,107,0.15);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-information {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 2px 16px 0 rgba(35,73,107,0.066);
}

/* BUTTONS, CTA */
.cta {
  display: inline-block;
  background: #8BC63E;
  color: #23496B;
  border-radius: 48px;
  padding: 14px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 14px 0 rgba(139,198,62,0.16);
  transition: box-shadow 0.16s, background 0.15s, color 0.16s, transform 0.12s;
  cursor: pointer;
  border: none;
}
.cta.primary {
  background-color: #23496B;
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(35,73,107,0.22);
}
.cta.primary:hover, .cta.primary:focus {
  background: #8BC63E;
  color: #23496B;
  transform: translateY(-3px) scale(1.05);
}
.cta:hover, .cta:focus {
  background: #699a2f;
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(139,198,62,0.17);
  transform: translateY(-2px) scale(1.025);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(35,73,107,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  border-radius: 0 0 24px 24px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo-link img {
  height: 62px;
  width: auto;
  display: block;
  border-radius: 14px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 12px;
  border-radius: 20px;
  transition: background 0.14s, color 0.133s;
}
nav.main-nav a.cta {
  margin-left: 18px;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: #8BC63E;
  color: #fff;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  background: #F7F5EC;
  border: none;
  color: #23496B;
  font-size: 2.1rem;
  border-radius: 16px;
  padding: 5px 16px;
  cursor: pointer;
  margin-left: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.13s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #8BC63E;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #efeee7;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 44px 32px 16px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: #8BC63E;
  color: #23496B;
  border-radius: 16px;
  font-size: 2.1rem;
  padding: 2px 12px;
  cursor: pointer;
  border: none;
  z-index: 1101;
  transition: background 0.14s, color 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #23496B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 62px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  color: #23496B;
  padding: 14px 0;
  border-radius: 0 17px 17px 0;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8BC63E;
  color: #fff;
}

/* Hide nav/Show menu on mobile */
@media (max-width: 980px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .mobile-menu {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mobile-menu-close {
    right: 12px;
  }
}

/* FOOTER */
footer {
  background: #23496B;
  color: #fff;
  padding: 30px 0 20px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 60px;
  box-shadow: 0 -3px 18px rgba(35,73,107,0.04);
}
footer .container {
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.footer-main-links, .footer-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-main-links a, .footer-secondary-links a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 11px;
  border-radius: 12px;
  transition: background 0.13s, color 0.13s;
}
.footer-main-links a:hover, .footer-secondary-links a:hover {
  background: #8BC63E;
  color: #23496B;
}
.footer-legal-links {
  font-size: 0.98rem;
  color: #F7F5EC;
  opacity: 0.88;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8e3;
  color: #23496B;
  padding: 24px 8vw 24px 8vw;
  box-shadow: 0 -2px 18px rgba(35,73,107,0.18);
  border-radius: 22px 22px 0 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookie-slide-in 0.76s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 22px;
}
.cookie-banner .cookie-btn {
  background: #8BC63E;
  color: #23496B;
  padding: 12px 27px;
  border-radius: 48px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0;
  border: none;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 12px 0 rgba(139,198,62,0.15);
  cursor: pointer;
}
.cookie-banner .cookie-btn.settings {
  background: #23496B;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #699a2f;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #8BC63E;
  color: #23496B;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,73,107,0.10);
  z-index: 1610;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 64px 0 rgba(35,73,107,0.26);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  animation: modal-in 0.5s cubic-bezier(0.44,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 21px;
  color: #23496B;
}
@keyframes modal-in {
  from { transform: scale(0.92) translateY(32px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-categories {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #F7F5EC;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 26px; height: 26px;
}
.cookie-category label {
  font-size: 1.06rem;
}
.cookie-category.essential {
  opacity: 0.77;
}
.cookie-modal-footer {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* Responsive: MOBILE FIRST */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid {
    gap: 18px;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .testimonial-card {
    min-width: 60vw;
    max-width: 95vw;
    width: 100%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  section { padding: 32px 8px; }
  .feature-grid, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper {
    gap: 12px;
    padding: 0 1vw;
    max-width: 98vw;
  }
  footer {
    padding: 22px 0 12px 0;
  }
  .cookie-banner {
    padding-left: 14px; padding-right: 14px;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    min-width: 90vw;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.11rem; }
  .card, .feature-grid > div, .testimonial-card, .contact-information {
    padding: 14px 9px;
    min-width: 0;
    max-width: 98vw;
  }
  .content-wrapper {
    padding: 0 0vw;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid #8BC63E;
  outline-offset: 2px;
}

/* ----- END STYLES ----- */
