/* CSS RESET & FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

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.5;
  background: #F7F3EA;
  color: #212529;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  overscroll-behavior-y: none;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { vertical-align: middle; max-width: 100%; height: auto; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* BRAND COLORS */
:root {
  --color-primary: #255A3D;
  --color-secondary: #96B97D;
  --color-accent: #F7F3EA;
  --color-bg: #F7F3EA;
  --color-blue-gray: #3A4958;
  --color-light-gray: #E6ECE6;
  --color-dark: #212529;
  --color-link: #255A3D;
  --color-focus: #CAE3CA;
  --color-white: #FFFFFF;
  --shadow-base: 0 2px 8px 0 rgba(58,73,88,0.05), 0 1.5px 5px 0 rgba(58,73,88,0.03);
  --shadow-hover: 0 4px 16px 0 rgba(58,73,88,0.11);
  --radius-card: 12px;
  --radius-button: 6px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --transition: all 0.2s cubic-bezier(.6,.05,.28,.91);
}

/* CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 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;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-white);
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light-gray);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-base);
}

.quick-links, .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu a {
  color: var(--color-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.footer-menu a:hover, .quick-links a:hover {
  color: var(--color-secondary);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 200px;
  margin-bottom: 24px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-blue-gray);
}
p, ul, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.text-section > ul {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section > ul > li {
  position: relative;
  margin-bottom: 8px;
}
section ul > li {
  margin-bottom: 12px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-base);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  border: none;
  text-align: center;
  letter-spacing: .02em;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.btn-link {
  color: var(--color-primary);
  background: transparent;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-button);
  padding: 8px 16px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-link:hover, .btn-link:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(58,73,88,0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  min-height: 72px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: var(--color-dark);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
header nav a:not(.btn-primary):hover, header nav a:not(.btn-primary):focus {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
}
header nav .btn-primary {
  margin-left: 16px;
  padding: 8px 20px;
}

.mobile-menu-toggle {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 3px 12px 0 rgba(58,73,88,0.10);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,90,61,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 9999;
  padding: 40px 28px 28px 28px;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  align-self: flex-end;
  position: relative;
  top: -18px;
  right: -8px;
  cursor: pointer;
  box-shadow: var(--shadow-base);
  margin-bottom: 32px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-white);
  background: transparent;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
  border-radius: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.07);
}

/* SHOW HAMBURGER ON MOBILE, HIDE DESKTOP NAV */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN SECTION PADDINGS */
main {
  padding-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
}

/* HOME PAGE FEATURE ICON BLOCKS */
.features ul, .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
  padding-left: 0;
}
.features ul li, .content-wrapper ul li {
  background: var(--color-light-gray);
  border-radius: 8px;
  box-shadow: var(--shadow-base);
  flex: 1 1 250px;
  min-width: 220px;
  padding: 16px 12px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: box-shadow var(--transition), background var(--transition);
}
.features ul li:hover, .content-wrapper ul li:hover {
  background: var(--color-focus);
  box-shadow: var(--shadow-hover);
}
.features ul li img, .content-wrapper ul li img {
  width: 32px;
  height: auto;
  margin-bottom: 8px;
  filter: grayscale(40%) contrast(110%);
}

/* QUICK LINKS */
.quick-links {
  margin-bottom: 12px;
}
.quick-links a {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-light-gray);
  border-radius: var(--radius-button);
  padding: 8px 18px;
  transition: background var(--transition), color var(--transition);
  border: 2px solid transparent;
}
.quick-links a:hover, .quick-links a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  font-size: 1.08rem;
  font-style: italic;
  background: var(--color-light-gray);
  color: var(--color-blue-gray);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-hover);
  margin-top: 12px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 600px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-style: normal;
  color: var(--color-primary);
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 -1.5px 10px 0 rgba(37,90,61,0.04);
  margin-top: 60px;
  padding: 48px 0 32px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer img {
  width: 42px;
  height: auto;
  margin-bottom: 8px;
}
footer p {
  color: var(--color-white);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}

/* FORMS CONTACT PAGE */
.text-section p img {
  vertical-align: middle;
  margin-right: 7px;
}

/* ANIMATIONS & INTERACTIONS */
.btn-primary, .btn-link, .mobile-menu-toggle, .mobile-menu-close, .section, .card, .features ul li, .content-wrapper ul li {
  transition: var(--transition);
}

/* FOCUS OUTLINES (ACCESSIBILITY) */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -3px 18px 0 rgba(37,90,61,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 16px 20px;
  z-index: 9999;
  min-height: 80px;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 1;
  transition: bottom 0.3s, transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  margin-right: 20px;
  font-size: 0.96rem;
  color: var(--color-dark);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.99rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-light-gray);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eee;
  color: var(--color-dark);
}
.cookie-btn.settings {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37,90,61,0.95);
  display: none;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadein .3s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: 14px;
  padding: 34px 30px 24px 30px;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: modalpop .23s;
}
@keyframes modalpop {
  from { transform: translateY(35px) scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.27rem;
}
.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-pref-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  background: var(--color-light-gray);
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: left var(--transition), background var(--transition);
  z-index: 2;
}
.cookie-toggle input:checked + span {
  left: 24px;
  background: var(--color-primary);
}
.cookie-category-label {
  margin-right: 20px;
  font-size: 1rem;
  color: var(--color-dark);
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--color-light-gray);
  color: var(--color-primary);
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 1.09rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .features ul, .content-wrapper ul {
    gap: 16px;
    flex-direction: column;
  }
  .footer-brand, .footer-contact {
    align-items: flex-start;
  }
  .section, section {
    margin-bottom: 28px;
    padding: 24px 8px;
  }
  main {
    padding-bottom: 30px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 10px;
    min-height: 56px;
    gap: 6px;
  }
  h1 {
    font-size: 1.63rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .section, section {
    margin-bottom: 16px;
    padding: 16px 4px;
  }
  .testimonial-card {
    max-width: 98vw;
    padding: 10px 7px;
  }
  .footer-brand img {
    width: 36px;
  }
  .footer-menu, .quick-links {
    gap: 13px;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 4px;
  }
  .testimonial-card {
    padding: 7px 3px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 20px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 13px 2px 11px 2px;
    font-size: .99rem;
  }
}

/* A11Y EXTRAS */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* PREVENT OVERLAPPING */
.card-container > *, .content-grid > *, .features ul > *, .quick-links > *, .footer-menu > *, .footer-contact > * {
  margin-bottom: 0;
}
