/* === CSS RESET AND 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; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
input, textarea, select, button { font-family: inherit; }
:focus { outline: none; }

/* === NATURE ORGANIC COLORS === */
:root {
  --primary: #253741;
  --secondary: #C9B387;
  --accent: #F6F8F9;
  --earth-dark: #37423b;   /* Deep forest green */
  --earth-medium: #8f8053; /* Olive brown */
  --earth-light: #e3ded0;  /* Sand */
  --green: #8DA57B;        /* Desaturated green */
  --focus-outline: #b7cfa2;
  --success: #a4be93;
  --danger: #cd6c53;
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--accent);
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.01em;
}
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--earth-dark);
  margin-bottom: 14px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--earth-medium);
  margin-bottom: 10px;
}
h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--earth-dark);
}
p, ul, ol, li, .subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary);
}
.subtitle {
  color: var(--green);
  font-size: 1.18rem;
  margin-bottom: 18px;
}
strong {
  color: var(--earth-dark);
  font-weight: bold;
}

/* === GENERAL SPACING === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(135deg, var(--accent) 65%, var(--earth-light) 100%);
  border-radius: 0 0 60px 60px/0 0 45px 45px;
  padding-bottom: 0;
  box-shadow: 0 6px 36px -18px rgba(36, 55, 65, 0.12);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 16px;
}

/* === PRIMARY BUTTONS === */
.primary-cta {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  padding: 0.65em 1.6em;
  border: none;
  border-radius: 26px 38px 24px 30px/42px 38px 39px 20px;
  box-shadow: 0 2px 10px rgba(141, 165, 123, 0.14);
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: background 0.16s, transform 0.13s;
  cursor: pointer;
  margin-top: 10px;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--earth-medium);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 16px rgba(141, 165, 123, 0.19);
  color: #fff;
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

/* === SITE HEADER & NAVIGATION === */
header {
  background: var(--accent);
  box-shadow: 0 1.5px 22px -9px rgba(36, 55, 65, 0.08);
  border-bottom: 1.5px solid var(--earth-light);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px; padding-bottom: 12px;
  gap: 32px;
}
.logo img {
  height: 46px;
  width: auto;
  border-radius: 13px/17px;
  box-shadow: 0 1.5px 7px rgba(140, 179, 116, 0.13);
  background: #fff;
  padding: 2px 7px 2px 2px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 10px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: var(--earth-light);
  color: var(--green);
}
header nav .primary-cta {
  margin-left: 10px;
  color: #fff;
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  position: fixed; right: 20px; top: 20px;
  z-index: 3002;
  background: var(--green);
  color: #fff;
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(141, 165, 123, 0.09);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--earth-medium);
  box-shadow: 0 4px 18px rgba(201, 179, 135, 0.12);
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 8px 40px #38423b32;
  z-index: 3001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6, .02, .2, 1.01);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--earth-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 2rem;
  position: absolute;
  top: 24px; right: 24px;
  z-index: 1;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--green);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 100px;
  gap: 12px;
  padding-left: 36px;
}
.mobile-menu nav.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  padding: 14px 0 10px 12px;
  margin-bottom: 8px;
  display: block;
  color: var(--primary);
  width: 95vw;
  border-radius: 9px 25px 20px 13px/14px 23px 15px 12px;
  transition: background 0.17s, color 0.14s;
}
.mobile-menu nav.mobile-nav a:hover, .mobile-menu nav.mobile-nav a:focus {
  background: var(--earth-light);
  color: var(--green);
}
.mobile-menu .primary-cta {
  margin: 0 0 0 0.7em;
  font-size: 1.1rem;
  width: fit-content;
}

