/* ----------------------------------
   CSS Reset & Base Styles
-------------------------------------*/
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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7FAFC;
  color: #2D3748;
  font-size: 16px;
  line-height: 1.7;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2D3748;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #43B0F1;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}
hr {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 32px 0;
}
/* ----------------------------------
   Typography
-------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #2D3748;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
}
.subheadline {
  color: #55677c;
  font-size: 1.17rem;
  font-weight: 400;
  margin-bottom: 24px;
}
strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  font-style: italic;
  color: #2D3748;
  border-left: 4px solid #43B0F1;
  padding-left: 16px;
  margin-top: 16px;
  margin-bottom: 6px;
}
cite {
  font-family: 'Roboto', Arial, sans-serif;
  color: #55677c;
  font-size: 1rem;
}

/* ----------------------------------
   Containers & Layout
-------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-top: 20px;
}

/* Section spacing */
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Flex Utilities */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/* ----------------------------------
   Header & Navigation
-------------------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 0 0 0;
  position: relative;
  z-index: 100;
}
header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
header > a {
  display: flex;
  align-items: center;
  height: 72px;
  padding-left: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #2D3748;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F7FAFC;
  color: #43B0F1;
}
.cta.primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  background: #43B0F1;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(67,176,241,0.08);
  border: none;
  margin-left: auto;
  margin-right: 24px;
  cursor: pointer;
  transition: background .18s, box-shadow .22s;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #3194ce;
  box-shadow: 0 4px 12px rgba(67,176,241,0.14);
  outline: none;
}
.cta.secondary {
  background: #fff;
  color: #43B0F1 !important;
  border: 2px solid #43B0F1;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 24px;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-top: 28px;
  display: inline-block;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #43B0F1;
  color: #fff !important;
  border-color: #43B0F1;
  outline: none;
}

/* Hide mobile menu and burger by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  color: #2D3748;
  cursor: pointer;
  margin-right: 20px;
  z-index: 103;
  transition: color .18s;
  width: 48px;
  height: 48px;
}
.mobile-menu-toggle:focus {
  color: #43B0F1;
  outline: 2px solid #43B0F1;
}

.mobile-menu {
  display: none;
}

/* Desktop Header Flex Layout */
@media (min-width: 880px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
  }
  header > a {
    height: 80px;
    padding-left: 34px;
  }
  header nav {
    gap: 20px;
    margin-left: 24px;
  }
  .cta.primary {
    margin-left: auto;
  }
}

/* Responsive MOBILE NAV */
@media (max-width: 879px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 0;
    height: 64px;
    z-index: 99;
  }
  header > a {
    height: 64px;
    padding-left: 10px;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 0 0;
    z-index: 200;
    transform: translateX(-100vw);
    transition: transform .35s cubic-bezier(.57,.09,0,1.25);
    box-shadow: 0 8px 32px rgba(45,55,72,0.12);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #2D3748;
    font-size: 2rem;
    margin: 18px 20px 0 0;
    cursor: pointer;
    z-index: 201;
    transition: color 0.18s;
    width: 48px;
    height: 48px;
  }
  .mobile-menu-close:focus {
    color: #43B0F1;
    outline: 2px solid #43B0F1;
  }
  .mobile-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    gap: 0;
  }
  .mobile-nav a {
    width: 100%;
    display: block;
    padding: 18px 30px;
    font-size: 1.13rem;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #2D3748;
    font-weight: 600;
    border-bottom: 1px solid #E2E8F0;
    transition: background 0.17s, color 0.17s;
  }
  .mobile-nav a:last-child {
    border-bottom: none;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: #F7FAFC;
    color: #43B0F1;
    outline: none;
  }
}

