/* =============================
  CSS RESET & BASE STYLES
============================= */
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; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section{
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F7F6F3;
  color: #1B2228;
  min-height: 100vh;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; border: 0; }
button, input, select, textarea {
  outline: none; border: none; font: inherit;
  background: none; color: inherit;
}
:root {
  /* Brand Colors */
  --primary: #232A34;
  --secondary: #77B0AA;
  --accent: #F2C14E;
  --natural-bg: #F7F6F3;
  --earth-brown: #8A6C49; /* Soil */
  --organic-green: #60916B;
  --light-green: #D2E5D4;
  --clay: #E4D9C2;
  --error: #A46A6D;
  /* Typography */
  --display: 'Montserrat', Arial, Helvetica, sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
  /* Spacing scale */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  /* Radius */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-xl: 32px;
  /* Shadows */
  --shadow-s: 0 2px 8px rgba(96,145,107,0.07);
  --shadow-m: 0 4px 24px rgba(51,68,41,0.11);
}

/* =============================
  GENERAL LAYOUT STRUCTURE
============================= */
.container {
  width: 100%;
  max-width: 1100px;
  padding-left: 20px; padding-right: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-m);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  background: var(--clay);
  border-radius: var(--radius-m);
  padding: 40px 32px;
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
  .text-section { padding: 20px 12px; }
}

/* =============================
  TYPOGRAPHY
============================= */
h1, .display-1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem; /* 42px */
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h2, .display-2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--earth-brown);
  margin-bottom: 12px;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--organic-green);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--secondary);
}
p, ul, li, span, a, strong, b, em {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--primary);
}
p.subtitle {
  color: var(--organic-green);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
strong, b {
  color: var(--earth-brown);
  font-weight: 600;
}
em { color: var(--secondary); }

@media (max-width: 768px) {
  h1, .display-1 { font-size: 2rem; }
  h2, .display-2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  p.subtitle, p, li { font-size: 0.98rem; }
}

/* =============================
  HEADER & MAIN NAVIGATION
============================= */
header {
  background: #FCFBF8;
  border-bottom: 1px solid #E4D9C2;
  box-shadow: 0 1px 10px rgba(122,91,38,0.05);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: 12px;
}
.main-nav {
  display: flex; flex-direction: row;
  gap: 24px; align-items: center;
}
.main-nav a {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--organic-green);
  padding: 8px 8px;
  border-radius: 10px;
  transition: background 0.18s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--light-green);
  color: var(--primary);
}
.btn.primary {
  background: var(--organic-green);
  color: #fff;
  padding: 11px 24px;
  font-size: 1rem;
  border-radius: 32px;
  font-family: var(--display);
  font-weight: 600;
  box-shadow: var(--shadow-m);
  transition: background 0.18s, transform 0.15s;
  cursor: pointer;
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--earth-brown);
  transform: translateY(-2px) scale(1.02);
}
.btn.accent {
  background: var(--accent);
  color: var(--primary);
  padding: 11px 24px;
  font-size: 1rem;
  border-radius: 32px;
  font-family: var(--display);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(242,193,78,0.10);
  transition: background 0.18s, color 0.18s, transform 0.15s;
  cursor: pointer;
}
.btn.accent:hover, .btn.accent:focus {
  background: #ffe09a;
  color: var(--organic-green);
  transform: scale(1.03);
}
.btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 28px;
  font-family: var(--display);
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-s);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  cursor: pointer;
}
.btn:hover, .btn:focus {
  background: var(--organic-green);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* =============================
  MOBILE NAVIGATION
============================= */
.mobile-menu-toggle {
  display: none;
  background: var(--organic-green);
  color: #fff;
  font-size: 1.6rem;
  padding: 8px 11px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  border: none;
  transition: background 0.19s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(122,109,83,0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(0.39, 0.57, 0.56, 1), opacity 0.17s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 24px 0 0;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.15s, background 0.18s;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--clay);
  color: var(--organic-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 32px 32px 0 32px;
  gap: 18px;
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.2rem;
  color: #fff;
  padding: 14px 0 14px 6px;
  border-radius: 11px;
  width: 100%;
  transition: background 0.17s, color 0.17s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--light-green);
  color: var(--primary);
}
/* Hide nav on mobile, show burger */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =============================
  HERO & COMMON SECTION STYLES
============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
@media (max-width: 768px) {
  section { margin-bottom: 36px; padding: 18px 4px; }
  .content-wrapper { gap: 14px; }
}

/* =============================
  FLEX UTILITIES / ALIGNED SECTIONS
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--clay);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 24px;
  min-width: 235px;
  flex: 1 1 285px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(122,91,38,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 28px rgba(99,124,71,0.13);
}
.testimonial-card blockquote {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.35;
  font-style: italic;
  margin-right: 8px;
}
.testimonial-card footer {
  color: var(--organic-green);
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
  FEATURE / SERVICE GRIDS
============================= */
.feature-grid, .feature-list, .service-list, .team-profiles, .client-logos, .project-highlights, .blog-excerpt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .feature-grid, .feature-list, .service-list, .team-profiles, .client-logos, .project-highlights, .blog-excerpt-list {
    gap: 12px;
    flex-direction: column;
  }
}
.feature-grid > li, .feature-list > li, .service-list > li, .blog-excerpt-list > li {
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 24px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
  position: relative;
}
.feature-grid > li:hover,
.feature-list > li:hover,
.service-list > li:hover,
.blog-excerpt-list > li:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img, .feature-list img, .service-list img {
  width: 36px; height: 36px;
  margin-bottom: 6px;
  filter: grayscale(0.2) brightness(0.95);
}
/* Team Profiles */
.team-profiles > li {
  background: var(--light-green);
  border-left: 7px solid var(--organic-green);
  border-radius: var(--radius-m);
  padding: 20px 16px;
  font-size: 1.03rem;
  font-weight: 500;
  margin-bottom: 20px;
  flex: 1 1 220px;
}
.client-logos > li {
  background: none;
  box-shadow: none;
  flex: 0 0 80px;
  min-width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
}
.client-logos img {
  width: 52px;
  height: auto;
  filter: grayscale(0.18);
  opacity: 0.85;
  transition: filter 0.18s, opacity 0.2s;
}
.client-logos img:hover {
  filter: none;
  opacity: 1;
}

