
/* ============================================================
   MUSSELMAN CONTRACTING MARKETING SITE CSS
   This single stylesheet controls the full static website. Each
   section below is intentionally commented for easy editing.
   ============================================================ */

/* ---------- 01. Design variables ---------- */
:root {
  --navy: #0b1020;
  --navy-2: #121a2d;
  --navy-3: #182237;
  --gold: #e7c36f;
  --gold-2: #b8924f;
  --paper: #fbf8f1;
  --paper-2: #f1eadf;
  --stone: #d8d5ca;
  --ink: #151719;
  --muted: #69645c;
  --white: #fff;
  --line: rgba(21, 23, 25, .13);
  --line-light: rgba(255, 255, 255, .16);
  --shadow: 0 24px 60px rgba(11, 16, 32, .18);
  --shadow-deep: 0 30px 90px rgba(11, 16, 32, .32);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1220px;
  --header-h: 82px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

/* ---------- 02. Browser reset and global accessibility ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(231, 195, 111, .85); outline-offset: 4px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.hidden-field { position: absolute; left: -5000px; height: 1px; overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-160%); background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: 999px; font-weight: 900; }
.skip-link:focus { transform: translateY(0); }

/* ---------- 03. Typography helpers ---------- */
.eyebrow { margin: 0 0 12px; color: var(--gold-2); font-size: .74rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: .96; letter-spacing: -.055em; font-size: clamp(3rem, 7vw, 7.3rem); }
.page-title { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: .98; letter-spacing: -.052em; font-size: clamp(3rem, 6.4vw, 6.7rem); }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1; letter-spacing: -.045em; font-size: clamp(2.35rem, 5vw, 5rem); }
.lead { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }

/* ---------- 04. Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; background: var(--white); color: var(--ink); font-size: .78rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(184, 146, 79, .65); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); border-color: transparent; }
.btn--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--muted); background: rgba(255,255,255,.66); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 05. Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 80; height: var(--header-h); background: rgba(11, 16, 32, .82); border-bottom: 1px solid var(--line-light); color: var(--white); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-width: 0; }
.logo img { width: 176px; max-height: 60px; object-fit: contain; border-radius: 14px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: .74rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.nav a { opacity: .78; transition: opacity .22s ease, color .22s ease; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: var(--white); padding: 9px 13px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 06. Hero sections ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 82px) 0 84px; color: var(--white); background: radial-gradient(circle at 18% 12%, rgba(231,195,111,.22), transparent 35%), linear-gradient(135deg, var(--navy), #070a13 56%, #182238); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .52fr); gap: 48px; align-items: end; }
.hero p { color: rgba(255,255,255,.75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius-lg); background: rgba(255,255,255,.16); margin-top: 32px; max-width: 680px; }
.metric { padding: 18px 16px; background: rgba(255,255,255,.08); }
.metric strong { display: block; color: var(--gold); font-family: var(--font-display); font-size: 2.1rem; line-height: 1; font-weight: 500; }
.metric span { display: block; margin-top: 6px; color: rgba(255,255,255,.68); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-card { border: 1px solid var(--line-light); border-radius: var(--radius-xl); background: rgba(255,255,255,.08); box-shadow: var(--shadow-deep); padding: 18px; backdrop-filter: blur(18px); }
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.hero-card p { margin: 16px 5px 0; }
.page-hero { position: relative; overflow: hidden; padding: 74px 0; color: var(--white); background: radial-gradient(circle at 18% 10%, rgba(231,195,111,.20), transparent 36%), linear-gradient(135deg, var(--navy), #080b15 62%, #182238); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs { margin-bottom: 28px; color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a { color: rgba(255,255,255,.78); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- 07. Portfolio cards ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.property-card { position: relative; min-height: 430px; border-radius: var(--radius-xl); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.property-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.property-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,10,19,.94), rgba(7,10,19,.12) 60%); }
.property-card:hover img { transform: scale(1.055); }
.property-card__content { position: absolute; inset: auto 0 0 0; padding: 26px; color: var(--white); }
.property-card small { color: var(--gold); font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.property-card h2, .property-card h3 { margin: 10px 0 8px; font-family: var(--font-display); font-weight: 500; line-height: .95; letter-spacing: -.05em; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.property-card p { margin: 0 0 18px; color: rgba(255,255,255,.76); }

/* ---------- 08. Content grids and cards ---------- */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, .55fr); gap: 30px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,.68); box-shadow: var(--shadow); padding: 32px; }
.image-panel { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 500px; background: var(--navy); box-shadow: var(--shadow); }
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.fact { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--white); }
.fact span { display: block; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 5px; line-height: 1.25; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chapter { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.72); padding: 22px; }
.chapter span { color: var(--gold-2); font-weight: 950; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.chapter h3 { margin: 8px 0 8px; font-family: var(--font-display); font-weight: 500; line-height: 1; letter-spacing: -.04em; font-size: 1.55rem; }
.chapter p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); padding: 28px; }
.service-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.service-card p { margin: 0; color: var(--muted); }
.dark { background: var(--navy); color: var(--white); }
.dark .lead, .dark p { color: rgba(255,255,255,.72); }
.dark .service-card, .dark .chapter { background: var(--navy-2); border-color: var(--line-light); box-shadow: none; }
.dark .chip { background: rgba(255,255,255,.08); border-color: var(--line-light); color: rgba(255,255,255,.72); }

