/* ==========================================================================
   Xpert Construction Group — site stylesheet
   Luxury dark theme: black / charcoal / metallic silver, Space Grotesk + Sora
   ========================================================================== */
:root {
  --black: #0a0a0a;
  --ink: #141414;
  --charcoal: #1f1f1f;
  --graphite: #3d3d3d;
  --slate: #646464;
  --silver: #c9cdd3;
  --platinum: #e8eaed;
  --light: #f5f6f7;
  --white: #ffffff;
  --accent: #b9bec7;
  --metal: linear-gradient(135deg, #f4f5f7 0%, #c9cdd3 35%, #8f959e 60%, #dfe2e6 100%);
  --font-head: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1200px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-dark: 0 12px 40px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 400; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: .012em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: .012em; }
h3 { font-size: 1.34rem; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }
.section { padding: 84px 0; }
.section.alt { background: var(--light); }
.section.dark { background: var(--black); color: var(--silver); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--graphite); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section.dark .lead { color: var(--silver); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 15px 34px; border-radius: var(--radius);
  border: 1px solid var(--black); background: var(--black); color: var(--white);
  transition: all .25s ease; cursor: pointer;
}
.btn:hover { background: var(--graphite); border-color: var(--graphite); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn.ghost:hover { background: var(--white); color: var(--black); }
.btn.light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.light:hover { background: var(--platinum); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 62px; width: auto; }
.brand-text { font-family: var(--font-head); color: var(--white); font-weight: 600; letter-spacing: .04em; font-size: 1.05rem; line-height: 1.25; }
.brand-text span { display: block; font-size: .62rem; letter-spacing: .34em; color: var(--accent); font-weight: 400; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--platinum); font-family: var(--font-head); font-size: .88rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 8px 2px; border-bottom: 2px solid transparent; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--accent); }
.nav-links .has-sub { position: relative; }
.nav-links .sub {
  display: none; position: absolute; top: 100%; left: -14px; background: var(--ink);
  min-width: 240px; padding: 10px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 0 0 6px 6px; box-shadow: var(--shadow-dark);
}
.nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { display: block; }
.nav-links .sub a { display: block; padding: 10px 18px; border: 0; font-size: .82rem; text-transform: none; letter-spacing: .02em; }
.nav-links .sub a:hover { background: var(--charcoal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-phone small { display: block; color: var(--accent); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--white); background: var(--black); }
.hero.short { min-height: 46vh; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,.82) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: var(--white); max-width: 900px; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--platinum); margin: 22px 0 34px; max-width: 720px; font-weight: 300; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .trust { margin-top: 42px; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero .trust b { color: var(--white); }

/* Breadcrumbs */
.crumbs { font-size: .82rem; color: var(--slate); padding: 18px 0 0; }
.crumbs a { color: var(--graphite); border-bottom: 1px solid var(--silver); }
.crumbs a:hover { color: var(--black); }
.section.dark .crumbs, .hero .crumbs { color: var(--accent); }
.hero .crumbs a { color: var(--platinum); border-bottom-color: rgba(255,255,255,.3); }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 26px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid #e6e8ea; border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { height: 230px; width: 100%; object-fit: cover; object-position: center; }
.card .pad { padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--graphite); font-size: .95rem; margin-bottom: 14px; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--black); }
.section.dark .card { background: var(--charcoal); border-color: rgba(255,255,255,.08); }
.section.dark .card h3 { color: var(--white); }
.section.dark .card p { color: var(--silver); }
.section.dark .card .more { color: var(--white); border-bottom-color: var(--accent); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--charcoal); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 34px 26px; position: relative; }
.step .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 16px; }
.step h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--silver); font-size: .92rem; margin: 0; }