/* ----------------------------------
   Hero Section & Content
-------------------------------------*/
@media (min-width: 769px) {
  .text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ----------------------------------
   Feature & Service Grids (Flexbox)
-------------------------------------*/
.feature-grid, .service-cards, .facts-grid, .service-summary-grid, .invention-grid, .timeline, .info-blocks, .key-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item, .service-card, .fact-card, .invention-item, .featured-technology-card, .service-brief, .service-teaser, .service-highlight, .service-showcase {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(45, 55, 72, 0.05);
  padding: 28px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 calc(270px - 24px);
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-item:hover, .service-card:hover, .fact-card:hover, .invention-item:hover, .featured-technology-card:hover {
  box-shadow: 0 6px 32px rgba(45,55,72,0.13);
  transform: translateY(-5px) scale(1.01);
}
.feature-item img {
  width: 48px;
  height: 48px;
}

.service-card span {
  color: #43B0F1;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(45, 55, 72, 0.07);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-right: 0;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.key-stats > div,
.info-blocks > div {
  background: #F7FAFC;
  color: #2D3748;
  padding: 18px 14px;
  border-radius: 12px;
  font-size: 1.04rem;
  box-shadow: 0 1px 6px rgba(45, 55, 72, 0.05);
  font-weight: 500;
  min-width: 150px;
  text-align: center;
}

/* Responsive Flex adjustments */
@media (max-width: 1020px) {
  .feature-grid, .service-cards, .facts-grid, .service-summary-grid, .invention-grid, .timeline {
    gap: 20px;
  }
  .feature-item, .service-card, .fact-card, .invention-item, .featured-technology-card {
    flex-basis: calc(47% - 24px);
    min-width: 220px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .facts-grid, .service-summary-grid, .invention-grid, .timeline {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .service-card, .fact-card, .invention-item, .featured-technology-card, .key-stats > div, .info-blocks > div {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
}

/* ----------------------------------
   TESTIMONIALS
-------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #EEF5FB;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(45, 55, 72, 0.07);
  margin-bottom: 20px;
  color: #212a37;
  font-size: 1.11rem;
  position: relative;
  flex-direction: column;
}
.testimonial-card blockquote {
  border-left: 0.25em solid #43B0F1;
  padding-left: 18px;
  color: #2d3748;
  margin-bottom: 4px;
  font-size: 1.13rem;
}
.testimonial-card cite {
  color: #55677c;
  font-style: normal;
  font-size: 0.98rem;
}

@media (min-width: 701px) {
  .testimonial-card {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
  }
  .testimonial-card blockquote {
    margin-right: 24px;
    max-width: 600px;
  }
}

/* ----------------------------------
   Newsletter Section / CTA Message
-------------------------------------*/
.cta-message {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(45, 55, 72, 0.08);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ----------------------------------
   Lists & Info blocks
-------------------------------------*/
.biology-facts-list {
  margin-bottom: 28px;
  padding-left: 18px;
}
.biology-facts-list li {
  margin-bottom: 10px;
}
.info-blocks {
  margin-bottom: 24px;
}
.featured-scientist-quotes {
  margin: 18px 0 0 0;
}
.featured-scientist-quotes blockquote {
  border-left: 4px solid #43B0F1;
  color: #2D3748;
  padding-left: 16px;
}
.featured-scientist-quotes cite {
  margin-left: 16px;
  color: #55677c;
}

/* FAQ styles */
.quick-faq {
  background: #F7FAFC;
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(45, 55, 72, 0.04);
}
.quick-faq h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

/* Map embed block */
.map-embed {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #EEF5FB;
  border-radius: 12px;
  padding: 14px 10px;
  margin-bottom: 16px;
}

/* ----------------------------------
   Footer
-------------------------------------*/
footer {
  background: #2D3748;
  color: #fff;
  font-size: 0.99rem;
  margin-top: 60px;
  padding: 40px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.footer-menu a {
  color: #fff;
  opacity: 0.88;
  font-weight: 500;
  padding-bottom: 2px;
  transition: opacity .18s, border-color 0.18s;
  border-bottom: 2px solid transparent;
}
.footer-menu a:hover, .footer-menu a:focus {
  opacity: 1;
  color: #F1C40F;
  border-bottom: 2px solid #F1C40F;
  outline: none;
}
.social-links {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}
.social-links a {
  display: flex;
  align-items: center;
  background: #314063;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  transition: background 0.16s;
}
.social-links a:hover, .social-links a:focus {
  background: #43B0F1;
  outline: none;
}
.social-links img {
  width: 22px;
  height: 22px;
}
.copyright-notice {
  margin-top: 14px;
  color: #bfc8da;
  font-size: 0.94rem;
  text-align: left;
}
@media (max-width: 700px) {
  .footer-menu, .social-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .copyright-notice { text-align: left; }
}

/* ----------------------------------
   Cookie Consent Banner & Modal
-------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #212a37ec;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  z-index: 999;
  box-shadow: 0 -2px 24px rgba(45, 55, 72, 0.13);
  gap: 20px;
  animation: fadeinup .45s;
}
.cookie-banner__text {
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.6;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 0 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #43B0F1;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #3194ce;
  outline: none;
}
.cookie-btn.reject {
  background: #fff;
  color: #2D3748;
  border: 1.5px solid #43B0F1;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F7FAFC;
  color: #43B0F1;
  outline: none;
}
.cookie-btn.settings {
  background: #F1C40F;
  color: #2D3748;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f9e491;
  outline: none;
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 8px;
    gap: 18px;
  }
  .cookie-banner__text {
    margin-right: 0;
    max-width: 100%;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}
@keyframes fadeinup {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,42,55,0.63);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeinup .28s;
}
.cookie-modal {
  background: #fff;
  color: #212a37;
  border-radius: 18px;
  box-shadow: 0 10px 56px rgba(45, 55, 72, .23);
  width: 94vw;
  max-width: 410px;
  padding: 34px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeinup .4s;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #2D3748;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal h3 {
  font-size: 1.23rem;
  margin-bottom: 8px;
  color: #2D3748;
}
.cookie-settings-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-settings-category label {
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2D3748;
  font-weight: 500;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #E2E8F0;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  margin-left: 10px;
  transition: background 0.17s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #bfc8da;
  border-radius: 50%;
  transition: left 0.19s, background 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: #43B0F1;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 400px) {
  .cookie-modal {
    width: 98vw;
    padding: 16px 7px 16px 7px;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}

/* ----------------------------------
   Miscellaneous Classes
-------------------------------------*/
.address-block,
.email-info,
.opening-hours {
  background: #F7FAFC;
  color: #2D3748;
  padding: 13px 15px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 1px 6px rgba(45, 55, 72, 0.04);
}

.section ul,
.section ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

/* ----------------------------------
   Animations & Interactions
-------------------------------------*/
.card,
.feature-item,
.service-card,
.fact-card,
.invention-item,
.featured-technology-card {
  transition: box-shadow .17s, transform .13s;
}
.card:hover, .feature-item:hover, .service-card:hover, .fact-card:hover, .invention-item:hover, .featured-technology-card:hover {
  box-shadow: 0 6px 32px rgba(45,55,72,0.13);
  transform: translateY(-5px) scale(1.012);
}
button, .cta.primary, .cta.secondary, .cookie-btn {
  transition: background .18s, color .17s, box-shadow .13s, border .15s;
}

/* ----------------------------------
   Utility Classes
-------------------------------------*/
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-primary { color: #43B0F1 !important; }
.text-accent { color: #F1C40F !important; }

/* ----------------------------------
   Responsive Typography
-------------------------------------*/
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
  h3 { font-size: 1.16rem; }
  body { font-size: 15px; }
  .subheadline { font-size: 1.06rem; }
}

/* ----------------------------------
   Print Adjustments
-------------------------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { width: 100% !important; max-width: 100% !important; }
}

/* ----------------------------------
   Font Imports (Only as URLs in real deployment) 
-------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
