/* BAD Ventures public website. One stylesheet, no frameworks.
   Colours: brief palette, with the red matched to the official logo swoosh (#BB0D2F) and muted slightly. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #191b1d;          /* main dark */
  --charcoal: #252729;
  --ivory: #f6f5f2;        /* warm white */
  --white: #ffffff;
  --text: #202224;
  --muted: #5f5f5f;        /* secondary text on light (AA contrast) */
  --muted-dark: #b4b2ad;   /* secondary text on dark */
  --red: #a81f33;          /* muted logo red: accents only, never body text */
  --border: #e4e2de;
  --border-dark: #34373a;

  --heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

section[id] { scroll-margin-top: 1rem; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--red);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--ivory);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.brand img { width: 112px; }

.nav-desktop ul { display: flex; align-items: center; gap: 2.25rem; }
.nav-desktop a,
.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-dark);
  transition: color 0.15s ease;
}
.nav-desktop a:hover,
.nav-mobile a:hover { color: var(--white); }

.partner-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-dark);
  border-bottom: 1px solid rgba(180, 178, 173, 0.35);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.partner-link:hover { color: var(--white); border-color: var(--white); }
.nav-desktop .partner-link { padding-left: 2.25rem; border: 0; border-left: 1px solid var(--border-dark); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--charcoal); }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 15rem;
  background: var(--charcoal);
  border: 1px solid var(--border-dark);
  padding: 0.5rem 0;
}
.nav-mobile li a { display: block; padding: 0.8rem 1.25rem; font-size: 1rem; }
.nav-mobile .partner-link { border: 0; border-top: 1px solid var(--border-dark); margin-top: 0.5rem; padding-top: 1rem; }

@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
}
.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(62vw, 820px);
  transform: translateY(-46%);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--muted-dark); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 12ch;
}
.hero-sub {
  margin-top: 1.75rem;
  font-family: var(--heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--ivory);
  max-width: 34ch;
}
.hero-body {
  margin-top: 1.25rem;
  color: var(--muted-dark);
  max-width: 52ch;
}
.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--white); }
.button:focus-visible { outline-color: var(--ivory); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-light { background: var(--ivory); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark .eyebrow { color: var(--muted-dark); }

.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

.prose p { max-width: 60ch; }
.prose p + p { margin-top: 1.25rem; }
.prose .note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.975rem;
}

.columns {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 768px) {
  .columns { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.columns li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.columns p { margin-top: 0.75rem; color: var(--muted); max-width: 34ch; }
.num {
  display: block;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.principles li { border-top-color: var(--border-dark); }
.principles h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
}
.principles p { color: var(--muted-dark); margin-top: 1rem; }

/* ---------- Contact ---------- */

.contact-label {
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact-label:not(:first-child) { margin-top: 2.25rem; }
.email {
  font-family: var(--heading);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.email:hover { border-bottom-color: var(--text); }
address { font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.875rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-brand img { width: 88px; }
.footer-brand p { margin-top: 0.9rem; color: var(--ivory); font-family: var(--heading); font-weight: 500; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; }
