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

/* HTML5 display-role reset (only flex, no grid!) */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9FAF5;
  color: #23422e;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #28613A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7AC07A;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
strong, b {
  font-weight: 700;
}

/* Brand Font Faces (fonts from Google Fonts assumed loaded) */
h1, h2, h3, .logo-link, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Brand Colors as CSS variables */
:root {
  --primary: #28613A;
  --primary-dark: #23422e;
  --secondary: #7AC07A;
  --secondary-light: #BAE7BA;
  --accent: #F9FAF5;
  --card-bg: #fff;
  --text: #23422e;
  --text-light: #47524a;
  --border: #E6F2E6;
  --shadow: rgba(40, 97, 58, 0.08);
}

/* Container patterns */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Global typography */
h1 {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.01em;
  color: var(--primary-dark);
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.subtitle {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 28px;
}
p, li {
  font-size: 1rem;
  color: var(--text-light);
}
ul, ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 1.5em;
}
li { margin-bottom: 8px; }

/* Section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* HERO SECTION */
.hero {
  background: var(--secondary-light);
  border-radius: 28px;
  box-shadow: 0 6px 32px var(--shadow);
  margin-bottom: 48px;
  padding: 34px 0 48px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: var(--primary-dark);
}
.hero .cta-btn {
  margin-top: 24px;
}

/* Buttons */
.cta-btn,
button, input[type="submit"], .cookie-accept-btn, .cookie-reject-btn, .cookie-settings-btn {
  appearance: none;
  border: none;
  outline: none;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 28px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  letter-spacing: 0.03em;
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  margin: 0;
}
.cta-btn:hover,
.cta-btn:focus,
button:hover,
button:focus,
.cookie-accept-btn:hover,
.cookie-accept-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px var(--shadow);
}
.cookie-reject-btn {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  margin-left: 12px;
}
.cookie-reject-btn:hover,
.cookie-reject-btn:focus {
  background: var(--accent);
  border-color: var(--secondary);
  color: var(--secondary);
}
.cookie-settings-btn {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1.5px solid var(--secondary);
  margin-left: 12px;
}

/* NAVIGATION */
header {
  background: var(--accent);
  box-shadow: 0 6px 30px var(--shadow);
  border-radius: 0 0 24px 24px;
  padding-top: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 72px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-left: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--secondary-light);
  color: var(--primary);
}

/* HIDE MENU ON SMALL SCREENS */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 14px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1200;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.41,.8,.52,1), opacity 0.18s linear;
  box-shadow: 0 0 0 100vw rgba(30,64,40,0.05);
  padding: 24px 32px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin-left: auto;
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  margin-bottom: 20px;
  transition: background 0.19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
  padding: 6px 0;
  border-radius: 10px;
  width: 100%;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover {
  background: var(--secondary-light);
  color: var(--primary);
}

/* HEADER RESPONSIVE NAV */
@media (max-width: 980px) {
  .main-nav {
    display: none !important;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .cta-btn {
    display: inline-block;
  }
}

/* FLEX LAYOUTS: SECTIONS, WRAPPERS, CARDS */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Features/Flex Patterns */
.features-grid, .feature-list, .features-list, .article-list, .card-container, .card-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.features-list {
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.features-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.feature-item {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 310px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}
.feature-item:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px) scale(1.025);
}

/* Cards for Projects/Services/Articles */
.card-container, .card-grid, .article-list {
  gap: 24px;
}
.card, .service-item, .article-item, .project-summary {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.18s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover, .service-item:hover, .article-item:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px) scale(1.02);
}

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

.service-price {
  background: var(--secondary-light);
  color: var(--primary);
  border-radius: 24px;
  padding: 3px 12px;
  font-size: 0.95rem;
  margin-left: 12px;
  font-weight: 500;
}

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

/* TESTIMONIALS */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 2px solid var(--secondary-light);
  max-width: 390px;
  min-width: 260px;
  margin-bottom: 20px;
  color: var(--primary-dark);
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.62;
  margin-bottom: 6px;
  font-weight: 500;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.015);
}

/* STEPS / OL & UL HIERARCHY */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.07rem;
}
.steps-list li {
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 8px 16px 8px 18px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
  list-style-type: decimal-leading-zero;
}
.steps-list li span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
}

/* Map-placeholder styling */
.map-placeholder {
  background: var(--secondary-light);
  border-radius: 16px;
  padding: 18px 10px;
  color: var(--primary-dark);
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  margin: 12px 0;
}

/* Footer */
footer {
  background: var(--accent);
  padding: 40px 0 18px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -5px 30px var(--shadow);
  margin-top: 48px;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-main a, .footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
}
.footer-bottom {
  text-align: right;
  font-size: 0.96rem;
  color: var(--primary-dark);
  opacity: 0.8;
}

/* -- Cookie Banner -- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff9f1;
  color: var(--primary-dark);
  border-top: 2px solid var(--secondary-light);
  box-shadow: 0 -3px 36px var(--shadow);
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 3000;
  animation: slideUp 0.42s cubic-bezier(.32,.98,.38,.99);
}
@keyframes slideUp {
  from { transform: translateY(90px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40, 97, 58, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 48px var(--shadow);
  padding: 32px 24px 28px 24px;
  min-width: 300px;
  width: 95%;
  max-width: 410px;
  animation: popupIn .28s cubic-bezier(.38,.8,.45,1.25);
  position: relative;
}
@keyframes popupIn {
  from { transform: scale(0.87) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary-dark);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--secondary-light);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  appearance: none;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px var(--shadow);
  transition: left 0.15s;
}
.cookie-toggle:checked::after {
  left: 18px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 1.5rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-close:hover {
  color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 980px) {
  .features-grid, .feature-list, .card-container, .card-grid, .services-list, .testimonials-list {
    gap: 16px;
  }
  .feature-item {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header, footer {
    border-radius: 0;
  }
  .container {
    padding: 0 8px;
  }
  .hero {
    padding: 20px 0 24px 0;
    border-radius: 14px;
    margin-bottom: 28px;
  }
  section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .features-list, .feature-list {
    gap: 12px;
  }
  .features-grid, .feature-list, .services-list, .testimonials-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-bottom {
    text-align: left;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
  h3 { font-size: 0.92rem; }

  .service-price { font-size: 0.9rem; }
  .cta-btn, button, input[type="submit"] {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .cookie-banner {
    font-size: 0.97rem;
  }
  .cookie-modal {
    min-width: unset;
    max-width: 99vw;
    padding: 18px 7px 16px 10px;
  }
}

/* -- Utility: Confirmation messages -- */
.confirmation-message {
  font-size: 1.19rem;
  margin-bottom: 22px;
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Miscellaneous */
::-webkit-scrollbar {
  width: 8px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: 6px;
}

/* Accessibility / Focus states */
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Hide visually*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
