/* ===================
   CSS RESET & NORMALIZE
===================== */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #f7fafd;
  color: #23402a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a {
  color: #34623f;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f4a300;
  outline: none;
}
ul, ol { margin-left: 24px; }
:focus { outline: 2px solid #34623f; outline-offset: 2px; }

/* ===================
   VARIABLES
===================== */
:root {
  --primary: #26492f;
  --secondary: #f7fafd;
  --accent: #f4a300;
  --brand-dark: #23402a;
  --bg-card: #ffffff;
  --gray: #e0e6eb;
  --border: #cadae1;
  --shadow: 0 2px 16px rgba(50,60,60,0.09);
  --shadow-hover: 0 4px 24px rgba(40,60,70,0.14);
  --radius: 12px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===================
   TYPOGRAPHY
===================== */
h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.2;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--primary);
  line-height: 1.2;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--brand-dark);
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--brand-dark);
}
p {
  margin-bottom: 16px;
  color: #293c3e;
}
.text-section ul, .text-section ol,
ul, ol {
  margin-bottom: 18px;
  padding-left: 20px;
}
strong { font-weight: 600; color: var(--primary); }

/* ===================
   CONTAINERS & LAYOUT
===================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  background: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 320px;
  min-width: 260px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.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;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
  flex: 1 1 320px;
  min-width: 260px;
  color: #1e2d23;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===================
   HEADER & NAVIGATION
===================== */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(40,70,45,0.04);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  justify-content: flex-start;
  min-height: 72px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 10px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav img { height: 38px; margin-right: 10px; vertical-align: middle; }
.main-nav a.cta-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 1px 6px rgba(51, 100, 65, 0.07);
  transition: background 0.18s, box-shadow 0.18s;
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 16px rgba(244, 163, 0, 0.09);
}
.main-nav a:hover:not(.cta-btn), .main-nav a:focus:not(.cta-btn) {
  background: var(--secondary);
  color: var(--accent);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 999;
}
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ===================
   MOBILE NAVIGATION
===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 26px rgba(30,40,20,0.16);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 1101;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  background: transparent;
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 28px 18px 28px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.11rem;
  color: var(--primary);
  padding: 12px 4px;
  width: 100%;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.mobile-nav a:hover,.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Overlay for mobile menu */
.mobile-menu::before {
  content: '';
  position: fixed;
  z-index: 1100;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,40,41,0.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.mobile-menu.open::before {
  opacity: 1;
  pointer-events: auto;
}

/* ===================
   FOOTER
===================== */
footer {
  background: #23402a;
  color: #fff;
  padding: 36px 0 15px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #e2e8ce;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.98rem;
  color: #c9e2c4;
}

/* ===================
   BUTTONS & CTA
===================== */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(39,78,51,0.08);
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 3px 18px rgba(244, 163, 0, 0.13);
  text-decoration: none;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  color: #203626;
  box-shadow: 0 2px 14px rgba(38,73,47,0.07);
  border-radius: var(--radius);
  font-style: italic;
  transition: box-shadow 0.16s, border-color 0.16s;
  flex: 1 1 320px;
  min-width: 260px;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin-bottom: 4px;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--primary);
  font-style: normal;
  margin-left: 8px;
}

/* ===================
   FORMS
===================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  width: 100%;
  background: #f3f9f8;
  color: #23402a;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  background: #fff;
}
label {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 500;
  display: block;
  color: var(--brand-dark);
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(20,25,20,0.06);
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: center;
  transition: transform 0.33s cubic-bezier(.8,-0.01,.41,1), opacity 0.21s;
  font-size: 1.02rem;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  color: #23402a;
  max-width: 530px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  margin: 0 4px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 8px rgba(244,163,0,0.10);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: #e2e8ce;
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--accent);
}


/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11004;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,61,41,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.23s;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  min-width: 288px;
  max-width: 98vw;
  background: #fff;
  padding: 34px 32px 25px 32px;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(38,78,51,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 11006;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
}

.cookie-modal-btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* =========================
   UTILITY CLASSES
========================= */
.mb-0 { margin-bottom: 0!important; }
.mb-20 { margin-bottom: 20px!important; }
.mb-32 { margin-bottom: 32px!important; }
.mt-32 { margin-top: 32px!important; }
.align-center { align-items: center!important; }

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1140px) {
  .container { max-width: 96vw; }
}
@media (max-width: 990px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.38rem; }
  .footer-address { gap: 12px; }
}
@media (max-width: 850px) {
  .main-nav { gap: 12px; }
  .footer-address { flex-direction: column; gap: 6px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; margin-top: 10px; }
  .container { padding: 0 8px; }
  .section { padding: 26px 8px; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    font-size: 0.97rem;
  }
  .mobile-menu {
    width: 98vw;
    max-width: none;
    font-size: 1.13rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width:550px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.05rem; }
  .cta-btn { font-size: 0.98rem; }
  .testimonial-card, .card { font-size: 0.98rem; }
}
@media (max-width: 410px) {
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =========================
   ANIMATIONS
========================= */
.cta-btn, .card, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-btn {
  transition: background 0.21s, color 0.12s, box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.mobile-menu {
  will-change: transform;
}

/* =========================
   Z-INDEX GUIDELINES
========================= */
/*
  .mobile-menu: 1101
  .mobile-menu-overlay: 1100
  .cookie-banner: 9999
  .cookie-modal-overlay: 11004
*/
