/*
 * BuildPoint Renovations — design system (LOCKED 2026-07-03)
 *
 * Aesthetic: engineering / drafting linework on deep black. Editorial spacing,
 * rounded cards on charcoal surfaces. Orange is an ACCENT and GLOW only —
 * never a dominant background fill. Deliberate divergence from the warm-paper
 * look of sibling brands; do not import their CSS or palette.
 *
 * Design is LOCKED: content changes only going forward; visual/design changes
 * only on explicit request. See CLAUDE.md § Design system canon.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Color */
  --black:       #0B0B0B;   /* deep black — primary background */
  --white:       #FFFFFF;
  --charcoal:    #1A1A1A;   /* elevated surfaces / cards */
  --gray:        #666666;   /* decorative linework, large muted text */
  --gray-text:   #9A9A9A;   /* small secondary text on black — AA-safe */
  --accent:      #FF6A00;   /* ShipPoint Orange — accent only */
  --accent-glow: #FFBA33;   /* Orange Glow — glow/shadow layers, not fills */

  /* Surfaces derived from the palette (kept few and consistent) */
  --line:        rgba(255, 255, 255, 0.08);  /* hairline dividers on black */
  --line-strong: rgba(255, 255, 255, 0.16);  /* card borders */
  --charcoal-2:  #202020;                     /* inputs / nested surfaces */
  --black-plate: #020202;                     /* the logo art's plate black — hero bg */

  /* Orange glow — the ONE canonical glow recipe. Compose, don't reinvent. */
  --glow-sm: 0 0 0 1px rgba(255, 106, 0, 0.35),
             0 0 12px -2px rgba(255, 106, 0, 0.45);
  --glow-md: 0 0 0 1px rgba(255, 106, 0, 0.30),
             0 0 24px -4px rgba(255, 106, 0, 0.45),
             0 0 60px -10px rgba(255, 186, 51, 0.30);
  --glow-lg: 0 0 40px -6px rgba(255, 106, 0, 0.40),
             0 0 100px -20px rgba(255, 186, 51, 0.35);

  /* Typography — Inter throughout */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur:      280ms;

  /* Layout */
  --max:  1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r:    10px;   /* standard radius */
  --r-lg: 18px;   /* card radius */
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* fixed-nav offset for anchor jumps */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Drafting-grid atmosphere: a faint blueprint lattice over deep black. */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px, -1px -1px;
  background-attachment: fixed;
}

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

/* Visible focus for keyboard users everywhere. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography scale ────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.eyebrow--accent { color: var(--accent); }

.display {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 800;
}
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--white);
  font-weight: 400;
}
.muted { color: var(--gray-text); }
.accent { color: var(--accent); }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .h2 { margin-top: 0.75rem; }
.section__head .lead { margin-top: 1.25rem; }

/* A short drafting rule used above headings. */
.rule {
  width: 48px; height: 2px; border: 0; margin: 0 0 1.5rem;
  background: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ── Navigation (fixed) ──────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
/* Two-line lockup mirroring the logo: BUILDPOINT over small RENOVATIONS. */
.brand__wordmark { display: flex; flex-direction: column; font-weight: 800; letter-spacing: 0.02em; line-height: 1.05; }
.brand__sub {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.37em;
  color: var(--gray-text); margin-top: 2px;
}
.brand .dot { color: var(--accent); }
.nav__links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-text);
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: inline-flex; align-items: center; gap: 1.25rem; }
.nav__phone { font-size: 0.9rem; font-weight: 500; color: var(--gray-text); }
.nav__phone:hover { color: var(--white); }
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 0.8rem 1.4rem; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--black); box-shadow: var(--glow-sm); }
.btn--primary:hover { box-shadow: var(--glow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--white); }
.btn--block { width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
  /* Solid plate black matching the logo art (#020202) so the B melts into the
     hero seamlessly; fades out at the bottom so the blueprint grid re-emerges. */
  background: linear-gradient(180deg,
    var(--black-plate) 0%,
    var(--black-plate) 82%,
    rgba(2, 2, 2, 0) 100%);
}
/* Off-canvas orange glow bloom — atmosphere, not a fill. */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -20%; right: -10%; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.16), rgba(255, 186, 51, 0.06) 40%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
/* Two columns inside the container so the B stays bounded to the same width
   as the sections below (never drifts to the viewport edge on wide screens). */
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero .display { margin-top: 1.5rem; max-width: 14ch; }
.hero .display .accent { color: var(--accent); text-shadow: 0 0 40px rgba(255, 106, 0, 0.35); }
.hero__positioning { margin-top: 1.75rem; max-width: 56ch; }
.hero__caps {
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center;
  max-width: 56ch;
}
.cap {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
}
.cap::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.6rem; vertical-align: middle; box-shadow: var(--glow-sm); }

