/* ============================================================
   BELL ENGINEERING & CONSTRUCTION — section stylesheet
   Design system: "The Drawing Set"
   Ink #14100B · Paper #F5F2EA · Print Blue #1B3B5F
   Line Blue #E8EEF4 · Hi-Vis Amber #E07A1F
   Type: Fraunces (display) · Outfit (body) · IBM Plex Mono (data)
   ============================================================ */
:root {
  --ink: #14100B;
  --paper: #F5F2EA;
  --blue: #1B3B5F;
  --blue-deep: #142C47;
  --line: #E8EEF4;
  --amber: #E07A1F;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Outfit", system-ui, -apple-system, sans-serif;
  --disp: "Fraunces", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 900; background: var(--paper); border-bottom: 1px solid rgba(20,16,11,.12); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.nav-logo { font: 700 20px/1 var(--disp); text-decoration: none; letter-spacing: .02em; }
.nav-logo em { font-style: italic; color: var(--blue); }
.nav-links { display: flex; gap: 20px; margin-left: auto; list-style: none; }
.nav-links a { font: 500 14px/1 var(--body); text-decoration: none; letter-spacing: .03em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-call { font: 600 14px/1 var(--body); text-decoration: none; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.nav-call:hover { background: var(--blue); }
@media (max-width: 880px) { .nav-links { display: none; } .nav-call { margin-left: auto; } }

/* ---------- BREADCRUMB ---------- */
.crumb { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 26px 0 0; }
.crumb a { text-decoration: none; opacity: .65; }
.crumb a:hover { opacity: 1; color: var(--blue); }
.crumb span { color: var(--blue); }

/* ---------- HERO ---------- */
.hero { padding: 30px 0 44px; }
.hero-eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.hero h1 { font: 600 clamp(38px, 6vw, 64px)/1.04 var(--disp); letter-spacing: -.01em; max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--blue); }
.hero p.lede { margin-top: 20px; max-width: 58ch; font-size: 19px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-block; font: 600 16px/1 var(--body); text-decoration: none; padding: 15px 26px; border-radius: 10px; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #C96A15; }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- LICENSE STRIP ---------- */
.lic { border-top: 1px solid rgba(20,16,11,.14); border-bottom: 1px solid rgba(20,16,11,.14); padding: 14px 0; }
.lic .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; }
.lic b { color: var(--blue); font-weight: 600; }

/* ---------- SHEET INDEX (the tile grid) ---------- */
.sheet-index { background: var(--blue); color: var(--line); padding: 64px 0 72px; margin-top: 52px;
  background-image:
    linear-gradient(rgba(232,238,244,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,238,244,.055) 1px, transparent 1px);
  background-size: 34px 34px; }
.sheet-index .sec-eyebrow { color: var(--line); opacity: .7; }
.sheet-index h2 { font: 600 clamp(30px, 4.4vw, 44px)/1.08 var(--disp); margin-top: 12px; }
.sheet-index h2 em { font-style: italic; font-weight: 500; }
.sheet-index .sec-note { margin-top: 12px; max-width: 62ch; opacity: .82; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.sheet { display: flex; flex-direction: column; gap: 34px; min-height: 178px; padding: 18px 18px 16px; text-decoration: none;
  border: 1.5px solid rgba(232,238,244,.5); border-radius: 6px; color: var(--line); background: rgba(20,44,71,.5);
  transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.sheet:hover { transform: translateY(-4px); background: var(--line); color: var(--blue-deep); border-color: var(--line); }
.sheet-no { font: 600 12px/1 var(--mono); letter-spacing: .1em; opacity: .75; }
.sheet-name { margin-top: auto; font: 600 22px/1.15 var(--disp); }
.sheet-desc { font: 400 14px/1.45 var(--body); opacity: .8; }
.sheet-sub { outline: 1.5px dashed rgba(232,238,244,.45); outline-offset: -7px; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .sheet:hover { transform: none; } }

/* ---------- GENERIC SECTIONS ---------- */
.sec { padding: 64px 0; }
.sec-eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.sec h2 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--disp); margin-top: 12px; }
.sec h2 em { font-style: italic; font-weight: 500; color: var(--blue); }
.sec .lede { margin-top: 14px; max-width: 62ch; }

/* ---------- SCOPE LIST (subpages) ---------- */
.scope { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 30px; margin-top: 30px; list-style: none; }
.scope li { padding: 14px 0 14px 30px; border-top: 1px solid rgba(20,16,11,.14); position: relative; font-size: 16px; }
.scope li::before { content: "▸"; position: absolute; left: 4px; color: var(--amber); }

/* ---------- PHOTO STRIP ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 30px; }
.photos img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-cap { margin-top: 12px; font: 500 13px/1.5 var(--mono); letter-spacing: .04em; opacity: .7; }

/* ---------- SERVICES GRID (index page) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; margin-top: 36px; }
.svc h3 { font: 600 20px/1.2 var(--disp); }
.svc p { margin-top: 8px; font-size: 15px; opacity: .85; }

/* ---------- FEATURED PROJECT ---------- */
.featured { background: var(--ink); color: var(--paper); }
.featured .sec-eyebrow { color: var(--amber); }
.featured h2 em { color: var(--amber); }
.featured .meta { font: 500 13px/1.6 var(--mono); letter-spacing: .05em; margin-top: 10px; opacity: .75; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid rgba(20,16,11,.14); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(20,16,11,.14); }
.faq summary { font: 600 17px/1.4 var(--body); padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--disp); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; max-width: 70ch; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--blue); color: var(--line); text-align: center; padding: 70px 0;
  background-image:
    linear-gradient(rgba(232,238,244,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,238,244,.05) 1px, transparent 1px);
  background-size: 34px 34px; }
.cta-band h2 { font: 600 clamp(30px, 4.4vw, 46px)/1.08 var(--disp); }
.cta-band h2 em { font-style: italic; font-weight: 500; }
.cta-band p { margin: 14px auto 0; max-width: 54ch; opacity: .85; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-ghost { border-color: var(--line); color: var(--line); }
.cta-band .btn-ghost:hover { background: var(--line); color: var(--blue-deep); }

/* ---------- SIBLING LINKS (subpages) ---------- */
.siblings { padding: 40px 0 64px; }
.siblings h3 { font: 600 15px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.sib-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sib-row a { font: 500 14px/1 var(--body); text-decoration: none; border: 1.5px solid rgba(20,16,11,.3); padding: 10px 16px; border-radius: 999px; }
.sib-row a:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: var(--paper); padding: 44px 0 110px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { font: 500 14px/1 var(--body); text-decoration: none; opacity: .85; }
footer a:hover { opacity: 1; color: var(--amber); }
footer .fine { font: 400 13px/1.6 var(--body); opacity: .6; width: 100%; }

/* ---------- STICKY CALL BAR (mobile) ---------- */
.callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; display: none; }
.callbar a { display: block; text-align: center; font: 600 16px/1 var(--body); text-decoration: none; background: var(--amber); color: var(--ink); padding: 17px; }
@media (max-width: 640px) { .callbar { display: block; } footer { padding-bottom: 140px; } }
