/* Tutor People — shared stylesheet for content pages */
@import url('cinematic.css');

:root {
  --bg: #060a17;
  --bg-card: rgba(15, 22, 45, 0.72);
  --bg-card-solid: #0f162d;
  --border: rgba(120, 160, 255, 0.16);
  --text-primary: #eef2ff;
  --text-secondary: #a5b0cf;
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.14);
  --link: #67e8f9;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.55);
  z-index: -1;
  pointer-events: none;
}

/* Animated cosmic background (galaxy-bg.js) — sits behind the dim overlay.
   The static image is only a fallback while Three.js loads / if WebGL fails;
   the canvas renders on top of it, matching the root index.html. */
.video-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #070b14 url('../galaxy-engineering-bg.png') center / cover no-repeat;
}

.video-background canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text-primary); background: var(--accent-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav a.cta {
  background: var(--accent);
  color: #04121a;
  font-weight: 700;
}
.site-nav a.cta:hover { background: #22d3ee; color: #04121a; }

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: 0.35rem; color: var(--text-secondary); }

/* Main layout */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero { padding: 2.25rem 0 1.5rem; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 0.9rem;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 46rem;
  text-wrap: pretty;
}

h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; text-wrap: balance; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }

.page p { color: var(--text-secondary); margin-bottom: 0.9rem; max-width: 50rem; }
.page ul, .page ol { color: var(--text-secondary); margin: 0 0 1rem 1.25rem; }
.page li { margin-bottom: 0.35rem; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card h3 { margin: 0; font-size: 1.02rem; }
.card p { font-size: 0.9rem; margin: 0; }
.card a.card-link { font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 0.4rem; }

a.card-block { display: block; color: inherit; }
a.card-block:hover { text-decoration: none; }
a.card-block .card:hover { border-color: var(--accent); }

/* CTA band */
.cta-band {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band .btn {
  background: var(--accent);
  color: #04121a;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border-radius: 10px;
  white-space: nowrap;
}
.cta-band .btn:hover { background: #22d3ee; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 23, 0.92);
  margin-top: 2rem;
}
.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
}
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-secondary); font-size: 0.9rem; }
.site-footer a:hover { color: var(--link); }
.site-footer .foot-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 760px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
}
