/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F7F3;
  color: #232A36;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #487D49;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #265828;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/* --- COLOR SYSTEM (EARTH TONES + BRAND) --- */
:root {
  --brand-primary: #232A36;
  --brand-secondary: #D0B782;
  --brand-accent: #FFFFFF;
  --earth-green: #487D49;
  --earth-darkgreen: #265828;
  --earth-brown: #756D52;
  --earth-beige: #F8F7F3;
  --earth-shadow: rgba(140, 139, 110, 0.08);
  --text-main: #232A36;
  --text-on-dark: #fff;
  --text-muted: #756D52;
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-size: 2.375rem; font-weight: 900; margin-bottom: 24px; color: var(--brand-primary); letter-spacing: -1.2px; line-height: 1.12; }
h2, .h2 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 20px; color: var(--earth-green); letter-spacing: -.8px; line-height: 1.13; }
h3, .h3 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--brand-primary); }
h4, .h4 { font-size: 1.1rem; font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-weight: 600; color: var(--brand-primary); }
p { font-family: 'Open Sans', Arial, sans-serif; font-size: 1rem; margin-bottom: 16px; color: var(--text-main); }

strong { font-weight: 700; color: var(--earth-darkgreen); }

@media (max-width: 520px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.15rem; }
  h3, .h3 { font-size: 1rem; }
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--brand-accent);
  box-shadow: 0 2px 16px -7px var(--earth-shadow);
  position: sticky;
  top: 0; left: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 12px; padding-bottom: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
header nav a:hover, header nav a:focus {
  background: var(--earth-beige);
  color: var(--earth-green);
}
.cta-btn {
  background: var(--earth-green);
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 2px 8px -2px var(--earth-shadow);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .13s;
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--earth-darkgreen);
  color: #fff;
  box-shadow: 0 6px 24px -6px var(--earth-shadow);
  transform: translateY(-1.5px) scale(1.035);
}

/* --- MOBILE MENUS --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--earth-green);
  font-size: 2rem;
  margin-left: 8px;
  cursor: pointer;
  display: none;
  transition: color .2s;
  outline: none;
  line-height: 1;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus   { color: var(--earth-darkgreen); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,56,35,0.10);
  z-index: 3001;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.8,.2,.22,1);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--earth-green);
  font-size: 2.2rem;
  margin: 18px 0 0 22px;
  align-self: flex-start;
  cursor: pointer;
  transition: color .2s;
  outline: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--earth-darkgreen);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  width: 100%;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.12rem;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 16px 0;
  border-radius: 8px;
  background: none;
  transition: background .2s, color .2s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--earth-beige);
  color: var(--earth-green);
}

@media (max-width: 1020px) {
  header .container {
    flex-wrap: wrap;
    gap: 0;
    min-height: 68px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 480px) {
  .cta-btn {
    padding: 10px 20px;
    font-size: .93rem;
  }
}

/* --- MAIN & SECTION STYLES --- */
main { background: var(--earth-beige); }
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  background: linear-gradient(120deg, #F1F4EB 80%, #F8F7F3 100%);
  border-radius: 0 0 80px 80px / 0 0 60px 60px;
  box-shadow: 0 8px 32px -16px var(--earth-shadow);
  margin-bottom: 60px;
  padding-top: 70px;
}
.hero h1 { color: var(--earth-green); margin-bottom: 16px; }
.hero p { font-size: 1.25rem; color: var(--brand-primary); margin-bottom: 24px; }

@media (max-width: 768px) {
  .hero { padding-top: 38px; border-radius: 0 0 48px 48px / 0 0 32px 32px; }
}

/* --- FLEXBOX LAYOUT CLASSES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 18px -6px var(--earth-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 250px;
  transition: box-shadow .18s, transform .12s;
}
.card:hover {
  box-shadow: 0 8px 32px -10px var(--brand-secondary);
  transform: translateY(-2px) scale(1.022);
}
.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;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1.5px 14px -4px var(--earth-shadow);
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 700px;
  transition: box-shadow .15s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px -8px var(--brand-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 1.5px 10px -4px var(--earth-shadow);
  min-width: 230px;
  min-height: 220px;
  transition: box-shadow .18s, transform .14s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  color: var(--earth-green);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 32px -10px var(--brand-secondary);
  transform: translateY(-3px) scale(1.025);
}

/* --- FLEX WRAP FIXES FOR MOBILE --- */
@media (max-width: 768px) {
  .content-grid,
  .feature-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
}

/* --- SPACING & SECTION COLORS --- */
.features, .project-types {
  background: #F4F1EA;
  border-radius: 28px;
}
.about-short, .about, .values, .team, .materials, .services, .services-preview, .reviews-summary, .process-summary, .faqs {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px -7px var(--earth-shadow);
}
.cta {
  background: linear-gradient(110deg, #487D49 40%, #D0B782 140%);
  color: var(--text-on-dark);
  border-radius: 38px;
  text-align: center;
  box-shadow: 0 4px 28px -10px var(--earth-green);
}
.cta h2, .cta p, .cta .cta-btn {
  color: #fff;
}
.cta-btn {
  margin-top: 18px;
}

/* --- TESTIMONIALS & REVIEWS --- */
.testimonials, .testimonials-preview {
  background: #E9F3EA;
  border-radius: 22px;
  box-shadow: 0 2px 12px -7px var(--earth-shadow);
}
.testimonial-card p {
  color: #232A36;
  font-size: 1.04rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 12px;
}

.rating-overview strong, .rating-overview span {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--earth-green);
}
.key-quotes p {
  color: var(--earth-brown);
  font-style: italic;
  margin-bottom: 8px;
  margin-top: 0;
}

