/* ===== CSS RESET & NORMALIZE (with box-sizing and font fallback) ===== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F4F3EE;
  color: #143153;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  color: #143153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol, li, blockquote {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #243b55;
}
p {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
}
blockquote {
  border-left: 4px solid #A1C349;
  padding-left: 20px;
  color: #2763a8;
  font-size: 1.125rem;
  margin: 20px 0;
  font-style: italic;
}
strong {
  font-weight: bold;
}
a {
  color: #143153;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A1C349;
  text-decoration: none;
}

/* ===== CONTAINER & SPACING UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(20,49,83, 0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,49,83,0.05);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 4px 22px rgba(20,49,83,0.15);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}
.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;
}
.text-image-section img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(20,49,83,0.1);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #eaf1f9;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(20,49,83,.10);
  color: #143153;
  font-style: italic;
  border-left: 5px solid #A1C349;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== GENERIC SECTION MARGINS (for raw <section> use) ===== */
section:not(.hero):not(.contact-cta):not(.thank-you):not(.privacy-policy):not(.gdpr-info):not(.cookie-policy):not(.terms),
.values, .about, .team, .contact, .location, .collaboration, .highlighted-projects, .event-summaries {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(20,49,83, 0.06);
}

/* ======= HERO SECTION ======= */
.hero {
  background: linear-gradient(90deg,#143153 80%, #A1C349 100%);
  color: #fff;
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  color: #fff;
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
}
.hero p {
  color: #f8fbff;
}
.hero .cta-btn {
  background: #A1C349;
  color: #143153;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #fff;
  color: #143153;
  border: 1px solid #A1C349;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 24px 20px 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eaf1f9;
  position: relative;
}
.main-nav .logo img {
  width: 120px;
  height: auto;
  margin-right: 24px;
}
.main-nav a {
  color: #143153;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #eaf1f9;
  color: #A1C349;
}
.main-nav .cta-btn {
  background: #A1C349;
  color: #143153;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(20,49,83,0.11);
  margin-left: 12px;
  border: none;
  outline: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #143153;
  color: #fff;
  box-shadow: 0 4px 18px rgba(20,49,83,0.14);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 24px;
  background: #A1C349;
  color: #143153;
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #143153;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #143153;
  box-shadow: 0 6px 48px rgba(20,49,83,0.42);
  transform: translateX(-100vw);
  z-index: 130;
  transition: transform 0.4s cubic-bezier(.65,0,.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 20px;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 140;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A1C349;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 36px;
  font-size: 1.25rem;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  padding: 14px 4px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A1C349;
  color: #143153;
}

@media (max-width: 992px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== BUTTONS ===== */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 7px;
  background: #143153;
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(20,49,83,0.10);
  font-size: 1rem;
  letter-spacing: 0.12px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A1C349;
  color: #143153;
  border: 1.5px solid #143153;
  box-shadow: 0 6px 18px rgba(20,49,83,0.16);
}
.cta-link {
  color: #A1C349;
  font-weight: 700;
  font-family: 'Montserrat', Arial,Helvetica,sans-serif;
  text-decoration: underline;
  margin-top: 6px;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.cta-link:hover, .cta-link:focus {
  color: #143153;
  text-decoration: none;
}

/* ===== FEATURE & PROJECT GRIDS ===== */
.features-grid, .technology-grid, .team-grid, .project-teasers, .highlighted-projects, .partner-list, .event-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.features-grid > div, .technology-grid > div, .team-grid > div, .project-teasers > div, .highlighted-projects > div, .partner-list > div, .event-summaries > div {
  background: #f7fbff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(20,49,83,0.03);
  padding: 22px 18px 22px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.17s, transform 0.15s;
}
.features-grid > div:hover, .technology-grid > div:hover, .project-teasers > div:hover, .highlighted-projects > div:hover, .event-summaries > div:hover {
  box-shadow: 0 4px 16px rgba(20,49,83,0.10);
  transform: translateY(-2px) scale(1.02);
}
/* Icon Styles */
.features-grid img, .technology-grid img, .team-grid img, .project-teasers img, .partner-list img, .event-summaries img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card, .event-summaries .testimonial-card, .highlighted-projects .testimonial-card {
  background: #eaf1f9;
  color: #163153;
  border-radius: 13px;
  box-shadow: 0 3px 16px rgba(20,49,83,0.10);
  border-left: 5px solid #A1C349;
  padding: 24px 20px;
  font-size: 1rem;
  margin-top: 12px;
  font-style: italic;
}
.testimonial-card strong {
  color: #143153;
  font-style: normal;
}

/* ===== FOOTER ===== */
footer {
  background: #143153;
  color: #fff;
  padding: 36px 0 16px 0;
  font-family: 'Open Sans',Arial,Helvetica,sans-serif;
  margin-top: 80px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #A1C349;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 3px 4px;
  border-radius: 4px;
  transition: color 0.13s, background 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #A1C34933;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.965rem;
  color: #cfe0f7;
  margin-bottom: 8px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
footer p {
  font-size: 0.96rem;
  color: #cce2fa;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100%;
  background: #143153;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 20px 24px 20px;
  box-shadow: 0 -4px 24px rgba(20,49,83,0.11);
  font-family: 'Open Sans',Arial,Helvetica,sans-serif;
  animation: cookieslidein 0.55s cubic-bezier(.41,0,.21,1);
}
@keyframes cookieslidein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  font-size: 1rem;
  color: #fff;
  max-width: 420px;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 7px;
  background: #A1C349;
  color: #143153;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #143153;
}
.cookie-btn.reject {
  background: #f35c5c;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #c33a3a;
  color: #fff;
}
.cookie-settings-btn {
  background: #eaf1f9;
  color: #143153;
  border: 1.5px solid #A1C349;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus{
  background: #fff;
  color: #2763a8;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,49,83,0.75);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalin 0.25s cubic-bezier(.46,.03,.52,1.35);
}
@keyframes modalin {
  0% { opacity: 0; transform: scale(0.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-content {
  background: #fff;
  color: #143153;
  padding: 34px 32px 22px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 36px rgba(20,49,83,0.21);
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  animation: contentin 0.36s cubic-bezier(.41,0,.21,1);
}
@keyframes contentin {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  cursor: pointer;
}
.cookie-modal-content input[type=checkbox] {
  accent-color: #A1C349;
}
.cookie-modal-content .essential {
  font-style: italic;
  opacity: 0.7;
  margin-left: 7px;
}
.cookie-modal-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #143153;
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: -18px;
  margin-right: -12px;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #A1C349;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 820px;
    padding: 0 14px;
  }
  .features-grid, .technology-grid, .team-grid, .project-teasers, .highlighted-projects, .partner-list, .event-summaries {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .container { max-width: 96vw; padding: 0 8px; }
  .section, section:not(.hero):not(.contact-cta):not(.thank-you):not(.privacy-policy):not(.gdpr-info):not(.cookie-policy):not(.terms),
  .values, .about, .team, .contact, .location, .collaboration, .highlighted-projects, .event-summaries {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 36px 0 20px 0;
    margin-bottom: 28px;
  }
  .features-grid, .technology-grid, .team-grid, .project-teasers, .highlighted-projects, .partner-list, .event-summaries {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 8px 18px 8px;
  }
}
@media (max-width: 600px) {
  .hero .container, .hero, .container { padding-left: 0; padding-right: 0; }
  .main-nav {
    padding: 10px 4px;
    gap: 5px;
  }
  .card, .features-grid > div, .technology-grid > div, .team-grid > div, .project-teasers > div, .highlighted-projects > div, .partner-list > div, .event-summaries > div {
    padding: 13px 7px;
  }
  .card {
    min-width: 90vw;
  }
}
/* ===== FLEX DIRECTION SWITCHES ON SMALL BREAKPOINTS ===== */
@media (max-width: 768px) {
  .content-grid, .text-image-section, .team-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    align-items: flex-start;
    gap: 18px;
  }
}

/* ======= ADDITIONAL SECTION SPECIFIC STYLES ======= */
.contact-cta {
  background: #143153;
  color: #fff;
  padding: 48px 0 38px 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 24px;
  margin-bottom: 0;
}
.contact-cta h2, .contact-cta p, .contact-cta a {
  color: #fff;
}
.contact-cta ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
}
.contact-cta ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1em;
  color: white;
}
.contact-cta a.cta-btn {
  margin-top: 18px;
  background: #A1C349;
  color: #143153;
}
.contact-cta a.cta-btn:hover, .contact-cta a.cta-btn:focus {
  background: #fff;
  color: #143153;
  border: 1px solid #A1C349;
}

/* LOCATION */
.address-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  background: #f7fbff;
  border-radius: 10px;
  padding: 16px 18px;
}

/* THANK YOU PAGE */
.thank-you {
  background: #eaf1f9;
  border-radius: 16px;
  text-align: center;
  padding: 60px 16px 70px 16px;
  margin-top: 70px;
}
.thank-you h1 {
  color: #143153;
  margin-bottom: 20px;
}
.thank-you p {
  margin-bottom: 18px;
  color: #143153;
}

/* LEGAL/POLICIES */
.privacy-policy, .gdpr-info, .cookie-policy, .terms {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(20,49,83,0.05);
  padding: 44px 20px 44px 20px;
  margin-bottom: 52px;
}
.privacy-policy .last-update {
  font-size: .97em;
  color: #9db6d0;
  margin-top: 22px;
}

/* =================== MICRO-INTERACTIONS & TRANSITIONS =================== */
button, .cta-btn, .cta-link, .main-nav a, .mobile-nav a {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}

/* ===== ACTIVE/FOCUS STATES ACCESSIBILITY ==== */
:focus-visible {
  outline: 2.5px dashed #A1C349;
  outline-offset: 2px;
}

/* ======= CUSTOM UTILITIES ======= */
.flex-row-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Hide scrollbar in mobile menu for UX */
.mobile-menu {
  overflow-y: auto;
}
.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ======= PRINT ADJUSTMENTS ======= */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, .cta-btn, .cta-link, .main-nav, .footer-nav {
    display: none !important;
  }
}
