/* --- 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, main, 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;
}
footer p {
  color: white;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #252514; /* dark, earthy text */
  background: #f6f7f4; /* soft accent, slight off-white */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #406440;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #203864;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.5em;
  font-size: 1rem;
}
li {
  margin-bottom: 0.5em;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* --- TYPOGRAPHY SCALE & VISUAL HIERARCHY --- */
h1, .display-h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.14;
  color: #203864;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #406440;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #32492c;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #406440;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
  color: #252514;
  font-size: 1rem;
}
strong {
  font-weight: 600;
  color: #203864;
}

/* --- CONTAINER & FLEXBOX --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px 0 rgba(52, 69, 49, 0.06);
}

/* --- HEADER / NAV --- */
header {
  background: #eaf1ec;
  box-shadow: 0 2px 12px 0 rgba(90,110,90,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 40;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 9px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #203864;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #c9dfcc;
  color: #32492c;
}
.cta-btn {
  background: #406440;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.075rem;
  font-weight: 600;
  border-radius: 28px;
  padding: 12px 26px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(52, 69, 49, 0.09);
  transition: background 0.19s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  display: inline-block;
  margin-left: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #203864;
  color: #c2e59c;
  box-shadow: 0 4px 18px 0 rgba(32,56,100,0.11);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #406440;
  padding: 6px 18px 6px 6px;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  display: flex;
  align-items: center;
  transition: background 0.15s;
  z-index: 60;
  margin-left: 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #c2e59c;
  color: #203864;
}

/* Hide main-nav and cta-btn on mobile, show burger */
@media (max-width: 900px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(64,100,64,0.90);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  padding: 16px 24px 6px 0;
  color: #fff;
  cursor: pointer;
  transition: color 0.18s;
  align-self: flex-end;
  margin-top: 16px;
  margin-bottom: 20px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #c2e59c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
  align-items: flex-start;
  padding: 18px 42px 12px 32px;
  background: none;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 0 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  width: 100%;
  text-align: left;
  outline: none;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #ffe8bc;
  background: rgba(32,56,100,0.12);
}

/* --- HERO & GENERAL SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f8faf6;
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(80,95,80,0.05);
  /* organic border shape (subtle) */
  border-bottom-left-radius: 54px 32px;
}

/* --- FLEX LAYOUTS FOR ALL GRIDS --- */
.features-grid, .service-cards, .property-cards, .service-overview, .team-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
  align-items: stretch;
}
.features-grid > .feature, .service-cards > .service-card, .property-cards > .property-card, .service-overview > .service,
.team-list > .team-member, .faq-list > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(32,56,100,0.05);
  padding: 24px 20px 20px 20px;
  min-width: 240px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.19s;
  border-left: 8px solid #c2e59c;
}
.features-grid > .feature:hover,
.service-cards > .service-card:hover,
.property-cards > .property-card:hover,
.service-overview > .service:hover, .team-list > .team-member:hover {
  box-shadow: 0 8px 28px 0 rgba(40,60,44,0.13);
  transform: translateY(-4px);
}
.service-price, .property-card span {
  background: #c2e59c;
  color: #32492c;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 17px;
  margin-top: 14px;
  display: inline-block;
}

