/* --- CSS RESET & NORMALIZE --- */
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, main, 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;
}
body {
  line-height: 1.5;
  background: #F6F8FA;
  color: #232F3E;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #0097A7;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB300;
}
ul {
  list-style: none;
  padding: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Orbitron:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F8FA;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #232F3E;
}
h1 {font-size: 2.25rem; line-height: 1.1;}
h2 {font-size: 1.5rem; line-height: 1.2;}
h3 {font-size: 1.17rem;}

@media (min-width: 650px) {
  h1 {font-size: 2.75rem;}
  h2 {font-size: 2rem;}
}

p, li, ul {
  font-size: 1rem;
  color: #353F4B;
  margin-bottom: 10px;
}
strong {
  color: #0097A7;
  font-weight: 700;
}
em {
  color: #FFB300;
  font-style: normal;
  font-weight: 600;
}

/* --- CONTAINER & SPACING SYSTEM --- */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 24px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER & NAVBAR --- */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(35, 47, 62, 0.07);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  color: #232F3E;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #E0F7FA;
  color: #0097A7;
  box-shadow: 0 2px 8px 0 rgba(0,151,167,0.07);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #FFB300;
  color: #232F3E;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  padding: 12px 28px;
  border-radius: 36px;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(255,179,0,0.08);
}
.cta-btn:hover, .cta-btn:focus {
  background: #0097A7;
  color: #fff;
  transform: translateY(-2px) scale(1.05) rotate(-2deg);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFB300;
  border: none;
  font-size: 2rem;
  padding: 8px 18px;
  border-radius: 10px;
  margin-right: 6px;
  color: #232F3E;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  z-index: 150;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #0097A7;
  color: #fff;
}
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 991px) {
  header nav { display: none !important; }
  .cta-btn { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.61,.52,.4,1.5);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 18px 18px 24px;
  box-shadow: 2px 0 32px 0 rgba(36,60,100,.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #0097A7;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  margin-bottom: 22px;
  align-self: flex-end;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFB300;
  color: #232F3E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  color: #232F3E;
  font-size: 1.2rem;
  padding: 18px 10px;
  border-radius: 10px;
  font-weight: 500;
  background: #E0F7FA;
  margin-bottom: 8px;
  transition: background 0.25s, color 0.19s, transform 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFB300;
  color: #232F3E;
  transform: translateX(4px) scale(1.06);
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO & MAIN SECTIONS --- */
.hero, .thank-you, .cookie-policy, .gdpr, .privacy, .terms {
  background: #FFECB3;
  border-radius: 0 0 36px 36px;
  margin-bottom: 44px;
  position: relative;
  min-height: 195px;
  box-shadow: 0 3px 28px 0 rgba(255,179,0,0.06);
  animation: popInHero 1s cubic-bezier(.72,-0.18,.35,1.31);
}
@keyframes popInHero {
  0% {transform: scale(0.94) translateY(-24px); opacity: 0.2;}
  80%{transform: scale(1.01) translateY(4px); opacity:1;}
  100%{transform: scale(1) translateY(0); opacity:1;}
}
.hero .container, .thank-you .container, .cookie-policy .container, .gdpr .container, .privacy .container, .terms .container {
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero h1, .thank-you h1 {
  color: #0097A7;
  margin-bottom: 10px;
  font-size: 2.2rem;
}
.hero p {
  color: #353F4B;
  font-size: 1.2rem;
}

/* --- FEATURE SECTIONS --- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 18px 0 rgba(0,151,167,0.07);
}
.features h2 {
  color: #232F3E;
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-grid, .usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.feature-grid>div, .usp-grid>div {
  background: #E0F7FA;
  border-radius: 24px;
  padding: 28px 18px;
  flex: 1 1 210px;
  min-width: 220px;
  transition: transform 0.18s, box-shadow 0.19s;
  box-shadow: 0 4px 12px 0 rgba(0,151,167,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-grid>div:hover,
.usp-grid>div:hover {
  transform: translateY(-7px) scale(1.055) rotate(-1.5deg);
  box-shadow: 0 10px 24px 0 rgba(255,179,0,0.14),0 2px 6px 0 rgba(35,47,62,.08);
}
.feature-grid img, .usp-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px #FFECB3AA);
  animation: iconJiggle .9s cubic-bezier(.77,.52,.62,1.38) alternate infinite;
}
@keyframes iconJiggle {
  0%{transform:translateY(0) rotate(0deg);}
  60%{transform:translateY(-6px) rotate(-6deg);}
  95%,100%{transform:translateY(0) rotate(0deg);}
}

.services {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #E3F2FD;
  border-radius: 30px;
  box-shadow: 0 2px 16px 0 rgba(0,151,167,0.07);
}
.services h2 {
  color: #0097A7;
  font-size: 1.45rem;
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.services ul li {
  padding-left: 12px;
  position: relative;
  font-size: 1.07rem;
  line-height: 1.7;
}
.services ul li:before {
  content: "★ ";
  color: #FFB300;
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 6px;
}

/* --- SPECIAL CONTENT SECTIONS --- */
.about, .about-details, .faq-preview, .event-schedule, .local-references, .local-inno, .inventor-spotlights, .local-biology, .consent-options {
  background: #fffde7;
  border-radius: 20px;
  padding: 22px 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(255,179,0,0.045);
}

.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.next-steps ul li a {
  font-weight: 500;
  color: #00BFAE;
  background: #eceff1;
  border-radius: 9px;
  padding: 9px 22px;
  transition: background 0.18s, color 0.17s;
  display: inline-block;
}
.next-steps ul li a:hover {
  background: #FFECB3;
  color: #232F3E;
}

/* --- SECTIONS LAYOUTS (MANDATORY FLEX PATTERNS) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(35,47,62,0.07);
  padding: 28px 20px;
  min-width: 220px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .usp-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 18px 0 rgba(0,151,167,0.10);
  border-radius: 18px;
  margin-bottom: 26px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.18s;
}
.testimonial-card p {
  color: #232F3E;
  margin: 0 0 6px 0;
  font-weight: 500;
  font-size: 1.08rem;
}
.testimonial-card strong {
  color: #0097A7;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px 0 rgba(255,179,0,0.10),0 2px 4px 0 rgba(35,47,62,0.07);
  transform: scale(1.03) rotate(-.7deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CONTACT SECTION --- */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-details ul li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1.07rem;
  background: #f3fefd;
  border-radius: 14px;
  padding: 8px 16px;
}
.contact-details ul img {
  width: 26px;
  height: 26px;
}

/* --- FOOTER --- */
footer {
  background: #232F3E;
  color: #fff;
  padding: 36px 0 18px 0;
  margin-top: 50px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -4px 24px 0 rgba(0,151,167,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}
footer nav a {
  color: #FFECB3;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFB300;
}
footer p {
  color: #fff;
  font-size: 0.97rem;
  margin-bottom: 0;
  text-align: center;
}
footer a {
  color: #FFB300;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232F3E;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -3px 18px 0 rgba(0,151,167,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 18px 16px;
  border-radius: 18px 18px 0 0;
  animation: bannerSlideUp 0.58s cubic-bezier(.68,.35,.47,1.29);
  font-size: 1rem;
}
@keyframes bannerSlideUp {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .btn {
  background: #FFB300;
  color: #232F3E;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  padding: 10px 30px;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(255,179,0,0.07);
  transition: background 0.18s, color 0.18s, transform 0.17s;
}
.cookie-banner .reject {
  background: #fffde7;
  color: #232F3E;
  border: 1.5px solid #FFB300;
}
.cookie-banner .settings {
  background: #0097A7;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner .btn:hover, .cookie-banner button:focus, .cookie-banner .btn:focus {
  background: #0097A7;
  color: #fff;
  transform: scale(1.06) rotate(-1.4deg);
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 47, 62, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.36s cubic-bezier(.68,.38,.42,1.21);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232F3E;
  border-radius: 22px;
  padding: 36px 26px 26px 26px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 38px 0 rgba(255,179,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: modalPopIn 0.35s cubic-bezier(.68,.1,.33,1.41);
}
@keyframes modalPopIn {
  from { transform: scale(0.80) translateY(80px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: #0097A7;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  background: #E0F7FA;
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
}
.cookie-category.essential label {
  color: #232F3E;
  font-weight: 500;
}
.cookie-category .toggle {
  margin-left: auto;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: #FFB300;
  border: none;
  color: #232F3E;
  font-size: 1.3rem;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #0097A7;
  color: #fff;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 14px;
  transition: background 0.19s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #FFB300;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
}
.cookie-modal .btn {
  background: #FFB300;
  color: #232F3E;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: 16px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.15s, transform 0.17s;
}
.cookie-modal .btn.save {
  background: #0097A7;
  color: #fff;
}
.cookie-modal .btn:hover, .cookie-modal .btn.save:hover {
  background: #232F3E;
  color: #fff;
  transform: scale(1.03);
}

/* --- PAGE/MISC --- */
.gdpr, .privacy, .cookie-policy, .terms {
  margin-bottom: 42px;
  border-radius: 18px;
}
.gdpr ul, .privacy ul, .cookie-policy ul, .terms ul {
  margin-left: 0;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.gdpr ul li, .privacy ul li, .cookie-policy ul li, .terms ul li {
  position: relative;
  padding-left: 18px;
}
.gdpr ul li::before, .privacy ul li::before, .cookie-policy ul li::before, .terms ul li::before {
  content: '•';
  color: #0097A7;
  font-size: 1.05em;
  position: absolute;
  left: 0;
  top: 0;
}

/* --- ANIMATIONS & INTERACTIVE MICRO EFFECTS --- */
.card, .feature-grid>div, .usp-grid>div {
  transition: box-shadow 0.18s, transform 0.20s;
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(255,179,0,0.09);
  transform: scale(1.025) rotate(-1deg);
}
.cta-btn {
  animation: btnBounce 2.2s infinite alternate cubic-bezier(.67,-0.09,.93,.8);
}
@keyframes btnBounce {
  0%{ transform: translateY(0) scale(1); }
  100%{transform: translateY(-2px) scale(1.04);}
}

/* --- RESPONSIVENESS --- */
@media (max-width: 991px) {
  .container {
    max-width: 100vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .section, .features, .services {
    padding-left: 6px;
    padding-right: 6px;
  }
  .features, .services {
    border-radius: 20px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.08rem; }
  .feature-grid>div, .usp-grid>div, .card {
    min-width: 90vw;
    padding: 18px 8px;
  }
  .services, .features {
    padding: 20px 4px 16px 4px;
  }
  .hero, .thank-you, .cookie-policy, .gdpr, .privacy, .terms {
    border-radius: 0 0 18px 18px;
    padding-left: 2px; padding-right: 2px;
  }
  .mobile-menu {
    padding-top: 20px;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}
/* --- COLOURFUL/PLAYFUL OVERRIDES --- */
.hero, .thank-you, .cookie-policy, .gdpr, .privacy, .terms {
  background: linear-gradient(98deg, #FFECB3 89%, #E0F7FA 100%);
}
.features, .usp-grid>div, .feature-grid>div, .about, .about-details {
  background: linear-gradient(96deg, #E0F7FA 70%, #fff 100%);
}
.services {
  background: linear-gradient(99deg, #E3F2FD 74%, #FFECB3 100%);
}
.footer {
  background: #232F3E;
}

/* --- FOCUS VISIBLE FOR ACCESSIBILITY --- */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid #0097A7;
  outline-offset: 2px;
}

/* --- HIDE/SHOW MOBILE MENU --- */
@media (max-width: 991px) {
  .cta-btn {
    display: none;
  }
  header nav {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Z-INDEX SAFETY --- */
header, .mobile-menu, .mobile-menu-toggle {
  z-index: 100;
}
.cookie-banner {
  z-index: 9999;
}
.cookie-modal-overlay {
  z-index: 99999;
}
