/* ==========================================================================
   BlackStar Contractors — Site Stylesheet
   Brand: BlackStar Builders Inc. · Gold #C9932E / Navy #0B3B61 (logo) · Montserrat
   Theme: light (warm off-white surfaces, charcoal text, gold accents)
   ========================================================================== */

:root {
  --bg: #f7f5f1;
  --bg-soft: #efebe5;
  --surface: #ffffff;
  --surface-2: #f1ede7;
  --ink: #1f1c1a;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);
  --gold: #c9932e;          /* logo gold: fills, rules, borders */
  --gold-dark: #b8841f;     /* button hover */
  --gold-deep: #a97b22;     /* large display text on light bg (>=3:1) */
  --accent-text: #85611a;   /* small gold text on light bg (>=4.5:1) */
  --text: #2e2a27;
  --muted: #4f4a45;
  --header-h: 84px;
  --radius: 10px;
  --container: 1200px;
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.1);
  --shadow-sm: 0 4px 18px rgba(17, 17, 17, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Century Gothic", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--ink); }

ul { list-style: none; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.section-lead { color: var(--muted); max-width: 720px; }

.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }
.text-center .eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}
.text-center .section-lead { margin-inline: auto; }

section { padding: 96px 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s ease;
}

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 147, 46, 0.35); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--accent-text); transform: translateY(-2px); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.75); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.95); color: var(--ink); border-color: #fff; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(247, 245, 241, 0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(1320px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 52px; width: auto; }
.brand-tagline {
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 210px;
  line-height: 1.4;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}
.brand-tagline strong {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-text); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  padding: 11px 22px;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.dropdown a:hover { color: var(--accent-text); background: rgba(201, 147, 46, 0.07); }

.header-cta, .main-nav a.header-cta, .main-nav a.header-cta:hover { white-space: nowrap; padding: 12px 22px; color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  /* leave room for the services strip (82px) so it is visible without scrolling */
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 56px;
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* video stays clear left to right: an even 28% tint (no one-sided wash) keeps the
     white headline readable on bright frames, plus a soft fade into the page below */
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(247, 245, 241, 0) 18%),
    rgba(0, 0, 0, 0.28);
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5); }
.hero .eyebrow::before { background: var(--gold); }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.45);
  max-width: 860px;
  margin: 18px 0 24px;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.45);
  font-size: 1.05rem;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }


/* ---------- Services marquee ---------- */

.services-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.services-strip:hover .marquee { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group .dot { color: var(--gold); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(201, 147, 46, 0.4);
  border-radius: var(--radius);
  z-index: -1;
}

.split-body p { color: var(--muted); margin-bottom: 18px; }
.split-body .btn { margin-top: 12px; }

/* ---------- Stats ---------- */

.stats {
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat {
  padding: 44px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
}
.stat-value sup { font-size: 0.5em; }
.stat-label {
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Expertise cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}

.x-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.x-card:hover { transform: translateY(-8px); border-color: rgba(201, 147, 46, 0.55); box-shadow: var(--shadow); }

.x-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.x-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.x-card:hover .x-card-media img { transform: scale(1.07); }
.x-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 45%);
}

.x-card-body { padding: 26px 28px 30px; }
.x-card h3 {
  color: var(--ink);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.x-card h3 .arrow { color: var(--gold); transition: transform 0.3s ease; }
.x-card:hover h3 .arrow { transform: translateX(6px); }
.x-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------- Projects ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 44px 0 12px;
}
.filter-btn {
  padding: 10px 20px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.p-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 147, 46, 0.5); }
.p-card.hidden { display: none; }

.p-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.p-card:hover .p-card-media img { transform: scale(1.06); }

