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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  background-color: #020617;
}

/* Layout */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
  background: #020617;
}

.section-alt {
  padding: 4rem 0;
  background: #020617;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.06), transparent 60%), #020617;
}

/* Top bar */
.top-bar {
  background: #020617;
  color: #9ca3af;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.top-bar-item {
  text-decoration: none;
  color: inherit;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 0%, #38bdf8, #0ea5e9 60%, #0369a1);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: #e5e7eb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  margin: 4px 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #f9fafb;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.15) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.85), #020617 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 4.5rem;
  max-width: 640px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #a5f3fc;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, #06b6d4, #38bdf8);
}

.hero h1 {
  font-size: clamp(2.3rem, 3.1vw, 3rem);
  margin: 1rem 0 1rem;
  line-height: 1.05;
}

.hero p {
  font-size: 1.02rem;
  max-width: 32rem;
  color: #d1d5db;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-meta span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
}

/* Buttons */
.btn {
  appearance: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.btn-primary {
  background: linear-gradient(to right, #22d3ee, #0ea5e9);
  color: #0b1120;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  border-color: #38bdf8;
  color: #e5e7eb;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.08);
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 34rem;
  margin: 0 auto;
  color: #9ca3af;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */
.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.1rem;
  padding: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* Lists */
.card-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.card-list li {
  margin-bottom: 0.25rem;
}

.card-list li::before {
  content: "•";
  margin-right: 0.4rem;
  color: #38bdf8;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

.pill-list li {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  color: #e5e7eb;
}

/* About & Facility layouts */
.about-layout,
.facility-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
}

.about-image img,
.facility-image img {
  width: 100%;
  display: block;
  border-radius: 1.25rem;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease-out;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 60%),
    #020617;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.page-hero-inner h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.page-hero-inner p {
  max-width: 38rem;
  color: #9ca3af;
}

/* Contact CTA */
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-cta-text h2 {
  margin-bottom: 0.5rem;
}

.contact-cta-text p {
  color: #9ca3af;
}

/* Contact page form */
.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  color: #e5e7eb;
  font: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.small {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Links */
a {
  color: #38bdf8;
}

a:hover {
  color: #a5f3fc;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 1rem;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  padding: 2.5rem 0 2.3rem;
  color: #9ca3af;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.2rem;
  align-items: flex-start;
}

.footer-logo .logo-mark {
  box-shadow: none;
}

.footer-links h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.footer-links a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-meta {
  font-size: 0.8rem;
  text-align: right;
}

.footer-credit {
  color: #6b7280;
}

/* Utilities */
.centered {
  text-align: center;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .facility-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  .contact-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    background: #020617;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: none;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .hero {
    min-height: 60vh;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 3.25rem;
  }
}
