/* ==== 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.6;
  background: #F8F6F2;
  color: #2D3E50;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
a:focus,
button:focus,
input:focus {
  outline: 2px solid #82A37B;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}

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

/* ==== COLORS (ORGANIC) ==== */
:root {
  --c-primary: #2D3E50;  /* Deep earth blue */
  --c-secondary: #60827B; /* Sage green */
  --c-accent: #F5F5F5;   /* Warm neutral */
  --c-dark: #18262C;
  --c-green: #82A37B;
  --c-brown: #A79B82; /* earthy brown */
  --c-bg: #F8F6F2;
  --c-light: #FFF;
  --c-shadow: rgba(96, 130, 123, 0.10);
  --c-shadow-strong: rgba(130, 163, 123, 0.22);
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--c-primary);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  color: var(--c-secondary);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--c-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}
p, li, ul {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--c-dark);
  margin-bottom: 10px;
}
.text-section p,
.content-wrapper p {
  font-size: 1.125rem;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--c-green);
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 24px;
  font-weight: 500;
}
.cta-button,
button.cta-button {
  display: inline-block;
  background: var(--c-green);
  color: var(--c-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 32px 36px 28px 30px / 32px 30px 36px 28px; /* organic shape */
  box-shadow: 0 2px 10px var(--c-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s, transform 0.18s;
  margin-top: 16px;
  margin-bottom: 10px;
}
.cta-button:hover,
button.cta-button:hover {
  background: var(--c-secondary);
  color: var(--c-light);
  box-shadow: 0 6px 24px var(--c-shadow-strong);
  transform: translateY(-2px) scale(1.035);
}
.cta-button:active { background: #4f695d; }

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  background: var(--c-light);
  border-radius: 28px;
  box-shadow: 0 2px 16px var(--c-shadow);
  padding: 32px 24px;
  margin: 0 auto 28px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  background: var(--c-accent);
  border-radius: 28px;
  box-shadow: 0 1px 4px var(--c-shadow);
  padding: 32px 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--c-light);
  border-radius: 28px 40px 28px 40px / 36px 24px 40px 28px;
  box-shadow: 0 1.5px 8px var(--c-shadow);
  margin-bottom: 20px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 32px var(--c-shadow-strong);
  transform: translateY(-4px) 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--c-accent);
  border-left: 8px solid var(--c-green);
  border-radius: 16px 36px 24px 32px;
  box-shadow: 0 1px 6px var(--c-shadow);
  padding: 20px 26px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: var(--c-primary);
  font-size: 1.14rem;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card strong {
  color: var(--c-secondary);
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== SPECIAL LAYOUTS FROM PROVIDED HTML ========== */
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  width: 100%;
}
.feature-grid > div,
.service-grid > div {
  background: var(--c-light);
  border-radius: 26px 28px 33px 27px / 30px 33px 27px 33px;
  box-shadow: 0 1.5px 9px var(--c-shadow);
  flex: 1 1 250px;
  min-width: 235px;
  max-width: 320px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.19s;
  margin-bottom: 22px;
}
.feature-grid > div img,
.service-grid > div img {
  width: 44px;
  margin-bottom: 12px;
}
.feature-grid > div:hover,
.service-grid > div:hover {
  box-shadow: 0 8px 24px var(--c-shadow-strong);
  transform: translateY(-2px) scale(1.025);
}

.team-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-members-list > div {
  background: #F8F7F3;
  border-radius: 24px 34px 24px 34px;
  box-shadow: 0 1px 6px var(--c-shadow);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 190px;
  transition: box-shadow 0.19s;
}
.team-members-list > div:hover {
  box-shadow: 0 6px 20px var(--c-shadow-strong);
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  margin-bottom: 28px;
}
.project-list > div {
  background: var(--c-accent);
  border-radius: 22px 35px 22px 32px;
  box-shadow: 0 1px 8px var(--c-shadow);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.project-list > div:hover {
  box-shadow: 0 8px 18px var(--c-shadow-strong);
}

.project-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.project-highlights li {
  background: var(--c-light);
  border-radius: 19px 28px 21px 22px;
  box-shadow: 0 1px 6px var(--c-shadow);
  padding: 16px 22px;
  font-size: 1rem;
  color: var(--c-primary);
}

.step-timeline ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.step-details ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-list > div {
  background: var(--c-accent);
  border-radius: 18px 26px 22px 29px;
  box-shadow: 0 1px 6px var(--c-shadow);
  padding: 22px 18px;
  flex: 1 1 230px;
  min-width: 180px;
  transition: box-shadow 0.17s;
  margin-bottom: 20px;
}
.faq-list > div:hover {
  box-shadow: 0 5px 12px var(--c-shadow-strong);
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonials-list .testimonial-card {
  flex: 1 1 260px;
  min-width: 215px;
  margin-bottom: 0;
}

/* ===== CONTACT ===== */
.contact-map {
  margin: 20px 0 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== HEADER ========== */
header {
  background: var(--c-bg);
  box-shadow: 0 2px 8px var(--c-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 18px;
}
.logo img {
  height: 56px;
  width: auto;
  border-radius: 35% 55% 40% 70%/60% 40% 65% 35%;
  background: var(--c-light);
  box-shadow: 0 2px 8px var(--c-shadow);
}
nav.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary);
  background: none;
  border-radius: 18px 26px 18px 27px;
  padding: 8px 14px;
  transition: color 0.2s, background 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--c-green);
  color: var(--c-light);
}
header .cta-button {
  margin-left: 18px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--c-primary);
  color: var(--c-light);
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer a {
  color: var(--c-light);
  opacity: 0.89;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 18px;
  transition: color 0.17s, opacity 0.19s;
}
footer a:hover {
  color: var(--c-green);
  opacity: 1;
}
footer img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 1px 2px var(--c-shadow));
}
.footer-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  color: var(--c-green);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
  padding: 13px;
  border-radius: 40% 60% 55% 45%/40% 60% 55% 45%;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--c-accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(96, 130, 123, 0.95);
  color: var(--c-light);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 24px;
  background: var(--c-accent);
  color: var(--c-secondary);
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 46px; height: 46px;
  transition: background 0.13s, color 0.15s;
  z-index: 215;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover {
  background: var(--c-green);
  color: var(--c-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 88px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--c-light);
  background: var(--c-green);
  border-radius: 22px 35px 24px 36px;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 40px;
  margin-bottom: 7px;
  min-width: 200px;
  text-align: center;
  transition: background 0.16s, color 0.16s, transform 0.15s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--c-accent);
  color: var(--c-secondary);
  transform: scale(1.038);
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--c-accent);
  color: var(--c-primary);
  box-shadow: 0 -1.5px 18px var(--c-shadow);
  padding: 30px 14px 26px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  z-index: 300;
  justify-content: center;
  font-size: 1.07rem;
}
.cookie-consent-banner .cookie-text {
  flex: 2 1 200px;
  max-width: 460px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 17px 28px 17px 28px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--c-green);
  color: var(--c-light);
  margin-bottom: 0;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s, transform 0.14s;
}
.cookie-consent-banner button.accept {
  background: var(--c-green);
  color: var(--c-light);
}
.cookie-consent-banner button.reject {
  background: var(--c-brown);
  color: var(--c-light);
}
.cookie-consent-banner button.settings {
  background: var(--c-secondary);
  color: var(--c-light);
}
.cookie-consent-banner button:hover {
  box-shadow: 0 4px 14px var(--c-shadow-strong);
  transform: translateY(-2px) scale(1.04);
}

