/* RESET & BASE STYLES ===================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F3F6F2;
  color: #223243;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: #223243;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #95AB63;
}
ul, ol {
  padding-left: 1.25em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #223243;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
subheadline, .subheadline {
  color: #556375;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 1.5em;
  display: block;
}

/* LAYOUT ======================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 900px;
  margin: 0 auto;
}

.card-container, .feature-grid, .card-grid {
  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;
}
.card {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(34,50,67,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 22px 24px;
  min-width: 250px;
  transition: box-shadow 0.21s, transform 0.21s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(34,50,67,0.12);
  transform: translateY(-3px) scale(1.015);
}

/* BUTTONS ===================================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 13px 30px;
  font-family: 'Montserrat', serif;
  font-size: 1.04rem;
  font-weight: 600;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s, border 0.2s;
}
.btn-primary {
  background: #223243;
  color: #FFF;
  border: 2px solid #223243;
  box-shadow: 0 1px 6px 0 rgba(34,50,67,0.11);
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background: #FFF;
  color: #223243;
  border-color: #223243;
  box-shadow: 0 4px 18px 0 rgba(34,50,67,0.13);
}
.btn-secondary {
  background: #95AB63;
  color: #223243;
  border: 2px solid #95AB63;
  box-shadow: 0 1px 6px 0 rgba(110,134,90,0.08);
  margin-top: 12px;
}
.btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
  background: #f3f6f2;
  color: #223243;
  border-color: #95AB63;
  box-shadow: 0 4px 12px 0 rgba(110,134,90,0.14);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* HEADER & NAVIGATION =============================== */
header {
  background: #F3F6F2;
  border-bottom: 1px solid #E6E7E2;
  padding: 0;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 40px;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: #223243;
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.17s, border-bottom 0.13s;
  border-bottom: 2.2px solid transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #95AB63;
  border-bottom: 2.2px solid #95AB63;
}
.main-nav .btn-primary {
  margin-left: 18px;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 19px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #223243;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  margin-left: 20px;
  transition: color 0.18s;
  z-index: 1021;
}

/* MOBILE MENU =============================== */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: #223243;
  color: #fff;
  z-index: 1020;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(.75,0,.35,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 24px 18px 24px;
  width: 100%;
  height: 100vh;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #FFF;
  align-self: flex-end;
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.15s;
  min-width: 44px;
  min-height: 44px;
  z-index: 1022;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #95AB63;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.32rem;
  font-family: 'Montserrat', serif;
  line-height: 1.38;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 0 10px 6px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  min-width: 100px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #95AB63;
  background: rgba(255,255,255,0.04);
}

/* MAIN / CONTENT GENERAL ============================= */
main {
  width: 100%;
  background: transparent;
  padding-bottom: 40px;
}
section {
  width: 100%;
}

/* FEATURE GRID - ICON FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 9px;
}
.feature-grid > div {
  background: #FFF;
  min-width: 210px;
  flex: 1 1 230px;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(34,50,67,0.07);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #E3E7DF;
  transition: box-shadow 0.18s, border 0.2s;
}
.feature-grid > div img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
  filter: grayscale(0.2);
}
.feature-grid > div:hover {
  box-shadow: 0 4px 22px 0 rgba(149,171,99,0.10);
  border-color: #95AB63;
}

/* TESTIMONIALS (OPINIONS) ============================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(34,50,67,0.08);
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid #E6E7E2;
  max-width: 620px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(149,171,99,0.09);
}
.testimonial-card p {
  color: #223243;
  font-size: 1.07rem;
  font-family: 'Georgia', serif;
  font-style: italic;
}
.testimonial-card strong {
  color: #223243;
  font-weight: 600;
  font-family: 'Montserrat', serif;
}
.testimonial-card > div {
  color: #95AB63;
  font-size: 1.02rem;
  font-family: 'Montserrat', serif;
}

/* CONTACT INFO ============================ */
.contact-info {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}
.contact-info img {
  height: 20px;
  width: 20px;
  filter: grayscale(0.22);
}

/* FOOTER =============================== */
footer {
  background: #223243;
  color: #F3F6F2;
  padding: 42px 0 18px 0;
  border-radius: 0 0 26px 26px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  flex: 0 0 auto;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #F3F6F2;
  text-decoration: none;
  transition: color 0.16s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #95AB63;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
  color: #F3F6F2;
}
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  color: #BFD1C4;
  margin-top: 34px;
}

