/* ============================================================
   Blackrock Dynamics - style.css
   ============================================================ */

:root {
  --brand: #b5392c;
  --brand-bright: #d24a37;
  --bg: #0a0a0b;
  --panel: #121214;
  --line: #29292d;
  --text: #e9e8e6;
  --muted: #91939a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --mono: "Courier New", monospace;
  --page-pad: clamp(1.25rem, 4vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

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

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

::selection { background: var(--brand); color: #fff; }

/* ---------- Type helpers ---------- */
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo { height: 34px; width: auto; }

.nav-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-bright); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(88vh - 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.6) 50%, rgba(10, 10, 11, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 10, 11, 0.85) 0%, transparent 45%),
    url("../img/Phoebe_contrail.webp") left 65% / cover no-repeat;
}

.hero-inner {
  padding-block: 5rem;
  padding-inline: var(--page-pad);
  width: 100%;
}

.hero-banner {
  width: min(340px, 70%);
  margin-bottom: 2.5rem;
}

.hero-headline {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  max-width: 16ch;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-inline: 0;
}

.stat {
  padding: 2.5rem 2rem;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; }

.stat-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* ---------- Sections ---------- */
.section { padding-block: 6.5rem; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 2.5rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-grid .section-title { margin-bottom: 0; }

.about-text { color: var(--muted); }
.about-text p + p { margin-top: 1.25rem; }

.about-values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
}

.about-values li {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--muted);
}

.about-values strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

/* ---------- Phoebe (home section + page hero) ---------- */
.phoebe {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.35) 55%, rgba(10, 10, 11, 0.15) 100%),
    linear-gradient(0deg, rgba(10, 10, 11, 0.9) 0%, transparent 40%),
    url("../img/Phoebe_pad.webp") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.phoebe-inner {
  padding-block: 5rem;
  padding-inline: var(--page-pad);
  width: 100%;
}

.phoebe-title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  letter-spacing: 0.03em;
}

.phoebe-text {
  margin-top: 1.25rem;
  max-width: 48ch;
  color: var(--text);
}

.phoebe-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.phoebe.page-hero {
  min-height: 64vh;
}

/* ---------- Facts strip (Phoebe page) ---------- */
.facts {
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-inline: 0;
}

.fact {
  padding: 1.75rem 1.5rem;
  border-left: 1px solid var(--line);
}

.fact:first-child { border-left: none; }

.fact-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.fact-value {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Phoebe page body ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: minmax(26rem, 0.85fr) minmax(36rem, 1.15fr);
  gap: clamp(2rem, 4vw, 6rem);
  align-items: start;
}

.vehicle-text { color: var(--muted); }
.vehicle-text p + p { margin-top: 1.25rem; }

.vehicle-figure {
  border: 1px solid var(--line);
  background: var(--panel);
}

.vehicle-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.vehicle-figure figcaption {
  padding: 0.85rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cta-strip {
  border-top: 1px solid var(--line);
  padding-block: 4rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 680px; }

.contact-lead { color: var(--muted); margin-bottom: 2.5rem; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-field { margin-bottom: 1.75rem; }

.form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--brand-bright);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-bottom-color: var(--brand-bright);
}

.form-field textarea { resize: vertical; }

.form-status {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success { color: #7fbf6f; }
.form-status.error { color: var(--brand-bright); }

/* ---------- Careers ---------- */
.careers-wrap { max-width: 860px; }

.careers-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.careers-lead strong,
.careers-note strong { color: var(--text); }

.careers-note {
  margin-top: 1.75rem;
  border-left: 2px solid var(--brand);
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--muted);
}

.careers-form {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
}

.careers-form iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
  background: #fff;
}

.careers-fallback {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.careers-fallback a { color: var(--brand-bright); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-logo { height: 30px; width: auto; opacity: 0.7; }

.back-to-top {
  color: var(--muted);
  text-decoration: none;
}

.back-to-top:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }

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

  .fact:nth-child(odd) { border-left: none; }

  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 280px; }

  .nav-links li { border-top: 1px solid var(--line); }

  .nav-links a {
    display: block;
    padding: 1rem 4%;
    border-bottom: none;
  }

  .nav-links a.active { color: var(--brand-bright); }

  .stats-grid { grid-template-columns: 1fr; }

  .stat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 1.75rem 0;
  }

  .stat:first-child { border-top: none; }

  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }

  .phoebe { min-height: 80vh; }
}