/* === Cookie Preferences Modal === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(45, 62, 80, 0.36);
  display: none;
  z-index: 340;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadein 0.4s;
}
@keyframes fadein { from { opacity: 0;} to {opacity: 1;} }
.cookie-modal {
  background: var(--c-accent);
  color: var(--c-primary);
  border-radius: 24px 34px 24px 34px;
  box-shadow: 0 2px 32px var(--c-shadow-strong);
  padding: 38px 28px 28px 28px;
  width: 90vw;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalin 0.32s;
}
@keyframes modalin { from { transform: translateY(70px); opacity: 0; } to {transform: none; opacity: 1;} }
.cookie-modal h2 {
  color: var(--c-secondary);
  margin-bottom: 8px;
  font-size: 1.32rem;
}
.cookie-modal ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: var(--c-green);
  width: 18px; height: 18px;
  border-radius: 2px;
}
.cookie-modal input[disabled] {
  accent-color: var(--c-brown);
  opacity: 0.6;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 17px;
  background: var(--c-secondary);
  color: var(--c-light);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s, color 0.14s;
}
.cookie-modal .close-modal:hover {
  background: var(--c-green);
  color: var(--c-light);
}

/* ========== GENERAL COMPONENTS UTILITIES ========== */
strong { font-weight: bold; }
hr { border: none; border-top: 1px solid var(--c-brown); margin: 30px 0; }

