/* ============================================================
   Partner Page - style.css
   Brand: BraceYourself Solutions (Ethan Brace)
   Restyled 2026-07-30 to match the real braceyourself.solutions
   design system directly (dark theme, Inter/Space Grotesk,
   amber-to-orange gradient accents, teal tertiary, 14px-radius
   cards) rather than borrowing CEOA visual continuity.
   Content renders at full opacity unconditionally, always -
   no scroll- or load-gated animation on a public landing page.
   ============================================================ */

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

:root {
  --bg-deep:        #151210;
  --bg-card:        #1c1917;
  --bg-card-hover:  #211f1b;
  --border:         #2a2622;
  --border-hover:   #3d3730;
  --text-primary:   #f5f0eb;
  --text-secondary: #a8a29e;
  --text-muted:     #78716c;
  --amber:          #f59e0b;
  --amber-dim:      #b45309;
  --orange:         #ea580c;
  --teal:           #2dd4bf;
  --teal-dim:       #0d9488;
  --radius:         14px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(21, 18, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}
.monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg-deep);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: var(--bg-deep);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

main { padding-top: 0; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}
.hero-content {
  max-width: 640px;
}
.hero-portrait { justify-self: end; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--amber);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em {
  font-style: normal;
  -webkit-text-fill-color: var(--amber);
}
.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
}
.hero-manifesto {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: var(--bg-deep);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

/* ─── SECTION SHARED ────────────────────────────────────── */
section { padding: 96px 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--amber);
}
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }

#how .section-title .line {
  display: block;
}

/* ─── IMAGE PLACEHOLDER FRAMES ──────────────────────────────
   Fixed-aspect boxes that hold either a real photo/screenshot
   (once Ethan drops the file at the given path) or a labeled
   placeholder. Swapping in the real file requires zero code
   changes: if images/<name> exists, the <img> loads and the
   onerror handler never fires, so the placeholder never shows
   and the box never changes size. */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed var(--border-hover);
  background: var(--bg-card);
  width: 100%;
}
.img-frame--portrait {
  /* Matches the native 379x535 portrait exactly (not a generic 4:5) so the
     real photo never gets cropped or upscaled past its own resolution. */
  aspect-ratio: 379 / 535;
  max-width: 379px;
}
.img-frame--screenshot {
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame-label {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 16px;
}
.img-frame.is-placeholder img { display: none; }
.img-frame.is-placeholder .img-frame-label { display: flex; }
.img-frame-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.img-frame-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}
.img-frame-dims {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── TABS ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.tab:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.tab[aria-selected="true"] {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-color: transparent;
}
.tab-panel {
  animation: none;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 800px;
  margin: 0 auto;
}

/* ─── WHO I AM (prose) ──────────────────────────────────── */
.prose {
  max-width: 640px;
  margin: 0 auto;
}
.prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}
.prose p:last-child { margin-bottom: 0; }

/* ─── STEPS ─────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(33.33% - 20px);
  right: calc(33.33% - 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--amber-dim), var(--border));
}
.step { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--amber);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ─── PROOF CARDS (service-card pattern) ───────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}
.proof-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.proof-kicker.amber { color: var(--amber); }
.proof-kicker.teal { color: var(--teal); }
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── CTA ───────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.cta-preamble {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.cta-section .section-title { margin-bottom: 32px; }
.cta-actions { margin-bottom: 20px; }
.cta-address a {
  font-size: 15px;
  color: var(--teal);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.cta-address a:hover { color: var(--text-primary); }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-brand .monogram { width: 32px; height: 32px; font-size: 12px; }
.footer-info {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { justify-self: center; order: -1; }
  .img-frame--portrait { max-width: 220px; }
}

@media (max-width: 600px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
  .nav-brand span { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .tabs { gap: 6px; }
  .tab { padding: 8px 16px; font-size: 14px; }
  .img-frame--portrait { max-width: 180px; }
}
