/* Prismatic Bio-Tech — layout tokens */
:root {
  --color-primary: #2d3436;
  --color-secondary: #e0e7ff;
  --color-accent: #00d2ff;
  --color-bg: #fdfdfd;
  --color-glass: rgba(253, 253, 253, 0.88);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 0.125rem;
  --shadow-soft: 0 0.25rem 1.5rem rgba(45, 52, 54, 0.08);
  --header-h: 4rem;
  --transition: 0.22s ease;
}

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

html {
  font-size: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.55;
  min-width: 20rem;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), filter var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
  filter: drop-shadow(0 0 0.06rem rgba(0, 210, 255, 0.45));
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-bg);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header — brand text only, burger last */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 231, 255, 0.6);
  min-height: var(--header-h);
}

.header-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0.75rem 4%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand-text {
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);
  margin-left: auto;
  margin-right: 0.75rem;
}

.nav-desktop a {
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  color: var(--color-primary);
  padding: 0.35rem 0.25rem;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--color-accent);
}

/* Burger always in header, last */
.burger {
  order: 999;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(45, 52, 54, 0.15);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.burger:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.25);
}

.burger span {
  display: block;
  height: 2px;
  width: 60%;
  margin: 0 auto;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Burger menu: visible at 1023px and below; desktop nav from 1024px */
@media (max-width: 1023px) {
  .burger {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

/* Nav panel — separate from header, full overlay below header */
.nav-panel {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 850;
  background: linear-gradient(165deg, var(--color-bg) 0%, var(--color-secondary) 100%);
  padding: 1.5rem 4% 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
  overflow-y: auto;
  border-top: 1px solid rgba(45, 52, 54, 0.08);
}

.nav-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 0 auto;
}

.nav-panel a {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(45, 52, 54, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(253, 253, 253, 0.7);
  color: var(--color-primary);
}

.nav-panel a:hover {
  border-color: var(--color-accent);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 840;
  background: rgba(45, 52, 54, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-locked {
  overflow: hidden;
}

/* Hero / banners — image under text */
.hero {
  position: relative;
  min-height: clamp(22rem, 65vh, 38rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(253, 253, 253, 0.94) 0%,
    rgba(224, 231, 255, 0.55) 45%,
    rgba(253, 253, 253, 0.85) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 4%;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: rgba(45, 52, 54, 0.88);
}

/* Section shell */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 4%;
}

.section--alt {
  background: linear-gradient(180deg, rgba(224, 231, 255, 0.35) 0%, var(--color-bg) 100%);
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
}

.section__head p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(45, 52, 54, 0.78);
}

.section__head--spaced {
  margin-top: 2.5rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .grid-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid rgba(45, 52, 54, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  background: rgba(253, 253, 253, 0.95);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.card:hover {
  transform: translateZ(0) translateY(-2px);
  box-shadow: 0 0.5rem 2rem rgba(0, 210, 255, 0.12);
  filter: drop-shadow(0 0 0.5px rgba(0, 210, 255, 0.3));
}

.card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(224, 231, 255, 0.8);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(45, 52, 54, 0.82);
}

.price {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Banner strip (image under text) */
.banner-strip {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}

.banner-strip__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-strip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-strip__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(253, 253, 253, 0.82);
}

.banner-strip__text {
  position: relative;
  z-index: 2;
  padding: 1.75rem 5%;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.banner-strip__text p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(45, 52, 54, 0.18);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-bg);
  margin-bottom: 1rem;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-bg);
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition), border-color var(--transition);
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.35s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  width: 100%;
}

.btn:hover {
  border-color: var(--color-accent);
  color: white;
}

.contact-details {
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-details dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0;
}

.map-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed rgba(45, 52, 54, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: rgba(45, 52, 54, 0.75);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(45, 52, 54, 0.1);
  padding: 2rem 4%;
  background: rgba(224, 231, 255, 0.25);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.legal-bar {
  padding: 0 4% 1.75rem;
  background: rgba(224, 231, 255, 0.25);
  border-top: 1px solid rgba(45, 52, 54, 0.08);
}

.legal-bar__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
}

.legal-bar a {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.footer-meta {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(45, 52, 54, 0.65);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  padding: 1rem 4%;
  background: var(--color-primary);
  color: var(--color-bg);
  display: none;
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1 1 16rem;
}

.cookie-banner .btn {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
}

.cookie-banner .btn-secondary {
  background: transparent;
  color: var(--color-bg);
  border-color: rgba(253, 253, 253, 0.5);
}

/* Legal pages */
.legal-page .section__inner {
  max-width: 48rem;
}

.legal-page h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  color: rgba(45, 52, 54, 0.9);
}

.date {
  font-size: 0.85rem;
  color: rgba(45, 52, 54, 0.65);
  margin-top: 1.5rem;
}

/* Thank you */
.thank-wrap {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4%;
}

.thank-card {
  max-width: 28rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(45, 52, 54, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(253, 253, 253, 0.98);
  box-shadow: var(--shadow-soft);
}

.thank-card h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.thank-card p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: rgba(45, 52, 54, 0.82);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Utility */
.text-center {
  text-align: center;
}

.muted {
  color: rgba(45, 52, 54, 0.7);
  font-size: 0.9rem;
}
