/* =======================
   1. 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f6f7f3;
  color: #253321;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ============================
   2. CSS VARIABLES & COLORS
   ============================ */
:root {
  /* Brand Colors from Brand Guidelines with earth/nature accents */
  --color-primary: #234EA4;
  --color-secondary: #E6F0FA;
  --color-accent: #1C773E;
  --color-accent-strong: #127B2C;
  --color-bg: #f6f7f3;
  --color-bg-card: #fff;
  --color-earth: #A77B45;   /* earth brown */
  --color-grass: #278F41;   /* grass green */
  --color-leaf: #D0E5C7;    /* light leaf */
  --color-stone: #756659;   /* deep stone accent */
  --color-text-main: #253321;
  --color-text-light: #fff;
  --color-grey: #EEF6ED;
  --color-shadow: rgba(44, 59, 22, 0.09);
  --border-radius: 18px;
  --shadow-regular: 0 2px 8px var(--color-shadow);
  --shadow-hover: 0 4px 16px rgba(44, 59, 22, 0.14);
}

/* ===================================
   3. TYPOGRAPHY
   =================================== */
body, html {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text-main);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-accent-strong);
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 14px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--color-accent-strong);
}
blockquote {
  padding: 20px 30px;
  background: var(--color-leaf);
  border-left: 6px solid var(--color-grass);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-style: italic;
  margin: 40px 0;
}

/* Typography Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
}

/* ===============================
   4. GLOBAL LAYOUT CLASSES
   =============================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-regular);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
  transition: box-shadow 0.25s, transform 0.18s;
  min-width: 250px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--color-leaf);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(158, 169, 134, 0.17);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-accent);
  max-width: 500px;
  width: 100%;
  color: #253321;
}
.testimonial-card p {
  color: #253321;
  font-size: 1.05rem;
}
.testimonial-card strong {
  font-size: 0.97rem;
  color: var(--color-primary);
  letter-spacing: 0.12rem;
}

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

/* ===========================================
   5. HEADER, NAVIGATION, and LOGO STYLING
   =========================================== */
header {
  background: #f6f7f3;
  box-shadow: 0 1px 8px rgba(60,90,10,0.09);
  padding-top: 16px;
  position: sticky;
  top: 0;
  z-index: 21;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 0 0 16px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 16px;
  border-radius: 11px;
  background: var(--color-leaf);
  box-shadow: 0 2px 7px rgba(44, 59, 22, 0.14);
  transition: box-shadow 0.22s;
}
.main-nav img:hover {
  box-shadow: 0 4px 16px rgba(44, 59, 22, 0.23);
}
.main-nav a {
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-text-light);
}

/* Hide burger by default on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-text-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-left: auto;
  margin-right: 6px;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent-strong);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 11px;
    font-size: 0.99rem;
  }
  .main-nav img { height: 34px; }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 7px;
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 20px;
    right: 18px;
    z-index: 40;
  }
}

/* ================================
   6. MOBILE MENU/OVERLAY STYLES
   ================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,255,252,0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 0 0;
  transform: translateX(-105vw);
  transition: transform 0.32s cubic-bezier(.7,1,.5,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-earth);
  color: var(--color-text-light);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-left: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(44,59,22,0.12);
  transition: background 0.23s;
  z-index: 120;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-grass);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  gap: 0;
  margin-top: 16px;
}
.mobile-nav a {
  padding: 17px 34px;
  color: var(--color-primary);
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1px solid #e1efe3;
  background: transparent;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--color-leaf);
  color: var(--color-accent-strong);
}

/* Hide mobile menu on desktop */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   7. HERO & SECTION STYLES
   =========================== */
