/* --- 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,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; }
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #153758;
  background: linear-gradient(120deg, #F0F1F3 0%, #FFFFFF 100%);
  font-size: 16px;
  line-height: 1.65;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: none;
}
a { color: #217653; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #153758; text-decoration: underline; }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY SCALE & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #153758;
  font-weight: 700;
  letter-spacing: -0.6px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; }

p, li, label, input, textarea {
  font-size: 1rem;
  color: #374151;
}
p { margin-bottom: 16px; }
strong { font-weight: 700; }
small { font-size: 0.90em; color: #617394; }

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER / NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(21,55,88,0.04);
  z-index: 90;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img { height: 40px; }
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #153758;
  padding: 6px 0;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}
nav a:hover, nav a:focus {
  color: #217653;
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg,#2D9C6B 0%, #217653 100%);
  color: #fff;
  padding: 12px 30px;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(21,55,88,0.06);
  border: none;
  outline: none;
  display: inline-block;
  transition: background 0.25s, transform 0.15s;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg,#217653 0%, #2D9C6B 100%);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  box-shadow: 0 8px 28px rgba(45,156,107,0.09);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #153758;
  font-size: 2rem;
  border: none;
  padding: 4px 12px;
  margin-left: auto;
  cursor: pointer;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #2D9C6B;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 24px 48px rgba(21,55,88,0.10);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.85,0,.22,1);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #153758;
  font-size: 2rem;
  padding: 16px 24px 0 0;
  margin-bottom: 8px;
  cursor: pointer;
  z-index: 121;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #217653;
  outline: 2px solid #2D9C6B;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 32px 32px 0 32px;
}
.mobile-nav a {
  color: #153758;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 10px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F0F1F3;
  color: #217653;
  outline: none;
}

@media (max-width: 1024px) {
  header .container nav, header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 32px 10px;
  }
}

/* --- HERO/SECTIONS --- */
.hero {
  background: linear-gradient(110deg, #F0F1F3 40%, #c6f2ea 80%, #fff 100%);
  padding: 64px 0;
  min-height: 320px;
  width: 100%;
  display: flex;
  align-items: center;
}
.hero .container,
section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}

/* --- FEATURE GRID / FLEX LAYOUTS --- */
.features, .about-preview, .services-preview, .projects-preview, .testimonials, .cta {
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(21,55,88,0.07);
  padding: 18px 18px 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #153758;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 0;
}
.feature-grid li img {
  width: 32px; height: 32px;
}

.service-highlights, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 12px 0;
}
.service-highlights li,
.service-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(21,55,88,0.07);
  padding: 22px 20px 22px 22px;
  gap: 12px;
  min-width: 220px;
  margin-bottom: 0;
  flex: 1 1 220px;
}
.service-list li img {
  width: 38px;
  height: 38px;
}
.service-list li h3 { margin-top: 8px; }

.project-teasers,
.project-cards,
.team-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.project-teasers article, .project-cards > div,
.team-grid > div, .blog-list li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(21,55,88,0.09);
  padding: 24px;
  flex: 1 1 320px;
  margin-bottom: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-grid {
  gap: 24px;
  margin-bottom: 18px;
}
.team-grid > div {
  align-items: flex-start;
}

.categories {
  margin-top: 18px;
  font-size: 1rem;
  color: #217653;
}