/* === FLEX CARD CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px 48px 19px 18px/32px 40px 13px 18px;
  box-shadow: 0 2px 20px -4px rgba(141, 165, 123, 0.13);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* === FLEX GRIDS === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid, .service-cards, .project-summaries, .team-bios, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-cards > div, .project-summaries > div, .team-bios > div, .blog-list > article {
  flex: 1 1 min(320px, 100%);
  min-width: 270px;
  background: #fff;
  border-radius: 20px 40px 17px 21px/22px 33px 18px 29px;
  box-shadow: 0 1.5px 10px 0 rgba(201, 179, 135, 0.11);
  padding: 26px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .14s, transform .14s;
}
.feature-grid > div:hover, .service-cards > div:hover,
.project-summaries > div:hover, .team-bios > div:hover, .blog-list > article:hover {
  box-shadow: 0 6px 27px -5px rgba(36,55,65,.11), 0 1px 3px rgba(201,179,135,0.07);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img, .service-cards img, .team-bios img {
  height: 43px;
  margin-bottom: 6px;
}

/* === SPECIAL FLEX LAYOUTS === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--earth-light);
  border-radius: 18px 40px 12px 17px/26px 29px 20px 12px;
  padding: 20px 28px;
  box-shadow: 0 1px 14px 0 rgba(36, 55, 65, 0.05);
  margin-bottom: 20px;
  max-width: 700px;
  color: var(--primary);
}
.testimonial-card p {
  color: var(--earth-dark);
  font-size: 1.05rem;
  font-weight: 500;
}
.testimonial-meta {
  font-size: .97rem;
  font-style: italic;
  color: var(--green);
  margin-left: 12px;
}
.rating-summary {
  color: var(--earth-medium);
  font-size: 1.12rem;
  margin-top: 18px;
  font-weight: 600;
  letter-spacing: .015em;
}

.testimonials {
  background: #fff;
  border-radius: 20px 35px 22px 16px/32px 36px 14px 18px;
  padding: 36px 14px 38px 14px;
  margin-bottom: 60px;
  box-shadow: 0 3px 28px -9px rgba(36,55,65,.07);
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* === FEATURE LISTS === */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-size: 1.08rem;
  color: var(--primary);
  background: var(--earth-light);
  padding: 14px 22px 14px 12px;
  border-radius: 14px 27px 16px 18px/22px 22px 21px 13px;
  box-shadow: 0 0.5px 8px 0 rgba(141,165,123,0.06);
}
.feature-list img {
  width: 38px;
  height: 38px;
}

/* === TAGS === */
.sector-tags, .topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 3px 0;
}
.sector-tags li, .topic-tags li {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .87rem;
  border-radius: 9px 18px 12px 9px/8px 19px 13px 12px;
  padding: 3px 15px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.14s;
}

/* === POPULAR POSTS SIDEBAR === */
.popular-posts {
  background: var(--earth-light);
  border-radius: 20px 17px 18px 13px/22px 28px 14px 13px;
  box-shadow: 0 1.5px 7px rgba(141,165,123,0.05);
  padding: 18px 20px 16px 20px;
  margin-top: 30px;
}
.popular-posts h4 {
  color: var(--green);
  margin-bottom: 10px;
  font-size: 1.08rem;
}
.popular-posts a {
  color: var(--earth-dark);
  text-decoration: underline;
  font-size: 1rem;
  transition: color .14s;
}
.popular-posts a:hover {
  color: var(--green);
}

/* === CALL TO ACTION SECTION === */
.cta {
  background: var(--green);
  padding: 48px 0;
  text-align: center;
  border-radius: 25px 70px 45px 28px/30px 63px 48px 41px;
  box-shadow: 0 6px 26px -10px #b7cfa245;
  margin-bottom: 60px;
}
.cta .container, .cta .content-wrapper {
  align-items: center;
  gap: 20px;
}
.cta h2, .cta-message {
  color: #fff;
}
.cta .primary-cta {
  background: var(--accent);
  color: var(--green);
}
.cta .primary-cta:hover, .cta .primary-cta:focus {
  background: var(--secondary);
  color: var(--earth-dark);
}

