/* ============================================================
   PARTING AFTERCARE — sub-brand stylesheet
   Separate from the teal PartingPro system (style.css).
   ============================================================ */
:root {
  --ac-navy:       #0F2340;
  --ac-navy-mid:   #16305A;
  --ac-navy-text:  #1A2B45;
  --gold:          #E8A33D;
  --gold-dark:     #C98A2A;
  --red-bg:        #FBEBEA;
  --red-text:      #B3362C;
  --green-bg:      #E7F4EC;
  --green-text:    #23744A;
  --bg:            #F4F6F8;
  --white:         #FFFFFF;
  --text:          #1A1A1A;
  --text-mid:      #555555;
  --border:        #E1E5EA;
  --radius-lg:     14px;
  --radius-md:     8px;
  --shadow-md:     0 6px 32px rgba(0,0,0,0.10);
  --sans:          'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.ac-nav { background: var(--ac-navy); color: #fff; }
.ac-nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.ac-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.06em; line-height: 1.15; }
.ac-logo svg { width: 38px; height: 38px; flex: none; }
.ac-nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; }
.ac-nav-links a:hover { color: var(--gold); }
.ac-nav--minimal .ac-nav-links { display: none; }
.ac-nav .btn-gold { margin-left: auto; }
.ac-nav:not(.ac-nav--minimal) .btn-gold { margin-left: 0; }

/* ── Buttons ── */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-md); border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--ac-navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-gold:active, .btn-ghost:active { transform: scale(0.97); }
.btn-gold:focus-visible, .btn-ghost:focus-visible { outline: 3px solid #7EB2FF; outline-offset: 2px; }

/* ── Fork hero ── */
.fork-hero { text-align: center; padding: 56px 0 72px; }
.eyebrow { color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; margin-bottom: 14px; }
.fork-hero h1 { color: var(--ac-navy-text); font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; max-width: 720px; margin: 0 auto 16px; }
.fork-hero .sub { color: var(--text-mid); font-size: 17px; max-width: 560px; margin: 0 auto 36px; }

/* ── Video player shell ── */
.video-shell { position: relative; max-width: 640px; margin: 0 auto; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.video-shell video { width: 100%; }
.poster-cover { position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; background: none; }
.poster-cover img { width: 100%; height: 100%; object-fit: cover; }
.poster-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(15,35,64,0.15), rgba(15,35,64,0.45));
}
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; z-index: 1;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.poster-cover:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ac-navy); }
.poster-cover:focus-visible { outline: 3px solid #7EB2FF; outline-offset: -3px; }

/* ── End-card overlay ── */
.endcard {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(15,35,64,0.90);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; gap: 22px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
}
.endcard.show { opacity: 1; visibility: visible; }
.endcard p { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4; max-width: 420px; }
.endcard-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.fade-out-page { opacity: 0 !important; transition: opacity 0.25s ease; }

.skip-link { display: inline-block; margin-top: 18px; color: var(--text-mid); font-size: 14px; text-decoration: underline; cursor: pointer; background: none; border: 0; font-family: var(--sans); }
.skip-link:hover { color: var(--ac-navy-text); }

/* ── Branch hero ── */
.back-link { display: inline-block; margin: 20px 0 0; color: var(--text-mid); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--ac-navy-text); }
.branch-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 36px 0 56px; }
.branch-hero h1 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.15; color: var(--ac-navy-text); margin-bottom: 18px; }
.branch-hero h1 .gold { color: var(--gold-dark); display: block; }
.branch-hero .body { color: var(--text-mid); font-size: 16.5px; }
.branch-hero .video-shell { max-width: none; }

/* ── Stats row ── */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 56px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; }
.stat-card .big { font-size: 30px; font-weight: 700; color: var(--ac-navy-text); }
.stat-card .stars { color: var(--gold); font-size: 22px; letter-spacing: 2px; }
.stat-card h3 { color: var(--ac-navy-text); font-size: 16px; margin: 6px 0 4px; }
.stat-card p { color: var(--text-mid); font-size: 14.5px; }

/* ── Comparison ── */
.compare-section { padding-bottom: 56px; }
.compare-section > h2 { text-align: center; color: var(--ac-navy-text); font-size: 28px; margin-bottom: 30px; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.compare-card { border-radius: var(--radius-lg); padding: 28px 30px; }
.compare-card h3 { font-size: 18px; margin-bottom: 16px; }
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.compare-card li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.compare-card li::before { flex: none; font-weight: 700; }
.compare-card.bad { background: var(--red-bg); color: #6B2520; }
.compare-card.bad h3 { color: var(--red-text); }
.compare-card.bad li::before { content: "✕"; color: var(--red-text); }
.compare-card.good { background: var(--green-bg); color: #1E4D34; }
.compare-card.good h3 { color: var(--green-text); }
.compare-card.good li::before { content: "✓"; color: var(--green-text); }
.vs-badge { align-self: center; background: var(--ac-navy); color: #fff; font-weight: 700; font-size: 14px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── CTA banner ── */
.cta-banner { background: var(--ac-navy); border-radius: var(--radius-lg); color: #fff; display: flex; align-items: center; gap: 28px; padding: 34px 40px; margin-bottom: 56px; flex-wrap: wrap; }
.cta-banner .icon { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.cta-banner .icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.cta-banner h2 { color: var(--gold); font-size: 21px; margin-bottom: 6px; }
.cta-banner p { font-size: 15px; opacity: 0.92; max-width: 520px; }
.cta-banner .btn-gold { margin-left: auto; }

/* ── Testimonials ── */
.testimonials { padding-bottom: 56px; }
.testimonials > h2 { text-align: center; color: var(--ac-navy-text); font-size: 28px; margin-bottom: 30px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.t-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.t-card blockquote { font-style: italic; font-size: 15px; color: var(--text); margin-bottom: 14px; }
.t-card cite { font-style: normal; font-size: 13.5px; color: var(--text-mid); font-weight: 600; }

/* ── Trust badge ── */
.trust { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 28px; margin-bottom: 72px; }
.trust svg { flex: none; width: 34px; height: 34px; stroke: var(--green-text); }
.trust h3 { font-size: 16px; color: var(--ac-navy-text); }
.trust p { font-size: 14px; color: var(--text-mid); }

/* ── Footer ── */
.ac-footer { background: var(--ac-navy); color: rgba(255,255,255,0.75); text-align: center; padding: 26px 0; font-size: 13.5px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .ac-nav-links { display: none; }
  .branch-hero { grid-template-columns: 1fr; gap: 28px; }
  .stats-row { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .vs-badge { justify-self: center; }
  .t-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .btn-gold { margin-left: 0; }
  .container { padding: 0 16px; }
  .ac-nav .container { gap: 12px; }
  .ac-nav:not(.ac-nav--minimal) .btn-gold { margin-left: auto; }
  .ac-logo { font-size: 14px; }
  .ac-logo svg { width: 30px; height: 30px; }
  .btn-gold, .btn-ghost { white-space: nowrap; }
  .ac-nav .btn-gold { padding: 9px 12px; font-size: 13px; }
  .video-shell:has(.endcard.show) { min-height: 300px; }
  .endcard { padding: 16px; gap: 14px; overflow-y: auto; }
  .endcard p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .endcard { transition: none; }
  .fade-out-page { transition: none; }
  .btn-gold, .btn-ghost, .play-btn { transition: none; }
}
