/* --------------------- CSS RESET & BASELINE --------------------- */
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;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #fff;
  color: #1A1A1A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #205B61;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #6FB35C;
  outline: none;
}

strong, b {
  font-weight: 600;
}

ul, ol {
  margin-left: 2em;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

section {
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A1A1A;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem; margin-bottom: 8px;
}

p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #263238;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------- SPACING & FLEX PATTERNS --------------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(32,91,97,0.04); transition: box-shadow .18s; }
.card:hover { box-shadow: 0 4px 16px rgba(32,91,97,0.12); }
.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; background: #F1F4F8; border-radius: 10px; box-shadow: 0 2px 8px rgba(32,91,97,0.06); font-size: 1.05rem; margin-bottom: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(32,91,97,0.05); margin-bottom: 20px; }

/* Ensure all flex containers do not overlap */
.feature-grid,
.team-grid,
.service-grid,
.project-list,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.feature-grid .feature-item,
.team-grid .team-profile,
.service-grid .service-item,
.project-list .project-item,
.blog-list .blog-item {
  flex: 1 1 240px;
  min-width: 250px;
  max-width: 32%;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(32,91,97,0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s;
}

.feature-grid .feature-item:hover, 
.team-grid .team-profile:hover, 
.service-grid .service-item:hover, 
.project-list .project-item:hover, 
.blog-list .blog-item:hover {
  box-shadow: 0 4px 16px rgba(32,91,97,0.12);
}

/* Responsive minimum margins between cards */
.feature-item + .feature-item,
.team-profile + .team-profile, 
.service-item + .service-item, 
.project-item + .project-item, 
.blog-item + .blog-item {
  margin-left: 0;
}

/* Attribution in testimonials */
.testimonial-card strong {
  color: #205B61;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #263238;
}

/* --------------------- HEADER NAVIGATION --------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #205B61;
  font-weight: 500;
  position: relative;
  padding: 4px 2px;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: #6FB35C;
}

.cta-button {
  background: #205B61;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 12px 26px;
  font-size: 1.07rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 5px rgba(32,91,97,0.08);
  transition: background .18s, color .18s, box-shadow .18s;
  margin-left: 16px;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #6FB35C;
  color: #fff;
  box-shadow: 0 2px 8px rgba(111,179,92,0.14);
}
.cta-link {
  color: #205B61;
  font-weight: 600;
  border-bottom: 2px solid #6FB35C;
  padding-bottom: 2px;
  font-size: 1.06rem;
  transition: border-color .18s, color .18s;
}
.cta-link:hover, .cta-link:focus {
  color: #6FB35C;
  border-color: #205B61;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #205B61;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1201;
  transition: color .18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #6FB35C;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,91,97,0.96);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 0 40px 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  cursor: pointer;
  z-index: 1202;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  transition: color .2s, background .15s, padding .16s;
  padding: 10px 0;
  border-radius: 4px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6FB35C;
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* --------------------- HERO, CTA & SECTION STYLES --------------------- */
.hero-section {
  background: #F1F4F8;
  padding: 55px 0 55px 0;
}
.hero-section h1 {
  font-size: 2.35rem;
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.features-section, .services-section, .about-section, .case-studies-section, .impact-section, .blog-list-section, .team-section,
.privacy-policy-section, .gdpr-section, .cookie-policy-section, .terms-section, .thank-you-section, .contact-section, .about-snippet, .services-snippet, .newsletter-signup, .project-highlight, .location-section {
  padding: 40px 0;
}
.cta-banner {
  background: #205B61;
  color: #fff;
  padding: 36px 0;
}
.cta-banner p {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  margin-bottom: 0px;
}
.cta-banner .cta-button {
  margin-top: 10px;
  background: #6FB35C;
  color: #fff;
}
.cta-banner .cta-button:hover,
.cta-banner .cta-button:focus {
  background: #fff;
  color: #205B61;
}

/* Card & Snippet Styles */
.project-list, .team-grid, .service-grid, .blog-list, .impact-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-item, .team-profile, .service-item, .blog-item, .impact-metrics li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(32,91,97,0.04);
  padding: 24px;
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 32%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s;
}
.impact-metrics li {
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border-left: 5px solid #6FB35C;
}
.impact-metrics strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205B61;
  font-size: 1.1rem;
}

.location-map-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact-details p, .contact-hint p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.footer-address span, .footer-address img {
  vertical-align: middle;
}

/* --------------------- FOOTER --------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px 20px 20px;
  border-top: 1px solid #ececec;
  background: #fff;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-nav a {
  color: #205B61;
  transition: color .2s;
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6FB35C;
}
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #1a1a1a;
  font-size: 0.98rem;
}
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.social-links a {
  background: #F1F4F8;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.social-links a:hover, .social-links a:focus {
  background: #6FB35C;
}

/* --------------------- BUTTONS --------------------- */
button, .cta-button {
  outline: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
button:focus, .cta-button:focus {
  outline: 2px solid #205B61;
  outline-offset: 2px;
}

/* --------------------- COOKIE CONSENT BANNER --------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(32,91,97,0.08);
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 32px;
  z-index: 2000;
  animation: slideInUp 0.6s cubic-bezier(.16,1,.3,1);
  font-size: 1rem;
}
.cookie-banner-text {
  max-width: 580px;
  color: #263238;
}
.cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: #F1F4F8;
  border: 1px solid #e0e0e0;
  color: #205B61;
  transition: background .18s, color .18s;
}
.cookie-accept {
  background: #6FB35C;
  border: 1px solid #6FB35C;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #205B61;
  border-color: #205B61;
  color: #fff;
}
.cookie-reject {
  background: #fff;
  border: 1px solid #205B61;
  color: #205B61;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F1F4F8;
}
.cookie-settings {
  background: #F1F4F8;
  color: #205B61;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #6FB35C;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(32,91,97,0.36);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s cubic-bezier(.16,1,.3,1);
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(32,91,97,0.13);
  min-width: 335px;
  max-width: 90vw;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #205B61;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 1px solid #F1F4F8;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205B61;
  font-weight: 500;
  font-size: 1.07rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #6FB35C;
  width: 22px;
  height: 22px;
}
.cookie-category .always-active {
  color: #aaaaaa;
  font-style: italic;
  font-size: 0.98rem;
}
.cookie-modal .cookie-actions {
  gap: 10px;
  margin-top: 18px;
}

@keyframes slideInUp {
  from {transform: translateY(100%);} to {transform: translateY(0);}
}
@keyframes fadeIn {
  from { opacity: 0;} to { opacity: 1; }
}

/* --------------------- MICROTYPIC INTERACTIONS --------------------- */
.card, .feature-item, .team-profile, .service-item, .project-item, .blog-item {
  transition: box-shadow .18s, transform .16s;
}
.card:hover, .feature-item:hover, .team-profile:hover, .service-item:hover, .project-item:hover, .blog-item:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 6px 16px rgba(32,91,97,0.13);
}
.cta-button, .cta-link, .main-nav a, .mobile-nav a {
  transition: background .17s, color .18s, border .16s, box-shadow .18s, transform .17s;
}
.main-nav a:active, .mobile-nav a:active {
  transform: scale(0.98);
}

/* --------------------- FORMS (Newsletter/Contact) --------------------- */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px 12px;
  border-radius: 6px;
  border: 1px solid #cfd8dc;
  background: #F1F4F8;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #6FB35C;
  outline: none;
}