/* ==== SPACING UTILITIES ==== */
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
gap-8  { gap: 8px; }
gap-16 { gap: 16px; }
gap-20 { gap: 20px; }
gap-24 { gap: 24px; }

/* ========== LIST STYLES ========== */
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-secondary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ========== RESPONSIVE BREAKPOINTS (MOBILE FIRST) ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 10px;
  }
  .content-wrapper, .text-section {
    padding: 20px 10px;
  }
  .feature-grid > div, .service-grid > div, .team-members-list > div, .project-list > div {
    min-width: 160px;
    max-width: 400px;
    flex: 1 1 180px;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
/*==== CRITICAL PATTERN: COLUMN LAYOUT ON MOBILE ====*/
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 56px;
    padding: 0 7px;
  }
  nav.main-nav,
  header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100vw;
    padding: 0 5px;
  }
  .content-wrapper, .text-section {
    padding: 16px 3vw;
    border-radius: 18px;
    box-shadow: 0 0.5px 4px var(--c-shadow);
    gap: 11px;
  }
  .section {
    padding: 24px 2vw;
    margin-bottom: 34px;
  }
  .card-container, .feature-grid, .service-grid, .project-list, .faq-list, .team-members-list, .testimonials-list, .project-highlights ul {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div, .service-grid > div, .project-list > div, .faq-list > div, .testimonial-card, .team-members-list > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 16px 9vw;
  }
  .project-highlights ul li, .team-members-list > div {
    width: 100%;
    padding: 14px 8vw;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-modal {
    width: 98vw;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.24rem; }
  .logo img, footer img {
    height: 38px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 4vw 13px 4vw;
    font-size: 0.99rem;
  }
  .cookie-consent-banner .cookie-text {
    max-width: unset;
  }
  .mobile-nav a {
    padding: 13px 10vw;
    font-size: 1rem;
  }
  .mobile-menu-close {
    right: 10px;
  }
}

/* ==== ORGANIC DECORATIVE EFFECTS ==== */
.card, .content-wrapper, .text-section, .feature-grid > div, .service-grid > div, .project-list > div, .faq-list > div,
.team-members-list > div, .testimonial-card, .project-highlights li {
  /* Simulate nature with irregular radii */
  border-radius: 28px 34px 22px 35px / 34px 24px 33px 22px;
}

/* Subtle organic pattern - use SVG background on .section (optional) */
.section {
  background-image: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 100 10" xmlns="http://www.w3.org/2000/svg"><ellipse cx="48" cy="7" rx="52" ry="6" fill="%23F5F3EB" opacity="0.21"/></svg>');
  background-repeat: no-repeat;
  background-position: center bottom;
}

/* ==== SCROLLBAR FOR BRAND-STYLE ==== */
::-webkit-scrollbar {
  width: 12px;
  background: var(--c-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--c-green);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-secondary);
}

/* ==== TRANSITIONS & MICROINTERACTIONS ==== */
button, .cta-button, .card, .feature-grid > div, .service-grid > div, .project-list > div, .team-members-list > div, .testimonial-card, .faq-list > div {
  transition: box-shadow 0.19s, transform 0.15s;
}
nav.main-nav a, .mobile-nav a {
  transition: background 0.15s, color 0.14s, transform 0.14s;
}

/* ==== ACCESSIBILITY CONTRAST FOR TESTIMONIALS ==== */
.testimonial-card, .testimonials-list .testimonial-card {
  background: #F9F9F6;
  color: #222c33;
  border-left: 8px solid var(--c-green);
  box-shadow: 0 1px 6px var(--c-shadow);
}

/* ==== HIDDEN STATES (for JS toggle) ==== */
.cookie-consent-banner.hide {
  display: none;
}
.cookie-modal-overlay.hide {
  display: none;
}
.mobile-menu {
  pointer-events: none;
}
.mobile-menu.open {
  pointer-events: auto;
}

/* ==== PRINT STYLES (Basic) ==== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body, .container, .content-wrapper, .text-section { background: #fff !important; color: #000 !important; }
}

/* ==== JS Utility: Hide on .is-scroll-lock (for mobile menu open) ==== */
body.is-scroll-lock {
  overflow: hidden;
}