.project-highlights > li {
  background: #fffef7;
  border-radius: var(--radius-s);
  padding: 16px 14px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  color: var(--primary);
  box-shadow: none;
}

.blog-excerpt-list > li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
}

/* =============================
  FOOTER STYLES
============================= */
footer {
  background: #282d22;
  color: #fff;
  border-top: 2px solid var(--organic-green);
  padding: 30px 0 15px 0;
  position: relative;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s, text-decoration 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.company-info {
  background-color: #D2E5D4;
  font-size: 0.95rem;
  text-align: center;
}
.footer-logo img {
  width: 58px; height: auto; margin: 8px auto;
  filter: brightness(0.96) saturate(0.85);
}
.social-links {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.social-links a img {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--earth-brown);
  padding: 4px;
  transition: background 0.17s, transform 0.13s;
}
.social-links a:hover img, .social-links a:focus img {
  background: var(--accent);
  transform: scale(1.11);
}
@media (max-width: 768px) {
  .footer-nav { flex-direction: column; gap: 10px; align-items: center; }
  .company-info { font-size: 0.87rem; word-break: break-word; }
}

/* =============================
  FORM & INTERACTIVE ELEMENTS
============================= */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-s);
  background: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: border 0.18s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--organic-green);
}
label {
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 4px;
}

/* =============================
  COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0; z-index: 9999;
  width: 100vw;
  background: var(--clay);
  color: var(--primary);
  box-shadow: 0 -1px 10px rgba(51,68,41,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 18px 16px;
  gap: 16px;
  font-size: 1rem;
  animation: cookie-in 0.45s 0.1s both;
}
.cookie-banner.hidden {
  opacity: 0; pointer-events: none; transition: opacity 0.22s; transform: translateY(100%);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  font-family: var(--display);
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  box-shadow: var(--shadow-s);
  margin-right: 3px;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
  font-weight: 600;
}
.cookie-btn.accept {
  background: var(--organic-green);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--earth-brown);
  border: 1.5px solid var(--organic-green);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--error);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--light-green);
  color: var(--organic-green);
}

/* =============================
 COOKIE MODAL STYLES
============================= */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,42,52,0.55);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  animation: cookie-modal-in 0.26s 0.05s both;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 50px rgba(96,145,107,0.15);
  padding: 30px 22px 18px 22px;
  margin-bottom: 0;
  width: 100%;
  max-width: 430px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  color: var(--organic-green);
  font-size: 1.2rem;
  font-family: var(--display);
}
.cookie-modal label {
  font-weight: 500;
  font-size: 1rem;
  margin-left: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.cookie-category input[type="checkbox"]:disabled + label { color: #BBB; }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
@media (max-width: 600px) {
  .cookie-modal { padding: 20px 6px 10px 6px; max-width: 99vw; }
}

/* =============================
  RESPONSIVE & FLEXBOX ADJUSTMENTS
============================= */
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .feature-grid > li, .feature-list > li, .service-list > li {
    flex: 1 1 150px;
    padding: 18px 12px 14px 12px;
    min-width: 140px;
  }
  .card {
    min-width: 180px;
    padding: 12px;
  }
}

/* =============================
  MICRO-INTERACTIONS & EFFECTS
============================= */
.card, .feature-grid > li, .service-list > li,
.blog-excerpt-list > li, .testimonial-card, .team-profiles > li {
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover, .feature-grid > li:hover, .service-list > li:hover,
.blog-excerpt-list > li:hover, .testimonial-card:hover, .team-profiles > li:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px) scale(1.03);
}

a.btn, .btn, .cookie-btn {
  transition: box-shadow 0.14s, background 0.14s, color 0.14s, transform 0.13s;
}
a.btn:active, .btn:active { transform: scale(0.995); }

/* =============================
  ACCESSIBILITY & FOCUS STATES
============================= */
a, button, .btn, .cookie-btn, .main-nav a, .mobile-nav a {
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: var(--light-green);
}

/* =============================
  UTILITY CLASSES
============================= */
.flex-row {
  display: flex; flex-direction: row; gap: 20px;
}
.flex-col {
  display: flex; flex-direction: column; gap: 20px;
}
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-20 { gap: 20px; }

/* =============================
  SCROLLBAR STYLING
============================= */
body {
  scrollbar-color: var(--organic-green) var(--clay);
  scrollbar-width: thin;
}
body::-webkit-scrollbar {
  width: 8px;
  background: var(--clay);
}
body::-webkit-scrollbar-thumb {
  background: var(--organic-green);
  border-radius: 4px;
}

/* =============================
  ORGANIC SHAPE DECOR (OPTIONAL)
============================= */
.organic-leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.13;
  filter: blur(2px);
}

/* =============================
  PRINT & SYSTEM ADJUSTMENT
============================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0 !important; }
  section { box-shadow: none !important; }
}
