/* ================================= 
   CSS RESET & NORMALIZE (Mobile First) 
   =================================== */
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F8F8FA;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #23384E;
  line-height: 1.5;
  min-height: 100vh;
  min-width: 320px;
}
ul, ol {
  list-style: none;
}
a {
  color: #29B7A0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #368963;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: inline-block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #23384E;
}
h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #36503C;
}
strong, b { font-weight: bold; color: #23384E; }

/* =============  COLOR SCHEME ============= */
:root {
  --color-primary: #23384E;     /* deep navy */
  --color-secondary: #368963;   /* organic green accent */
  --color-accent: #F8F8FA;     /* background accent */
  --color-earth1: #A3B18A;      /* soft sage green */
  --color-earth2: #D9CAB3;      /* light sand */
  --color-earth3: #F7F5EC;      /* off white */
  --color-brown: #A58C69;       /* muted brown */
  --color-sand-dark: #8C7C5B;   /* darker sand for contrast */
  --color-danger: #C05A3A;
  --color-star: #E4C159;
}

body {
  background: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============== HEADER & NAV ============== */
header {
  background: var(--color-earth3);
  border-bottom: 2px solid var(--color-earth2);
  box-shadow: 0 2px 10px 0 rgba(36,80,44,0.03);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 6px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-earth1);
  color: var(--color-secondary);
  box-shadow: 0 2px 5px rgba(54,137,99,.07);
}
header .cta-btn {
  margin-left: 28px;
}
header img {
  height: 38px;
  margin-right: 10px;
}

/* Burger / Mobile nav button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  padding: 6px 10px;
  margin-left: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-earth1);
}
/* Hide burger on desktop */
@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
}

/* ========== MOBILE SLIDE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(247,245,236,0.98);
  box-shadow: 0 6px 32px 0 rgba(36,80,44,0.08);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 12px 0;
  background: var(--color-earth1);
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 40px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  padding: 12px 4px;
  color: var(--color-primary);
  border-radius: 6px;
  width: 100%;
  transition: background .17s, color .17s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-earth1);
  color: var(--color-secondary);
}
/* Hide desktop nav and cta on mobile when menu open */
@media (max-width: 900px) {
  header nav, header .cta-btn {
    display: none;
  }
}