/* === FOOTER === */
footer {
  background: var(--earth-dark);
  color: #fff;
  padding: 45px 0 18px 0;
  border-radius: 34px 34px 0 0/21px 21px 0 0;
  box-shadow: 0 -3px 38px -13px #25374118;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 5px;
}
.footer-top img {
  height: 42px;
  background: #fff;
  border-radius: 16px 25px 9px 16px/13px 23px 14px 12px;
  padding: 3px 6px;
  box-shadow: 0 2px 7px rgba(201,179,135,0.13);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
  align-items: center;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  border-radius: 7px;
  padding: 2px 7px;
  transition: background 0.17s, color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--green);
  color: var(--earth-light);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  font-size: .97rem;
  color: #e3ded0;
}
.footer-contact img {
  height: 20px;
  margin-right: 4px;
  vertical-align: text-bottom;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: var(--earth-dark);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  gap: 28px;
  box-shadow: 0 -7px 30px -6px #37423b39;
  border-radius: 24px 24px 0 0 / 13px 13px 0 0;
  animation: slideUpCookie .8s cubic-bezier(.71,0,.18,1.05);
}
@keyframes slideUpCookie {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner__text {
  font-size: 1rem;
  color: #fff;
  flex: 2 1 200px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  padding: 8px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 7px rgba(100,128,110,0.08);
}
.cookie-btn--accept { background: var(--green); color: #fff; }
.cookie-btn--accept:hover { background: var(--earth-medium); }
.cookie-btn--reject { background: var(--earth-medium); color: #fff; }
.cookie-btn--reject:hover { background: var(--danger); }
.cookie-btn--settings { background: var(--earth-light); color: var(--earth-dark); }
.cookie-btn--settings:hover { background: var(--secondary); color: var(--earth-dark); }

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: #25374199;
  display: none;
  align-items: center; justify-content: center;
  z-index: 5100;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInOverlay .4s;
}
@keyframes fadeInOverlay { 0% { opacity: 0; } 100% { opacity: 1; } }
.cookie-modal {
  background: #fff;
  padding: 38px 26px 30px 26px;
  border-radius: 28px 28px 14px 23px/22px 22px 25px 23px;
  width: 95vw; max-width: 430px;
  box-shadow: 0 6px 36px -9px #25374118;
  z-index: 5200;
  position: relative;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-modal label {
  font-size: 1.06rem;
  color: var(--earth-dark);
  margin-left: 7px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--green);
  margin-right: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex; gap: 15px; margin-top: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
.cookie-modal-close {
  position: absolute; right: 16px; top: 13px;
  background: var(--earth-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 32px; height: 32px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--green);
}

/* === CONTACT PAGE === */
.address-map, .office-description {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--earth-light);
  padding: 17px 23px;
  border-radius: 16px 27px 18px 12px/20px 21px 13px 13px;
  box-shadow: 0 0.5px 8px rgba(201,179,135,.07);
  margin-bottom: 20px;
}
.address-map img {
  width: 32px; height: 32px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1080px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .service-cards, .team-bios, .project-summaries, .blog-list {
    gap: 18px;
  }
  .footer-contact { flex-direction: column; gap: 12px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1, .hero h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.02rem; }
  .section, .testimonials, .cta, .feature-list li, .card { padding: 24px 8px; }
  .card-container, .content-grid, .feature-grid, .service-cards, .project-summaries, .team-bios, .feature-list, .blog-list, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .hero .container { padding: 0 6px; }
  .cta { padding: 26px 8px; border-radius: 19px 38px 18px 13px / 22px 32px 29px 16px; }
  .cards > *, .feature-grid > div, .service-cards > div, .project-summaries > div, .team-bios > div, .blog-list > article {
    min-width: 85vw;
    max-width: 100%;
  }
  .address-map, .office-description { padding: 11px 8px; font-size: 0.97rem; }
  .testimonial-card { padding: 12px 9px; }
  .footer-top { justify-content: center; }
  .footer-menu { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 650px) {
  header .container, header nav { flex-direction: column; gap: 8px; }
  .footer-menu { gap: 8px; }
  .cookie-banner { flex-direction: column; gap: 15px; padding: 16px 8px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { border-radius: 0 0 29px 36px/0 0 17px 19px; margin-bottom: 34px; }
  .section, .testimonials, .cta, .feature-list li, .card {
    padding: 18px 3px;
    margin-bottom: 36px;
  }
  .testimonials, .cta { border-radius: 12px 18px 11px 7px/9px 17px 7px 11px; }
}
@media (max-width: 520px) {
  .cookie-banner { font-size: 0.96rem; }
}
@media (max-width: 480px) {
  .section, .card { padding: 10px 2px; }
  .footer-contact, .footer-menu, .feature-list { gap: 7px; }
  .primary-cta { padding: 0.5em 1em; font-size: 1rem; }
  .cookie-modal { padding: 14px 4px; min-width: 98vw; }
  .cookie-modal h3 { font-size: 1.07rem; }
}

/* === SHOW MOBILE MENU BUTTON, HIDE DESKTOP NAV ON SMALL === */
@media (max-width: 980px) {
  .mobile-menu-toggle { display: flex; }
  header nav { display: none; }
}

/* === HIDE MOBILE MENU ON DESKTOP === */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* === MISC: CLIENT LOGOS, CARDS, ETC === */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
  margin-top: 20px;
}
.client-logos img {
  height: 38px;
  width: auto;
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  transition: outline 0.12s;
}

/* === TRANSITIONS, SHADOWS, AND HOVER EFFECTS === */
button, .primary-cta, .cookie-btn, .cookie-btn--settings, a {
  transition: background 0.13s, color 0.13s, box-shadow 0.14s, transform 0.11s, outline 0.13s;
}
.card, .feature-grid > div, .service-cards > div, .project-summaries > div, .team-bios > div, .blog-list > article, .testimonial-card {
  transition: box-shadow 0.14s, transform 0.13s;
}

/* === Z-INDEX MANAGEMENT === */
header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, .cookie-modal {
  z-index: 1001;
}
@media (max-width: 980px) {
  header { z-index: 2500; }
  .mobile-menu, .mobile-menu-toggle { z-index: 3001; }
}

/* === MICRO-INTERACTIONS === */
.primary-cta:active, .cookie-btn:active {
  transform: scale(0.97);
}
.card:active {
  box-shadow: 0 1.4px 9px rgba(201,179,135,0.11);
}

/* === MINIMUM SPACE BETWEEN CARDS/SECTIONS === */
.card, .testimonial-card, .feature-list li, .section, .cta, .project-summaries > div, .team-bios > div {
  margin-bottom: 20px;
}


/* === PRINT FRIENDLY === */
@media print {
  header, footer, .cta, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; }
}