/* --- TESTIMONIAL CARDS --- */
.testimonials {
  background: linear-gradient(110deg, #F0F1F3 70%, #d3eaf1 100%);
  border-radius: 24px;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 20px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(21,55,88,0.08);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 560px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 22px rgba(21,55,88,0.13);
  transform: translateY(-3px) scale(1.013);
}
.testimonial-card p {
  color: #153758;
  font-size: 1rem;
  margin-bottom: 8px;
}
.testimonial-card .rating img {
  height: 20px;
  margin-right: 2px;
}
.testimonial-card .client-name {
  margin-top: 8px;
  color: #217653;
  font-weight: 600;
  font-size: 1rem;
}

/* --- CTA SECTION --- */
.cta {
  background: linear-gradient(90deg, #2D9C6B 0%, #217653 100%);
  color: #fff;
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 48px 0 48px 0;
  box-shadow: 0 2px 16px rgba(33,118,83,0.06);
  display: flex;
  align-items: center;
}
.cta .container {
  align-items: flex-start;
  gap: 0;
}
.cta .content-wrapper {
  align-items: flex-start;
}
.cta h2, .cta p { color: #fff; }
.cta a.cta-button {
  background: #fff;
  color: #217653;
  font-weight: 700;
  margin-top: 12px;
  box-shadow: 0 1px 10px rgba(33,118,83,0.10);
  transition: background 0.2s, color 0.22s;
}
.cta a.cta-button:hover, .cta a.cta-button:focus {
  background: #217653;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #153758;
  color: #fff;
  padding: 42px 0 0 0;
  margin-top: 64px;
  box-shadow: 0 -3px 30px rgba(21,55,88,0.06);
}
footer .container { gap: 0; }
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  padding: 0 0 18px 0;
}
.footer-menu {
  display: flex;
  gap: 18px;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #F0F1F3;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 0;
  opacity: 0.88;
  transition: color 0.18s, opacity 0.16s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #2D9C6B;
  opacity: 1;
}
.legal-address p {
  font-size: 0.99rem;
  color: #d7e0ef;
}
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a {
  opacity: 0.85;
  transition: opacity 0.17s;
}
.social-links a:hover {
  opacity: 1;
}
.imprint {
  margin-top: 12px;
  width: 100%;
  text-align: left;
}
.imprint small { color: #c2d0ea; font-size: 0.99em; }

@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 16px; }
  .footer-menu { gap: 12px; }
}

/* --- CARDS & GENERAL ELEMENTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(21,55,88,0.07);
  padding: 20px 16px;
  position: relative;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}

.history-timeline h3 { margin-bottom: 8px; font-size: 1.1rem; }
.history-timeline ul li {
  margin-bottom: 6px;
  color: #374151;
  font-size: 0.98rem;
}

.text-section ul, .text-section ol {
  margin-left: 20px;
}
.text-section ul li, .text-section ol li { margin-bottom: 7px; }

/* --- BLOG LIST --- */
.blog-list {
  gap: 24px;
}
.blog-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(21,55,88,0.07);
  padding: 22px 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.blog-list li h3 { margin-bottom: 7px; }
.blog-list li a {
  color: #217653;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 3px;
  transition: color 0.18s;
}
.blog-list li a:hover { color: #153758; }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .feature-grid, .service-highlights, .service-list, .project-teasers, .project-cards, .team-grid, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 36px 0; }
  .content-grid, .card-container, .team-grid,
  .feature-grid, .service-highlights, .service-list, .project-cards, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .about-preview, .services-preview, .features, .projects-preview, .testimonials, .cta {
    margin-bottom: 36px;
  }
  .testimonials {
    padding: 24px 0;
    border-radius: 14px;
  }
  .cta {
    padding: 32px 0 32px 0;
    border-radius: 12px;
    margin-bottom: 36px;
  }
  .testimonial-card, .team-grid > div, .card, .project-cards > div, .blog-list li {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 20px 0 18px 0; }
  .hero { border-radius: 0; }
  .testimonial-card { padding: 16px 8px; border-radius: 9px; }
  .card, .card-content { padding: 11px 6px; }
}

/* --- BUTTON & LINK INTERACTION ANIMATION --- */
button, .cta-button, .mobile-menu-toggle {
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
}

/* --- COOKIE BANNER --- */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #f7f7fb;
  color: #153758;
  box-shadow: 0 -1px 16px rgba(21,55,88,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 22px 30px 22px 30px;
  z-index: 130;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.28s;
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-consent-banner .cookie-text {
  flex: 1 1 auto;
  color: #374151;
  font-size: 1rem;
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
#cookie-consent-banner .cookie-btn,
#cookie-consent-banner .cookie-settings-btn {
  background: #2D9C6B;
  color: #fff;
  border-radius: 22px;
  padding: 8px 18px;
  border: none;
  font-size: 1rem;
  transition: background 0.18s, box-shadow 0.18s;
}
#cookie-consent-banner .cookie-btn:hover,
#cookie-consent-banner .cookie-settings-btn:hover {
  background: #217653;
}
#cookie-consent-banner .cookie-btn.reject {
  background: #e7e7ed;
  color: #153758;
  border: 1px solid #d3eaf1;
}
#cookie-consent-banner .cookie-btn.reject:hover {
  background: #d3eaf1;
}
#cookie-consent-banner .cookie-settings-btn {
  background: #fff;
  color: #217653;
  border: 1px solid #d3eaf1;
}
#cookie-consent-banner .cookie-settings-btn:hover {
  background: #d3eaf1;
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    padding: 18px 6px 13px 6px;
    gap: 13px;
    font-size: 0.99rem;
  }
  #cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal {
  position: fixed;
  z-index: 131;
  left: 0; top: 0;
  right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(21,55,88,0.27);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
