/* ==========================================================================
   B Giant Media
   ========================================================================== */

:root {
  /* Brand colors sampled from the B Giant Media logo files */
  --navy: #041D37;
  --ink: #101C29;
  --accent: #0170F0;
  --accent-hover: #0065D9;
  --accent-soft: rgba(1, 112, 240, .1);

  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: var(--ink);
  --muted: #56647A;

  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 600px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(1, 112, 240, .25); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  mix-blend-mode: multiply; /* hides the logo's white background on tinted sections */
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 16vh, 180px) 0 clamp(96px, 14vh, 160px);
}
.hero-bg {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 720px);
  height: auto;
  opacity: .06;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(1, 112, 240, .12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  color: var(--navy);
  font-size: clamp(48px, 9vw, 116px);
  max-width: 11ch;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

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

.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 56px; }
.section-head h2,
.contact h2 {
  color: var(--navy); font-size: clamp(36px, 5.5vw, 64px); max-width: 16ch; }

/* Service cards ---------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 1px 2px rgba(4, 29, 55, .04);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(1, 112, 240, .45); box-shadow: 0 18px 40px rgba(4, 29, 55, .08); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 28px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--navy); font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 16px; }
.card-list {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.card-list li { display: flex; gap: 10px; align-items: baseline; }
.card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Steps ------------------------------------------------------------------ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step { border-top: 2px solid var(--border); padding-top: 28px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.step h3 { color: var(--navy); font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--muted); }

/* Results ---------------------------------------------------------------- */

.results { padding-block: clamp(64px, 9vw, 110px); background: var(--navy); color: #fff; }
.results .stat-num { color: #fff; }
.results .stat-num::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 18px; background: var(--accent); }
.results .stat-label { color: rgba(255, 255, 255, .7); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 32px; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label { color: var(--muted); font-size: 16px; }

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

.contact { background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact h2 { margin-bottom: 24px; }
.contact-email {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  word-break: break-all;
}
.contact-email:hover { color: var(--accent); }

.contact-form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-size: 14px; font-weight: 500; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; margin-top: 6px; }

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

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.brand-logo-bg { height: 50px; }
.brand-footer .brand-logo { height: 64px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 14px; }

/* Reveal animation ------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .cards,
  .steps { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-inner { height: 72px; }
  .brand-logo { height: 48px; }
  .brand-logo-bg { height: 42px; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(4, 29, 55, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) {
    padding: 16px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .site-nav .btn { margin-top: 20px; justify-content: center; padding: 16px; font-size: 16px; }

  .stats { grid-template-columns: 1fr; gap: 32px; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 32px; }

  .hero-bg { width: 110vw; right: -45vw; opacity: .05; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
