/* 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: linear-gradient(140deg,#DEE6EF 0%, #ffffff 100%);
  color: #23405C;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}
a {
  color: #23405C;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #76821A;
  text-decoration: underline;
}

/* BRAND FONTS --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, Times, serif;
  color: #23405C;
  font-weight: 700;
  letter-spacing: -0.8px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: 1.7rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 6px; }

p, ul, ol, blockquote, cite, .text-section {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  max-width: 800px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #23405C;
}

strong {
  color: #23405C;
  font-weight: 700;
}

blockquote {
  font-style: italic;
  color: #19324C;
  margin-bottom: 10px;
}
cite {
  font-style: normal;
  color: #76821A;
  font-size: 0.98rem;
}

/* GLOBAL LAYOUT CONTAINERS --------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(35,64,92,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(35,64,92,0.18);
}

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

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(35,64,92,0.08);
  padding: 20px;
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 620px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #DEE6EF;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 1px 6px rgba(35,64,92,0.06);
  flex: 1 1 250px;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(35,64,92,0.10);
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
}

.map-snippet {
  border-radius: 12px;
  background: #DEE6EF;
  padding: 14px 16px;
  color: #23405C;
  font-size: 1rem;
  margin-top: 8px;
}

/* HEADER & MAIN NAV --------------------------------------------------- */
header {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #23405C;
  box-shadow: 0 2px 8px rgba(35,64,92,0.06);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: #ffffff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
header nav a.active, header nav a:hover, header nav a:focus {
  background: #9CA43A;
  color: #fff;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #76821A 20%, #9CA43A 100%);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  margin-left: 14px;
  border-radius: 7px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(118,130,26,0.12);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #23405C 10%, #9CA43A 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(35,64,92,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 14px;
  cursor: pointer;
  z-index: 32;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: #76821A;
  outline: none;
}

/* HERO SECTION -------------------------------------------------------- */
.hero {
  background: linear-gradient(117deg, #DEE6EF 67%, #9CA43A 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  min-height: 360px;
  justify-content: center;
}
.hero h1 {
  color: #23405C;
  text-shadow: 0 1px 9px rgba(35,64,92,0.04);
  max-width: 650px;
}
.hero p {
  color: #23405C;
  font-size: 1.22rem;
  margin-bottom: 22px;
  max-width: 540px;
}

/* LISTS --------------------------------------------------------------- */
ul {
  margin-bottom: 16px;
  padding-left: 0;
  color: #23405C;
}
ul li {
  margin-bottom: 10px;
  font-size: 1.06rem;
  padding-left: 24px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: linear-gradient(90deg, #23405C 70%, #9CA43A 100%);
  position: absolute;
  left: 0;
  top: 7px;
}

/* TESTIMONIALS -------------------------------------------------------- */
.testimonial-card {
  color: #23405C;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 11px rgba(35,64,92,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(118,130,26,0.14);
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  font-style: italic;
  color: #23405C;
}
.testimonial-card cite {
  color: #9CA43A;
  font-weight: 600;
  margin-top: 5px;
}
.testimonial-card div {
  font-size: 1.14rem;
  color: #76821A;
  letter-spacing: 1px;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  width: 100%;
  padding: 42px 0 20px 0;
  background: #23405C;
  color: #fff;
  font-size: 0.97rem;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #DEE6EF;
  transition: color 0.15s, background 0.15s;
  padding: 4px 4px;
  border-radius: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #9CA43A;
  background: rgba(222,230,239,0.10);
}
footer p {
  text-align: center;
  color: #fff;
}

/* MODALS & COOKIE CONSENT BANNER --------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
  background: linear-gradient(90deg,#DEE6EF 75%, #9CA43A 100%);
  color: #23405C;
  box-shadow: 0 -2px 18px rgba(35,64,92,0.12);
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.29s cubic-bezier(.19,.83,.38,1.08);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}
.cookie-banner button, .cookie-modal button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border: none;
  border-radius: 6px;
  margin-left: 0;
  cursor: pointer;
  background: #23405C;
  color: #fff;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(35,64,92,0.06);
}
.cookie-banner button:hover, .cookie-modal button:hover {
  background: #76821A;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #23405C;
  border: 1px solid #DEE6EF;
  box-shadow: none;
}
.cookie-banner .cookie-settings:hover {
  background: #DEE6EF;
}

.cookie-modal-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,64,92,0.36);
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s;
}
.cookie-modal-bg.show {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #23405C;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(35,64,92,0.16);
  max-width: 400px;
  padding: 32px 28px 22px 28px;
  min-width: 320px;
  position: relative;
  animation: pop-in .38s cubic-bezier(.21,.89,.31,1.31);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes pop-in {
  from {transform: scale(0.92); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal h3 {margin-bottom: 6px;}
.cookie-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #DEE6EF;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}
.cookie-switch input[type=checkbox] {display: none;}
.cookie-switch .slider {
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #76821A;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-switch input[type=checkbox]:checked + .slider {
  left: 18px;
  background: #23405C;
}
.cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #23405C;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {color: #76821A;}

/* MOBILE BURGER MENU -------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #23405C;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.19,.83,.31,1.21);
  box-shadow: 2px 0 40px rgba(35,64,92,.16);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  z-index: 33;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {color: #9CA43A;}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 48px 0 0 42px;
  font-size: 1.35rem;
}
.mobile-nav a {
  color: #fff;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 1.18rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  min-width: 34vw;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #9CA43A;
  color: #fff;
}

/* BUTTONS -------------------------------------------------------------- */
button, input[type=button], input[type=submit] {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #23405C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1px 5px rgba(35,64,92,0.07);
}
button:hover, input[type=button]:hover, input[type=submit]:hover {
  background: #9CA43A;
  color: #fff;
}
button:focus {outline: 2px solid #76821A;}

/* RESPONSIVE DESIGN --------------------------------------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 340px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .container { padding: 0 10px; }
  .feature-item { flex: 1 1 100%; }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 38px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  nav {
    display: none;
  }
  .cta-btn {
    margin-left: 2px;
    font-size: 1rem;
    padding: 11px 16px;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 12px;
  }
  .hero .container {
    min-height: unset;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card, .project-card {
    padding: 18px 10px 14px 10px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 14px 9px 16px 11px;
    gap: 8px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.19rem; }
  .hero { min-height: 180px; }
  .section { padding: 13px 0 13px 0; }
  .footer-nav { gap: 4px; font-size: 0.95rem; }
  .card, .feature-item, .map-snippet, .testimonial-card, .project-card { border-radius: 8px; }
}

/* CUSTOM MICRO-INTERACTIONS --------------------------------------------- */
.cta-btn:active, .mobile-nav a:active, button:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}
.card, .testimonial-card, .project-card {
  transition: box-shadow 0.25s cubic-bezier(.24,.89,.41,1.19);
}
.card:active, .testimonial-card:active, .project-card:active {
  box-shadow: 0 10px 22px rgba(118,130,26,0.12);
}

/* UTILITIES ------------------------------------------------------------- */
.hide { display: none !important; }
.visible { display: block !important; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* FINE-TUNING SPACING FOR LEGAL & SIMPLE PAGES ------------------------- */
.text-section > h2, .text-section > h3 { margin-top: 22px; }

/* ACCESSIBILITY FOCUS VISIBLE ------------------------------------------ */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #9CA43A;
  outline-offset: 2px;
}

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