/* CSS RESET & BASE --------------------------------- */
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,
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 {
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #FCFBFA;
  color: #23242D;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #23613F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #385293;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}

/* Typography ------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: #23613F;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5 { font-size: 1.2rem; }

p, li, span, a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.subheadline {
  font-size: 1.25rem;
  color: #4E7675;
  margin-bottom: 18px;
}

/* Color Palette: Soft Pastel -------------------------- */
:root {
  --primary: #23613F;
  --primary-light: #53a07c;
  --secondary: #D6E69E;
  --secondary-light: #f1ffd2;
  --accent: #F5F0EA;
  --white: #fff;
  --pastel-blue: #D7EAF3;
  --pastel-mint: #C9E5E1;
  --pastel-lilac: #E4E1F7;
  --pastel-pink: #FBE4EB;
  --pastel-peach: #FFE7D6;
  --gray-text: #23242D;
  --gray-light: #F8F9FA;
  --shadow: 0 4px 28px 0 rgba(60,35,80,0.08), 0 1.5px 5px 0 rgba(100,150,100,0.08);
}

/* Layout Containers ----------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.content-wrapper {
  width: 100%;
  margin-top: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* Flexbox Patterns ------------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary-light);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(40,90,50,0.16);
  transform: translateY(-4px) scale(1.02);
}
.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;
  border-radius: 18px;
  background: var(--pastel-blue);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 360px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(60,90,160,0.11);
  transform: translateY(-3px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Header & Navigation --------------------------------- */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--accent);
  box-shadow: 0 2px 18px 0 rgba(35,97,63,0.067);
  position: sticky;
  top: 0;
  z-index: 80;
}
.main-header img {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: #23613F;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 12px;
  padding: 7px 16px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #154129;
}
.cta-btn {
  margin-left: 24px;
  background: linear-gradient(90deg, #E4E1F7 0%, #D6E69E 100%);
  color: var(--primary);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  padding: 11px 28px;
  border-radius: 34px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 13px 0 rgba(150,180,50,0.11);
  border: 1.5px solid #D6E69E;
  transition: background 0.13s, color 0.13s, box-shadow 0.11s;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, #D6E69E 0%, #F5F0EA 100%);
  color: #2b5136;
  box-shadow: 0 4px 18px 0 rgba(180,160,90,0.13);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--secondary);
  color: #23613F;
  border-radius: 50%;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  border: 1px solid #b9cb93;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-blue);
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 82vw;
  max-width: 340px;
  background: linear-gradient(180deg, #F5F0EA 88%, #D7EAF3 100%);
  box-shadow: -6px 0 24px 0 rgba(60,90,80,0.12);
  z-index: 999;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.9,.01,.19,.94);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 14px 2px 0;
  font-size: 2.1rem;
  color: #23613F;
  background: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid #b9cb93;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--pastel-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 42px 26px 0 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.06rem;
  color: #23613F;
  border-radius: 12px;
  padding: 12px 8px;
  background: transparent;
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #174a2c;
}
.main-header .mobile-menu {
  /* Ensure overlay stays on top */
  z-index: 999;
}

/* Hero & Main Sections -------------------------------- */
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 21px;
  box-shadow: var(--shadow);
}
main section .container {
  padding: 0;
}

