/* ================================================================
   CSS RESET & BASE STYLES (Normalize + typographic reset)
================================================================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F9F8F4;
  color: #264653;
  height: 100%;
}
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #F9F8F4;
  color: #264653;
  position: relative;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: #264653; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6B8F71; outline: none; }
ul, ol { list-style: disc inside; }
strong, b { font-weight: 700; }
hr { border: none; border-top: 1px solid #E5E7EB; margin: 32px 0; }

/* ================================================================
   BRAND TYPOGRAPHY & SCALE
================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #264653;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 16px;
}
h4, h5, h6 { font-size: 1.125rem; }
p, li { font-size: 1rem; margin-bottom: 12px; color: #264653; }
.text-section p, .text-section ul, .text-section li {
  color: #264653;
}

/* ================================================================
   CONTAINER & LAYOUT SYSTEM
================================================================== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1170px;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (min-width: 900px) {
  .section { padding: 55px 0; }
  .content-wrapper { gap: 32px; }
}

/* ================================================================
   HEADER & NAVIGATION
================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.04);
  position: relative;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 18px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a:focus {
  background: #F9F8F4;
  color: #6B8F71;
}
.cta-primary, .mobile-nav a.cta-primary, .cookie-banner .btn-primary {
  background: #264653;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 24px;
  border: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(38,70,83,0.04);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.cta-primary:hover, .cta-primary:focus, .cookie-banner .btn-primary:hover {
  background: #6B8F71;
  color: #fff;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 16px rgba(38,70,83,0.10);
}

/* ================================================================
   MOBILE NAVIGATION
================================================================== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #264653;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 6px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
  z-index: 1003;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #6B8F71;
}
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}
nav { flex: 1 1 auto; }
@media (max-width: 1024px) {
  nav {
    display: none !important;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 12px 36px rgba(38,70,83,0.22);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.5,0,0.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open { transform: translateX(0); opacity: 1; pointer-events: all; }
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 32px 16px 0;
  font-size: 2.25rem;
  background: none;
  border: none;
  color: #264653;
  padding: 6px; cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6B8F71;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 20px;
  border-radius: 7px;
  font-weight: 500;
  width: 100%;
  text-align: center;
  background: transparent;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9F8F4;
  color: #6B8F71;
}
.mobile-nav a.cta-primary {
  background: #264653;
  color: #fff;
  font-weight: 600;
  margin-top: 24px;
  border-radius: 24px;
}

/* ================================================================
   MAIN SECTIONS, FLEX PATTERNS
================================================================== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-item, .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(38, 70, 83, 0.07);
  padding: 32px 24px 24px 24px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-grid > div img {
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  background: #fff;
  color: #264653;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(38, 70, 83, 0.09);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
  min-width: 0;
  max-width: 620px;
}
.testimonial-card strong {
  color: #6B8F71;
  font-weight: 700;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-highlight {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: #264653;
  margin-top: 18px;
  border-radius: 7px;
  background: #F9F8F4;
  padding: 10px 18px;
  display: inline-block;
  font-weight: 600;
}

/* ================================================================
   BUTTONS, MICRO-INTERACTIONS
================================================================== */
button {
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.cta-primary, .btn-primary {
  background: #264653;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.11);
  transition: background 0.18s, box-shadow 0.14s, transform 0.17s;
  margin-top: 12px;
  letter-spacing: 0.2px;
}
.cta-primary:hover, .cta-primary:focus, .btn-primary:hover, .btn-primary:focus {
  background: #6B8F71;
  color: #fff;
  transform: translateY(-1.5px) scale(1.019);
  box-shadow: 0 8px 22px rgba(38,70,83,0.13);
}
.btn-secondary {
  background: #F9F8F4;
  color: #264653;
  border: 1.5px solid #264653;
  font-weight: 500;
  border-radius: 8px;
  padding: 11px 26px;
  margin-right: 10px;
  transition: background 0.18s, color 0.16s, border-color 0.14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #264653;
  color: #fff;
  border-color: #6B8F71;
}
.btn-neutral {
  background: #fff;
  color: #264653;
  border: 1.5px solid #E5EAF1;
  font-weight: 500;
  border-radius: 8px;
  padding: 11px 26px;
  transition: background 0.16s, color 0.14s, border-color 0.13s;
}
.btn-neutral:hover, .btn-neutral:focus {
  background: #F9F8F4;
  color: #6B8F71;
  border-color: #6B8F71;
}

/* all links in cookie banner/modal */
.cookie-banner a, .cookie-modal a {
  text-decoration: underline;
  color: #6B8F71;
  font-weight: 500;
}
.cookie-banner a:hover, .cookie-modal a:hover {
  color: #264653;
  text-decoration: none;
}

/* ================================================================
   FOOTER
================================================================== */
footer {
  background: #fff;
  border-top: 1px solid #E5EAF1;
  padding: 40px 0 16px 0;
  margin-top: 80px;
  text-align: left;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
footer img {
  height: 42px;
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
  footer nav {
    gap: 36px;
  }
  footer .text-section {
    align-items: flex-end;
    max-width: 420px;
  }
}
footer p {
  color: #6B8F71;
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ================================================================
   RESPONSIVE TYPOGRAPHY & LAYOUT
================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .card, .testimonial-card {
    min-width: 90vw;
    max-width: 100%;
    padding: 20px 10px 18px 10px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 15px 8px;
  }
  footer .container {
    gap: 18px;
  }
  footer nav {
    gap: 14px;
  }
}

/* ================================================================
   COOKIE BANNER & MODAL (MINIMALIST)
================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1800;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-top: 1.5px solid #E5EAF1;
  color: #264653;
  padding: 22px 24px;
  box-shadow: 0 -4px 32px rgba(38,70,83,0.065);
  font-size: 1rem;
  transition: transform 0.31s cubic-bezier(0.5,0,0.2,1);
  gap: 24px;
}
.cookie-banner.hide { transform: translateY(110%); pointer-events: none; opacity: 0; }
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-neutral {
  margin-right: 12px;
  min-width: 120px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    font-size: 0.98rem;
    padding: 18px 10px 18px 10px;
  }
  .cookie-banner .btn-primary,
  .cookie-banner .btn-secondary,
  .cookie-banner .btn-neutral {
    min-width: 90px;
    margin-right: 6px;
    margin-bottom: 7px;
  }
}
/* COOKIE SETTINGS MODAL (centered popup) */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(38,70,83,0.18);
  transition: opacity 0.28s;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2100;
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
  border-radius: 18px;
  min-width: 310px;
  max-width: 96vw;
  max-height: 96vh;
  padding: 34px 28px 24px 28px;
  box-shadow: 0 14px 44px rgba(38,70,83,0.20);
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transition: transform 0.31s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.21s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #264653;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 2110;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: #6B8F71;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-top: 0;
}
.cookie-modal ul {
  margin-bottom: 18px;
  padding-left: 0;
}
.cookie-modal li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  background: #E5EAF1;
  position: relative;
  margin-right: 8px;
  flex-shrink: 0;
  transition: background 0.17s;
}
.cookie-modal .cookie-switch.active { background: #6B8F71; }
.cookie-modal .cookie-switch.disabled { opacity: 0.30; }
.cookie-modal .cookie-slider {
  position: absolute;
  left: 2px;
  top: 2.5px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal .cookie-switch.active .cookie-slider { left: 21px; background: #fff; }
.cookie-modal .cookie-switch.disabled .cookie-slider { background: #eaeaea; }
.cookie-modal label {
  font-size: 1rem;
  color: #264653;
}
.cookie-modal .notice {
  font-size: 0.98rem;
  color: #6B8F71;
  margin-top: 2px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* ================================================================
   FORMS, INPUTS (for contact forms, not shown but for completeness)
================================================================== */
input, textarea, select {
  font-family: inherit;
  background: #fff;
  border: 1.5px solid #E5EAF1;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.16s
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6B8F71;
}
label { font-weight: 500; color: #264653; display: block; margin-bottom: 7px; }

/* ================================================================
   CARD LAYOUTS, UTILITY CLASSES
================================================================== */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; }
.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; align-items: center; gap: 20px; padding: 20px; margin-bottom: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* SPACING FOR GENERIC BLOCKS */
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-2 { margin-top: 16px !important; }

/* ================================================================
   SUBTLE ANIMATIONS & FOCUS STATES
================================================================== */
.section, .feature-grid > div, .card, .testimonial-card, .cta-primary, .btn-primary, .pricing-highlight {
  transition: box-shadow 0.25s cubic-bezier(.33,.66,.66,1), background 0.22s, transform 0.19s;
}
.section:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(38,70,83,0.09);
  background: #F9F8F4;
  transform: translateY(-3px) scale(1.01);
}
.section:focus-within,
.card:focus-within,
.cta-primary:focus {
  box-shadow: 0 0 0 3px #6B8F71, 0 2px 12px rgba(38,70,83,0.10);
  outline: none;
}
:focus { outline: 2px dashed #6B8F71; outline-offset: 2px; }

/* ================================================================
   CUSTOM SCROLLBAR FOR MODALS (optional, accessible)
================================================================== */
.cookie-modal::-webkit-scrollbar {
  width: 9px;
  background: #fff;
}
.cookie-modal::-webkit-scrollbar-thumb {
  background: #E5EAF1;
  border-radius: 8px;
}

/* ================================================================
   PRINT STYLES (optional)
================================================================== */
@media print { 
  *, *::before, *::after { background: #fff !important; color: #111 !important; box-shadow: none !important;}
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100vw; padding: 0 10px !important; }
}