/* --- TESTIMONIALS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffefb;
  padding: 28px 28px 20px 28px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(64,100,64,0.10);
  min-width: 270px;
  flex: 1 1 310px;
  font-size: 1.05rem;
  border-left: 8px solid #98bd6a;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(32,56,100,0.13);
  border-left-color: #406440;
}
.testimonial-card p {
  color: #203864;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.11rem;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: #32492c;
  font-size: 0.98rem;
}

/* --- TEXT SECTIONS, FAQ, CONTENT BLOCKS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.faq-list > div {
  background: #f1f5ee;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-left: 5px solid #c2e59c;
}
.text-section ul, .text-section ol {
  margin-bottom: 0.5em;
}

/* --- TEAM LAYOUT --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.team-list > .team-member {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(52,100,50,0.09);
  padding: 22px 20px 14px 20px;
  flex: 1 1 240px;
  min-width: 200px;
}
.qualifications ul {
  margin-bottom: 10px;
}

/* --- CARD CONTAINER BREATHING ROOM --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(70,130,90,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- PROPERTY FILTERS FORM --- */
.property-filters {
  margin-top: 10px;
  margin-bottom: 10px;
}
.property-filters form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  background: #f1f7ed;
  border-radius: 14px;
  padding: 14px 16px;
}
.property-filters label {
  font-weight: 500;
  color: #203864;
  font-size: 1rem;
  margin-right: 5px;
}
.property-filters input,
.property-filters select {
  padding: 7px 10px;
  border: 1px solid #cde0bc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #32492c;
  margin-right: 10px;
}
.property-filters button {
  background: #69889a;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 18px;
  padding: 9px 22px;
  border: none;
  box-shadow: 0 1px 5px 0 rgba(52,69,49,0.06);
  transition: background 0.16s, color 0.16s;
  cursor: pointer;
}
.property-filters button:hover, .property-filters button:focus {
  background: #406440;
  color: #c2e59c;
}

/* --- FOOTER --- */
footer {
  background: #32492c;
  color: #eaf1ec;
  font-size: 0.98rem;
  padding: 36px 0 23px 0;
  margin-top: 70px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #c2e59c;
  opacity: 0.95;
  font-weight: 500;
  transition: color 0.15s, opacity 0.15s;
  border-radius: 5px;
  padding: 3px 7px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ffe8bc;
  opacity: 1;
  background: rgba(255,255,255,0.13);
}
.footer-contact {
  margin-top: 0;
  color: #eaf1ec;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1999;
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 0;
  pointer-events: none;
}
#cookie-banner .cookie-bar {
  background: #406440;
  color: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 24px 0 rgba(32,56,100,0.13);
  margin: 0 12px 14px 12px;
  padding: 22px 24px 18px 28px;
  min-width: 0;
  max-width: 390px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1;
  pointer-events: auto;
  animation: slide-up-cookie .5s cubic-bezier(0.7,0,0.3,1);
}
@keyframes slide-up-cookie {
  from { transform: translateY(38px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-bar p { color: #fff; }
.cookie-bar .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 6px;
}
.cookie-bar button, .cookie-bar .btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 20px;
  border: none;
  transition: background 0.15s, color 0.14s;
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 4px;
}
.cookie-bar .accept {
  background: #98bd6a;
  color: #203864;
}
.cookie-bar .accept:hover, .cookie-bar .accept:focus {
  background: #406440;
  color: #fff;
}
.cookie-bar .reject {
  background: #e2a83e;
  color: #fff;
}
.cookie-bar .reject:hover, .cookie-bar .reject:focus {
  background: #ca7d02;
  color: #ffe8bc;
}
.cookie-bar .cookie-settings {
  background: #32492c;
  color: #fff;
}
.cookie-bar .cookie-settings:hover, .cookie-bar .cookie-settings:focus {
  background: #c2e59c;
  color: #406440;
}

/* COOKIE MODAL OVERLAY */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  z-index: 2000;
  background: rgba(32,56,100,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
#cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
#cookie-modal {
  background: #fff;
  color: #252514;
  border-radius: 22px;
  box-shadow: 0 4px 42px 0 rgba(64,100,64,0.13);
  max-width: 350px;
  min-width: 0;
  padding: 28px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
  animation: fade-in 0.4s cubic-bezier(0.68,0.01,0.3,1);
  position: relative;
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  color: #406440;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px 0;
}
#cookie-modal .cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #98bd6a;
}
#cookie-modal .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal .btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  padding: 7px 19px;
  border: none;
  font-weight: 600;
  background: #406440;
  color: #fff;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
}
#cookie-modal .btn.secondary {
  background: #f4cf7b;
  color: #32492c;
}
#cookie-modal .btn.secondary:hover, #cookie-modal .btn.secondary:focus {
  background: #e2a83e;
  color: #fff;
}
#cookie-modal .close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus { color: #203864; }

