/* ===== Meadow Sway Geometric Structured Style (Mobile-First) ======= */
/* ========== CSS RESET & 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, 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #FFF7F0;
  color: #283F36;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 2px;
}
a {
  color: #283F36;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #85B181;
}
ul, ol {
  list-style: none;
}
strong { font-weight: 700; }

/* ======= TYPOGRAPHY (Geometric, Angular Fonts) ======= */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #283F36;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.subheadline {
  font-size: 1.05rem;
  color: #48544B;
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.success-message {
  color: #208041;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 42px;
}

/* ======= STRUCTURED / GEOMETRIC BASE LAYOUT ======= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(40,63,54,0.07);
  padding: 30px 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 24px 18px;
  position: relative;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(40,63,54,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 30px -6px rgba(40,63,54,0.15);
  transform: translateY(-2px) scale(1.01);
}
.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;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 15px;
  box-shadow: 0 2px 16px -4px rgba(40,63,54,0.15);
  border-left: 4px solid #85B181;
  position: relative;
  font-size: 1rem;
  font-style: italic;
  color: #283F36;
  min-width: 0;
}
.testimonial-card p {
  flex: 1 1 auto;
  margin: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #506356;
  margin-left: auto;
}
/* Ensure testimonial contrast */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #FFF;
  color: #283F36;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
  padding: 0;
}
.feature-grid > li {
  flex: 1 1 260px;
  background: #fff;
  border: 2px solid #ECE5DB;
  border-radius: 14px;
  padding: 22px 16px 16px 16px;
  margin-bottom: 0px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.25s, transform 0.18s;
  box-shadow: 0 2px 10px -6px rgba(40,63,54,0.09);
  position: relative;
}
.feature-grid > li:hover {
  border-color: #85B181;
  box-shadow: 0 8px 22px -6px rgba(133,177,129,0.20);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #F4F7F5;
  box-shadow: 0 2px 8px rgba(133,177,129,0.03);
}
.feature-grid h3 {
  font-size: 1.07rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-grid p {
  font-size: 1rem;
  margin-bottom: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

/* ========== HEADER, NAV, & BUTTONS ========== */
header {
  background: #fff;
  border-bottom: 2px solid #ECE5DB;
  box-shadow: 0 2px 8px -5px rgba(40,63,54,0.12);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
  padding: 12px 18px;
}
header nav {
  display: flex;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
header nav a {
  padding: 7px 10px;
  border-radius: 7px;
  text-transform: uppercase;
  color: #283F36;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #85B181;
  color: #fff;
}

.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 11px 28px;
  border-radius: 32px;
  background: #283F36;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #283F36;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.19s, box-shadow 0.18s, transform 0.17s;
  box-shadow: 0 2px 8px -4px rgba(40,63,54,0.14);
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #85B181;
  color: #fff;
  border-color: #85B181;
  box-shadow: 0 6px 18px -6px rgba(133,177,129,0.20);
  transform: translateY(-1px) scale(1.018);
}

/* ========== HERO SECTIONS ========== */
section:first-of-type {
  background: #ECE5DB;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  box-shadow: 0 4px 38px -18px rgba(40,63,54,0.120);
  margin-bottom: 60px;
  padding: 40px 0 48px 0;
}
section .container, .content-wrapper {
  width: 100%;
}
section .content-wrapper h1 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 2.18rem;
}

/* ========== ABOUT, SERVICES & SECTIONS ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
section .container {
  width: 100%;
}
section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
section ul:not(.feature-grid) {
  margin-bottom: 18px;
  padding-left: 0;
}
section ul:not(.feature-grid) li {
  font-size: 1rem;
  margin-bottom: 9px;
  padding-left: 20px;
  position: relative;
  color: #283F36;
}
section ul:not(.feature-grid) li:before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #85B181;
  border-radius: 0 2px 7px 0;
  position: absolute;
  left: 0;
  top: 7px;
}

/* ================== CONTACT DETAILS ==================*/
.contact-details, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 12px 0 0 0;
  font-size: 1rem;
}
.contact-details li, .contact-info span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact-info img, .contact-details img {
  width: 20px; height: 20px; display: inline-block; border-radius: 4px; background: #F4F7F5; }

/* =================== FOOTER ======================== */
footer {
  background: #ECE5DB;
  border-top: 2px solid #85B181;
  padding-top: 36px;
  padding-bottom: 24px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  position: relative;
}
footer .container {
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer nav a {
  color: #283F36;
  font-size: 0.97rem;
  margin-right: 7px;
  transition: color 0.18s, text-decoration 0.11s;
  text-decoration-thickness: 3px;
  letter-spacing: 0.015em;
}
footer nav a:hover, footer nav a:focus {
  color: #85B181;
  text-decoration: underline;
}
.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-start;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-links a, .social-links img {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: #fff;
  transition: background 0.19s, box-shadow 0.23s;
  box-shadow: 0 2px 8px -3px rgba(133,177,129,0.08);
}
.social-links a:hover {
  background: #85B181;
  box-shadow: 0 6px 18px -7px rgba(133,177,129,0.17);
}

/* ========= BUTTONS USED IN COOKIE BANNER, ETC. ========= */
.button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 10px 26px;
  border-radius: 26px;
  background: #283F36;
  color: #fff;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.17s, color 0.16s, transform 0.18s, box-shadow 0.16s;
  outline: none;
}
.button:last-child { margin-right: 0; }
.button:hover, .button:focus {
  background: #85B181;
  color: #fff;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 2px 9px -5px #85B18166;
}
.button.secondary {
  background: #fff;
  border: 2px solid #85B181;
  color: #283F36;
}
.button.secondary:hover, .button.secondary:focus {
  background: #85B181;
  color: #fff;
}
.button.ghost {
  background: transparent;
  border: 2px solid #283F36;
  color: #283F36;
}
.button.ghost:hover, .button.ghost:focus {
  background: #283F36;
  color: #fff;
}

/* ================ MOBILE BURGER MENU ================ */
.mobile-menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2100;
  background: #283F36;
  color: #fff;
  border: none;
  border-radius: 9px;
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px -9px #283F3660;
  cursor: pointer;
  transition: background 0.15s, transform 0.18s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #85B181;
  transform: scale(1.06);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 22px -3px #283F3630;
  z-index: 2200;
  transform: translateX(105%);
  transition: transform 0.33s cubic-bezier(0.7,0.1,0.4,1);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px 28px;
}
.mobile-menu.open { /* JS: add 'open' class when shown  */
  transform: translateX(0);
  transition: transform 0.33s cubic-bezier(0.7,0.1,0.4,1);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  left: 22px;
  background: #ECE5DB;
  color: #283F36;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.10s;
  z-index: 2220;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #85B181;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 60px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #283F36;
  text-transform: uppercase;
  padding: 6px 0 7px 0;
  border-radius: 7px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #85B181;
  background: #EFF4EF;
}

