/* ============================================================
   CSS RESET & BASE NORMALIZATION
   ============================================================ */

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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  background-color: #fff;
}

body {
  background: #fff;
  color: #215732;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  font-weight: 400;
}

/* Make fonts accessible */
* {
  box-sizing: border-box;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

a {
  color: #215732;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #184324;
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}

li {
  margin-bottom: 0.6em;
}

strong, b {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid #E2E8DF;
  margin: 30px 0;
}

/* =============================================================
   TYPE SCALE & BRAND TYPOGRAPHY
   =============================================================*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #215732;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.17;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
h5, h6 {
  font-size: 1rem;
}

.subtitle {
  color: #184324;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.cta-text {
  font-size: 1.125rem;
  color: #215732;
  margin-bottom: 24px;
}

small {
  font-size: 0.875rem;
  color: #446756;
}

/* Visual separators */
.section:not(:last-child) {
  border-bottom: 1px solid #E2E8DF;
}

/* =============================================================
   CONTAINERS & SECTIONS
   =============================================================*/

.container {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
  max-width: 1140px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============================================================
   HEADER & NAVIGATION
   =============================================================*/

header {
  background: #fff;
  border-bottom: 1px solid #E2E8DF;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: #215732;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #FFD23F;
  text-decoration: none;
}

.cta-primary {
  background: #215732;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(33, 87, 50, 0.10);
  border: none;
  outline: none;
  transition: background 0.18s, box-shadow 0.24s, color 0.18s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #184324;
  color: #FFD23F !important;
  box-shadow: 0 4px 20px 0 rgba(33, 87, 50, 0.17);
}

/* =========================
   MOBILE NAVIGATION
============================ */

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #215732;
  font-size: 2.1rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 250;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E2E8DF;
  color: #184324;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 60px 0 rgba(33,87,50,0.06);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.38,1.08,.36,.99);
  z-index: 3000;
  padding: 38px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0%);
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #215732;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 0 16px 0;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFD23F;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.mobile-nav a {
  font-size: 1.25rem;
  color: #215732;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 4px;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E2E8DF;
  color: #184324;
}

/* Hide desktop nav on mobile, mobile nav everywhere but mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Logo sizing */
header img {
  height: 42px;
}
@media (max-width: 480px) {
  header img {
    height: 32px;
  }
}

/* ===============================================
   LAYOUT FLEXBOXES (MANDATORY PATTERNS)
   ===============================================*/

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(33, 87, 50, 0.05);
  padding: 32px 24px 26px 24px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  border: 1px solid #F4F6F4;
  transition: box-shadow 0.22s, border-color 0.18s, background 0.18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 32px 0 rgba(33, 87, 50, 0.11);
  border-color: #E2E8DF;
  background: #E2E8DF;
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px 0 rgba(33, 87, 50, 0.06);
  padding: 28px 24px;
  min-width: 200px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(33, 87, 50, 0.13);
}

.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-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #1c2b1f;
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 22px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  box-shadow: 0 2px 14px 0 rgba(33, 87, 50, 0.13);
  border: 1px solid #E2E8DF;
  font-size: 1.07rem;
  transition: box-shadow 0.18s, background 0.12s;
}
.testimonial-card:focus-within, .testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(33, 87, 50, 0.17);
  background: #F8FAF8;
}
.testimonial-card strong {
  color: #215732;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
}

