/* ============================================================
   Master Build Construction Group — custom stylesheet
   Palette: deep charcoal + warm oak/bronze (premium builder feel)
   ============================================================ */
:root {
  /* Master Build brand palette — warm grey, signature orange (#f08020), gold (#edbd74) */
  --ink:        #23262b;   /* warm charcoal text */
  --ink-soft:   #3a3f46;
  --muted:      #6b7076;
  --paper:      #ffffff;
  --sand:       #f7f5f0;   /* warm off-white band */
  --line:       #e8e3d8;
  --accent:     #f08020;   /* brand orange — CTAs, links */
  --accent-dark:#d96d11;
  --gold:       #edbd74;   /* brand gold — stars, eyebrow */
  --hero-dark:  #22252a;   /* deep warm charcoal overlay */
  --radius:     10px;
  --shadow:     0 12px 30px rgba(34,37,42,.10);
  --font: "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 22px; list-style: none; }
.menu a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.menu a:hover, .menu a.active { color: var(--accent-dark); text-decoration: none; }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }
.dropdown { position: relative; }
.dropdown .dd-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); min-width: 220px; padding: 8px 0;
}
.dropdown:hover .dd-menu, .dropdown:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 18px; font-weight: 500; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background-color: var(--hero-dark);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  /* REPLACE this image with your best finished-project photo:
     img/hero.jpg  */
  background-image: url('../img/hero.jpg');
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.28)); }
.hero-inner { position: relative; z-index: 2; padding: 40px 0; }
.hero-review { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 30px; margin-bottom: 18px; font-size: .92rem; color: #eee8dc; }
.hero-review a { color: #fff; font-weight: 600; }
.hero-review a:hover { color: var(--gold); text-decoration: none; }
.hero-review .stars { color: var(--gold); letter-spacing: 1px; font-size: .95rem; }
.hero-logo { height: 52px; width: auto; margin-bottom: 22px; opacity: .96; display: block; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; max-width: 20ch;
  margin-top: 4px; margin-bottom: 18px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 54ch; color: #e9e4db; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero .proof { display: flex; gap: 26px; flex-wrap: wrap; font-size: .92rem; color: #dcd6ca; }
.hero .proof strong { color: #fff; }
.hero .proof .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 15px 28px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn--ghost { background: transparent; border: 2px solid #fff; margin-left: 12px; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- Quick quote bar ---------- */
.quick-quote-wrap { background: var(--sand); border-block: 1px solid var(--line); padding: 22px 0; }
.quick-quote {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px; box-shadow: var(--shadow);
}
.quick-quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.qq-text .qq-label { font-weight: 700; font-size: 1.05rem; color: var(--ink); display: block; }
.qq-text .qq-sub { color: var(--muted); font-size: .88rem; }
.qq-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1; justify-content: flex-end; }
.qq-form select {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: #fff; color: var(--ink); min-width: 170px;
}
.qq-form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
@media (max-width: 720px) {
  .quick-quote-inner { flex-direction: column; text-align: center; align-items: stretch; }
  .qq-form { flex-direction: column; width: 100%; justify-content: stretch; }
  .qq-form select { width: 100%; min-width: 0; }
  .qq-form .btn { width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--accent-dark); font-weight: 700; font-size: .8rem; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

.sand { background: var(--sand); border-block: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-tile {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform .15s, box-shadow .15s;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-tile .ph {
  position: relative; width: 100%; height: 210px; overflow: hidden;
  background: linear-gradient(135deg,#e6ded0,#cec2ad); color: #fff; font-weight: 700;
}
.service-tile .ph img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.service-tile .body { padding: 20px; position: relative; }
.service-tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-tile p { color: var(--muted); font-size: .92rem; }
.service-tile .link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; }

/* ---------- Portfolio ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 260px; width: 100%;
}
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.proj:hover img { transform: scale(1.04); }
.proj video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.proj .cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff;
}
.proj .cap h4 { font-size: 1.05rem; }
.proj .cap span { font-size: .85rem; opacity: .85; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.step { border-left: 3px solid var(--accent); padding: 8px 0 8px 22px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; color: var(--accent); font-size: 1.3rem; }
.step h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.quote .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; font-style: italic; }
.quote .who { font-weight: 700; font-size: .9rem; }
.quote .where { color: var(--muted); font-size: .82rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; background-color: var(--hero-dark); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(185,138,61,.25), rgba(0,0,0,.4)); }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: 12px; }
.cta-inner p { color: #ddd6c9; margin-bottom: 26px; }

/* ---------- FAQ / prose ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin: 30px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { padding-left: 20px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; margin-top: 6px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-dark); color: #c9c2b6; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c9c2b6; display: block; font-size: .92rem; margin-bottom: 9px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2e2e2e; padding-top: 20px; font-size: .82rem; color: #8f887b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Pages ---------- */
.page-hero { background: var(--hero-dark); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: clamp(1.9rem,4vw,2.6rem); }
.page-hero p { color: #d9d2c6; margin-top: 8px; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #b6ae9f; margin-bottom: 8px; }
.breadcrumb a { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.channel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 18px;
  color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.channel-icon { font-size: 2rem; margin-bottom: 12px; }
.channel h3 { font-size: 1.05rem; margin-bottom: 6px; }
.channel span { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.channel em { color: var(--muted); font-style: normal; font-size: .82rem; margin-top: 4px; }

.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 18px; }
.info-list { list-style: none; padding: 0; margin-bottom: 26px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink-soft); font-size: 1rem; }
.info-list li span { font-size: 1.15rem; line-height: 1.2; }
.info-list a { color: var(--accent-dark); font-weight: 600; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Showroom split band ---------- */
.split-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.split-band .split-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.split-band .split-body { padding: 40px 40px 40px 0; }
.split-band .split-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin-bottom: 12px; }
.split-band .split-body p { color: var(--muted); margin-bottom: 24px; }
.split-band .split-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .split-band { grid-template-columns: 1fr; }
  .split-band .split-img img { min-height: 220px; }
  .split-band .split-body { padding: 24px 20px 32px; }
}

/* ---------- See More toggles ---------- */
.see-more-wrap { text-align: center; margin-top: 32px; }
.see-more {
  background: var(--paper) !important; color: var(--ink) !important;
  border: 2px solid var(--line) !important; margin-left: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.see-more:hover { background: var(--sand) !important; border-color: var(--accent) !important; color: var(--accent-dark) !important; }
.gallery.hidden-gallery, .vid-grid.hidden-gallery { display: none; }

/* ---------- Video cards ---------- */
.vid-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.vid-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 260px; width: 100%; background: #000; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  transition: transform .15s, box-shadow .15s;
}
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vid-card video { width: 100%; height: 100%; object-fit: cover; }
.vid-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(240,128,32,.92); color: #fff; font-size: 26px;
  display: grid; place-items: center; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .15s, background .15s;
}
.vid-play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--accent-dark); }
.vid-label {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
  font-weight: 600; font-size: .9rem; pointer-events: none;
}

/* ---------- Sticky chat button ---------- */
.chat-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: #25D366; color: #fff !important;   /* WhatsApp green */
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 6px 18px rgba(37,211,102,.45);
  transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.08); background: #1ebe5b; text-decoration: none; }

/* ---------- Open/closed status ---------- */
.open-status .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.open-status .dot.open  { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.open-status .dot.closed{ background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.22); }
#openLabel { font-weight: 600; color: #e6e1d6; font-size: .92rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 20px; left: 20px; z-index: 90;
  background: var(--hero-dark); color: #fff !important;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  border: 1px solid rgba(255,255,255,.2);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); text-decoration: none; }

/* ---------- Visit scheduler (Calendly-ready) ---------- */
.visit-band { background: linear-gradient(120deg, var(--hero-dark), #2a3644); color: #fff; }
.visit-inner { max-width: 680px; margin-inline: auto; text-align: center; }
.visit-inner h2 { font-size: clamp(1.6rem,4vw,2.2rem); margin-bottom: 12px; }
.visit-inner p { color: #d5cfc2; margin-bottom: 26px; }
.visit-inner .btn + .btn { margin-left: 12px; }

/* ---------- Gold stars ---------- */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Page hero breadcrumb accent ---------- */
.breadcrumb a { color: var(--accent); }

/* ---------- Footer brand row ---------- */
.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; opacity: .92; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 6%; gap: 0; box-shadow: 0 20px 30px rgba(0,0,0,.12);
  }
  .menu.open { display: flex; }
  .menu li { width: 100%; }
  .menu a, .menu .nav-cta { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .menu .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; color: #fff !important; }
  .dropdown .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .dropdown .dd-menu a { border-bottom: 0; padding: 10px 0; }
  .form .row { grid-template-columns: 1fr; }
}
