/* =====================
   CSS RESET & BASELINE
   ===================== */
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.6;
  color: #1A231A;
  background: #F2EFEA;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
*, *:before, *:after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

:root {
  --primary: #37503B;
  --secondary: #A29274;
  --accent: #F2EFEA;
  --success: #63B678;
  --attention: #DF5424;
  --white: #fff;
  --black: #222;
  --shadow: 0 4px 24px rgba(55, 80, 59, 0.07), 0 1.5px 6px rgba(50,50,50,0.06);
  --radius: 22px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --transition: 0.22s cubic-bezier(.56,0,.19,1);
  --header-height: 68px;
}

/* =========================
   TYPOGRAPHY (Modern Bold)
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.11;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; }
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #304427;
}
strong { font-weight: 800; color: var(--primary); }
blockquote {
  background: var(--accent);
  border-left: 4px solid var(--secondary);
  padding: 14px 26px;
  margin: 20px 0;
  border-radius: 15px;
  font-size: 1.13rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-style: italic;
  box-shadow: var(--shadow);
}
ul, ol { margin-bottom: 18px; }
ul li, ol li { margin-bottom: 8px; line-height: 1.7; }
ul li:last-child, ol li:last-child { margin-bottom: 0; }
code, pre { background: #e9ede4; padding: 2px 7px; border-radius: 7px; }


/* ====================
   LAYOUT CONTAINERS
   ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
}

/* =====================
   SECTIONS & SPACING
   ===================== */
section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 768px) {
  section { padding: 28px 8px; margin-bottom: 36px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(55, 80, 59, 0.15);
  transform: translateY(-5px) scale(1.02);
}

.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: stretch;
    gap: 18px;
  }
}

.testimonial-card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex-direction: row;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 2px solid var(--secondary);
  color: #1A231A;
}
.testimonial-card p {
  font-size: 1.17rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #495a37;
  font-weight: 700;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(55, 80, 59, 0.19);
  transform: translateY(-2px) scale(1.01);
}

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

.text-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ====================
   HEADER & NAVIGATION
   ==================== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(55, 80, 59, 0.04);
  z-index: 45;
  position: sticky;
  top: 0;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
nav > a img {
  height: 46px;
  margin-right: 16px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav ul li a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  padding: 9px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--primary);
  color: var(--white);
}
nav .cta-primary {
  margin-left: 30px;
}

@media (max-width: 1050px) {
  nav {
    padding: 0 6px;
  }
  nav ul { gap: 11px; }
}
@media (max-width: 900px) {
  nav ul {
    gap: 6px;
  }
  nav .cta-primary {
    margin-left: 10px;
  }
}

/* ===============
   CTA BUTTONS
   =============== */
.cta-primary, .cta-secondary, .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 99px;
  padding: 14px 32px;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(55, 80, 59, 0.13);
  margin-top: 18px;
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 18px rgba(55, 80, 59, 0.21);
}

.cta-secondary {
  background: var(--secondary);
  color: var(--white);
  margin-left: 18px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}

.cta-link {
  background: transparent;
  color: var(--primary);
  text-decoration: underline solid 2px var(--secondary);
  padding: 7px 14px;
  font-size: 1.04rem;
  box-shadow: none;
  margin-top: 8px;
}
.cta-link:hover, .cta-link:focus {
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
}

/* ==========================
   HAMBURGER MOBILE NAV MENU
   ========================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 102;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  outline: 2px solid var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(55, 80, 59, 0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-110vw);
  box-shadow: 0 2px 32px rgba(55, 80, 59, 0.28);
  transition: transform 0.33s cubic-bezier(.61,-0.09,.32,1.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--accent);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  z-index: 211;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
  transform: scale(1.15);
}
.mobile-menu .mobile-nav {
  margin-top: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 18px;
  transition: background var(--transition), color var(--transition);
  min-width: 210px;
  text-align: center;
  letter-spacing: 1px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 900px) {
  nav ul,
  nav .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Ensure nav burger on top */
@media (max-width: 900px) {
  header {
    position: relative;
    z-index: 205;
  }
  nav { flex-direction: row; justify-content: space-between; }
}