/* Staggered hero load-in */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.7s var(--ease) forwards; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; animation: none; } }

/* ── Cards / grids ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Fixed two-up (e.g. How We Work → 2×2 for four cards); stacks on mobile. */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: rgba(255, 106, 0, 0.5); transform: translateY(-3px); }
.card__num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
}
.card .h3 { margin: 1rem 0 0.6rem; }
.card p { margin: 0; color: var(--gray-text); }

/* Two-column prose split */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.prose p { color: var(--gray-text); margin: 0 0 1.1rem; max-width: 62ch; }
.prose p strong { color: var(--white); font-weight: 600; }

/* Callout — used for the ShipPoint Center forward-looking project note */
.callout {
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--glow-sm);
}
.callout .eyebrow { margin-bottom: 0.6rem; }
.callout p { margin: 0; color: var(--white); }

/* ── Gallery: before/after pairs ─────────────────────────────────────────── */
/* Three rows (projects), each a two-up: left = before, right = after. */
.ba-grid { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); }
.ba-pair {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.ba-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); text-align: center; padding: 1rem;
  /* faint drafting cross-hatch to read as a placeholder, not a broken image */
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px);
}
/* Real photos drop straight in and cover the tile. */
.ba-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tile__badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(11, 11, 11, 0.7); color: var(--white);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ba-tile--after .ba-tile__badge { background: var(--accent); color: var(--black); }
.ba-tile__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.ba-pair__caption { grid-column: 1 / -1; margin-top: 0.25rem; font-size: 0.9rem; color: var(--gray-text); }

/* ── Experience ──────────────────────────────────────────────────────────── */
.figure-stat {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--charcoal); border: 1px solid var(--line-strong);
}
.figure-stat__num { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; text-shadow: 0 0 40px rgba(255,106,0,0.3); }
.figure-stat__label { color: var(--gray-text); max-width: 40ch; }

/* ── Registration ────────────────────────────────────────────────────────── */
.status-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 60ch; }
.status-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem 1.5rem; background: var(--charcoal);
  border: 1px solid var(--line-strong); border-radius: var(--r);
}
.status-dot { width: 10px; height: 10px; margin-top: 0.5rem; border-radius: 50%; background: var(--accent-glow); box-shadow: 0 0 10px rgba(255,186,51,0.7); }
.status-item p { margin: 0; }
.status-item .status-label { font-weight: 600; color: var(--white); }
.status-item .status-detail { color: var(--gray-text); font-size: 0.95rem; margin-top: 0.2rem; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }

.contact-info dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-text); margin-top: 1.5rem; }
.contact-info dd { margin: 0.35rem 0 0; font-size: 1.05rem; font-weight: 500; }
.contact-info dd a:hover { color: var(--accent); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--gray-text); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--white);
  background: var(--charcoal-2); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 0.8rem 1rem; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--glow-sm);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--gray-text); font-size: 0.9rem; }
.footer__meta a:hover { color: var(--accent); }
.footer__legal { color: var(--gray); font-size: 0.85rem; }

/* ── Hero B-mark backdrop (the actual logo art) ──────────────────────────── */
/* assets/hero-b.jpg — the brand B on black. screen-blend melts the black
   plate into the page background so only letter + glow + linework show.
   Decorative only (aria-hidden, empty alt); sits behind the hero copy. */
.hero__draft {
  z-index: 0; justify-self: end; align-self: center;
  width: 100%; max-width: 560px; height: auto; pointer-events: none;
  mix-blend-mode: screen;
  /* Feather the crop edges so the image's rectangular bounds vanish into the plate. */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 60% 47%, #000 42%, transparent 86%);
          mask-image: radial-gradient(ellipse 62% 70% at 60% 47%, #000 42%, transparent 86%);
}
@media (max-width: 860px) {
  /* Single column: the B stacks below the copy as an in-flow block.
     Negative margins absorb the art's built-in black padding around the B. */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__draft {
    justify-self: center;
    width: min(78vw, 420px); max-width: 420px;
    margin: -1rem auto -2.5rem;
  }
  /* Hold the solid plate longer so the grid doesn't bleed through the art. */
  .hero {
    background: linear-gradient(180deg,
      var(--black-plate) 0%,
      var(--black-plate) 92%,
      rgba(2, 2, 2, 0) 100%);
  }
}

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