.star-rating {
  color: #FFD23F;
  font-size: 1.25rem;
  letter-spacing: .02em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #215732;
  font-size: 1.06rem;
  margin-bottom: 12px;
}
.contact-details img {
  width: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

/* ===================================================
   FOOTER
   =================================================== */

footer {
  background: #F8FAF8;
  border-top: 1px solid #E2E8DF;
  padding: 32px 0 0 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 1rem;
  color: #215732;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #215732;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 1px;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD23F;
}

.footer-contact {
  font-size: 0.98rem;
  color: #215732;
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.footer-contact span {
  white-space: nowrap;
}

/* ===================================================
   BUTTONS & INTERACTIONS
   =================================================== */

button, .cta-primary {
  cursor: pointer;
  transition: background 0.19s, color 0.15s, box-shadow 0.2s, border 0.14s;
}
button:active {
  transform: scale(0.97);
}

/* For non-CTA buttons */
.button-secondary,
.cookie-btn {
  background: #E2E8DF;
  color: #215732;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 12px;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px 0 rgba(33, 87, 50, 0.08);
}
.button-secondary:hover, .button-secondary:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: #FFD23F;
  color: #215732;
}

/* ===================================================
   COOKIE CONSENT BANNER & POPUP
   =================================================== */

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #215732;
  border-top: 1px solid #E2E8DF;
  box-shadow: 0 -8px 32px 0 rgba(33,87,50,0.09);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 25px 20px 25px;
  width: 100%;
  animation: cookie-banner-in 0.4s cubic-bezier(.49,1.24,.44,.90);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cookie-btn.accept {
  background: #215732;
  color: #fff;
  font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #184324;
  color: #FFD23F;
}
.cookie-btn.reject {
  background: #E2E8DF;
  color: #215732;
}
.cookie-btn.settings {
  background: #FFD23F;
  color: #215732;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFEC97;
  color: #215732;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33, 87, 50, 0.35);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(33,87,50,0.24);
  max-width: 420px;
  width: 92vw;
  padding: 40px 30px 30px 30px;
  color: #215732;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.38s;
  position: relative;
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.93) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  border: none;
  background: none;
  font-size: 1.7rem;
  color: #215732;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: #FFD23F; }

.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #cdd8cb;
  opacity: .66;
}
.cookie-category label {
  font-size: 1.03rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0;
  color: #215732;
  cursor: pointer;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Misc. improvements and custom components
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(33, 87, 50, 0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 800px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 44px;
  }
  .feature-grid {
    gap: 16px;
  }
  .testimonial-grid {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 18px 3vw;
    margin-bottom: 30px;
  }
}

/* Responsive alignment rules for flexboxes */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .feature-grid,
  .testimonial-grid,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }

  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }

  .testimonial-card, .feature-grid > div {
    width: 100%;
    max-width: 100%;
  }
}

/* Make sure elements don't overlap */
.card, .feature-grid > div, .testimonial-card, .section, .content-wrapper, .container {
  margin-bottom: 20px;
}
.section:last-child, .container:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

/* Consistent form element styling for accessibility & usability */
input, select, textarea {
  padding: 10px 14px;
  border: 1px solid #E2E8DF;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: #215732;
  margin-bottom: 10px;
  width: 100%;
  box-shadow: 0 1px 3px 0 rgba(33, 87, 50, 0.02);
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.3px solid #215732;
  outline: 0;
}

/* Util: visually hide but accessibly available */
.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px); /* IE6, IE7 */
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

/* No scroll when menu/modal open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* Subtle link underline on hover (except buttons) */
a:not(.cta-primary):not(.button-secondary):hover, a:not(.cta-primary):not(.button-secondary):focus {
  text-decoration: underline;
  color: #184324;
}

/* ================================
   ACCESSIBILITY & MICRO-INTERACTIONS
   ================================ */

*:focus-visible {
  outline: 2px solid #FFD23F;
  outline-offset: 2px;
}

button:disabled,
input:disabled,
.cta-primary:disabled,
.button-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* Animations for buttons */
.cta-primary, .button-secondary, .cookie-btn {
  transition: 
    background 0.2s,
    color 0.14s,
    box-shadow 0.18s,
    border 0.14s,
    transform 0.13s;
}

.cta-primary:active {
  transform: scale(0.97);
}

/* For small screens: make gap smaller, font matches */
@media (max-width: 400px) {
  .cta-primary, .button-secondary, .cookie-btn {
    font-size: 0.96rem;
    padding: 10px 13px;
  }
}

/* ===============================
   SCROLLBARS
   =============================== */

::-webkit-scrollbar {
  width: 8px;
  background: #E2E8DF;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 6px;
}

/* ========================
   PRINT STYLES
======================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner { display: none !important; }
  .container { box-shadow: none !important; }
  body { background: #fff !important; color: #111 !important; }
}

/* ================
   END CSS FILE
================== */