/* --- ORGANIC UI ELEMENTS --- */
.card, .service-card, .service, .property-card, .team-member, .faq-list > div, .testimonial-card {
  border-top-right-radius: 48px 32px;
  /* mimics rounded organic corner */
}

/* --- BUTTONS --- */
button, .btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border-radius: 17px;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 10px 0;
}
button:active, .btn:active {
  transform: scale(0.98);
}

/* --- ORGANIC DECORATION --- */
section {
  position: relative;
  overflow: visible;
}
section::after {
  content: '';
  display: block;
  position: absolute;
  right: -60px; top: 22px;
  width: 80px; height: 80px;
  background: rgba(152,189,106,0.12);
  border-radius: 65% 31% 73% 30%;
  z-index: 1;
  pointer-events: none;
  filter: blur(8px);
}

/* --- RESPONSIVE (MOBILE FIRST) --- */
@media (max-width: 900px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card, .service-card, .service, .property-card {
    min-width: unset;
    flex: 1 1 100%;
  }
  .main-nav {
    display: none !important;
  }
  .cta-btn {
    display: none !important;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 24px 6px;
    border-radius: 20px;
  }
  h1, .display-h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.29rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .features-grid, .service-cards, .property-cards, .service-overview, .team-list, .faq-list,
  .testimonials, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card, .property-card, .service-card, .team-member {
    min-width: 0;
    flex: 1 1 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

@media (max-width: 500px) {
  .header-container { padding-top: 8px; padding-bottom: 8px; }
  section { border-radius: 12px; }
  .footer-contact { font-size: 0.90rem; }
  .cookie-bar { padding: 12px 7px 10px 11px !important; font-size: 0.93rem; }
}

/* --- COLORS & ORGANIC/NATURE --- */
:root {
  --color-earth-bg: #f6f7f4;
  --color-earth-tone: #c2e59c;
  --color-green-dark: #406440;
  --color-green-med: #98bd6a;
  --color-green-light: #eaf1ec;
  --color-bark: #32492c;
  --color-stone: #eae4d9;
}

/* --- SCROLLBAR (MODERN) --- */
::-webkit-scrollbar {
  width: 10px;
  background: #eaf1ec;
}
::-webkit-scrollbar-thumb {
  background: #c2e59c;
  border-radius: 12px;
}

/* --- MICRO-INTERACTIONS --- */
.card, .service-card, .service, .team-member, .property-card, .testimonial-card,
.features-grid > .feature,
.card-container > .card {
  transition: box-shadow 0.19s, transform 0.21s, border-color 0.13s;
}
.card:hover, .service-card:hover, .service:hover, .property-card:hover {
  box-shadow: 0 6px 28px 0 rgba(120,170,110,0.14);
  transform: translateY(-3px) scale(1.025);
  border-left-color: #406440;
}
.cta-btn:active {
  transform: scale(0.98);
}

/* --- ACCESSIBILITY (CONTRAST: TESTIMONIALS, FOOTER, BANNER) --- */
.testimonial-card, .faq-list > div, .cookie-bar {
  color: #203864;
}

/* --- OTHER SMALL UI POLISH --- */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #c2e59c;
  border-radius: 7px;
  padding: 7px 10px;
  margin-top: 3px;
  color: #32492c;
  background: #fbfff8;
}
input:focus, select:focus, textarea:focus {
  border-color: #32492c;
  outline: none;
}
hr {
  border: none;
  border-top: 1.5px solid #eae4d9;
  margin: 28px 0;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes slideInMenu {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* --- PRINT (MINIMAL) --- */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cta-btn, .cookie-bar, #cookie-banner, #cookie-modal-overlay {display:none!important;}
  section, .container, .card, .service-card, .property-card, .team-member {box-shadow:none!important;}
}
