/* -----------------------------------------
   CSS RESET & NORMALIZATION (mobile-first)
   ----------------------------------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #17405B;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #17405B;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.77,0,.18,1);
}
a:focus {
  outline: 2px solid #7EB2DD;
  outline-offset: 1px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style-type: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* ------------------------
   BRAND/TYPE SCALE
   ------------------------ */
:root {
  --color-primary: #17405B;
  --color-secondary: #7EB2DD;
  --color-accent: #E5F4FC;
  --color-bg: #fff;
  --color-heading: #17405B;
  --color-text: #17405B;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(23, 64, 91, 0.12);
  --color-nav-bg: #fff;
  --color-testimonial-bg: #E5F4FC;
  --color-footer-bg: #17405B;
  --color-footer-text: #fff;
  --color-subheadline: #7EB2DD;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-bold:  0 6px 32px -2px rgba(23,64,91,0.14), 0 2px 8px 0 rgba(23,64,91,0.05);
  --shadow-light: 0 2px 16px 0 rgba(23,64,91,0.07);
}
body {
  font-size: 16px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--color-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-subheadline);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------------------------------
   CONTAINER & SPACING
   --------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.text-section {
  margin-bottom: 24px;
}

/* ---------------------------------
   FLEXBOX LAYOUTS (NO GRID)
   --------------------------------- */
.feature-grid, .service-list, .publication-list, .topic-categories ul, .project-overview-grid, .benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .feature-grid, .service-list, .publication-list, .topic-categories ul, .project-overview-grid, .benefits-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .feature-grid li, .project-overview-grid > div, .benefits-grid > div {
    flex: 1 1 40%;
    min-width: 240px;
  }
  .publication-list li {
    flex: 1 1 45%;
  }
  .topic-categories ul li {
    flex: 1 1 auto;
  }
}
.text-image-section {
  align-items: center;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---------------------------------
   HEADER & MAIN NAVIGATION
   --------------------------------- */
header {
  background: var(--color-nav-bg);
  box-shadow: 0 2px 20px 0 rgba(23,64,91,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  transition: color 0.2s cubic-bezier(.77,0,.18,1);
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  transition: width .25s var(--easeInCubic, cubic-bezier(.77,0,.18,1));
  background: var(--color-secondary);
  border-radius: 3px;
  margin-top: 3px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
}
.main-nav a:hover:after, .main-nav a.active:after {
  width: 100%;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.18s, transform 0.15s;
  border: 2px solid var(--color-primary);
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  transform: translateY(-2px) scale(1.03);
}

/* ---------------------------------
   MOBILE MENU
   --------------------------------- */
.mobile-menu-toggle {
  display: inline-flex;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1100;
  background: var(--color-primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(23,64,91,0.18);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s, transform 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 90vw; max-width: 350px;
  background: #fff;
  box-shadow: 0 0 80px rgba(23,64,91,0.12);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.77,0,.18,1);
  padding: 36px 24px 24px 24px;
}
.mobile-menu[aria-expanded="true"] {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-bottom: 18px;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 12px 0 12px 6px;
  background: none;
  transition: background 0.18s, color 0.22s;
}
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    display: none;
  }
}
/* Always show CTA button in mobile-menu */
.mobile-nav a.cta-btn {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  text-align: center;
  margin-top: 10px;
  border-radius: var(--radius-md);
}
.mobile-nav a.cta-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Overlay behind menu (if wanted) */
.mobile-menu-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,64,91,0.18);
  z-index: 1190;
  opacity: 1;
  transition: opacity 0.25s;
}

/* ---------------------------------
   SECTIONS & GENERIC LISTS
   --------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #fff;
}
.feature-grid li, .service-list li, .publication-list li {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-light);
  font-size: 1.04rem;
  font-weight: 500;
  margin-bottom: 0;
}
.feature-grid li img, .service-list li img, .contact-details li img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  padding: 22px 20px 18px 24px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: transform 0.18s, box-shadow 0.19s;
}
.service-card:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-bold);
  transform: translateY(-4px) scale(1.015);
}
.service-card span {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.09rem;
  margin-top: 6px;
}
.benefits-grid > div, .project-overview-grid > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  padding: 24px 20px 22px 20px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-primary);
}

/* ---------------------------------
   TESTIMONIALS
   --------------------------------- */
.testimonial-card {
  background: var(--color-testimonial-bg);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 28px 17px 24px;
  font-size: 1.07rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  margin-bottom: 8px;
  font-weight: 500;
}
.testimonial-card span,
.testimonial-card b {
  font-size: 1.05rem;
  color: var(--color-primary);
}

