/* ==========================================================================
   Astra AI Governance — Unified Design System
   Institutional, academic, seal-like. Navy + white. Serif display / sans body.
   ========================================================================== */

:root {
  --navy-950: #0a1628;
  --navy-900: #0e1f3d;
  --navy-800: #14294f;
  --navy-700: #1c3a68;
  --navy-600: #2b4f88;
  --blue-500: #3d6ba8;
  --blue-400: #5c86bc;
  --blue-100: #e8eef6;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --line: #dde3ec;
  --gold: #b48a3f;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --container: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; color: var(--ink-soft); }
p.lead { font-size: 1.2rem; color: var(--ink); }

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-800); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Interim text wordmark (no seal image) — see note in styles.css header comment */
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-word .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.main-nav a {
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a.current { color: var(--gold); }

.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--navy-700); }

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

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 30px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 6px; }
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--paper) url('hero-classroom-photo.jpg') center 42% / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
  padding: 100px 0 110px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.34) 32%, rgba(255,255,255,0.10) 58%, rgba(255,255,255,0.04) 78%, rgba(255,255,255,0.12) 100%);
}

.hero-mark {
  position: absolute;
  top: 15%; left: 70%;
  transform: translateX(-50%);
  width: 230px;
  height: 230px;
  background: url('astra-logo.png') center / contain no-repeat;
  opacity: 0.96;
  filter: drop-shadow(0 10px 22px rgba(10,22,40,0.35));
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: var(--navy-950); }
.hero p.lead { color: var(--navy-800); font-size: 1.25rem; max-width: 640px; }
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 40px 0 32px;
    background-position: 68% 30%;
  }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.82) 38%, rgba(255,255,255,0.55) 62%, rgba(255,255,255,0.35) 100%);
  }
  .hero-mark {
    top: 5%; left: auto; right: 5%;
    transform: none;
    width: 92px;
    height: 92px;
    opacity: 0.95;
    filter: drop-shadow(0 6px 14px rgba(10,22,40,0.3));
  }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-950) !important;
}
.btn-primary:hover { background: #c79c4f; }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white) !important;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  border: 1.5px solid var(--navy-700);
  color: var(--navy-900) !important;
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white) !important; }

/* ---------- Section shell / watermark (internal pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: 76px 0 64px;
  overflow: hidden;
}
.page-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p.lead { color: rgba(255,255,255,0.85); max-width: 640px; }

.watermark-field {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.watermark-field::before {
  content: 'ASTRA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26vw;
  line-height: 1;
  color: var(--navy-900);
  opacity: 0.035;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.watermark-field > .container { position: relative; z-index: 1; }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--blue-100); }

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Teaser grid (Home) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .teaser-grid { grid-template-columns: 1fr; } }

.teaser-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  padding: 30px 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.teaser-card h3 { font-size: 1.15rem; }
.teaser-card p { flex-grow: 1; font-size: 0.96rem; }
.teaser-card .go { font-weight: 700; font-size: 0.9rem; }

/* ---------- DEEP grid ---------- */
.deep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .deep-grid { grid-template-columns: 1fr; } }

.deep-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
}
.deep-card .letter {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue-100);
}
.deep-card h3 { margin-bottom: 10px; color: var(--navy-900); }
.deep-card p { margin-bottom: 0; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Founder quote block ---------- */
.founder-block {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 32px 0;
}
.founder-block .name { font-weight: 700; color: var(--navy-900); font-style: italic; }
.founder-block .role { color: var(--ink-soft); font-style: italic; font-size: 0.94rem; }

/* ---------- Founder photo placeholder (About) ---------- */
.founder-photo-placeholder {
  width: 168px;
  height: 200px;
  border: 1.5px dashed var(--line);
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  text-align: center;
  padding: 14px;
}
.founder-photo-placeholder .ph-icon { font-size: 1.6rem; opacity: 0.35; }
.founder-photo-placeholder .ph-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Video slot cards ---------- */
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.video-card .frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.video-card .frame::before {
  content: '▶';
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.35);
}
.video-card .caption { padding: 22px 26px; }
.video-card .caption h3 { margin-bottom: 6px; }
.video-card .caption p { margin-bottom: 0; }
.placeholder-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 620px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 26px; font-size: 1.05rem; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-word { color: var(--white); }
.footer-word .brand-sub { color: var(--gold); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-caps {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