#cookie-modal.show {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}
#cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(21,55,88,0.21);
  max-width: 98vw;
  min-width: 320px;
  width: 420px;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp 0.24s cubic-bezier(.22,.68,.43,1);
}
@keyframes fadeInUp {
  from { transform: translateY(70px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 { font-size: 1.2rem; margin-bottom: 2px; }
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  color: #153758;
}
.cookie-category input[type="checkbox"] {
  accent-color: #2D9C6B;
  width: 18px;
  height: 18px;
}
.cookie-category .cookie-essential {
  font-size: 1rem;
  color: #153758;
  font-weight: 600;
}
.cookie-category .cookie-essential-always {
  color: #6fb388;
  font-size: 0.99em;
  margin-left: 6px;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-actions .cookie-btn,
.cookie-modal-actions .cookie-settings-btn {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 1rem;
  border: none;
  font-weight: 600;
}
.cookie-modal-actions .cookie-btn.accept {
  background: #2D9C6B;
  color: #fff;
}
.cookie-modal-actions .cookie-btn.reject {
  background: #e7e7ed;
  color: #153758;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #153758;
  cursor: pointer;
  transition: color 0.22s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #217653;
}
@media (max-width: 480px) {
  #cookie-modal .cookie-modal-content {
    width: 99vw;
    padding: 18px 6vw 16px 6vw;
    font-size: 0.98em;
  }
  .cookie-modal-close {
    right: 10px;
    top: 8px;
  }
}

/* --- FORMS (if used later) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #dbe7f9;
  padding: 10px 14px;
  background: #f9fafe;
  color: #153758;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #2D9C6B;
  box-shadow: 0 1px 4px rgba(45,156,107,0.06);
}
label { font-weight: 500; margin-bottom: 6px; display: inline-block; }

/* --- UTILITY --- */
.hide { display: none !important; }
.visible { display: block !important; }

/* --- SCROLLBAR STYLE --- */
html {
  scrollbar-width: thin;
  scrollbar-color: #2D9C6B #F0F1F3;
}
::-webkit-scrollbar {
  width: 10px;
  background: #F0F1F3;
}
::-webkit-scrollbar-thumb {
  background: #2D9C6B;
  border-radius: 6px;
}

/* --- FOCUS STYLE FOR ACCESSIBILITY --- */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #2D9C6B;
  outline-offset: 2px;
}

/* --- VISUAL HIERARCHY / SPACING --- */
.section,
.about-preview,
.services-preview,
.projects-preview,
.features,
.cta,
.testimonials {
  margin-bottom: 60px;
}
.card, .testimonial-card, .service-list li {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .service-highlights, .service-list, .team-grid, .blog-list, .project-cards, .project-teasers {
  gap: 20px;
}

/* --- END OF CSS --- */
