/* =====================================================
   CSS 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;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  background: #f4f4f2;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
input, button, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
*, *::before, *::after {
  box-sizing: inherit;
}

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --color-primary: #343E42;
  --color-secondary: #3C7D63;
  --color-accent: #F4F4F2;
  --color-accent-dark: #e4e4e0;
  --color-link: #3C7D63;
  --color-link-hover: #343E42;
  --color-shadow: rgba(52,62,66,0.08);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', system-ui, Arial, Helvetica, sans-serif;
}

/* Fallback for fonts if variable not supported */
body { font-family: 'Roboto', Arial, Helvetica, sans-serif; }

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* =====================================================
   BASE TYPOGRAPHY & BODY
   ===================================================== */
body {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main {
  width: 100%;
}
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--color-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-secondary);
  font-weight: 600;
}
h4, .h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
}
strong { font-weight: 600; color: var(--color-primary); }
small {
  font-size: 0.95em;
  color: var(--color-primary);
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
  outline: none;
}

ul, ol {
  margin: 16px 0 16px 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul.value-grid li {
  margin-bottom: 0;
}

/* =====================================================
   SECTION, SPACING & LAYOUT UTILITIES
   ===================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.007);
  box-shadow: 0 8px 32px rgba(60, 125, 99, .10);
}

.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;
}

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

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

/* =====================================================
   MAIN NAVIGATION
   ===================================================== */
header {
  background: linear-gradient(90deg, #F4F4F2 64%, #f1f7f5 100%);
  border-bottom: 1px solid #eaeaea;
  min-height: 74px;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-left: 22px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 3px 0;
  position: relative;
  border-radius: 4px;
  transition: background .2s, color .18s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent-dark);
}
header img {
  height: 44px;
  width: auto;
  margin-right: 10px;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #3C7D63 80%, #2b7753 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  border: none;
  border-radius: 28px;
  padding: 12px 36px;
  box-shadow: 0 2px 10px rgba(52,62,66,0.06);
  cursor: pointer;
  margin-left: 24px;
  transition: background .18s, box-shadow .18s, transform .12s;
  outline: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.02);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #35594a 70%, #3C7D63 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 24px rgba(60,125,99,.14);
}

/* Hamburger and Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  margin-left: 25px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent-dark);
  color: var(--color-secondary);
}
@media (max-width: 1080px) {
  header .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  header nav {
    gap: 18px;
    margin-left: 7px;
  }
  .btn-primary { margin-left: 8px; }
}
@media (max-width: 900px) {
  header nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,245,244,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 32px 32px;
  transform: translateX(-100%);
  will-change: transform, opacity;
  transition: transform .36s cubic-bezier(.94,.01,0,1), opacity .24s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 60px;
  width: 48px; height: 48px;
  align-self: flex-end;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  margin-bottom: 30px;
  transition: background .18s, color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto;
  padding-top: 20px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 10px 2px 8px 2px;
  border-radius: 10px;
  transition: background .15s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent-dark);
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =====================================================
   HOMEPAGE FEATURE GRID & SERVICE LISTS (INDEX)
   ===================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 12px 0;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 28px 22px 22px 22px;
  width: 260px;
  min-width: 230px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow .16s, transform .16s;
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-grid li:hover {
  transform: translateY(-3px) scale(1.023);
  box-shadow: 0 8px 36px rgba(60,125,99,0.11);
}
.feature-grid h3 {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 2px;
}
.feature-grid p {
  font-size: 0.98rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* SERVICES PAGE LISTS */
.service-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  margin-bottom: 12px;
}
.service-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 28px 22px 22px 22px;
  width: 340px;
  min-width: 230px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .16s, transform .14s;
  margin-bottom: 0;
}
.service-list li:hover {
  transform: scale(1.017) translateY(-2px);
  box-shadow: 0 8px 34px rgba(52,62,66,0.09);
}

