/* =========================================================
   BVACC — dark + gold premium
   Hand-built, zero dependencies.
   ========================================================= */

:root {
  /* Palette */
  --bg:        #0b0e14;   /* near-black navy */
  --bg-2:      #111621;   /* raised surface */
  --bg-3:      #161c28;   /* cards */
  --line:      #232c3d;   /* hairlines */
  --ink:       #eef2f8;   /* primary text */
  --ink-soft:  #aab3c5;   /* secondary text */
  --ink-faint: #6b7488;   /* tertiary */
  --gold:      #d8b15b;   /* primary accent */
  --gold-2:    #f0d089;   /* accent highlight */
  --gold-deep: #a8842f;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

.accent { color: var(--gold); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.ph { /* placeholder marker — loudly visible until filled */
  color: #ff7b7b;
  background: rgba(255,123,123,.12);
  border: 1px dashed rgba(255,123,123,.5);
  border-radius: 5px;
  padding: 0 .35em;
  font-size: .85em;
  font-style: normal;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1306; box-shadow: 0 6px 24px -8px rgba(216,177,91,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(216,177,91,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; color: var(--ink); display: inline-flex; align-items: center; gap: .55rem; }
.wordmark-logo { height: 34px; width: auto; display: block; }
.wordmark-mark { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav > a { font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: color .2s; }
.nav > a:hover { color: var(--ink); }
.nav .nav-cta { padding: .55rem 1.15rem; color: var(--ink); }
.nav .nav-cta:hover { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s var(--ease); }
.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); }

.mobile-nav { display: none; flex-direction: column; padding: 0 var(--pad); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); color: var(--ink-soft); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  /* Gold node-graph hero image, with a left-weighted dark wash so headline text stays legible. */
  background-image:
    linear-gradient(90deg, rgba(11,14,20,.97) 0%, rgba(11,14,20,.86) 30%, rgba(11,14,20,.55) 68%, rgba(11,14,20,.72) 100%),
    url("/assets/hero-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .22; /* dimmed: the hero image already supplies the line texture */
}
.hero-glow {
  position: absolute; top: -28%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(216,177,91,.22), transparent 60%);
  filter: blur(20px);
}
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; }
.hero-sub { max-width: 42ch; margin-top: 1.6rem; color: var(--ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-cred { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 48ch; color: var(--ink-soft); font-size: .98rem; }
.hero-cred img { flex: none; }
.hero-cred strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-lede { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(216,177,91,.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Approach ---------- */
.principles { list-style: none; padding: 0; display: grid; gap: 1.5rem; max-width: 72ch; }
.principles li { display: flex; gap: 1rem; align-items: flex-start; }
.p-mark { color: var(--gold); font-size: 1.4rem; line-height: 1.4; flex: none; }
.principles strong { color: var(--ink); }
.principles div { color: var(--ink-soft); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: center; }
.about-text h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: 1.4rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.about-badge { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.about-badge img { filter: drop-shadow(0 12px 30px rgba(216,177,91,.25)); }
.badge-caption { font-family: var(--font-display); color: var(--ink-soft); letter-spacing: .04em; }
.badge-caption strong { display: block; color: var(--gold); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 1rem; max-width: 820px; }
.faq-item { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem; transition: border-color .25s; }
.faq-item:hover { border-color: var(--gold-deep); }
.faq-item h3 { font-size: 1.18rem; margin-bottom: .6rem; color: var(--ink); }
.faq-item p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-intro { max-width: 56ch; margin-bottom: 3rem; }
.contact-intro h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.contact-direct { margin-top: 1.2rem; color: var(--ink-soft); }
.contact-direct a { color: var(--gold); border-bottom: 1px solid transparent; }
.contact-direct a:hover { border-color: var(--gold); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

.contact-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink-soft); }
.optional { color: var(--ink-faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 1rem; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,177,91,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff7b7b; }
.field-error { color: #ff9b9b; font-size: .85rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #7ee0a5; }
.form-status.error { color: #ff9b9b; }
.form-note { color: var(--ink-faint); font-size: .82rem; }

.booking { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.booking h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.booking > p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.booking [data-calendly] { margin-top: .4rem; }
.booking-alt { margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--ink-soft); margin-top: 1rem; font-size: .95rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--ink-soft); padding: .25rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-legal { color: var(--ink-soft); font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .88rem; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .5rem; }
.legal-updated { color: var(--ink-faint); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal a { color: var(--gold); border-bottom: 1px solid transparent; }
.legal a:hover { border-color: var(--gold); }
.legal-back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Reveal animation ----------
   Content is hidden ONLY when JS is present to reveal it (html.js).
   Without JS, and for crawlers/link-preview bots, everything stays visible. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
/* Match the hide rule's specificity so .in actually wins (0,3,1) > (0,2,1). */
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { order: -1; }
  .contact-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-cred { flex-direction: column; align-items: flex-start; }
  .btn-block, .hero-actions .btn { width: 100%; }
  /* Uniform darker wash on small screens so text stays legible over the image. */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(11,14,20,.9), rgba(11,14,20,.82)),
      url("/assets/hero-bg.jpg");
  }
}