/* ---------- 09. Gallery and filters ---------- */
.gallery-top { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.gallery-top h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; letter-spacing: -.04em; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-btn { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 9px 12px; color: var(--ink); font-size: .7rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.filter-btn.is-active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.gallery-item { position: relative; min-height: 225px; border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: var(--navy); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; min-height: 225px; object-fit: cover; transition: transform .52s ease, filter .52s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.07); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,10,19,.84), transparent 62%); }
.gallery-caption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; color: rgba(255,255,255,.86); text-align: left; font-size: .78rem; line-height: 1.25; }
.gallery-caption strong { display: block; color: var(--white); margin-bottom: 4px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 10. Contact section and forms ---------- */
.contact-band { background: var(--stone); }
.contact-grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(340px,.58fr); gap: 28px; align-items: stretch; }
.contact-card, .contact-form { border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow); padding: 34px; }
.contact-card img { width: 230px; border-radius: 22px; margin-bottom: 24px; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list a { display: flex; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--white); transition: transform .22s ease, border-color .22s ease; }
.contact-list a:hover { transform: translateY(-2px); border-color: rgba(184,146,79,.65); }
.contact-list span { color: var(--muted); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-list strong { text-align: right; }
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; background: var(--white); color: var(--ink); }
textarea { min-height: 128px; resize: vertical; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }

/* ---------- 11. Footer and lightbox ---------- */
.footer { background: #070a13; color: rgba(255,255,255,.72); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer img { width: 148px; border-radius: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; background: rgba(5,7,12,.88); backdrop-filter: blur(10px); }
.lightbox.is-open { display: grid; }
.lightbox-inner { width: min(1100px, 100%); color: var(--white); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 12px; }
.lightbox-caption { margin: 0; font-weight: 850; }
.lightbox-close { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); padding: 10px 13px; font-weight: 950; }
.lightbox img { width: 100%; max-height: 82svh; object-fit: contain; border-radius: 22px; background: var(--navy); }

/* ---------- 12. Responsive layout ---------- */
@media (max-width: 1040px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
}
@media (max-width: 780px) {
  :root { --header-h: 74px; }
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 66px 0; }
  .site-header { position: sticky; }
  .logo img { width: 148px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line-light); border-radius: 24px; background: rgba(11,16,32,.96); box-shadow: var(--shadow-deep); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 14px; }
  .hero { padding-bottom: 58px; }
  .section-head, .gallery-top { display: block; }
  .filter-row { justify-content: flex-start; margin-top: 14px; }
  .portfolio-grid, .gallery-grid, .chapter-grid, .service-grid, .fact-grid, .hero-metrics { grid-template-columns: 1fr; }
  .property-card { min-height: 380px; }
  .image-panel { min-height: 360px; }
  .footer-inner { display: grid; justify-items: start; }
}