/* ---------------------------------
   CARDS & CARD CONTAINERS
   --------------------------------- */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  background: #fff;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ---------------------------------
   CONTACT DETAILS SECTION
   --------------------------------- */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.map-snippet {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 10px 0;
  font-size: 1rem;
  color: var(--color-secondary);
}

/* ---------------------------------
   FOOTER
   --------------------------------- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 24px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.footer-content img {
  width: 70px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  font-size: 1rem;
  color: var(--color-footer-text);
}
.footer-contact a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
}
@media (min-width: 800px) {
  .footer-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 32px;
  }
}

/* ---------------------------------
   COOKIES CONSENT BANNER & MODAL
   --------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(23,64,91,0.18);
  z-index: 1500;
  padding: 20px 20px 28px 20px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: slideUpBanner .35s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner.show {
  display: flex;
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(23,64,91,0.05);
  transition: background 0.16s, color 0.18s, border 0.18s;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .reject:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-banner .settings:hover {
  background: #fff;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23, 64, 91, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .32s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 32px 24px 26px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 64px rgba(23,64,91,0.16);
  max-width: 430px;
  width: 90vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalDrop .38s cubic-bezier(.77,0,.18,1);
}
@keyframes modalDrop {
  from { transform: translateY(-60px) scale(0.98); opacity: 0.6; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: var(--color-primary);
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}
.cookie-modal .category-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-size: 1.05rem;
  font-weight: 600;
}
.cookie-modal input[type="checkbox"]:checked + .checkmark {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-secondary);
}
.cookie-modal .category-toggle.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .accept, .cookie-modal .reject {
  width: auto;
}

/* ---------------------------------
   MEDIA QUERIES: RESPONSIVE!
   --------------------------------- */
@media (max-width: 700px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  .footer-content { flex-direction: column; gap: 16px; }
  .footer-nav { flex-direction: column; gap: 13px; }
  .benefits-grid, .project-overview-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid, .service-list, .publication-list, .topic-categories ul {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid li, .service-list li, .publication-list li {
    font-size: 1.01rem;
    padding: 16px 12px;
  }
  .service-card, .benefits-grid > div, .project-overview-grid > div {
    padding: 16px 12px 12px 14px;
  }
  .container, .section { padding-left: 12px; padding-right: 12px; }
  .cookie-banner { padding: 13px 7px 16px 10px; }
  .cookie-modal { padding: 21px 8px 13px 14px; }
}

/* ---------------------------------
   INTERACTIONS, ANIMATIONS
   --------------------------------- */
.cta-btn, .service-card, .feature-grid li, .testimonial-card, .cookie-banner button, .cookie-modal {
  transition: box-shadow 0.23s, background .16s, transform .14s, color .12s;
}
.cta-btn:active, .service-card:active, .feature-grid li:active, .cookie-banner button:active {
  transform: scale(0.98);
}

/* ---------------------------------
   VISUAL DETAILS/DECORATIVE SHAPES
   --------------------------------- */
.section {
  position: relative;
}
.section:before {
  content: '';
  position: absolute;
  top: -25px; left: -50px;
  width: 90px; height: 90px;
  background: var(--color-accent);
  border-radius: 32px 62px 74px 12px;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  display: block;
}
.section:nth-child(even):before {
  top: auto; left: auto; right: -60px; bottom: -25px;
  border-radius: 10px 56px 19px 84px;
}
@media (max-width: 700px) {
  .section:before { width: 60px; height: 60px; top: -12px; left: -12px; }
  .section:nth-child(even):before { right: -14px; bottom: -9px; }
}

/* Hide decorative shapes on print */
@media print { .section:before { display: none !important; } }

/* ---------------------------------
   UTILITIES & OVERRIDES
   --------------------------------- */
.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}
.hide { display: none !important; }

/* --- Add focus rings for accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Visual hierarchy for lists --- */
ul li b, .feature-grid li b, .service-list li b {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.045em;
}

/* --- Visually distinguish essential information --- */
span[role="status"], span.status {
  font-weight: 700;
  color: var(--color-secondary);
}

/* --- Table styles (should such content exist) --- */
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  border: 1px solid var(--color-accent);
  padding: 9px 14px;
  text-align: left;
}
th {
  background: var(--color-accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* --- Code or preformatted blocks (for science/tech) --- */
code, pre {
  font-family: "Fira Mono", monospace;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 95%;
}

/* -----------------------
   PRINT OVERRIDES
   ----------------------- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  * { box-shadow: none !important; background: none !important; }
}
