/* ===================================================== */
/*      CSS RESET & BASELINE                             */
/* ===================================================== */

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.5;
  background: #F4F5F0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #24352E;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #609949;
  text-decoration: none;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ===================================================== */
/*      BRAND - NATURE ORGANIC THEME VARIABLES           */
/* ===================================================== */

:root {
  --primary: #0C334C;      /* deep blue (brand) */
  --secondary: #9AD8E5;    /* light blue (brand accent) */
  --accent: #F2F5F9;       /* soft off-white */
  --earth-brown: #A58B6F;  /* earth tone */
  --forest-green: #609949; /* organic green accent */
  --sand-beige: #DFC7A0;   /* light nature accent */
  --clay: #C9AD88;         /* soft clay earth */
  --offwhite: #F4F5F0;     /* background paper-like */
  --text: #24352E;         /* deep natural */
  --text-light: #F9FBFA;
  --card: #FFFFFF;         /* card backgrounds */
  --shadow: 0 4px 20px rgba(132, 145, 113, 0.10);
  --testi-bg: #F7F9F5;
  --testi-border: #BFD5B1;
  --modal-bg: rgba(44,64,48,0.75);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===================================================== */
/*      TYPOGRAPHY & SPACING SCALE                      */
/* ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: #16240A;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: #487c4a;
  border-left: 4px solid #a9bc86;
  padding-left: 20px;
  background: #f9fcf7;
  border-radius: 12px;
  margin: 16px 0;
}
strong {
  color: #487c4a;
}

/* Typography for client/testimonial name */
.client-name {
  display: block;
  font-size: 1rem;
  font-family: var(--font-display);
  color: #3d6a31;
  margin-top: 6px;
}

/* ===================================================== */
/*      LAYOUT CONTAINERS & SPACING                    */
/* ===================================================== */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 26px;
}

@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .section {
    padding: 28px 3vw;
    margin-bottom: 36px;
    border-radius: 16px;
  }
}

/* Flexbox card containers for features, gallery, etc. */
.card-container,
.card-grid,
.services-cards,
.features-grid,
.testimonials-grid,
.news-list,
.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

.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;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--testi-bg);
  border-left: 6px solid var(--forest-green);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(125, 159, 105, 0.22);
  border-color: #457B3B;
}

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

.case-studies, .services-cards, .features-grid, .testimonials-grid {
  gap: 24px;
  margin-bottom: 16px;
}

.feature, .service-card, .case-study {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  flex: 1 1 219px;
  min-width: 219px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border 0.2s;
  border-left: 5px solid var(--earth-brown);
  position: relative;
}
.feature:hover, .service-card:hover, .case-study:hover {
  box-shadow: 0 8px 28px rgba(98, 112, 90, 0.18);
  border-color: var(--forest-green);
}

.services-list li, .text-section ul li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.services-list li:before, .text-section ul li:before {
  content: "\2022";
  color: var(--forest-green);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 18px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.featured-article {
  background: var(--forest-green);
  color: var(--text-light);
  border-radius: 15px;
  padding: 28px 24px;
  margin-top: 20px;
  box-shadow: 0 6px 24px rgba(90,114,75,0.16);
}
.featured-article h2,
.featured-article p {
  color: var(--text-light);
}
.news-list {
  gap: 24px;
  flex-direction: column;
}
.news-list article {
  background: var(--accent);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.news-list h2 {
  font-size: 1.18rem;
}
.news-date {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--forest-green);
  font-family: var(--font-display);
}

/* Quick Contact CTA section */
.cta-btn {
  display: inline-block;
  background: var(--forest-green);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  padding: 16px 36px;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(96, 153, 73, 0.11);
  transition: background 0.23s, box-shadow 0.23s, transform 0.13s;
  text-decoration: none;
  letter-spacing: 0.02em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #426d32;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  box-shadow: 0 6px 24px rgba(80,135,54,0.19);
}

/* List stylings for section features, cards etc. */
ul, ol {
  margin-bottom: 12px;
  padding-left: 20px;
}
li {
  list-style: none;
}

/* ===================================================== */
/*      HEADER, MAIN MENU, FOOTER                       */
/* ===================================================== */

header {
  width: 100%;
  background: #F7F9F6;
  box-shadow: 0 2px 10px 0 rgba(60,85,50,0.05);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.04rem;
  color: #1b3125;
  padding: 6px 12px;
  border-radius: 30px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--forest-green);
}
header .cta-btn {
  margin: 0 0 0 18px;
  padding: 11px 30px;
  font-size: 1rem;
}

@media (max-width: 1020px) {
  header nav {
    gap: 13px;
  }
  header .cta-btn {
    margin-left: 10px;
  }
}

/* ===================== MOBILE MENU ======================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px; top: 21px;
  background: var(--forest-green);
  color: var(--text-light);
  border: none;
  border-radius: 18px;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  transition: background .2s;
  outline: none;
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #426d32;
}
.mobile-menu {
  position: fixed;
  z-index: 200;
  right: 0; top: 0;
  height: 100dvh;
  width: 96vw;
  max-width: 380px;
  background: #F7F9F6;
  box-shadow: -5px 0 32px rgba(70,85,54,0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.31,.39,1.14);
  display: flex;
  flex-direction: column;
  padding: 36px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 24px 12px 0;
  background: transparent;
  color: #487c4a;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #24352E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: #24352E;
  background: #F2F5F9;
  border-radius: 20px;
  padding: 13px 18px;
  margin-bottom: 4px;
  transition: background .18s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--forest-green);
  color: #fff;
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 6px;
  }
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================================================== */
/*      FOOTER                                          */
/* ===================================================== */