/* Two-column feature */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.feature.flip { direction: rtl; } .feature.flip > * { direction: ltr; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 520px; }
.checks { list-style: none; margin: 18px 0 26px; }
.checks li { padding: 9px 0 9px 34px; position: relative; font-size: 1.02rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--white); font-size: .75rem; display: flex; align-items: center; justify-content: center; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; background: linear-gradient(135deg, #3d3d3d 0%, #0a0a0a 55%, #55595f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat .l { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-top: 8px; }
.section.dark .stat .n { background: var(--metal); -webkit-background-clip: text; background-clip: text; }
.section.dark .stat .l { color: var(--accent); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: var(--white); border: 1px solid #e6e8ea; border-left: 3px solid var(--black); border-radius: var(--radius); padding: 30px; }
.quote blockquote { font-style: italic; color: var(--graphite); font-size: .98rem; }
.quote .who { margin-top: 16px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.quote .starrow { color: #caa64b; letter-spacing: 3px; margin-bottom: 12px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { height: 260px; width: 100%; object-fit: cover; object-position: center; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,5,5,.94); display: none; align-items: center; justify-content: center; z-index: 300; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 20px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }

/* ===== FAQ accordion ===== */
.faq-cat { margin-bottom: 46px; }
.faq-cat h2 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.faq-item { border: 1px solid #e4e6e8; border-radius: var(--radius); margin-bottom: 10px; background: var(--white); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--slate); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 22px 20px; color: var(--graphite); }
.faq-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 10px; }
.faq-toc a { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 8px 16px; border: 1px solid var(--graphite); border-radius: 30px; transition: .2s; }
.faq-toc a:hover { background: var(--black); color: var(--white); }

/* ===== Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; }
.post-card .cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-card h3 a:hover { text-decoration: underline; }
.post-meta { font-size: .8rem; color: var(--slate); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-row a { font-family: var(--font-head); font-size: .8rem; font-weight: 600; padding: 8px 16px; border: 1px solid var(--graphite); border-radius: 30px; transition: .2s; }
.filter-row a:hover, .filter-row a.on { background: var(--black); color: var(--white); }

/* Article */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { margin-bottom: 14px; }
.article .post-meta { margin-bottom: 30px; }
.article h2 { margin: 42px 0 14px; }
.article h3 { margin: 30px 0 10px; }
.article ul, .article ol { margin: 0 0 1.2em 1.3em; }
.article li { margin-bottom: .45em; }
.article img { border-radius: var(--radius); margin: 26px 0; }
.article > img:first-of-type { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.feature img, .hero-bg img { object-position: center; }
.article a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--slate); }
.article a:hover { border-bottom-color: var(--black); }
.article blockquote { border-left: 3px solid var(--black); padding: 6px 0 6px 22px; margin: 22px 0; font-style: italic; color: var(--graphite); }
.post-cta { background: var(--black); color: var(--silver); border-radius: var(--radius); padding: 36px; margin-top: 48px; }
.post-cta h3 { color: var(--white); margin-bottom: 8px; }
.related { margin-top: 56px; border-top: 1px solid #e4e6e8; padding-top: 36px; }

/* ===== Forms ===== */
.form-panel { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid #e6e8ea; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #d5d8db; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--white); transition: border .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); }
textarea { min-height: 130px; resize: vertical; }

/* ===== Service areas ===== */
.areas-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-cloud a { font-family: var(--font-head); font-size: .84rem; font-weight: 500; padding: 9px 18px; border: 1px solid #d5d8db; border-radius: 30px; background: var(--white); transition: .2s; }
.areas-cloud a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.section.dark .areas-cloud a { background: transparent; border-color: rgba(255,255,255,.25); color: var(--platinum); }
.section.dark .areas-cloud a:hover { background: var(--white); color: var(--black); }

/* ===== CTA band ===== */
.cta-band { background: var(--black); color: var(--white); text-align: center; padding: 90px 24px; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 820px; margin: 0 auto 16px; }
.cta-band p { color: var(--silver); max-width: 640px; margin: 0 auto 32px; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: var(--silver); padding: 70px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 84px; margin-bottom: 16px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: #9aa0a6; }
.lic-badge { display: inline-block; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 6px 12px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; margin-top: 12px; color: var(--platinum); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Tables (blog cost tables) */
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border: 1px solid #e0e2e5; }
th { background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 600; }
tr:nth-child(even) td { background: var(--light); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; left: 0; right: 0; top: 83px; bottom: 0; background: var(--black);
    flex-direction: column; align-items: flex-start; padding: 26px 28px 60px; gap: 4px;
    display: none; overflow-y: auto; z-index: 99; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links a { display: block; padding: 15px 0; font-size: 1rem; }
  .nav-links .sub { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .feature, .grid.c2, .grid.c3, .quotes { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  .section { padding: 56px 0; }
}
@media (max-width: 700px) {
  .article table { display: block; overflow-x: auto; max-width: 100%; }
  .article table th, .article table td { min-width: 120px; }
}
@media (max-width: 560px) {
  .steps, .stats, .post-grid, .gallery, .grid.c4 { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .brand-text { font-size: .92rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { top: 69px; }
  .form-panel { padding: 26px 20px; }
  .hero .actions .btn { width: 100%; text-align: center; }
}

/* ===== Typography refinement: serif display + clean UI sans ===== */
body { font-weight: 400; }
.nav-links a, .btn, label, .more, .filter-row a, .faq-toc a, .post-card .cat,
.lic-badge, .stat .l, .areas-cloud a, th, .nav-phone, .post-meta, .crumbs,
.hero .trust, .eyebrow { font-family: var(--font-body); }
.eyebrow { font-weight: 600; letter-spacing: .3em; }
.btn { font-weight: 600; letter-spacing: .08em; }
.nav-links a { font-weight: 500; }
.faq-item summary { font-weight: 400; font-size: 1.06rem; }
.step .num { font-family: 'Cormorant Garamond', var(--font-head); font-weight: 600; }
.stat .n { font-family: 'Cormorant Garamond', var(--font-head); font-weight: 600; }
.quote .who { font-family: var(--font-body); font-weight: 600; }