.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 10px 0;
}
.benefit-grid li {
  background: var(--color-accent-dark);
  border-radius: 12px;
  padding: 14px 20px 13px 18px;
  font-size:1rem;
  font-weight: 500;
  color: var(--color-primary);
  display: flex; flex-direction: row; align-items: center;
  gap: 12px;
  transition: box-shadow .13s, background .11s;
}
.benefit-grid li img {
  width:26px;height:26px;display:inline-block;margin-right:10px;
}

/* PROJECT CARDS (PROJECTS PAGE) */
.project-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.project-list li {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 28px 22px 18px 22px;
  width: 350px;
  min-width: 230px;
  min-height:180px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow .18s, transform .18s;
  margin-bottom: 0;
}
.project-list li:hover {
  transform: scale(1.019) translateY(-2px);
  box-shadow: 0 8px 36px rgba(60,125,99,0.10);
}

/* VALUE/USP GRIDS (ABOUT PAGE) */
.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  margin-top: 10px;
}
.value-grid li {
  background: var(--color-accent-dark);
  border-radius: 10px;
  padding: 10px 18px;
  font-size:1rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: box-shadow .12s, background .11s;
  margin-bottom: 0;
}
.usp-descriptions p {
  color: var(--color-secondary);
  font-size: 1.04rem;
  font-weight: 500;
  margin-top: 0;
}

/* =====================================================
   TESTIMONIAL SECTION & CARDS
   ===================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  font-size: 1.08rem;
  position: relative;
  transition: box-shadow .16s, background .13s;
}
.testimonial-card p {
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: 0.96rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(60,125,99,0.15);
  background: var(--color-accent-dark);
}

/* ===============================
   CTA SECTIONS
   =============================== */