/* COOKIE CONSENT BANNER =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  border-top: 1.8px solid #E3E7DF;
  box-shadow: 0 -2px 12px 0 rgba(34,50,67,0.09);
  padding: 28px 16px;
  z-index: 1100;
  gap: 28px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  animation: fadeInBanner 0.6s;
}
@keyframes fadeInBanner {
  from { opacity: 0; bottom: -60px; } to { opacity: 1; bottom: 0; }
}
.cookie-banner-message {
  flex: 1 1 0%;
  color: #223243;
  font-size: 1.05rem;
  margin-right: 16px;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  border-radius: 21px;
  padding: 8px 24px;
  border: 2px solid #223243;
  font-size: 0.99rem;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, border 0.15s;
  box-shadow: 0 1px 5px 0 rgba(34,50,67,0.07);
  background: #FFF;
  color: #223243;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #223243;
  color: #FFF;
}
.cookie-btn.accept {
  background: #223243;
  color: #FFF;
  border: 2px solid #223243;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #95AB63;
  color: #223243;
  border-color: #95AB63;
}
.cookie-btn.settings {
  border-color: #95AB63;
  color: #223243;
  background: #FFF;
  margin-right: 0;
}
.cookie-btn.reject {
  background: #EEE;
  color: #656d74;
  border-color: #CCC;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dbe2ce;
  color: #223243;
}

/* COOKIE PREFERENCES MODAL ----------------------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,50,67,0.58);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.32s;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  border-radius: 15px;
  box-shadow: 0 6px 46px 0 rgba(34,50,67,0.23);
  max-width: 430px;
  min-width: 280px;
  padding: 32px 28px 28px 28px;
  color: #223243;
  font-family: 'Georgia', serif;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modalIn 0.41s;
}
@keyframes modalIn {
  from { transform: scale(0.97) translateY(40px); opacity: .7; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #223243;
  font-size: 1.7rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.21rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #E6E7E2;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background 0.23s;
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: #95AB63;
}
.cookie-toggle-knob {
  position: absolute;
  left: 2px;
  top: 2.6px;
  width: 16px;
  height: 15px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 0.5px 2px 0 rgba(34,50,67,0.05);
  transition: left 0.2s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 18px;
}
.cookie-category.essential .cookie-toggle {
  background: #BFD1C4;
  cursor: not-allowed;
}
.cookie-category.essential .cookie-toggle-knob {
  background: #95AB63;
}
.cookie-category-title {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #223243;
  margin-left: 3px;
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: #656d74;
  margin-left: 2px;
}
.cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

/* MISC EFFECTS =============================== */
::selection {
  background: #95AB63;
  color: #FFF;
}

hr {
  border: 0;
  border-bottom: 1.3px solid #E6E7E2;
  margin: 32px 0;
}

/* TYPOGRAPHY SCALE =============================== */
@media (max-width: 520px) {
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.22rem; }
}

/* RESPONSIVE DESIGN =========================== */
@media (max-width: 991px) {
  .container {
    max-width: 97vw;
    padding: 0 13px;
  }
  .main-nav {
    gap: 14px;
    font-size: 0.97rem;
    margin-left: 22px;
  }
  header img {
    height: 40px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding-top: 7px;
    min-height: 50px;
  }
  .feature-grid, .card-container, .content-grid, .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 36px;
  }
  .footer-nav {
    gap: 16px;
    font-size: 0.97rem;
  }
  .footer-copy {
    font-size: 0.88rem;
    margin-top: 24px;
  }
  .testimonial-card {
    padding: 15px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 17px 10px 14px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    padding: 16px 8px;
  }
  .cookie-banner-message {
    margin-bottom: 7px;
  }
  .cookie-modal {
    min-width: 94vw;
    max-width: 100vw;
    padding: 21px 9px 18px 12px;
  }
}

@media (max-width: 480px) {
  .footer-logo img { height: 27px; }
  .footer-logo { margin-bottom: 10px; }
  .footer-contact { font-size: 0.93rem; }
  .cookie-modal {
    min-width: 98vw;
    padding: 19px 5vw 13px 5vw;
  }
}

/* VISUAL POLISH: SHADOWS, RADIUS, ETC. ============ */
.card, .testimonial-card, .feature-grid > div {
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(34,50,67,0.08);
}
.feature-grid > div:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(149,171,99,0.10), 0 2px 14px 0 rgba(34,50,67,0.09);
}

/* FORMS (if any added later) =============== */
input, textarea, select {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.7px solid #DEE2DA;
  padding: 11px 13px;
  background: #FFF;
  margin-bottom: 19px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #95AB63;
  outline: none;
}
button, input[type="submit"] {
  font-family: 'Montserrat', serif;
}

/* ENSURE MINIMUM SPACING & GAP PER REQUIREMENTS ========== */
.section, .card, .testimonial-card {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .content-grid, .footer-nav, .text-image-section {
  gap: 20px;
}

/* Z-INDEX STACKING (header/menu/etc) ============== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* MICRO-INTERACTIONS ========================= */
.card, .feature-grid > div, .testimonial-card, .btn-primary, .btn-secondary, .cookie-btn {
  transition: box-shadow 0.22s, transform 0.18s, background 0.16s, color 0.14s, border 0.13s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.99);
}

/* ACCESSIBILITY / FOCUS VISIBLE ========= */
a:focus, .btn-primary:focus, .btn-secondary:focus, button:focus, input:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #95AB63;
  outline-offset: 2px;
}

/* UTILITIES ===================== */
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; height: 1px; overflow: hidden; width: 1px; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ENSURE NO OVERLAPPING */
.card, .testimonial-card { margin-bottom: 20px !important; }
.section { margin-bottom: 60px; }

/* END / --- CSS --- */