/* Feature Grid (Icon Cards) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 10px;
}
.feature-grid li {
  background: var(--pastel-mint);
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 280px;
  padding: 22px 18px 20px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 30px 0 rgba(40,120,140,0.13);
  transform: translateY(-3px) scale(1.01);
  background: var(--pastel-blue);
}
.feature-grid img {
  width: 36px; height: 36px;
  margin-bottom: 8px;
}

/* City Cards */
.city-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.city-cards > div {
  background: var(--pastel-pink);
  box-shadow: var(--shadow);
  border-radius: 16px;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 300px;
  padding: 22px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.city-cards > div:hover {
  box-shadow: 0 7px 22px 0 rgba(255,102,140,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* Service Overview */
.service-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.service-overview > div {
  background: var(--pastel-lilac);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 18px 20px 18px;
  flex: 1 1 200px;
  min-width: 182px;
  max-width: 280px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.service-overview > div:hover {
  box-shadow: 0 7px 24px 0 rgba(120,100,255,0.13);
  transform: translateY(-3px) scale(1.012);
}
.service-overview h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.14s;
}
.service-overview h3 a:hover {
  color: #467753;
  text-decoration: underline;
}

/* Testimonial Slider & Cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: var(--pastel-blue);
  color: #23242D;
  font-size: 1.06rem;
  font-style: italic;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.testimonial-card p {
  margin-bottom: 8px;
  color: #23242D;
  font-size: 1.08rem;
}
.testimonial-author {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  font-size: .98rem;
  letter-spacing: 0.01em;
}

/* Footer --------------------------------------------- */
footer {
  background: var(--secondary-light);
  border-top: 1.5px solid #e7f4e0;
  padding: 38px 0 24px;
  margin-top: 34px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #23613F;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 7px 12px;
  transition: background 0.10s;
}
.footer-nav a:hover {
  background: var(--pastel-mint);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  color: #587b57;
  font-size: .97rem;
  margin-top: 4px;
}

/* COOKIE BANNER & MODAL ------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #F5F0EA 60%, #D7EAF3 100%);
  box-shadow: 0 -2px 22px 0 rgba(100,140,120,0.07);
  padding: 20px 20px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner-text {
  flex: 1 1 280px;
  color: #23613F;
  font-size: 1.05rem;
}
.cookie-banner-btn {
  margin: 0 6px;
  min-width: 108px;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 18px;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  background: var(--secondary);
  color: #23613F;
  border: 1.5px solid #D6E69E;
  transition: background 0.14s, color 0.12s, box-shadow 0.14s;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: var(--pastel-blue);
  color: #154129;
  box-shadow: 0 2px 8px 0 rgba(170,220,210,0.13);
}
/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(190,205,220,0.45);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 8px 38px 0 rgba(60,60,160,0.15);
  padding: 36px 30px 26px 30px;
  max-width: 420px;
  width: 95vw;
  color: #23613F;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-in 0.33s cubic-bezier(.62,.17,.35,.98);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.89) translateY(30px); }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--secondary);
  color: #23613F;
  font-size: 1.7rem;
  border-radius: 50%;
  border: 1px solid #D6E69E;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-blue);
}
.cookie-modal-cats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-cat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal-cat-label {
  font-weight: 600;
  font-size: 1.05rem;
}
.cookie-modal-toggle {
  width: 42px;
  height: 24px;
  background: var(--secondary);
  border-radius: 12px;
  position: relative;
  margin-left: 10px;
  transition: background 0.18s;
  border: 1.2px solid #D6E69E;
  flex-shrink: 0;
}
.cookie-modal-toggle[aria-checked="true"] {
  background: #b9e9c7;
}
.cookie-modal-toggle::after {
  content: '';
  display: block;
  position: absolute;
  top: 2.8px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s, background 0.14s;
  box-shadow: 0 1px 6px 0 rgba(110,165,100,0.16);
}
.cookie-modal-toggle[aria-checked="true"]::after {
  left: 20px;
  background: #78b288;
}
.cookie-modal-essential {
  color: #687482;
  font-size: .99rem;
  margin-left: 10px;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}

.cookie-modal-actions .cookie-banner-btn {
  min-width: 96px;
}

/* Responsive Styles ----------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px;
    gap: 12px;
  }
  .main-header img {
    margin-right: 0; margin-bottom: 10px;
  }
  .main-nav {
    order: 2;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .cta-btn {
    margin-left: 0; margin-top: 7px;
    align-self: flex-end;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .main-header {
    padding: 10px 8px 10px 10px;
  }
  .main-nav { display: none !important; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: flex;
    z-index: 990;
  }
  main section {
    padding: 24px 4px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
  .feature-grid, .city-cards, .testimonial-slider, .service-overview {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li, .city-cards > div, .service-overview > div {
    min-width: 0; max-width: 100%;
    width: 100%;
    align-self: stretch;
  }
  .testimonial-card {
    min-width: 0; max-width: 100%;
    width: 100%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-legal {
    flex-direction: column;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.03rem; }
  .main-header img { height: 34px; }
  .cookie-modal { padding: 18px 6px 14px 10px; }
}

/* Micro-animations & Focus Styling -------------------- */
a, button, .cta-btn, .cookie-banner-btn, .mobile-nav a, .mobile-menu-close, .cookie-modal-close {
  outline: none;
}
a:focus-visible, .cta-btn:focus-visible, .cookie-banner-btn:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid #4E7675;
  outline-offset: 2px;
}

/* Miscellaneous UI Enhancements ----------------------- */
::-webkit-input-placeholder { color: #98BAA8; }
:-moz-placeholder { color: #98BAA8; }
::-moz-placeholder { color: #98BAA8; }
:-ms-input-placeholder { color: #98BAA8; }
::placeholder { color: #98BAA8; }

strong { font-weight: 700; }
section ul { padding-left: 0; }
section li {
  margin-bottom: 8px;
  color: #384144;
}
section li:last-child { margin-bottom: 0; }
.text-section ul {
  padding-left: 16px;
}
.text-section li {
  margin-left: 0;
}

/* List Icon Styling ----------------------------------- */
section ul li img {
  width: 1.35em; height: 1.35em;
  vertical-align: middle;
  margin-right: .46em;
}

/* Accessibility & Contrast ---------------------------- */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-author {
  color: #23242D !important;
  background: var(--pastel-blue);
}

/* To ensure cookie banner covers z-indexes */
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