.hero {
  min-height: 340px;
  background: linear-gradient(120deg, #e3ecdd 60%, #c4dbcb 120%);
  border-radius: 0 0 32px 32px/0 0 38px 38px;
  margin-bottom: 40px;
  box-shadow: 0 6px 18px rgba(39,100,35,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  text-shadow: 0 2px 12px rgba(255,255,255,0.10);
}
.hero h1, .hero h2 {
  color: var(--color-accent-strong);
  font-size: 2.3rem;
  line-height: 1.12;
}
.hero p {
  color: #234e40;
  max-width: 660px;
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0 8px 0;
    min-height: 0;
    border-radius: 0 0 22px 22px/0 0 20px 20px;
    margin-bottom: 24px;
  }
  .hero h1, .hero h2 { font-size: 1.32rem; }
}

/* CTA button */
.cta-btn {
  background: var(--color-accent-strong);
  color: var(--color-text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 13px 34px;
  border: none;
  border-radius: 99px;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(39,142,65,0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  display: inline-block;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(39,142,65,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* ============================
   8. FLEX CARDS & SERVICES
   ============================ */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 25px 0 24px 0;
  align-items: stretch;
}
.service-card {
  flex: 1 1 250px;
  background: var(--color-bg-card);
  border-radius: 25px 12px 25px 12px;
  box-shadow: 0 4px 14px rgba(39,142,65,0.04);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px 20px 22px;
  gap: 16px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.15s;
  border-left: 7px solid var(--color-grass);
}
.service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.service-card h3 {
  color: var(--color-accent);
  font-weight: 700;
}
.service-card p {
  font-size: 1rem;
  color: #41502c;
}
.service-price {
  position: absolute;
  top: 22px;
  right: 24px;
  background: var(--color-leaf);
  color: var(--color-primary);
  border-radius: 99px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 20px;
  box-shadow: 0 2px 7px rgba(39,142,65, 0.08);
  border: 1px solid var(--color-grass);
}
.service-card:hover {
  box-shadow: 0 8px 26px rgba(39,142,65,0.14);
  transform: translateY(-2px) scale(1.03);
}

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

/* Card grids, generic */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}

/* ============================
   9. FEATURE & LIST SECTIONS
   ============================ */
.features, .comparison-tool, .benefits, .values {
  background: #f6f7f3;
  border-radius: 26px;
  margin-bottom: 54px;
}
.features ul, .comparison-tool ul, .benefits ul, .values ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
  margin-top: 20px;
  list-style-type: none;
}
.features li, .comparison-tool li, .benefits li, .values li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(39,142,65,0.05);
  font-size: 1.04rem;
  color: #253321;
  transition: box-shadow 0.14s, background 0.16s;
  min-width: 210px;
}
.features li:hover, .comparison-tool li:hover, .benefits li:hover, .values li:hover {
  background: var(--color-leaf);
  box-shadow: 0 6px 20px rgba(39,142,65,0.09);
}
.features img,
.comparison-tool img,
.benefits img,
.values img {
  width: 32px;
  height: 32px;
  margin-top: -2px;
}

@media (max-width: 1020px) {
  .features ul, .comparison-tool ul, .benefits ul, .values ul {
    gap: 16px 8px;
    flex-direction: column;
  }
  .features li, .comparison-tool li, .benefits li, .values li {
    min-width: 0;
    width: 100%;
  }
}

/* ============================
   10. FAQ ACCORDION (Simple)
   ============================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.faq-accordion h3 {
  font-size: 1.1rem;
  color: var(--color-accent-strong);
  cursor: pointer;
  margin-bottom: 3px;
  transition: color 0.18s;
}
.faq-accordion h3:hover { color: var(--color-primary); }
.faq-accordion p {
  margin-left: 0;
  color: #234A1C;
  background: #e5f1e2;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(39,142,65, 0.04);
}

/* ==========================
   11. CONTACT & LEGAL TEXT
   ========================== */
.text-section {
  margin-bottom: 16px;
}
.legal .text-section {
  background: var(--color-leaf);
  border-radius: 16px;
  padding: 24px 24px;
  color: #253321;
}
/* For confirmation/success page */
.success-message {
  color: var(--color-accent-strong);
  font-size: 1.13rem;
  background: var(--color-leaf);
  border-radius: 12px;
  padding: 24px 21px;
  margin: 12px 0 34px 0;
  box-shadow: 0 2px 11px rgba(39,142,65,0.07);
}

/* ==================
   12. FOOTER
   ================== */
footer {
  background: #e6f0fa;
  border-top: 2px solid var(--color-leaf);
  padding: 30px 0 14px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 18px rgba(44,59,22,0.10);
  font-size: 1.01rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--color-accent-strong);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-primary);
  color: var(--color-text-light);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  color: #425849;
  font-size: 0.97rem;
}
.footer-contact span {
  margin-right: 2px;
}

/* ===============
   13. RESPONSIVE
   =============== */
@media (max-width: 800px) {
  .container {
    padding: 0 9px;
  }
  footer { font-size: 0.93rem; }
  .card, .service-card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .footer-contact { flex-direction: column; gap: 4px; }
}

/* Proper margin between all main sections */
section { margin-bottom: 60px; }
section:last-child { margin-bottom: 0; }

/* ===============================
   14. COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  background: #ecfac8;
  color: #253321;
  box-shadow: 0 -4px 18px rgba(44,59,22,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 22px 18px;
  border-radius: 18px 18px 0 0;
  animation: cookie-slide-in 0.6s cubic-bezier(.7,1.2,.5,1);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(150%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  max-width: 70vw;
  font-size: 1.01rem;
  margin-right: 12px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 99px;
  border: none;
  padding: 11px 24px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-left: 0;
  background: var(--color-accent-strong);
  color: #fff;
  box-shadow: 0 2px 9px rgba(39,142,65,0.07);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-accent-strong);
  border: 1.5px solid var(--color-accent-strong);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent-strong);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2500;
  left:0; top:0; right:0; bottom:0;
  background: rgba(70,112,84,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.36s;
}
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(39,142,65,0.22);
  padding: 32px 30px 26px 30px;
  max-width: 400px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal h2 {
  color: var(--color-accent-strong);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-checkbox {
  accent-color: var(--color-accent-strong);
  width: 19px;
  height: 19px;
  border-radius: 6px;
}
.cookie-category-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-accent-strong);
}
.cookie-desc {
  font-size: 0.97rem;
  color: #485015;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  color: var(--color-accent-strong);
  border: none;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: var(--color-leaf);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    padding: 13px 8px 13px 10px;
    border-radius: 11px 11px 0 0;
  }
  .cookie-banner-message { max-width: 95vw; }
  .cookie-modal { padding: 19px 7px 15px 14px; }
}

/* =============
   15. MISC
   ============= */
::-webkit-scrollbar {
  width: 8px;
  background: #e7f4e0;
}
::-webkit-scrollbar-thumb {
  background: var(--color-leaf);
  border-radius: 6px;
}

/* Highlight selection */
::selection {
  background: var(--color-accent-strong);
  color: #fff;
}

/* Accessibility improvement for focusable elements */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

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