/* =======================================
   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 { scroll-behavior: smooth; }
body { line-height: 1; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:focus { outline: 2px solid #214028; outline-offset: 2px; }

/* =======================================
   ROOT VARIABLES & FONTS
   ======================================= */
:root {
  --primary: #214028;
  --secondary: #8A7144;
  --accent: #F2EFED;
  --green: #507B53;
  --brown: #A38D6D;
  --clay: #DCC5A2;
  --text-dark: #1E1B18;
  --text-light: #F8F7F2;
  --transition: 0.25s cubic-bezier(0.42,0,0.58,1.0);
  --focus: #9CBE8E;
  --border-radius: 20px;
  --card-radius: 18px;
  --shadow: 0 4px 18px rgba(60,42,22,0.10);
  --shadow-hover: 0 8px 24px rgba(60,42,22,0.13);
}

@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--accent);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}
h1 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 16px; font-weight: 700; }
h3 { font-size: 1.375rem; margin-bottom: 12px; font-weight: 700; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
p, ul, ol, li, address { font-size: 1rem; color: var(--text-dark); line-height: 1.7; }
p, ul, ol, li, address { margin-bottom: 12px; }
strong, b { font-weight: bold; }

/* =======================================
   LAYOUT PATTERNS & SPACING
   ======================================= */
.container {
  width: 100%;
  max-width: 1160px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 16px 24px;
  min-width: 250px; /* avoid extreme shrinking */
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) 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;
}
.testimonial-card {
  background: linear-gradient(125deg, #fff8fa 70%, var(--clay) 100%);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-style: normal;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================================
   HEADER & NAVIGATION
   ======================================= */
header {
  background: var(--accent);
  box-shadow: 0 2px 18px rgba(33,64,40,0.05);
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 22px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--green);
  color: var(--text-light);
}
.cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--text-light);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 11px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(33, 64, 40, 0.09);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(33,64,40,0.15);
  transform: translateY(-2px) scale(1.03);
  border: 2px solid var(--focus);
}
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1100;
  min-width: 48px; min-height: 48px;
  background: var(--primary);
  color: var(--accent);
  font-size: 2rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--green);
}

/* =======================================
   MOBILE MENU (OFF CANVAS)
   ======================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.39,0.58,0.57,1);
  box-shadow: 0 6px 28px rgba(33,64,40,0.08);
  padding: 32px 24px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin-bottom: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
  min-width: 48px; min-height: 48px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--green);
  color: var(--accent);
}

/* =======================================
   FOOTER
   ======================================= */
footer {
  background: var(--primary);
  padding: 42px 0 24px 0;
  color: var(--accent);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img { width: 62px; border-radius: 9px; }
.footer-links, .footer-social, .footer-address, .footer-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links {
  gap: 10px;
}
.footer-links a {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--green);
}
.footer-social {
  flex-direction: row;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  background: #fff;
  padding: 7px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px rgba(33, 64, 40, 0.11);
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--green);
}
.footer-social img {
  width: 24px;
  height: 24px;
  display: block;
}
.footer-address address {
  font-size: .95rem;
  color: var(--accent);
  line-height: 1.6;
  font-style: normal;
}
.footer-address a{ color: var(--accent); text-decoration: underline;}
.footer-copy {
  align-items: flex-end;
  margin-top: 12px;
  font-size: .95rem;
  color: var(--clay);
}

/* =======================================
   BUTTONS, LINKS, INTERACTIONS
   ======================================= */
a, button {
  transition: color var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
}
b, strong, em {
  color: var(--primary);
}
.button, .btn, [type="submit"], .cta-btn {
  cursor: pointer;
}

/* =======================================
   CARD & LIST INJECTIONS
   ======================================= */
ul li {
  padding-left: 0;
  margin-bottom: 10px;
}
ul li, ol li {
  line-height: 1.6;
}
ul li img {
  height: 24px; width: 24px; margin-right: 10px; vertical-align: middle; margin-bottom: -6px; }

/* =======================================
   TEXT SECTION
   ======================================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section a {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1.5px solid var(--green);
  transition: color var(--transition), border-color var(--transition);
}
.text-section a:hover, .text-section a:focus {
  color: var(--green);
  border-color: var(--primary);
}

/* =======================================
   FORM ELEMENTS
   ======================================= */
input, textarea, select {
  font-family: inherit; font-size: 1rem; padding: 12px 12px;
  border-radius: var(--card-radius);
  border: 1.5px solid var(--brown);
  margin-bottom: 14px;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(33,64,40,0.08);
}
label { font-weight: 500; color: var(--primary); margin-bottom: 4px; display: block; }

/* =======================================
   MICRO-INTERACTIONS & EFFECTS
   ======================================= */