/* ============= RESPONSIVE/STICKY: Hide/Show NAV ON DEVICES ============= */
@media (max-width: 1000px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-primary {
    display: none;
  }
}
@media (min-width: 1001px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  header .container nav {
    display: flex;
  }
}

/* ============== COOKIE CONSENT BANNER + MODAL ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 28px -5px #283F3620;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 12px 20px 18px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: opacity 0.25s, transform 0.35s;
  border-top: 3px solid #85B181;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 20px;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  color: #283F36;
  font-size: 1rem;
  margin-right: 24px;
}
.cookie-banner .button {
  min-width: 120px;
  margin-right: 0;
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3600;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40,63,54,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  padding: 30px 26px 26px 26px;
  border-radius: 18px;
  box-shadow: 0 8px 44px -7px #283F3630;
  min-width: 300px;
  max-width: 94vw;
  width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  color: #283F36;
  margin: 0 0 2px 0;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category .switch {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  background: #ECE5DB;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  margin-right: 7px;
  margin-left: 5px;
  transition: background 0.22s;
}
.cookie-category .switch input[type="checkbox"] {
  display: none;
}
.cookie-category .slider {
  width: 22px;
  height: 22px;
  background: #85B181;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.22s, background 0.16s;
}
.cookie-category .switch input[type="checkbox"]:checked + .slider {
  left: 20px;
  background: #283F36;
}
.cookie-category .category-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #283F36;
}
.cookie-category .category-desc {
  font-size: 0.98rem;
  color: #666;
  margin-left: 10px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 26px;
}
.cookie-modal .button {
  min-width: 120px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #283F36;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #85B181;
}

/* ===================== MEDIA QUERIES =================== */
@media (max-width: 768px) {
  .section {
    padding: 30px 7px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 7px;
  }
  header .container {
    padding: 11px 7px;
    min-height: 54px;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-grid > li {
    padding: 15px 8px 13px 10px;
    min-width: 135px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 12px;
  }
  .text-section {
    padding: 20px 7px;
    border-radius: 11px;
  }
  .content-grid, .card-container {
    gap: 13px;
  }
  .text-image-section {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .footer-top {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
  }
  footer {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .mobile-menu {
    width: 97vw;
    max-width: 97vw;
    padding: 32px 9px 22px 12px;
  }
  .mobile-nav a {
    font-size: 1.06rem;
  }
  .cookie-modal { min-width: 96vw; width: 98vw; max-width: 99vw; }
}
@media (min-width: 769px) {
  .container {
    padding: 0 28px;
  }
  .feature-grid > li {
    min-width: 200px;
    flex: 1 1 260px;
  }
  .text-section {
    padding: 36px 28px;
    border-radius: 19px;
  }
}

/* ======= SEMANTIC/UTILITY CLASSES (Spacing & Flex) ======= */
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-8 { padding-bottom: 8px !important; }
.text-center { text-align: center !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* =============== GEOMETRIC DECORATIVE MOTIFS ============ */
.feature-grid > li {
  position: relative;
}
.feature-grid > li:before {
  content: '';
  position: absolute;
  left: 8px; top: -16px;
  width: 44px;
  height: 6px;
  background: #85B181;
  border-radius: 3px 3px 10px 10px;
  opacity: 0.12;
  z-index: 0;
}
.feature-grid > li:hover:before {
  opacity: 0.23;
}

/* =============== INPUTS, FORMS (BASIC, For Cookie Modal or Confirm Forms) ============== */
input, select, textarea {
  font-family: inherit;
  background: #fff;
  border: 2px solid #ECE5DB;
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 13px;
  outline: none;
  margin-bottom: 15px;
  box-shadow: 0 2px 7px -6px #85B18114;
  transition: border-color 0.18s, box-shadow 0.16s;
}
input:focus, select:focus, textarea:focus {
  border-color: #85B181;
  box-shadow: 0 4px 18px -7px #85B1811d;
}

/* ============= Z-INDEX MANAGEMENT ============= */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 999; }
.mobile-menu { z-index: 2200; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3600; }
.mobile-menu-toggle {
  z-index: 3000;
}

/* ============ HIDE/SHOW FOR PRINT & ACCESSIBILITY ========== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

/* ===== END OF COMPREHENSIVE MEADOW SWAY STYLES ===== */