/* ==========================================================================
   RAZORBLED GROUP — SHARED DESIGN SYSTEM
   theme.css
   Used by every page (hub + all subsidiary pages). Defines the global
   glassmorphism design tokens, base resets, typography and reusable
   components. Per-subsidiary accent colors are layered on top of this
   file via [data-theme="..."] selectors near the bottom, and are also
   readable/writable at runtime from js/companies-data.js.
   ========================================================================== */

:root{
  /* ---- Baseline brand palette (Razorbled Investment) ---- */
  --void:        #06060a;
  --charcoal-0:  #0b0b0f;
  --charcoal-1:  #111116;
  --charcoal-2:  #17171d;
  --charcoal-3:  #202027;
  --hairline:    rgba(255,255,255,0.09);
  --hairline-2:  rgba(255,255,255,0.16);

  --ink:         #f5f4f0;
  --ink-dim:     #b8bec8;
  --ink-faint:   #7d818c;

  --gold:        #d4af37;
  --gold-soft:   #f4e5b2;
  --gold-deep:   #9c7a22;
  --gold-rgb:    212,175,55;

  --blue:        #3b7dff;
  --blue-rgb:    59,125,255;
  --red:         #eb2f2f;
  --red-rgb:     235,47,47;

  /* Default subsidiary accent = baseline gold (overridden per data-theme) */
  --accent:       var(--gold);
  --accent-soft:  var(--gold-soft);
  --accent-deep:  var(--gold-deep);
  --accent-rgb:   212,175,55;

  /* ---- Glass tokens ---- */
  --glass-bg:        rgba(255,255,255,0.045);
  --glass-bg-strong: rgba(22,22,27,0.62);
  --glass-border:    rgba(255,255,255,0.10);
  --glass-blur:      18px;
  --glass-shadow:    0 20px 60px -20px rgba(0,0,0,0.65);

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Inter', Arial, sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  /* ---- Motion ---- */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  color-scheme: dark;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  margin:0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p{ margin:0; }

.gold-text{
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-text{
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent-soft) 100%, white 0%), var(--accent) 60%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                          */
/* ---------------------------------------------------------------------- */
.wrap{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Safety net: grid/flex items default to min-width:auto (their content's
   min-content), which lets a wide descendant silently force a whole
   column — and the viewport — wider than intended. Zeroing it on every
   shared two-column layout keeps things shrinkable at small widths. */
.hero-grid > *, .co-hero-grid > *, .about-copy > *,
.feature-grid > *, .footer-grid > *{ min-width: 0; }
.section{ position: relative; padding-block: 120px; }
.section--tight{ padding-block: 80px; }
@media (max-width: 860px){
  .section{ padding-block: 84px; }
  .section--tight{ padding-block: 60px; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.kicker::before{
  content:"";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.eyebrow-line{
  width: 44px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ambient background glow blobs, reused on every page */
.ambient{
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.ambient span{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.ambient .b1{ width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(var(--accent-rgb),0.55), transparent 70%); top: -14%; left: -10%; }
.ambient .b2{ width: 38vw; height: 38vw; background: radial-gradient(circle, rgba(var(--blue-rgb),0.35), transparent 70%); bottom: -12%; right: -8%; }
.ambient .b3{ width: 26vw; height: 26vw; background: radial-gradient(circle, rgba(var(--red-rgb),0.22), transparent 70%); top: 35%; right: 18%; }

/* ---------------------------------------------------------------------- */
/* Glass components                                                        */
/* ---------------------------------------------------------------------- */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}
.glass-strong{
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

/* ---------------------------------------------------------------------- */
/* FAQ accordion (native <details>, no JS)                                 */
/* ---------------------------------------------------------------------- */
.faq-list{ display:flex; flex-direction:column; gap:14px; max-width:820px; }
.faq-item{ padding:0; overflow:hidden; }
.faq-item summary{
  cursor:pointer; list-style:none; padding:20px 24px;
  font-weight:600; font-size:15.5px; color: var(--ink);
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:20px; line-height:1; color: var(--accent);
  flex-shrink:0; transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-a{
  padding: 0 24px 20px; margin:0; max-width: 68ch;
  color: var(--ink-dim); font-size:14.5px; line-height:1.65;
}

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content:center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(120deg, var(--accent-soft), var(--accent) 60%, var(--accent-deep));
  color: #100b02;
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb),0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb),0.7); }
.btn-ghost{
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{ border-color: rgba(var(--accent-rgb),0.55); background: rgba(var(--accent-rgb),0.08); transform: translateY(-2px); }
.btn-sm{ padding: 11px 20px; font-size: 13px; }

/* ---------------------------------------------------------------------- */
/* Nav (shared header, same markup on every page)                          */
/* ---------------------------------------------------------------------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .4s var(--ease-out), background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 12px 0;
  background: rgba(8,8,11,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.brand{ display:flex; align-items:center; gap:12px; font-family: var(--font-display); }
.brand-mark{
  width: 38px; height:38px;
  border-radius: 10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(var(--gold-rgb),0.25), rgba(var(--gold-rgb),0.02));
  border: 1px solid rgba(var(--gold-rgb),0.4);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 15px;
  padding: 6px;
  flex-shrink: 0;
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-name{ font-weight:700; font-size: 16.5px; letter-spacing: 0.02em; color: var(--ink); }
.brand-name small{ display:block; font-family: var(--font-body); font-weight:500; font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint); }

.nav-links{ display:flex; align-items:center; gap: 34px; }
.nav-links a{
  font-size: 13.5px; font-weight:600; letter-spacing:0.03em;
  color: var(--ink-dim);
  position:relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after{ right:0; }
.nav-links a.is-active{ color: var(--ink); }

.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-burger{
  display:none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--ink);
  align-items:center; justify-content:center;
}

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 72px 16px auto 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px;
    background: rgba(10,10,13,0.92);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    transform: translateY(-14px);
    opacity:0; visibility:hidden;
    transition: all .35s var(--ease-out);
  }
  .nav-links.is-open{ transform:none; opacity:1; visibility:visible; }
  .nav-links a{ padding: 12px 10px; }
  .nav-burger{ display:flex; }
  .nav-cta .btn span.long{ display:none; }
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll utility (JS toggles .is-visible)                       */
/* ---------------------------------------------------------------------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }
.reveal-delay-4{ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------------------------------------------------------------- */
/* Footer (shared, identical on every page)                                */
/* ---------------------------------------------------------------------- */
.site-footer{
  position:relative;
  padding-top: 90px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr; gap: 36px; text-align:left; }
}
.footer-brand p{ margin-top:14px; color: var(--ink-dim); max-width: 320px; font-size:14.5px; }
.footer-head{ font-family: var(--font-display); font-size:13px; letter-spacing:0.14em; text-transform:uppercase; color: var(--ink-faint); margin-bottom:16px; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{ color: var(--ink-dim); font-size:14.5px; transition: color .2s ease; }
.footer-links a:hover{ color: var(--gold-soft); }
.footer-office p{ color: var(--ink-dim); font-size:14.5px; margin-bottom:10px; }
.footer-office a{ color: var(--ink); }
.footer-office a:hover{ color: var(--gold-soft); }
.footer-social{ display:flex; gap:12px; margin: 8px 0 48px; }
.footer-social a{
  width:40px; height:40px; border-radius:50%;
  display:grid; place-items:center;
  background: var(--glass-bg); border:1px solid var(--glass-border);
  transition: all .3s ease;
}
.footer-social a:hover{ border-color: rgba(var(--gold-rgb),0.5); background: rgba(var(--gold-rgb),0.1); transform: translateY(-3px); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 22px 0; border-top: 1px solid var(--hairline);
  color: var(--ink-faint); font-size: 13px; flex-wrap:wrap;
}
.footer-bottom a{ color: var(--ink-faint); }
.footer-bottom a:hover{ color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Cross-portfolio strip (shared component, filled by companies-data.js)   */
/* ---------------------------------------------------------------------- */
.portfolio-strip{ padding-block: 70px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.portfolio-strip-head{ display:flex; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:32px; flex-wrap:wrap; }
.portfolio-strip-head h3{ font-size: 20px; }
.portfolio-strip-head a{ font-size:13.5px; font-weight:600; color: var(--ink-dim); display:inline-flex; gap:6px; align-items:center; }
.portfolio-strip-head a:hover{ color: var(--gold-soft); }
.strip-row{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
@media (max-width: 900px){ .strip-row{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .strip-row{ grid-template-columns: 1fr; } }
.strip-card{
  display:flex; align-items:center; gap:14px;
  padding: 16px 18px;
  transition: transform .4s var(--ease-out), border-color .4s ease, box-shadow .4s ease;
}
.strip-card:hover{ transform: translateY(-4px); border-color: rgba(var(--co-rgb, var(--gold-rgb)),0.5); box-shadow: 0 16px 40px -18px rgba(var(--co-rgb, var(--gold-rgb)),0.55); }
.strip-logo{
  width:44px; height:44px; border-radius:12px;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1);
  display:grid; place-items:center; overflow:hidden; flex-shrink:0;
  padding: 7px;
}
.strip-logo img{ width:100%; height:100%; object-fit:contain; }

/* ---------------------------------------------------------------------- */
/* Shared logo tile — every company logo (nav, cards, strips, fact panels)
   sits in one of these. All source logos are transparent PNGs designed
   light-on-dark, so the tile is a barely-there frosted surface, not a
   white box — it just gives the mark a defined edge and hover target. */
.logo-tile{
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  display:grid; place-items:center; overflow:hidden; flex-shrink:0;
}
.logo-tile img{ width:100%; height:100%; object-fit:contain; }
.strip-card-name{ font-family: var(--font-display); font-size:14px; font-weight:600; }
.strip-card-tag{ font-size:12px; color: var(--ink-faint); }

/* Scroll-to-top / misc */
::selection{ background: rgba(var(--gold-rgb),0.35); color:#fff; }