/* ================
   FOOTER SECTION
   ================ */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 46px 0 30px 0;
  width: 100%;
}
.footer-menu, .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-menu ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-menu ul li a {
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 9px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-display);
}
.footer-menu ul li a:hover, .footer-menu ul li a:focus {
  background: var(--secondary);
  color: var(--white);
}
.footer-contact p {
  line-height: 1.8;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
}
@media (max-width: 700px) {
  footer {
    padding: 30px 0 16px 0;
  }
  .footer-menu ul {
    gap: 5px;
    flex-wrap: wrap;
  }
  .footer-contact p { font-size: 0.97rem; }
}

/* ===============
   FORM ELEMENTS
   =============== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1.7px solid var(--secondary);
  padding: 10px 14px;
  outline: none;
  margin-bottom: 16px;
  background: var(--accent);
  color: #2e3828;
  transition: border-color var(--transition), background var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  background: #eaece7;
}
label { font-weight: 700; color: var(--primary); margin-bottom: 5px; display: block; }
button { cursor: pointer; }

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(55,80,59,0.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 22px 20px;
  border-radius: 22px 22px 0 0;
  font-family: var(--font-body);
  min-width: 260px;
  font-size: 1rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.77,0,.175,1), opacity 0.23s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  padding: 11px 23px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(55, 80, 59, 0.12);
  margin-left: 2px;
  cursor: pointer;
}
.cookie-banner-btn.accept {
  background: var(--success);
  color: var(--white);
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus {
  background: #429457;
}
.cookie-banner-btn.reject {
  background: var(--attention);
  color: var(--white);
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  background: #9a2e17;
}
.cookie-banner-btn.settings {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner-btn.settings:hover, .cookie-banner-btn.settings:focus {
  background: var(--primary);
  color: var(--accent);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 10px 12px 10px;
    font-size: 0.97rem;
    gap: 15px;
  }
  .cookie-banner-actions { flex-direction: column; gap: 9px; align-items: stretch; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position:fixed;
  z-index: 2200;
  left:0; top:0; right:0; bottom:0;
  background:rgba(52, 53, 50, 0.72);
  align-items:center;
  justify-content:center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 10px 46px rgba(55, 80, 59, 0.23);
  padding: 42px 32px 24px 32px;
  max-width: 430px;
  min-width: 240px;
  width: 92vw;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
  animation: cookieModalShow 0.35s cubic-bezier(.6,-0.12,.41,1.15) 1;
}
@keyframes cookieModalShow {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  margin: 0 0 11px 0;
  font-size: 1.23rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #e7e3d7;
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 13px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0;
}
.cookie-modal-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.cookie-modal-category .always-on {
  color: #929c89;
  font-size: 0.98em;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-modal-btn {
  padding: 10px 18px;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 23px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--secondary);
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 6px 16px 6px;
    min-width: 0;
  }
  .cookie-modal h3 { font-size: 1.04rem; }
}

/* =======================
   MISCELLANEOUS DECOR
   ======================= */
.section-accent {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
}
.geoshape {
  width: 54px; height: 54px;
  background: var(--secondary);
  border-radius: 12px 24px 12px 28px / 22px 8px 32px 18px;
  position: absolute;
  top: -18px; left: -18px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

/* ===============
   RESPONSIVE SCALE
   =============== */
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1.05rem; }
  nav > a img { height: 38px; }
  .cta-primary, .cta-secondary {
    font-size: 0.98rem;
    padding: 11px 20px;
  }
  .testimonial-card p { font-size: 1rem; }
}

/* ===============
   GLOBAL UTILITIES
   =============== */
.mt-2 { margin-top: 12px !important; }
.mb-2 { margin-bottom: 17px !important; }
.mt-4 { margin-top: 28px !important; }
.mb-4 { margin-bottom: 34px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center; }

/* Consistent spacing between all cards/sections */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 24px;
}

/* Prevent overlapping cards and sections */
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* Ensure all flex containers use gap where needed */
.features, .card-grid, .content-grid, .card-container {
  gap: 20px;
}

/* Remove link outline on click for mouse, keep for keyboard */
a:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===============
   PRINT FRIENDLY
   =============== */
@media print {
  nav, header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section { background: none; box-shadow: none; padding: 0; }
}