footer {
  background: #EDEEE9;
  border-top: 2px solid #BFD5B1;
  padding: 38px 0 24px 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  color: #46623c;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 12px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background .21s, color .17s;
}
footer nav a:hover, footer nav a:focus {
  background: #f3faec;
  color: #2e5a21;
}
footer p {
  font-size: 0.96rem;
  color: #6f735e;
  margin: 0;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  footer nav {
    gap: 10px;
    margin-bottom: 10px;
  }
}

/* ===================================================== */
/*      RESPONSIVE FLEX ADJUSTMENTS                     */
/* ===================================================== */

@media (max-width: 768px) {
  .features-grid,
  .services-cards,
  .card-container,
  .testimonials-grid,
  .case-studies,
  .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===================================================== */
/*      COOKIE CONSENT BANNER / MODAL                   */
/* ===================================================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 210;
  background: #fffef8;
  border-top: 3px solid #BFD5B1;
  box-shadow: 0 -7px 32px rgba(148,165,134,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #24352E;
  transition: transform 0.35s cubic-bezier(.7,.31,.39,1.14);
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner__text {
  flex: 1 1 80%;
  margin-right: 22px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--forest-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 23px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-btn.cookie-btn--decline {
  background: #A58B6F;
}
.cookie-btn.cookie-btn--settings {
  background: var(--secondary);
  color: #16240A;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #426d32;
  color: #fff;
}
.cookie-btn.cookie-btn--decline:hover, .cookie-btn.cookie-btn--decline:focus {
  background: #7c6045;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 12px;
    font-size: 1rem;
  }
  .cookie-banner__text {
    margin-right: 0;
  }
  .cookie-banner__actions {
    gap: 9px;
    width: 100%;
  }
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-bg);
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fffef8;
  box-shadow: 0 10px 38px rgba(54,67,54,0.16);
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 430px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: showModalPop 0.35s cubic-bezier(.7,.31,.39,1.14);
}
@keyframes showModalPop {
  from { transform: scale(0.98) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 13px; right: 17px;
  background: transparent;
  border: none;
  color: #487c4a;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #24352E;
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #24352E;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.06rem;
  gap: 10px;
}
.cookie-modal__category label {
  font-family: var(--font-display);
  font-weight: 600;
  color: #457B3B;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #D0E3CE;
  position: relative;
  outline: none;
  transition: background .16s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--forest-green);
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 3px; top: 2.6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s, box-shadow .16s;
  box-shadow: 0 2px 5px rgba(96,153,73,0.09);
}
.cookie-toggle:checked::before {
  transform: translateX(15px);
}
.cookie-modal__desc {
  font-size: 0.98rem;
  color: #4a4a4a;
  margin-bottom: 18px;
  margin-left: 43px;
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  margin-top: 19px;
  width: 100%;
}
.cookie-modal__actions .cookie-btn {
  flex: 1 1 80px;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 27px 8px;
    font-size: 1rem;
  }
  .cookie-modal__actions {
    flex-direction: column;
    gap: 9px;
  }
}

/* ===================================================== */
/*      MICROINTERACTIONS & ORGANIC ELEMENTS            */
/* ===================================================== */

/* Subtle shadow hover for cards and CTA */
.feature, .service-card, .case-study, .testimonial-card, .news-list article {
  transition: box-shadow 0.2s, border 0.2s, transform .13s;
}
.feature:active, .service-card:active, .testimonial-card:active {
  transform: scale(0.98);
}
input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid var(--forest-green);
}

/* ORGANC SHAPES (Soft borders for organic feel) */
.feature, .service-card, .case-study, .testimonial-card, .news-list article {
  border-radius: 15px 28px 13px 19px / 26px 12px 26px 12px;
}

/* Organic decorative wavy underline for h1, h2 */
h1, h2 {
  position: relative;
  padding-bottom: 7px;
}
h1:after, h2:after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg width='120' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,3 Q20,6 40,3 T80,3 T118,3' fill='none' stroke='%23609949' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat left bottom;
  background-size: 86px 6px;
  opacity: 0.6;
}
@media (max-width: 768px) {
  h1:after, h2:after {
    background-size: 68px 5px;
  }
}

/* ===================================================== */
/*      UTILITY CLASSES & GLOBALS                       */
/* ===================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
}

/* ===================================================== */
/*      FORMS BASICS (in case contact form appears)      */
/* ===================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 18px;
  border: 1.5px solid #BFD5B1;
  color: #24352E;
  width: 100%;
  margin-bottom: 16px;
  background: #F7F9F6;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--forest-green);
  background: #f5faf4;
}

/* Dark text on light background for high contrast in testimonials/reviews */
.testimonial-card p,
.testimonial-card .client-name {
  color: #283D1A !important;
}

/* Ensure minimum margin between cards/sections */
.card, .feature, .case-study, .service-card, .testimonial-card, .news-list article {
  margin-bottom: 20px;
}
/* For section separation */
section {
  margin-bottom: 60px;
  background: none;
}
@media (max-width: 800px) {
  section {
    margin-bottom: 38px;
  }
}

/* Prevent content overlapping */
.card-container, .features-grid, .services-cards, .testimonials-grid, .news-list, .case-studies, .content-grid {
  gap: 24px;
}

/* ===================================================== */
/*      BUTTON ANIMATION & STATES                       */
/* ===================================================== */
button {
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  transition: background .19s, box-shadow .14s, color .15s, transform .11s;
}
button:active {
  transform: scale(0.98);
}

/* Smooth transitions for main interactions */
*, *::before, *::after {
  transition-property: color, background, border, box-shadow, transform;
  transition-duration: .17s;
  transition-timing-function: cubic-bezier(.62,.17,.45,.96);
}

/* ===================================================== */
/*      END OF STYLE                                    */
/* ===================================================== */