.cta-section {
  background: linear-gradient(90deg, #3C7D63 33%, #343E42 100%);
  color: #fff;
  padding: 50px 0;
  border-radius: 23px;
  box-shadow: 0 2px 12px rgba(52,62,66,0.06);
  margin-bottom: 64px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .btn-primary {
  background: linear-gradient(90deg, #F4F4F2 60%, #f1f7f5 100%);
  color: var(--color-primary);
}
.cta-section .btn-primary:hover {
  background: linear-gradient(90deg, #3C7D63 60%, #2b7753 100%);
  color: #fff;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: linear-gradient(90deg,#343e42 55%,#3c7d63 100%);
  color: #fff;
  padding: 38px 0 14px 0;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  box-shadow: 0 -2px 16px rgba(52,62,66,0.09);
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  opacity:.98;
  margin-bottom:5px;
  transition: color .18s, text-shadow .18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-shadow: 0 1px 6px #3c7d63;
}
footer img {
  width: 50px;
  height: auto;
  margin-bottom: 11px;
}
footer small, footer a {
  color: #fff;
}

/* ================================
   COOKIE BANNER & COOKIE MODAL
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 12000;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(52,62,66,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 18px 24px;
  animation: cookieFadeIn .48s cubic-bezier(.78,-0.01,.18,1);
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-left: 22px;
}
.cookie-btn {
  background: linear-gradient(90deg,#3C7D63 70%,#343E42 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 25px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-left: 0;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(52,62,66,0.03);
  font-weight: 600;
  transition: background .13s, color .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background:linear-gradient(90deg,#35594a 70%,#2b7753 100%);
  color:#fff;
}
.cookie-btn.cookie-decline {
  background:#e0e0e0;color:var(--color-primary);
padding:8px 20px;
}
.cookie-btn.cookie-decline:hover {
  background:#dadada;color:var(--color-secondary);
}
.cookie-btn.cookie-settings {
  background: #fff;
  color: var(--color-secondary);
  border:1px solid var(--color-secondary);
  font-size:1rem;
  padding:8px 17px;
  margin-right:8px;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
}
@keyframes cookieFadeIn {
 from { transform: translateY(44px); opacity: 0; } 
 to   { transform: translateY(0);    opacity: 1; } 
}

/* ---- Cookie Modal ---- */
.cookie-modal-overlay {
  position: fixed; z-index: 13000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(52,62,66,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn .32s cubic-bezier(.78,-0.01,.18,1);
}
.cookie-modal {
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 4px 44px rgba(60,125,99,0.13);
  padding: 34px 28px 28px 28px;
  max-width: 420px;
  min-width: 290px;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cookieModalPop .36s cubic-bezier(.84,-0.01,.18,1);
}
@keyframes cookieModalPop {
  0% { transform: scale(.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin:14px 0 12px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  font-size: 1.08rem;
  color: var(--color-primary);
}
.cookie-modal .cookie-switch {
  margin-left: auto;
  width: 40px; height: 22px;
  border-radius: 18px;
  background: #e4e4e0;
  position: relative;
  cursor: pointer;
  transition:background .14s;
}
.cookie-modal .cookie-switch[data-active="true"] {
  background: var(--color-secondary);
}
.cookie-modal .cookie-switch::after {
  content: "";
  display: block;
  height: 18px; width: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(52,62,66,0.12);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .16s;
}
.cookie-modal .cookie-switch[data-active="true"]::after {
  left: 20px;
}
.cookie-modal .essential {
  font-size: 0.97rem;
  color: #888;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 16px;
  justify-content: flex-end;
}
/* Disable toggle for essential */
.cookie-modal .cookie-switch[disabled], .cookie-modal .cookie-switch[aria-disabled="true"] {
  opacity: .45;
  background: #dadada;
  cursor: not-allowed;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
  .container { max-width: 94vw; }
}
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .feature-grid li, .service-list li, .project-list li {
    width: 280px;
    min-width: 160px;
  }
  .service-list li {
   width: 280px;
  }
  .value-grid li {
    font-size: 0.97rem;
    padding: 9px 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .project-list {
    justify-content: center;
    gap: 18px;
  }
  .feature-grid li, .service-list li, .project-list li {
    width: 92vw;
    min-width: unset;
    margin-bottom: 0;
    padding: 21px 10vw 19px 7vw;
  }
}
@media (max-width: 750px) {
  .container { padding: 0 10px; }
  .section {padding:34px 3vw;margin-bottom: 38px;}
  .content-wrapper {gap: 11px;}
  .cta-section{padding:38px 2vw;}
  footer .container {flex-direction:column;align-items: flex-start;gap:13px;}
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.28rem; }
  h3, .h3 { font-size: 1.06rem; }
  .section {padding:30px 4vw;margin-bottom: 30px;}
  .feature-grid, .service-list, .project-list, .benefit-grid, .value-grid { flex-direction: column; gap: 16px; }
  .feature-grid li, .service-list li, .project-list li { width: 100%; min-width: unset; }
  .text-image-section{flex-direction:column;align-items: flex-start;gap:14px;}
  .testimonial-card {flex-direction:column;gap:11px;padding:14px 6px;}
  .cookie-banner {flex-direction:column;align-items: flex-start;gap:12px;padding:16px 12px;}
  .cookie-banner .cookie-actions{margin-left:0;gap:9px;}
  .cookie-modal{padding:24px 10px 20px 14px;}
}
/* ---- XS Devices ---- */
@media (max-width: 500px) {
  .container {padding: 0 4px;}
  .section { padding: 20px 0;margin-bottom: 20px; }
  .card {padding:15px 6px;}
}

/* ================================
   ANIMATIONS & MICROINTERACTIONS
   ================================ */
.btn-primary, .cookie-btn, .cookie-modal-close {
  transition: background .17s, color .16s, transform .14s;
}
.card, .feature-grid li, .service-list li, .project-list li, .testimonial-card {
  transition: box-shadow .16s, transform .14s, background .13s;
}
header nav a, .mobile-nav a {
  transition: color .13s, background .12s;
}

/* ================================
   MISCELLANEOUS UTILITIES
   ================================ */
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder          { color: #888; }
:-ms-input-placeholder      { color: #888; }
::placeholder              { color: #888; }

hr {
  border: none;
  border-bottom: 1px solid #e3e3df; 
  margin: 22px 0;
}
/* Visually hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ================================
   END OF CSS
   ================================ */