/* ========== MAIN/SECTION LAYOUT ========= */
main {
  padding-bottom: 80px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 28px;
  /* Decorative organic shapes for background, only on large screens */
  position: relative;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.card-container, .service-list, .service-cards, .featured-posts, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card, .service-card, .testimonial-card, article {
  margin-bottom: 20px;
  background: var(--color-earth3);
  position: relative;
  padding: 26px 26px 22px 26px;
  border-radius: 20px;
  box-shadow: 0 3px 12px 0 rgba(54,137,99,0.06);
  border: 1.5px solid var(--color-earth2);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .service-card:hover, article:hover {
  box-shadow: 0 7px 25px 0 rgba(54,137,99,0.12), 0 1px 4px 0 rgba(36,80,44,0.07);
  transform: translateY(-5px) scale(1.01);
}
.card h3, .service-card h3, article h2 {
  font-size: 1.22rem;
  margin-bottom: 4px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

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

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* ============= BUTTONS / CTA =============*/
.cta-btn, .cookie-banner button, .cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 18px 32px 27px 15px / 22px 15px 35px 30px;
  margin-top: 8px;
  transition: background 0.23s, transform 0.23s, box-shadow 0.23s;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(54,137,99,0.10);
}
.cta-btn:hover, .cta-btn:focus, .cookie-banner button:hover, .cookie-banner button:focus, .cookie-modal button:hover, .cookie-modal button:focus {
  background: #256851;
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 5px 18px 0 rgba(54,137,99,0.22);
}
/* variant: secondary sand color */
.button-secondary {
  background: var(--color-earth2);
  color: var(--color-primary);
  border: 1.5px solid var(--color-sand-dark);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-sand-dark);
  color: #fff;
}

/* ============ BADGES/SPANS/AVATAR ============== */
.badge {
  display: inline-block;
  background: var(--color-earth1);
  color: var(--color-primary);
  border-radius: 10px 22px 18px 16px / 14px 20px 22px 13px;
  font-size: 0.88rem;
  padding: 3px 11px;
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.service-card .badge {
  position: absolute;
  top: 15px;
  right: 22px;
  background: var(--color-secondary);
  color: #fff;
}

/* ============ BLOG FILTERS ============ */
.blog-filters {
  margin: 22px 0 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.blog-filters input[type="text"], .blog-filters select {
  font-size: 1rem;
  padding: 9px 18px;
  border: 1.5px solid var(--color-earth1);
  border-radius: 12px 18px 13px 12px / 11px 18px 18px 14px;
  background: var(--color-earth3);
  color: var(--color-primary);
  outline: none;
  box-shadow: 0 1px 2px rgba(54,137,99,0.09);
  transition: border 0.19s;
}
.blog-filters input[type="text"]:focus, .blog-filters select:focus {
  border: 1.7px solid var(--color-secondary);
}

/* =========== TESTIMONIALS =========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 23px;
  margin-bottom: 20px;
  border-radius: 20px 12px 32px 15px / 18px 23px 28px 24px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(163,177,138,0.13);
  border: 1px solid var(--color-earth1);
  color: #23384E;
  min-width: 240px;
  max-width: 430px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #23384E;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.testimonial-card img[alt="*"] {
  width: 20px;
  height: 20px;
  margin-right: 2px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px #E4C15944);
}

.average-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--color-secondary);
  font-size: 1.13rem;
}
.average-rating img {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 1px 2px #E4C15944);
  margin-right: 1px;
}

.opinion-invite {
  margin-top: 26px;
  padding: 23px 16px;
  background: var(--color-earth1);
  border-radius: 16px 28px 24px 12px / 18px 24px 26px 18px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
.opinion-invite h2 {
  color: var(--color-primary);
}

/* ============= LISTS & ICON LISTS ============ */
ul li, .content-wrapper ul li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-size: 1.01rem;
  color: #36503C;
  display: flex;
  align-items: center;
}
ul li img {
  position: absolute;
  left: 0; top: 4px;
  width: 21px;
  height: 21px;
  margin-right: 10px;
}
.content-wrapper ul:last-child {
  margin-bottom: 0;
}

/* ============== FORMS (if any) ============== */
input[type="text"], input[type="email"], textarea {
  font-size: 1rem;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  padding: 10px 18px;
  border: 1.5px solid var(--color-earth1);
  border-radius: 10px 18px 13px 12px / 11px 18px 18px 14px;
  background: var(--color-earth3);
  color: var(--color-primary);
  margin-bottom: 16px;
  outline: none;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.75px solid var(--color-secondary);
}

/* =========== CASE STUDY SNIPPET ============ */
.case-study-snippet {
  background: var(--color-earth2);
  color: #23384E;
  padding: 15px 16px;
  border-radius: 14px 24px 20px 19px / 14px 20px 22px 14px;
  font-size: 0.99rem;
  font-style: italic;
  margin-bottom: 10px;
  box-shadow: 0 1px 7px 0 rgba(163,177,138,0.09);
  display: inline-block;
}

/* ============ MAPS/EMBED/CONTACT =========== */
.contact-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.map-embed {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-earth3);
  padding: 12px 17px;
  border-radius: 14px 24px 20px 19px / 14px 20px 22px 14px;
  margin-top: 14px;
}
.map-embed img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ============= FOOTER ============ */
footer {
  background: var(--color-earth1);
  color: var(--color-primary);
  padding: 38px 0 25px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
footer a {
  color: var(--color-primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  margin-right: 16px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  padding: 6px 6px;
}
footer a:hover, footer a:focus {
  background: var(--color-earth2);
  color: var(--color-secondary);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer img {
  height: 32px;
  margin-right: 10px;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 52px;
  }
  .footer-contact {
    align-items: flex-end;
    text-align: right;
  }
}

/* ============= COOKIE BANNER ============= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: var(--color-earth2);
  color: var(--color-primary);
  z-index: 3000;
  box-shadow: 0 -2px 14px 0 rgba(54,137,99,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 14px 16px;
  gap: 20px;
  font-size: 1rem;
  animation: cookieAppear 0.43s cubic-bezier(.22,1,.36,1);
}
@keyframes cookieAppear {
  from { transform: translateY(75px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.cookie-banner button {
  min-width: 110px;
  margin: 0 3px;
  border-radius: 16px 19px 13px 18px;
  font-size: 0.98rem;
  padding: 8px 20px;
}
.cookie-banner .button-secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .button-secondary:hover, .cookie-banner .button-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 6px 13px;
  border-radius: 13px 13px 13px 13px;
  font-size: 0.94rem;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-earth1);
  color: var(--color-secondary);
}

/* =========== COOKIE MODAL =========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3300;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,80,44,0.18);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeModalBg 0.3s;
}
@keyframes fadeModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  min-width: 280px;
  max-width: 95vw;
  background: var(--color-earth3);
  color: var(--color-primary);
  border-radius: 22px 32px 24px 15px / 22px 28px 32px 24px;
  padding: 34px 24px 26px 24px;
  box-shadow: 0 5px 30px 0 rgba(54,137,99,0.14);
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: modalSlideIn 0.4s cubic-bezier(.22,1,.36,1);
}
@keyframes modalSlideIn {
  from { transform: translateY(140px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.12rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal .cookie-toggle[type="checkbox"] {
  appearance: none;
  outline: none;
  width: 30px;
  height: 18px;
  background: var(--color-earth1);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  border: 1.2px solid var(--color-secondary);
}
.cookie-modal .cookie-toggle[type="checkbox"]:checked {
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 13.5px;
  height: 13.5px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px 0 rgba(36,80,44,0.06);
}
.cookie-modal .cookie-toggle[type="checkbox"]:checked:before {
  left: 13.5px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 23px;
  font-size: 1.37rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

/* ========== ORGANIC/NATURE-INSPIRED DESIGN ELEMENTS ========== */
.section {
  /* Subtle organic background shape, use pseudo for deco only */
  overflow: visible;
}
@media (min-width: 1100px) {
  .section::before {
    content: '';
    display: block;
    position: absolute;
    top: -38px; left: -45px;
    width: 230px; height: 180px;
    border-radius: 70% 32% 60% 88%/ 41% 51% 65% 44%;
    background: var(--color-earth1);
    opacity: 0.11;
    z-index: 0;
    pointer-events: none;
  }
  .section::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -35px; right: -16px;
    width: 180px; height: 110px;
    border-radius: 60% 89% 62% 72%/ 68% 52% 81% 65%;
    background: var(--color-secondary);
    opacity: 0.09;
    z-index: 0;
    pointer-events: none;
  }
}

/* ========== MEDIA QUERIES ========== */
@media (min-width: 600px) {
  .section, section {
    padding: 50px 40px;
    margin-bottom: 70px;
  }
  .content-wrapper {
    gap: 28px;
  }
  .card, .service-card, .testimonial-card, article {
    padding: 30px 32px 28px 32px;
    min-width: 290px;
    max-width: 47vw;
  }
}
@media (min-width: 900px) {
  header .container {
    flex-wrap: nowrap;
  }
  .content-wrapper {
    align-items: flex-start;
    gap: 38px;
    /* For two-column content on big screens if needed */
  }
  .card-container, .service-cards, .featured-posts, .testimonial-list {
    flex-direction: row;
    justify-content: flex-start;
    gap: 34px;
  }
  .card, .service-card, .testimonial-card, article {
    min-width: 275px;
    max-width: 360px;
  }
  .testimonial-card {
    min-width: 320px;
    max-width: 420px;
  }
  .section, section {
    padding: 60px 0;
    margin-bottom: 88px;
  }
}
/* MOBILE ADAPTION */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .featured-posts, .service-list, .service-cards, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .card, .service-card, .testimonial-card, article {
    max-width: 100%;
    min-width: 0;
    min-width: unset;
    width: 100%;
  }
  header .container {
    min-height: 54px;
  }
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.09rem; }
  .cta-btn {
    width: 100%;
    padding: 11px 0;
    font-size: 1.05rem;
  }
}

/* ============ UTILITY CLASSES ============ */
.text-section {
  max-width: 700px;
  align-items: flex-start;
  gap: 16px;
}
.flex, .d-flex {
  display: flex;
  gap: 20px;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============= MICRO-INTERACTIONS & ANIMATIONS ============= */
.cta-btn, .cookie-banner button, .cookie-modal button {
  transition: background 0.23s, transform 0.23s, box-shadow 0.3s, color 0.23s;
}
.card, .service-card, .testimonial-card, article {
  transition: box-shadow 0.22s, transform 0.22s;
}

/* Hide elements utility */
[hidden] { display: none !important; }

/* ============= ACCESSIBILITY/FOCUS ============= */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============= Z-INDEX LAYERING ============= */
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay { z-index: 3000; }
header { z-index: 1001; }

/* ============= END OF STYLE.CSS ============= */
