/* Beneficial Builders Group — shared styles */
:root {
  --navy: #1f4659;
  --slate: #2c5a73;
  --blue: #3a78a8;
  --sky: #c9dbe8;
  --mist: #eef4f8;
  --ink: #1b2730;
  --muted: #5b6b77;
  --line: #dde6ec;
  --white: #ffffff;
  --radius: 10px;
  --max: 1180px;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--head);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: .8em;
  display: block;
}
.section { padding: 88px 0; }
.section--tint { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 60px; width: auto; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  font-family: var(--head); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); text-decoration: none; font-weight: 600; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--navy); }
.nav-links .nav-phone {
  border: 2px solid var(--slate); padding: 9px 16px; border-radius: 999px; letter-spacing: .08em;
}
.nav-links .nav-phone:hover { background: var(--slate); color: #fff; border-bottom-color: var(--slate); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--slate); margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--slate);
  background: var(--slate); color: #fff; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Photo / video placeholders (replace with real media) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--slate), var(--blue));
  color: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  min-height: 220px;
}
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: calc(100vh - 84px); display: flex; align-items: center; padding: 60px 0; }
.hero-media { position: absolute; inset: 0; border-radius: 0; min-height: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,45,60,.55), rgba(20,45,60,.1)); }
.hero-media .ph-label { position: absolute; right: 24px; bottom: 20px; z-index: 1; }
.hero-card {
  position: relative; z-index: 2; background: #fff; border-radius: 14px;
  padding: 44px 44px 40px; max-width: 520px; box-shadow: 0 30px 60px rgba(10,30,45,.25);
}
.hero-card img { width: 100%; max-width: 400px; margin: 0 auto 26px; }
.hero-card p { color: var(--muted); font-size: 1.05rem; text-align: center; }
.hero-title {
  font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; text-align: center;
  color: var(--blue); margin: 0 0 12px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 2rem; font-weight: 600; }
.stat span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .2s;
}
.card:hover { border-color: var(--sky); box-shadow: 0 14px 30px rgba(31,70,89,.08); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--mist); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Projects ---------- */
.projects { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
.projects .ph { min-height: 0; }
.projects .tall { grid-row: span 2; }
.projects .wide { grid-column: span 2; }
.project-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; z-index: 1;
  background: linear-gradient(transparent, rgba(10,30,45,.75)); text-align: left;
  letter-spacing: .08em; font-size: .78rem;
}
.video-frame { aspect-ratio: 16 / 9; min-height: 0; }
.play {
  width: 74px; height: 74px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}

/* ---------- Featured project (Projects page) ---------- */
.feature-video {
  width: 100%; aspect-ratio: 16 / 9; background: #0e2330; border-radius: 14px;
  object-fit: cover; box-shadow: 0 30px 60px rgba(10,30,45,.18);
}
.feature-meta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; margin-top: 40px; align-items: start; }
.feature-meta p { font-size: 1.05rem; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts strong { color: var(--navy); font-weight: 600; text-align: right; }
.phase-intro { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 34px; }
.phase { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.phase video { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0e2330; }
.phase--wide video { aspect-ratio: 16 / 9; }
.sub-head { margin: 56px 0 18px; font-size: 1.3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 14px; }
.photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.04); }
.photo--big { grid-column: span 2; grid-row: span 2; }
.photo-grid { grid-auto-flow: dense; }
.photo--wide { grid-column: span 2; }
.feature-photo { aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: 0 30px 60px rgba(10,30,45,.18); }
.photo-grid--two { grid-template-columns: 1fr 1fr; grid-auto-rows: 420px; }
.media-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; margin-top: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.checks--single { columns: 1; }
.phase--portrait video { aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .media-split { grid-template-columns: 1fr; gap: 30px; }
  .photo-grid--two { grid-template-columns: 1fr; grid-auto-rows: 300px; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,20,28,.92);
  display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .photo--big { grid-column: span 2; grid-row: span 2; }
}
.phase figcaption { padding: 16px 20px; font-family: var(--head); font-weight: 600; color: var(--navy); }
.phase figcaption span { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
@media (max-width: 760px) { .feature-meta { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- License badges ---------- */
.license-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  font-family: var(--head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--mist); color: var(--slate); border: 1px solid var(--sky);
  padding: 7px 14px; border-radius: 999px; font-weight: 600;
}
.license-link { font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
.license-link:hover { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 70px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: var(--sky); }

/* ---------- Page banner ---------- */
.page-banner { background: var(--mist); padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.page-banner p { color: var(--muted); max-width: 640px; font-size: 1.08rem; margin: 0; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.split .ph { min-height: 420px; }
.timeline { border-left: 2px solid var(--sky); padding-left: 28px; margin: 0; list-style: none; }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue);
}
.timeline strong { font-family: var(--head); color: var(--navy); display: block; }
.timeline p { color: var(--muted); margin: 4px 0 0; }
.checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.checks li { padding: 8px 0 8px 30px; position: relative; break-inside: avoid; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 9px;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { padding-top: 0; }
.info-item .icon { margin: 0; flex: 0 0 52px; }
.info-item h3 { margin: 0 0 4px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-item a, .info-item address { font-style: normal; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.info-item a:hover { color: var(--blue); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 20px 40px rgba(31,70,89,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fbfdfe;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); border-color: var(--blue); }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; display: none; }
.map { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #13303f; color: #b9cad6; padding: 60px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--head); color: #fff; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #dfeaf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--head); color: #fff; font-size: 1.25rem; letter-spacing: .12em; margin-bottom: 4px; }
.footer-sub { font-family: var(--head); font-size: .72rem; letter-spacing: .5em; color: var(--sky); margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .projects { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
  .nav { height: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .nav-phone { text-align: center; margin-top: 10px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-card { padding: 30px 24px; }
  .grid-4, .grid-3, .grid-2, .projects, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .projects { grid-auto-rows: 220px; }
  .projects .tall { grid-row: span 1; }
  .projects .wide { grid-column: span 1; }
  .checks { columns: 1; }
  .form { padding: 24px; }
}

/* ---------- YouTube embeds ---------- */
iframe { border: 0; display: block; }
.ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.phase iframe { width: 100%; aspect-ratio: 4 / 5; background: #0e2330; }
.phase--wide iframe { aspect-ratio: 16 / 9; }