/* --------------------- TESTIMONIALS & REVIEWS --------------------- */
.testimonial-section {
  padding: 40px 0;
  background: #fff;
}
.testimonial-section h2 {
  color: #205B61;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.testimonial-card {
  background: #F1F4F8;
  color: #263238;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(32,91,97,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  max-width: 600px;
  padding: 18px 22px;
}
.testimonial-card strong {
  color: #205B61;
  font-weight: 600;
  font-size: 1rem;
}

/* --------------------- ACCESSIBILITY --------------------- */
:focus {
  outline: 2px solid #205B61;
  outline-offset: 2px;
}

/* --------------------- MEDIA QUERIES / RESPONSIVE ------------------- */
@media (max-width: 1024px) {
  .feature-grid .feature-item, .team-grid .team-profile, .service-grid .service-item, .project-list .project-item, .blog-list .blog-item {
    max-width: 46%;
  }
  .container {
    max-width: 90vw;
  }
  .footer {
    flex-direction: column;
    gap: 24px;
    padding: 36px 12px 16px 12px;
  }
}
@media (max-width: 768px) {
  html {font-size: 15px;}
  .nav-bar {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 12px;
  }
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-section { padding: 38px 0 ; }
  .features-section, .services-section, .about-section, .case-studies-section, .impact-section, .blog-list-section, .team-section, .privacy-policy-section, .gdpr-section, .cookie-policy-section, .terms-section, .thank-you-section, .contact-section, .about-snippet, .services-snippet, .newsletter-signup, .project-highlight, .location-section { 
    padding: 24px 0; 
  }
  .feature-grid, .team-grid, .service-grid, .project-list, .blog-list, .impact-metrics {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid .feature-item, .team-grid .team-profile, .service-grid .service-item, .project-list .project-item, .blog-list .blog-item, .impact-metrics li {
    min-width: 100%;
    max-width: 100%;
    padding: 20px 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 15px 12px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 25px 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .section { margin-bottom: 38px; padding: 24px 8px; }
}
@media (max-width: 500px) {
  html {font-size: 14px;}
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .content-wrapper {
    gap: 10px;
  }
}
/* Force mobile nav vertical layout */
@media (max-width: 750px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --------------------- PRINT OPTIMIZATION --------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cta-button, .cta-banner, .cookie-banner, .cookie-modal-overlay, .social-links { display: none !important; }
}

/* --------------------- CLASSES SPECIFIC TO HTML STRUCTURE --------------------- */
/* Blog-date styling */
.date {
  font-size: 0.97rem;
  color: #6FB35C;
  font-weight: 500;
  margin-bottom: 6px;
}
/* Newsletter Signup styles (no forms in HTML but for CTA) */
.newsletter-signup .cta-button {
  margin-top: 10px;
  background: #205B61;
  color: #fff;
}

/* Hide mobile menu by default on desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Hamburger menu disables background scrolling when open (class to be set via JS) */
body.mobile-menu-open {
  overflow: hidden; height: 100vh;
}

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