/* === CSS RESET & BASELINE 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, menu, 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, 
main, 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #ffffff;
  color: #234f2e;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary: #234f2e;
  --primary-light: #317142;
  --secondary: #ffffff;
  --background: #F8FFF2;
  --accent: #b2c354;
  --shadow: 0 2px 12px rgba(50,80,60,0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --header-height: 76px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px 0;
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-bottom: 1px solid #ebebeb;
  margin: 32px 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 18px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }

p, li, dd {
  font-size: 1rem;
  color: #234f2e;
  margin-bottom: 8px;
}

blockquote {
  color: #234f2e;
  font-style: italic;
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding-left: 18px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 1px 10px rgba(35,79,46,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 0;
  line-height: 1.3;
  color: var(--primary);
  transition: color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--accent);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(50,90,60,0.08);
  margin-left: 24px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, scale 0.15s;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary-light);
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(50,90,60,0.10);
  outline: none;
  transform: scale(1.04);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 102;
  margin-left: 16px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fffefc;
  box-shadow: -2px 0 40px rgba(35,79,46,0.12);
  z-index: 105;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.43,.41,.26,.97);
  transform: translateX(0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(-100vw);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 24px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: var(--accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  padding: 14px 0;
  width: 100%;
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  text-decoration: none;
}

/* --- Responsive NAV Toggle --- */
@media (max-width: 1024px) {
  header nav { display: none; }
  .cta-btn { margin-left: 0; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-menu {
    left: 100vw;
    width: 100vw;
    padding: 0;
  }
  .mobile-nav {
    padding: 24px 12px;
  }
}

/* === HERO SECTIONS === */
.hero {
  background: var(--background);
  padding: 56px 0 40px 0;
  margin-bottom: 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 800;
}
.hero p {
  font-size: 1.11rem;
  color: #436b55;
  margin-bottom: 18px;
}

/* === SECTIONS === */
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: var(--shadow);
}

/* === FEATURES GRID === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.features-grid > div {
  flex: 1 1 240px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.features-grid > div:hover,
.features-grid > div:focus-within {
  box-shadow: 0 6px 24px rgba(50,70,60,0.14);
  transform: translateY(-3px) scale(1.03) ;
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}
.features-grid h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.features-grid p {
  font-size: 0.99rem;
  color: #436b55;
  margin-bottom: 0;
}

/* === ABOUT / OFFER / FAQ / LEGAL === */
ul, ol {
  margin: 0 0 20px 16px;
  padding-inline-start: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
dt {
  font-weight: bold;
  margin-top: 16px;
}
dd {
  margin-left: 0;
  margin-bottom: 12px;
  color: #436b55;
}

.legal {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(50,80,60,0.06);
  margin-bottom: 40px;
  padding: 40px 0;
}
.legal .content-wrapper {
  gap: 14px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 680px;
  transition: box-shadow 0.19s, transform 0.16s;
  color: #234f2e;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(50,70,60,0.14);
  transform: scale(1.02);
}
.testimonial-card blockquote {
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: #234f2e;
  margin-bottom: 2px;
  padding: 0;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: #6e907c;
  font-size: 1rem;
  font-style: normal;
  margin-left: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* === CTA & NEWSLETTER === */
.cta {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 0 48px 0;
  margin-bottom: 42px;
}
.cta .container { align-items: center; }
.cta .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cta h2,
.cta h3 {
  color: var(--primary);
}
.cta-btn {
  background: var(--primary);
  color: var(--secondary);
  margin-top: 14px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary-light);
  color: var(--secondary);
}
.newsletter-signup {
  background: var(--secondary);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px rgba(50,90,60,0.07);
  padding: 22px 24px;
  margin-top: 16px;
  max-width: 380px;
}
.newsletter-signup h3 {
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-bottom: 6px;
}

/* === CONTACT INFO === */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 28px;
  margin-top: 8px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-info img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

/* === OTHER STANDARD BLOCKS === */
.confirmation {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 44px;
  padding: 40px 0;
}
.confirmation .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}
.confirmation ul {
  margin: 0 0 16px 16px;
  text-align: left;
}

/* === FOOTER === */
footer {
  background: var(--secondary);
  border-top: 1px solid #e8efe3;
  margin-top: 56px;
  padding: 36px 0 30px 0;
  width: 100%;
  font-size: 0.99rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: #234f2e;
  opacity: 0.84;
  transition: color 0.13s, opacity 0.13s;
  font-size: 0.99rem;
}
footer nav a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #436b55;
  font-size: 0.98rem;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  opacity: 0.7;
}

/* === FLEX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/* === SPACING === */
section { margin-bottom: 60px; padding: 40px 20px; }
.card { margin-bottom: 20px; }
.card-container, .features-grid, .testimonial-card, .content-grid, .contact-info { gap: 20px; }

/* === BUTTONS === */
button, .cta-btn, .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(50,90,60,0.06);
  transition: background 0.18s, color 0.14s, box-shadow 0.15s;
}
button:hover, button:focus, .cta-btn:hover, .cta-btn:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(50,90,60,0.09);
  outline: none;
}

/* === FORMS (if any in future) === */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #e3eedb;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  color: #234f2e;
  width: 100%;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffffdd;
  box-shadow: 0 -2px 18px rgba(40,60,40,0.09), 0 -1px 0 #e3eedb;
  padding: 24px 18px 18px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  z-index: 1200;
  min-height: 64px;
  max-width: 560px;
  margin: 0 auto;
  left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.36s, transform 0.36s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  color: #234f2e;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin: 0 2px;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #f6f7f3;
  color: var(--primary);
  border: 1px solid #d1d8c6;
}
.cookie-btn.settings {
  background: var(--background);
  color: var(--primary);
  border: 1px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary-light);
  color: #fff;
  outline: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35, 79, 46, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 34px rgba(50,80,60,0.16);
  min-width: 320px;
  max-width: 95vw;
  padding: 40px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.36s cubic-bezier(.35,.67,.74,1.02);
}
@keyframes fadeInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1);   opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 500;
  color: #234f2e;
}
.cookie-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #e2ebd9;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch:checked {
  background: var(--accent);
}
.cookie-switch:before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: transform 0.23s cubic-bezier(.5,.1,.27,1.38);
  box-shadow: 0 1px 4px rgba(38,66,41,0.06);
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}
.cookie-category .always-on {
  color: #b2c354;
  font-size: 0.91rem;
  font-weight: 600;
}
.cookie-modal .cookie-actions {
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.18s;
}
.cookie-modal-close:hover { color: var(--accent); opacity: 1; }

/* === MEDIA QUERIES / RESPONSIVE === */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .features-grid,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 24px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; padding: 0 10px; }
  .hero,
  .section,
  .legal,
  .confirmation,
  .cta {
    padding: 24px 0;
  }
  .features-grid,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
  }
  .cta .content-wrapper, .confirmation .content-wrapper {
    gap: 10px;
    padding: 0 4px;
  }
  .footer-contact > div { font-size: 0.97rem; }
  .newsletter-signup { padding: 15px 10px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-content {
    flex-direction: column;
    justify-content: center;
  }
  .cookie-banner { flex-direction: column; gap: 10px; text-align: left; }
}
@media (max-width: 540px) {
  .container { padding: 0 3vw; }
  .hero h1 { font-size: 1.35rem; }
  .cta-btn, button, .cookie-btn { padding: 10px 13px; font-size: 0.98rem; }
  .cookie-modal-content { padding: 22px 8px 16px 8px; min-width: 0; }
}