.p-card-body { padding: 22px 24px 26px; border-top: 2px solid var(--gold); }
.p-card h3 { font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 6px; }
.p-card .loc {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.p-card .desc { margin-top: 10px; font-size: 0.96rem; color: var(--muted); line-height: 1.6; }

.badge {
  display: inline-block;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 30px;
  margin-top: 56px;
}
.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.t-card:hover { transform: translateY(-8px); border-color: rgba(201, 147, 46, 0.5); box-shadow: var(--shadow); }
.t-card-media { aspect-ratio: 3 / 4; overflow: hidden; }
.t-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.t-card:hover .t-card-media img { transform: scale(1.05); }
.t-card-body { padding: 24px; border-top: 2px solid var(--gold); }
.t-card h3 { font-size: 1.1rem; letter-spacing: 0.05em; }
.t-card .role {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Testimonials ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 56px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.quote-card:hover { transform: translateY(-6px); border-color: rgba(201, 147, 46, 0.45); }
.quote-card .mark {
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold);
}
.quote-card blockquote { font-size: 1rem; color: var(--muted); line-height: 1.75; flex: 1; }
.quote-card cite {
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quote-card cite span { display: block; margin-top: 4px; font-weight: 500; color: var(--accent-text); letter-spacing: 0.08em; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 110px) 0 90px;
  overflow: hidden;
  background: var(--bg);
}
.page-hero-media {
  position: absolute;
  inset: 0 0 0 30%;   /* photo sits right of the title; left side is washed out anyway, so this keeps images less enlarged (sharper) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* same off-white wash as the home hero, fading into the page at the bottom */
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(247, 245, 241, 0) 35%),
    linear-gradient(100deg, rgba(247, 245, 241, 0.96) 30%, rgba(247, 245, 241, 0.7) 52%, rgba(247, 245, 241, 0.1) 80%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.page-hero .crumbs {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero .crumbs a { color: var(--accent-text); }

/* ---------- Prose / content blocks ---------- */

.prose { max-width: 820px; }
.prose p { color: var(--muted); margin-bottom: 20px; font-size: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.feature-quote {
  margin: 40px 0;
  padding: 34px 38px;
  border-left: 3px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-quote blockquote { color: var(--ink); font-size: 1rem; line-height: 1.8; }
.feature-quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Capabilities list ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 34px;
  margin-top: 40px;
}
.cap-grid li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--muted);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.cap-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  text-align: center;
}
.cta-band-media { position: absolute; inset: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(239, 235, 229, 0.9);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 820px;
  margin: 0 auto 18px;
}
.cta-band { border-top: 1px solid var(--line); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; }

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.contact-info > p { color: var(--muted); margin-bottom: 34px; }

.info-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .ico {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 147, 46, 0.5);
  border-radius: 8px;
  color: var(--accent-text);
  background: rgba(201, 147, 46, 0.06);
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-list p, .info-list a { font-size: 1rem; color: var(--text); }
.info-list a:hover { color: var(--accent-text); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--accent-text); }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(201, 147, 46, 0.18);
}
.form-note { margin-top: 16px; font-size: 0.84rem; color: var(--muted); }

.map-wrap {
  margin-top: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.35);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand img { height: 124px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 0.96rem; font-style: italic; }

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 20px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--muted); font-size: 0.96rem; }
.site-footer ul a:hover { color: var(--accent-text); }

.footer-contact li { color: var(--muted); font-size: 0.96rem; margin-bottom: 10px; }
.footer-contact strong { color: var(--ink); font-weight: 600; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--accent-text); }

.social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.25s ease;
}
.social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent-text); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; flex-wrap: wrap; }
}

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

@media (max-width: 1080px) {
  .card-grid, .project-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .brand-tagline { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  section { padding: 72px 0; }
  .brand img { height: 42px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* explicit height: the header's backdrop-filter makes it the containing block, so bottom: 0 would collapse the menu */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    padding: 32px 6%;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 18px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .main-nav a.header-cta { display: flex; margin-top: 28px; padding: 16px 22px; justify-content: center; border: 1px solid transparent; }

  .hero::after { background: linear-gradient(to top, var(--bg) 0%, rgba(247, 245, 241, 0) 22%), rgba(0, 0, 0, 0.28); }
  .page-hero::after { background: rgba(247, 245, 241, 0.86); }
  .page-hero-media { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
  .split-media::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .card-grid, .project-grid, .quote-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: minmax(0, 340px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