/* --- FOOTER STYLES --- */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 48px 0 24px 0;
  border-radius: 36px 36px 0 0 / 20px 20px 0 0;
  box-shadow: 0 -6px 28px -8px var(--earth-shadow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a, .footer-links a {
  color: var(--brand-accent);
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity .19s, color .2s;
  padding: 2px 0;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-links a:hover,
.footer-nav a:focus, .footer-links a:focus {
  opacity: 1;
  color: var(--brand-secondary);
  background: rgba(255,255,255,0.06);
}
.brand-description {
  font-size: 1.01rem; max-width: 420px; margin-bottom: 14px; color: #EDE9D2;
}
.brand-description p {
  margin-bottom: 12px;
  color: #F8F7F3;
}
.contact-summary {
  font-size: 0.97rem;
}
.contact-summary p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
}
.contact-summary img {
  width: 20px; height: 20px;
}
.social-media {
  display: flex;
  gap: 14px;
}
.social-media a img {
  filter: brightness(0) invert(1);
  transition: filter .14s;
  width: 28px; height: 28px;
  border-radius: 8px;
}
.social-media a:hover img {
  filter: brightness(1) sepia(1) hue-rotate(45deg) saturate(1.7) drop-shadow(0 1px 3px #487D49);
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
button, .cta-btn {
  outline: none;
  cursor: pointer;
}
button:active, .cta-btn:active {
  box-shadow: 0 2.5px 12px -5px var(--earth-brown);
}

/* --- FORMS & CONTACT --- */
.contact ul, .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact ul li, .contact-form p {
  font-size: 1.09rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact ul img {
  width: 22px; height: 22px;
}

/* --- LEGAL PAGES --- */
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px -6px var(--earth-shadow);
  margin-top: 32px;
}
.legal h1, .legal h2 {
  color: var(--earth-green);
}
.legal ul {
  margin-left: 0;
  margin-bottom: 16px;
}
.legal ul li {
  padding-left: 0;
  margin-bottom: 8px;
  position: relative;
}
.legal ul li:before {
  content: '•';
  color: var(--earth-brown);
  margin-right: 8px;
}

/* --- THANK YOU PAGE --- */
.thank-you {
  background: linear-gradient(120deg,#E9F3EA 70%,#D0B782 120%);
  border-radius: 30px;
  box-shadow: 0 3px 14px -5px var(--earth-shadow);
  text-align: center;
}
.thank-you h1 {
  color: var(--earth-green);
  font-size: 2rem;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px -4px var(--earth-shadow);
  font-size: 1rem;
  color: var(--brand-primary);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  transition: transform .3s cubic-bezier(.8,.2,.22,1), opacity .2s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(108%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  border: none;
  border-radius: 22px;
  background: var(--earth-green);
  color: #fff;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0;
  transition: background .18s, color .18s;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  border: 1.5px solid var(--earth-green);
  color: var(--earth-green);
}
.cookie-banner button.cookie-reject:hover,
.cookie-banner button.cookie-reject:focus {
  background: var(--earth-beige);
  color: var(--earth-darkgreen);
}
.cookie-banner button.cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--earth-darkgreen);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,56,35,0.17);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .32s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 40px -12px var(--earth-shadow);
  padding: 38px 32px 20px 32px;
  width: 90vw;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cookie-modal-content h2 {
  color: var(--earth-green);
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.04rem;
}
.cookie-category label {
  flex: 1;
  color: var(--brand-primary);
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--earth-green);
  width: 18px; height: 18px;
  margin: 0 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--earth-green);
  cursor: pointer;
  padding: 0;
  z-index: 4120;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--earth-darkgreen);
}

/* --- MEDIA QUERIES & RESPONSIVE DESIGN --- */
@media (max-width: 880px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .feature-item {
    min-width: 180px;
    padding: 18px 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  section { padding: 26px 4vw; margin-bottom: 38px; }
  .testimonial-card { flex-direction: column; gap: 12px; padding: 12px; }
  .feature-item { min-width: 130px; min-height: 120px; }
  .brand-description, .contact-summary { font-size: 0.96rem; }
  .cookie-modal-content { padding: 18px 6vw 16px 6vw; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 6vw; }

  /* Mobile menu fixes */
  .mobile-menu nav { padding: 18px 8vw; gap: 15px; }
}

/* --- ORGANIC/NATURE VISUALS --- */
.feature-item,
.card,
.testimonial-card,
.cta,
.reviews-summary,
.hero,
.about-short,
.services-preview,
.values,
.team,
.materials,
.process-summary,
.faqs,
.legal {
  /* Subtle organic squiggle/soft shape border radius */
  border-radius: 22px 36px 24px 32px / 28px 28px 36px 18px;
  /* For organic feel, different corners slightly */
}

.cta {
  /* Soft shadow for floating, organic appearance */
  box-shadow: 0 8px 64px -12px var(--earth-shadow);
}

/* --- Microinteractions / Animations --- */
.cta-btn, button, .feature-item, .card, .testimonial-card {
  transition: background .15s, color .15s, box-shadow .15s, transform .13s;
}

.feature-item:hover img {
  transform: scale(1.1) rotate(-7deg);
  transition: transform .16s;
}

/* --- Misc: Hide scroll on mobile-menu open --- */
body.mobile-menu-open {
  overflow: hidden;
}

/* --- Accessiblity --- */
:focus-visible {
  outline: 2.5px dashed var(--earth-green);
  outline-offset: 2px;
}

/* --- Utility / Helper Classes --- */
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }

/* --- END --- */
