/*
 ═══════════════════════════════════════════════════
  STREAM — RIVER RECORDS  |  shared.css  v2.0
  
  All color tokens map to brand-extract.css.
  Load order on every page:
    <link rel="stylesheet" href="/brand-extract.css">
    <link rel="stylesheet" href="/shared.css">
 ═══════════════════════════════════════════════════
*/


:root {
  /* Primary — product navy */
  --primary:        var(--brand-primary,       #24599e);
  --primary-dark:   var(--brand-primary-70,    #1B5093);
  --primary-light:  var(--brand-primary-10,    #E6F1FF);
  --primary-border: var(--brand-primary-20,    #B8CEE9);

  /* Accent — product teal */
  --accent:         var(--brand-functional-60, #27959C);
  --accent-dark:    var(--brand-functional-80, #12787E);
  --accent-light:   var(--brand-functional-10, #DCF3F5);
  --accent-border:  var(--brand-functional-20, #B3EAED);

  /* Surfaces */
  --surface:        var(--brand-neutral-10,    #F3F5F7);
  --surface-warm:   var(--brand-neutral-20,    #E7EBEE);
  --surface-mid:    var(--brand-neutral-30,    #D5DBE2);
  --white:          var(--brand-surface,       #FFFFFF);

  /* Dark sections */
  --dark:           var(--brand-primary-100,   #022A5B);
  --dark-mid:       var(--brand-primary-90,    #09346A);

  /* Text */
  --ink:            var(--brand-ink,           #333333);
  --ink-muted:      var(--brand-ink-medium,    #666666);
  --ink-faint:      var(--brand-neutral-50,    #A2B1BC);

  /* Borders */
  --border:         var(--brand-neutral-20,    #E7EBEE);
  --border-strong:  var(--brand-neutral-40,    #C3CCD5);

  /* Semantic */
  --success:        var(--brand-success-50,    #037D54);
  --success-light:  var(--brand-success-10,    #EEFDF0);
  --error:          var(--brand-error-50,      #DC362E);
  --error-light:    var(--brand-error-10,      #FDF5F5);
  --gold:           var(--brand-secondary-80,  #CD7908);
  --freed-red:      #C94040;
  --freed-red-light:#fef2f2;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  var(--brand-font-family, 'DM Sans', Inter, system-ui, sans-serif);

  /* Radii */
  --r-sm:   var(--brand-radius-sm,   4px);
  --r-md:   var(--brand-radius-md,   6px);
  --r-lg:   var(--brand-radius-lg,  12px);
  --r-xl:   18px;
  --r-pill: var(--brand-radius-full, 9999px);

  /* Shadows */
  --shadow-xs: 1px 1px 3px 2px rgba(0,0,0,0.07);
  --shadow-sm: var(--brand-shadow-sm,  2px 2px 4px 4px rgba(0,0,0,0.115));
  --shadow-md: var(--brand-shadow-md,  0 4px 8px 4px rgba(0,0,0,0.115));
  --shadow-lg: 0 8px 24px 6px rgba(0,0,0,0.13);

  --max-w:    1080px;
  --max-w-sm:  760px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background:  var(--surface);
  color:       var(--ink);
  font-size:   16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; }

/* LAYOUT */
.container    { max-width: var(--max-w);    margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 28px; }

/* TYPE */
.serif { font-family: var(--font-serif); }
.section-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600;
  text-decoration: none; border-radius: var(--r-md);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary    { background: var(--primary); color: var(--white); padding: 10px 20px; font-size: 0.9rem; box-shadow: 0 2px 8px rgba(36,89,158,0.25); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(36,89,158,0.32); }

.btn-primary-lg { background: var(--primary); color: var(--white); padding: 14px 28px; font-size: 1rem; box-shadow: 0 2px 10px rgba(36,89,158,0.25); }
.btn-primary-lg:hover { background: var(--primary-dark); box-shadow: 0 6px 22px rgba(36,89,158,0.32); }

.btn-ghost  { color: var(--ink-muted); padding: 9px 14px; font-size: 0.875rem; font-weight: 500; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-warm); }

.btn-outline { color: var(--ink-muted); border: 1.5px solid var(--border-strong); background: var(--white); padding: 12px 22px; font-size: 0.95rem; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-white  { background: var(--white); color: var(--dark); padding: 14px 28px; font-size: 1rem; font-weight: 700; }
.btn-white:hover { background: var(--primary-light); }

.btn-outline-white { color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.3); padding: 12px 22px; font-size: 0.95rem; }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-nav-cta { background: var(--accent); color: var(--white); padding: 8px 18px; font-size: 0.875rem; font-weight: 600; border-radius: var(--r-md); text-decoration: none; display: inline-flex; align-items: center; transition: background 0.15s, transform 0.12s; }
.btn-nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* OFFER BANNER */
.offer-banner { background: var(--dark); color: var(--white); text-align: center; padding: 10px 24px; font-size: 0.82rem; font-weight: 500; }
.offer-banner strong { color: var(--accent-light); }
.offer-banner a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; margin-left: 8px; }
.offer-banner a:hover { color: #fff; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 200; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { text-decoration: none; line-height: 1; }
.nav-logo-main { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); letter-spacing: -0.02em; }
.nav-logo-main span { color: var(--accent-light); }
.nav-logo-sub { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; padding: 7px 12px; border-radius: var(--r-sm); transition: color 0.12s, background 0.12s; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--accent-light); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; padding: 7px 12px; border-radius: var(--r-sm); transition: color 0.12s, background 0.12s; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-dropdown-toggle::after { content: '▾'; font-size: 0.65rem; opacity: 0.6; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 6px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); min-width: 200px; padding: 6px 0; z-index: 100; }
.nav-dropdown-menu a { display: block; padding: 9px 16px; font-size: 0.84rem; font-weight: 500; color: var(--ink) !important; text-decoration: none; transition: background 0.1s; background: none !important; }
.nav-dropdown-menu a:hover { background: var(--surface) !important; color: var(--primary) !important; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown.open .nav-dropdown-toggle { color: #fff; background: rgba(255,255,255,0.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; padding: 8px 14px; border-radius: var(--r-sm); transition: color 0.12s, background 0.12s; }
.nav-login:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: var(--r-sm); background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.2s; }
.mobile-menu { display: none; position: fixed; inset: 62px 0 0; background: var(--dark); z-index: 199; padding: 24px 28px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.12s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu a.highlight { color: var(--accent-light); font-weight: 600; }

/* PROOF STRIP */
.proof-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); padding: 18px 28px; }
.proof-strip-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 36px; justify-content: center; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; color: var(--ink-muted); font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.proof-check { width: 17px; height: 17px; border-radius: 50%; background: var(--primary-light); border: 1px solid var(--primary-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proof-check::after { content: ''; width: 7px; height: 5px; border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(-45deg) translate(1px,-1px); margin-top: 1px; }

/* TESTIMONIALS */
.tcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-xs); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.tcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tcard-stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.tcard blockquote { font-size: 0.935rem; color: var(--ink); line-height: 1.65; margin-bottom: 18px; font-style: italic; flex: 1; }
.tcard-author { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.tcard-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); border: 1px solid var(--primary-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 0.9rem; color: var(--primary); flex-shrink: 0; }
.tcard-name  { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.tcard-title { font-size: 0.76rem; color: var(--ink-faint); margin-top: 2px; }

/* DARK CTA */
.cta-dark { background: var(--dark); border-radius: var(--r-xl); padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-dark::before { content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(39,149,156,0.15) 0%, transparent 65%); pointer-events: none; }
.cta-dark h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-dark h2 em { font-style: italic; color: rgba(255,255,255,0.45); }
.cta-dark p { font-size: 1rem; color: rgba(255,255,255,0.5); max-width: 460px; margin: 0 auto 36px; line-height: 1.65; position: relative; z-index: 1; }
.cta-dark-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: 14px; }
.cta-dark-trust { font-size: 0.76rem; color: rgba(255,255,255,0.25); position: relative; z-index: 1; }

/* PHILOSOPHY BLOCK */
.phil-block { background: var(--dark); border-radius: var(--r-xl); padding: 52px 56px; position: relative; overflow: hidden; }
.phil-block::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(39,149,156,0.2) 0%, transparent 65%); pointer-events: none; }
.phil-block::after { content: '"'; position: absolute; bottom: -40px; right: 44px; font-family: var(--font-serif); font-size: 20rem; color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none; user-select: none; }
.phil-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; position: relative; z-index: 1; display: block; }
.phil-block blockquote { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--white); line-height: 1.45; letter-spacing: -0.015em; max-width: 680px; position: relative; z-index: 1; margin-bottom: 28px; }
.phil-block blockquote em { font-style: italic; color: rgba(255,255,255,0.5); }
.phil-byline { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.phil-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(39,149,156,0.2); border: 1px solid rgba(39,149,156,0.35); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 0.95rem; color: var(--accent-light); flex-shrink: 0; }
.phil-name  { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.phil-title { font-size: 0.76rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* FOOTER */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.08); padding: 48px 28px 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); text-decoration: none; letter-spacing: -0.02em; margin-bottom: 10px; display: block; }
.footer-logo span { color: var(--accent-light); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 220px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.78rem; font-weight: 600; transition: background 0.12s, color 0.12s; }
.footer-social a:hover { background: rgba(39,149,156,0.2); color: var(--accent-light); }
.footer-col-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.12s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ANIMATIONS */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.55; transform:scale(.8); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .phil-block, .cta-dark { padding: 44px 36px; }
  .phil-block::after { font-size: 10rem; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-login { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .cta-dark, .phil-block { padding: 36px 24px; }
  .cta-dark-actions { flex-direction: column; width: 100%; }
  .cta-dark-actions .btn-white,
  .cta-dark-actions .btn-outline-white { width: 100%; justify-content: center; }
}