.card, .testimonial-card, .cta-btn, .footer-social a, .mobile-menu {
  will-change: box-shadow, transform;
}
.card:active, .cta-btn:active {
  transform: scale(0.97);
}

/* =======================================
   ORGANIC SHAPES & NATURAL TEXTURES
   ======================================= */
.section, .card, .testimonial-card {
  /* Subtle grain/organic edge effect simulation via SVG bg patterns if desired */
  /* Use fallback simple color for broad compatibility */
  /* For a real organic look, place SVG background-image for sections if desired. */
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
   ======================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 -2px 16px rgba(60,42,22,0.13);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 26px;
  z-index: 3000;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  opacity: 0; pointer-events: none; transition: all .4s;
  font-size: 1rem;
}
.cookie-banner.active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.cookie-banner .cookie-buttons {
  display: flex; flex-direction: row; gap: 16px; margin-left: auto;
}
.cookie-banner .cookie-btn {
  background: var(--green);
  color: var(--accent);
  border-radius: 100px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(33,64,40,0.06);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: var(--clay);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(33,64,40,0.13);
  max-width: 440px;
  width: 94%;
  padding: 36px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-in 0.3s cubic-bezier(.51,1.2,.6,1.01);
}
@keyframes modal-in {0%{transform: scale(0.95) translateY(22px);opacity:0;} 100%{transform: none;opacity:1;}}
.cookie-modal h3 { color: var(--primary); font-size:1.4rem; margin-bottom:10px; }
.cookie-modal label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cookie-modal .cookie-switch {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 22px;
  background: #ded7cb;
  position: relative;
  outline: none;
  transition: background .18s;
  margin:0;
}
.cookie-modal .cookie-switch:checked {
  background: var(--green);
}
.cookie-modal .cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px; width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.cookie-modal .cookie-switch:checked:before {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-left: 0;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}

/* =======================================
   RESPONSIVE MEDIA QUERIES
   ======================================= */
@media (max-width: 1040px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .footer-logo, .footer-social, .footer-address, .footer-links {
    min-width: 150px;
  }
  footer .container { flex-wrap: wrap; gap: 24px 14px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding-left: 14px; padding-right: 14px;
  }
  .section { margin-bottom: 40px; padding: 26px 6px; }
  header .container {
    flex-direction: row;
    min-height: 66px;
    gap: 8px;
    padding: 18px 8px;
  }
  header nav {
    display: none;
  }
  .cta-btn { margin-left: 0; font-size: 1rem; padding: 10px 18px; min-width: 0; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.7rem;
    margin-left: 6px;
  }
  .footer-logo img { width: 54px; }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }

  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.22rem; }
  .footer-logo img { width: 44px; }
  .card, .testimonial-card {
    padding: 14px 8px 12px 12px;
    min-width: 0;
  }
  .section { padding: 16px 0 16px 0; }
}

/* =======================================
   PRINT & GENERAL STYLES
   ======================================= */
@media print {
  header, footer, .cta-btn, .mobile-menu, .cookie-banner { display:none !important; }
  body { background: #fff; color: #000; }
}

/* ORGANIC HOVER WAVE EFFECT on main cta buttons */
.cta-btn {
  position:relative;
  overflow:hidden;
}
.cta-btn:after {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  width: 180%; height: 110%;
  background: rgba(33,64,40,0.10);
  border-radius: 45%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%,-50%) scale(0.5);
  opacity: 0;
  transition: transform .42s, opacity .42s;
}
.cta-btn:hover:after, .cta-btn:focus:after {
  top: 50%; opacity: 1; transform: translate(-50%,-50%) scale(1);
}

/* =======================================
   UTILITIES/HELPERS
   ======================================= */
.d-none { display: none !important; }
.align-center { align-items: center; justify-content: center; }
.text-center { text-align: center; }
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-12 { margin-top: 12px !important; }

/* =======================================
   AESTHETIC EXTRA: NATURE ORGANIC CARDS
   ======================================= */
.card, .testimonial-card {
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="20" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2EFED" fill-opacity=".91" d="M0 0 Q72 38 144 6 Q216 -16 288 12 Q360 40 432 24 Q504 -2 576 16 V20 H0z"/></svg>');
  background-repeat: no-repeat;
  background-size: 100% 32px;
  background-position: bottom;
}
@media (max-width:540px){ 
  .card, .testimonial-card { background-size: 100% 18px; }
}

/* Prevent content overlap, ensure spacing (CRITICAL RULE) */
.card, .testimonial-card, .section, .content-wrapper, .text-section {
  margin-bottom: 20px; /* redundant but critical for safe vertical spacing across contexts */
}

/* END OF STYLE.CSS */
