/* ============================================================
   Ultrasonic Reactors — site stylesheet
   Plain CSS, no build step. Edit freely.
   ============================================================ */

:root {
  --navy: #0b2239;
  --navy-2: #123a5c;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --ink: #1e293b;
  --ink-soft: #475569;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(11, 34, 57, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-header .logo img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1b5a8a 100%);
  color: #e2e8f0;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; max-width: 850px; }

/* Wave-packet animation drawn by assets/js/waves.js */
.hero canvas.waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  animation: ping 3.5s ease-out infinite;
}

/* Soft sonar ping — an expanding, fading ring of light */
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
  60% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 1.25rem;
}

.hero h1 .accent { color: #38bdf8; }

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 46rem;
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.button:hover { background: var(--accent-dark); color: #ffffff; }

.button.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
}

.button.ghost:hover { background: var(--accent); color: #ffffff; }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0 0 2.5rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(11, 34, 57, 0.14);
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link { font-weight: 700; text-decoration: none; }

/* ---------- Figures / media ---------- */

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

figure.media {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

figure.media:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(11, 34, 57, 0.14);
}

figure.media img { width: 100%; }

figure.media figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Two-column text + image */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split ul { color: var(--ink-soft); padding-left: 1.2rem; }
.split li { margin-bottom: 0.5rem; }

/* ---------- Stats (Our Experience) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}

.stat .number {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
}

.stat .label { color: var(--ink-soft); margin-top: 0.5rem; }

.stat.featured { border: 2px solid var(--accent); }

/* ---------- News ---------- */

.news-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}

/* ---------- Timeline ---------- */

.timeline {
  border-left: 3px solid var(--accent);
  margin: 2rem 0 0 0.5rem;
  padding-left: 2rem;
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 9px);
  top: 0.4rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  animation: ping 3.5s ease-out infinite;
}

.timeline-item:nth-child(even)::before { animation-delay: 1.75s; }

.timeline-item h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.timeline-item p { color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 34rem;
}

.contact-card h2 { margin-top: 0; }

.contact-card .contact-line {
  margin: 0.4rem 0;
  color: var(--ink-soft);
}

.contact-card .contact-line strong { color: var(--ink); }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e2e8f0;
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 { color: #ffffff; margin: 0 0 0.75rem; }
.cta-band p { color: #cbd5e1; margin: 0 0 1.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer img.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }

.site-footer nav { display: flex; flex-direction: column; gap: 0.4rem; }

.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

.site-footer .copyright {
  flex-basis: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.25rem;
  margin-top: 1rem;
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Accessibility: no motion if the user opts out ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
