/* Broseflabs - gold & black theme */
:root {
  --black: #070707;
  --ink: #0e0e0e;
  --panel: #151515;
  --panel-2: #1b1b1b;
  --line: #2a2518;
  --gold: #d4af37;
  --gold-hi: #f6dd8d;
  --gold-lo: #a8841f;
  --text: #f4efe2;
  --muted: #a39d8c;
  --radius: 14px;
  --head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gold-grad: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.1rem; color: var(--gold); letter-spacing: .08em; }
p { margin: 0 0 1em; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #cfc9b8; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: 700 .95rem/1 var(--body);
  letter-spacing: .06em; text-transform: uppercase; color: #0a0a0a;
  background: var(--gold-grad); padding: 16px 28px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(212, 175, 55, .22);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: #000; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212, 175, 55, .38); filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 11px 18px; font-size: .78rem; }
.btn-ghost { background: transparent; color: var(--gold); border: 1.5px solid var(--gold-lo); box-shadow: none; }
.btn-ghost:hover { background: rgba(212, 175, 55, .1); color: var(--gold-hi); box-shadow: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: box-shadow .3s, padding .3s; padding: 14px 0; }
/* The blurred bar lives on a pseudo-element so it can't trap the fixed mobile menu */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(7, 7, 7, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.site-header.scrolled::before { opacity: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { font: 800 1.5rem/1 var(--head); letter-spacing: .08em; }
.brand-text b { color: var(--gold); font-weight: 800; margin-left: 2px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-grad); transition: width .25s; }
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--gold-hi); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; position: relative; z-index: 3; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(212, 175, 55, .18), transparent 60%),
    radial-gradient(900px circle at 10% 100%, rgba(168, 132, 31, .12), transparent 60%);
}
.hero-title { margin-bottom: 24px; }
.rotator { display: inline-block; transition: opacity .3s, transform .3s; }
.rotator.out { opacity: 0; transform: translateY(14px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid var(--gold-lo); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 36px; animation: ticker 32s linear infinite; padding-left: 36px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 800 1.9rem/1 var(--head); letter-spacing: .14em; color: transparent; -webkit-text-stroke: 1px var(--gold-lo); }
.ticker i { color: var(--gold); font-style: normal; font-size: .8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, var(--ink), #0b0b0b); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.page-hero { padding: 160px 0 60px; background: radial-gradient(700px circle at 85% 0%, rgba(212, 175, 55, .13), transparent 60%); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-hero + .contact-section { padding-top: 24px; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  position: relative; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; transition: border-color .3s, box-shadow .3s, transform .15s ease-out;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover { border-color: var(--gold-lo); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .2); }
.card h3 { color: var(--gold-hi); }
.card p { color: #bdb7a6; margin-bottom: 18px; }
.card-num { position: absolute; top: 16px; right: 20px; font: 800 3rem/1 var(--head); color: rgba(212, 175, 55, .13); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-lo); border-radius: 999px; padding: 5px 12px; }

.pillar { padding: 8px 6px; }
.pillar-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font: 800 1.6rem/1 var(--head); color: #0a0a0a; background: var(--gold-grad); margin-bottom: 18px; box-shadow: 0 0 0 6px rgba(212, 175, 55, .1); }
.pillar h3 { color: var(--text); }
.pillar p { color: #bdb7a6; }

.cta-band { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 22px; border: 1px solid var(--gold-lo); background: radial-gradient(600px circle at 50% 0%, rgba(212, 175, 55, .2), transparent 70%), var(--panel); margin-top: 20px; }
.cta-band p { color: #cfc9b8; max-width: 520px; margin: 0 auto 26px; }

/* About */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.split p { color: #cfc9b8; }
.quote-card { text-align: center; padding: 44px 28px; border: 1px solid var(--gold-lo); border-radius: 20px; background: radial-gradient(400px circle at 50% 0%, rgba(212, 175, 55, .16), transparent 70%), var(--panel); transition: transform .15s ease-out; }
.quote-card svg { margin: 0 auto 16px; }
.quote-card p { font: 700 1.9rem/1.15 var(--head); text-transform: uppercase; color: var(--gold-hi); margin: 0; }

.timeline { list-style: none; margin: 0 0 56px; padding: 0 0 0 30px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px 28px; }
.timeline .dot { position: absolute; left: -40px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 5px var(--black), 0 0 18px rgba(212, 175, 55, .5); }
.timeline h3 { color: var(--gold-hi); margin-bottom: 4px; }
.timeline p { color: #bdb7a6; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: inherit; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .2); }
.field textarea { resize: vertical; min-height: 150px; }
.field input.invalid, .field textarea.invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 16px 20px; margin-bottom: 22px; font-size: .95rem; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-ok { background: rgba(60, 160, 90, .12); border: 1px solid #3c9a5a; color: #bfe8cc; }
.alert-err { background: rgba(192, 57, 43, .12); border: 1px solid #c0392b; color: #f3c3bd; }
.contact-side h3 { font-size: 1.2rem; margin-top: 4px; }
.contact-side h3:not(:first-child) { margin-top: 22px; }
.contact-side p { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid li a { color: var(--text); }
.footer-grid li a:hover { color: var(--gold-hi); }
.social { display: flex; flex-wrap: wrap; gap: 16px; }
.legal { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: .78rem; color: var(--muted); }
.legal p { margin: 0 0 8px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-lo);
  background: rgba(14, 14, 14, .9); color: var(--gold); font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .25s, transform .25s, background .2s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); color: #000; }

/* Scroll reveal (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: var(--ink); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 40px 32px;
    transform: translateX(100%); transition: transform .3s ease, visibility .3s; visibility: hidden; z-index: 2;
    box-shadow: -30px 0 60px rgba(0, 0, 0, .6);
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { font-size: 1.3rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .scroll-cue { display: none; }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
