/* ============================================================
   TRUE DRYWALL CONTRACTING — Main Stylesheet
   /assets/css/styles.css
============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --charcoal:        #111111;
  --charcoal-mid:    #1A1A1A;
  --charcoal-soft:   #282828;
  --stone:           #F5F4F2;
  --mist:            #EBEBEA;
  --white:           #FFFFFF;

  /* Accent — used sparingly: label pills, underline hover */
  --accent:          #B8976A;
  --accent-dim:      rgba(184,151,106,0.11);
  --accent-border:   rgba(184,151,106,0.26);

  /* Text */
  --text-dark:       #111111;
  --text-mid:        #363636;
  --text-soft:       #585858;
  --text-muted:      #8C8C8C;

  /* Borders */
  --border:          #D5D2CB;
  --border-dark:     rgba(255,255,255,0.09);

  /* Shadows */
  --shadow-sm:       0 1px 6px rgba(0,0,0,0.07);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:       0 10px 36px rgba(0,0,0,0.11);

  /* Radii */
  --r-sm:   4px;
  --r-md:   5px;
  --r-lg:   6px;
  --r-xl:   8px;
  --r-pill: 100px;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-w:  1220px;
  --nav-h:  96px;
}

/* ── 2. RESET + BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { font-family: inherit; }

/* ── 3. ACCESSIBILITY ─────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-80px);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ── 4. UTILITIES ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section-pad    { padding: 88px 0; }
.section-pad-sm { padding: 60px 0; }

section[id], div[id] { scroll-margin-top: var(--nav-h); }

/* ── 5. FADE-UP ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.fade-up.visible          { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.32s; }
.fade-up.d4 { transition-delay: 0.44s; }

/* ── 6. TYPOGRAPHY SCALE ─────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }

.t-hero { font-size: clamp(54px, 9vw, 96px); }
.t-xl   { font-size: clamp(38px, 5vw, 62px); }
.t-lg   { font-size: clamp(28px, 3.8vw, 48px); }
.t-md   { font-size: clamp(22px, 2.8vw, 36px); }

.lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.65; color: var(--text-soft); }
.lead-dark { color: rgba(255,255,255,0.60); }

/* ── 7. LABEL PILL ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.pill-dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.58);
}

/* ── 8. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  min-height: 48px;
  min-width: 48px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background   var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    transform    var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

/* Charcoal — primary on light backgrounds */
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--charcoal-soft);
  border-color: var(--charcoal-soft);
  box-shadow: 0 8px 28px rgba(0,0,0,0.20);
  transform: translateY(-2px);
}

/* White — for use on dark sections */
.btn-white {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--stone);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

/* Ghost white — for use on dark sections */
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.36);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.75);
}

/* Outline — for use on light sections */
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ── 9. NAVIGATION ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  /* Default: transparent for dark-hero pages */
  background: transparent;
  transition:
    background   var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
/* Light variant: white from the start (our-work, contact) */
.nav--light {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
/* Scrolled state — applies to both variants */
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Logo */
.nav-logo       { display: inline-flex; align-items: center; }
.nav-logo img   {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  /* subtle lift so the logo reads on a dark-hero transparent nav */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.20));
}
.nav--light .nav-logo img,
.nav.scrolled .nav-logo img { filter: none; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--dur-base);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--dur-base);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav--light .nav-links a,
.nav.scrolled .nav-links a { color: var(--text-soft); }
.nav--light .nav-links a:hover,
.nav--light .nav-links a[aria-current="page"],
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a[aria-current="page"] { color: var(--text-dark); }

/* Nav CTA button */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-btn {
  padding: 10px 20px;
  font-size: 13.5px;
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.36);
}
.nav-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.75); }
.nav--light .nav-btn,
.nav.scrolled .nav-btn {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.nav--light .nav-btn:hover,
.nav.scrolled .nav-btn:hover { background: var(--charcoal-soft); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  min-width: 44px;
  min-height: 44px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px;
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav--light .nav-hamburger span,
.nav.scrolled .nav-hamburger span { background: var(--charcoal); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(14,14,14,0.98);
  backdrop-filter: blur(24px);
  padding: 18px 28px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: block; }
.nav--light .nav-mobile,
.nav.scrolled .nav-mobile {
  background: rgba(255,255,255,0.99);
  border-top-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.nav-mobile ul { margin-bottom: 20px; }
.nav-mobile ul li a {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--dur-base);
}
.nav-mobile ul li a:hover { color: var(--white); }
.nav--light .nav-mobile ul li a,
.nav.scrolled .nav-mobile ul li a { color: var(--text-mid); border-bottom-color: var(--border); }
.nav--light .nav-mobile ul li a:hover,
.nav.scrolled .nav-mobile ul li a:hover { color: var(--text-dark); }
.nav-mobile .btn { width: 100%; justify-content: center; border-radius: 5px; }

/* Side-by-side dual CTAs inside mobile menu */
.nav-mobile-ctas {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.nav-mobile-ctas .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 14.5px;
}

/* Lock background scroll while mobile menu is open */
body.menu-open { overflow: hidden; }

/* ── 10. FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--white);
  color: var(--text-dark);
  padding: 64px 0 36px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.footer-brand-link { display: inline-block; margin-bottom: 16px; }
.footer-brand-link img {
  display: block;
  width: auto;
  height: 140px;
  max-width: 100%;
}
.footer-brand-tag {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 260px;
}
.footer-col-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--text-mid); transition: color var(--dur-base); }
.footer-links a:hover { color: var(--text-dark); }
.footer-contact-row { margin-bottom: 14px; }
.footer-contact-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px; }
.footer-contact-val { font-size: 14px; color: var(--text-dark); }
.footer-contact-val a { color: inherit; transition: color var(--dur-base); }
.footer-contact-val a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--text-soft); }

/* ── 11. ACCORDION ───────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--dur-base);
}
.accordion-btn:hover { color: var(--charcoal); }
.acc-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.acc-icon svg {
  width: 12px; height: 12px;
  stroke: var(--text-soft);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  transition: transform var(--dur-base) var(--ease-out), stroke var(--dur-base);
}
.accordion-btn[aria-expanded="true"] .acc-icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.accordion-btn[aria-expanded="true"] .acc-icon svg {
  stroke: var(--white);
  transform: rotate(45deg);
}
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.accordion-body-inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 640px;
}

/* ── 12. SHARED: CTA BAND ────────────────────────────────── */
.cta-band { background: var(--charcoal-mid); padding: 80px 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── 13. HOME: HERO ──────────────────────────────────────── */
/* Homepage uses the same .page-hero classes as the inner pages
   (see section 20). No home-specific hero rules remain so every
   page shares one consistent hero system. */

/* ── 14. HOME: ABOUT ─────────────────────────────────────── */
.about-section { background: var(--stone); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 72px;
  align-items: start;
  margin-top: 8px;
}

/* ── 15. HOME: SERVICES SPLIT ────────────────────────────── */
.services-split { background: var(--charcoal); padding: 88px 0; }
.services-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.services-split-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.services-split-img img { width: 100%; height: 100%; object-fit: cover; }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--dur-base);
}
.service-row:first-of-type { border-top: 1px solid rgba(255,255,255,0.08); }
.service-row:hover { border-color: rgba(255,255,255,0.20); }
.service-row:hover .svc-name { color: var(--white); }
.service-row:hover .svc-arrow { transform: translateX(4px); color: var(--accent); }
.service-row-left { display: flex; align-items: center; gap: 20px; }
.svc-num  { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.10em; color: var(--accent); }
.svc-name { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; color: rgba(255,255,255,0.78); transition: color var(--dur-base); letter-spacing: -0.01em; }
.svc-arrow { font-size: 20px; color: rgba(255,255,255,0.30); transition: transform var(--dur-base) var(--ease-out), color var(--dur-base); }

/* ── 16. HOME: FEATURED PROJECT ──────────────────────────── */
.featured-section { background: var(--stone); }
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.featured-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.80s var(--ease-out);
}
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 5px 13px;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.featured-content { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-meta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── 17. HOME: TESTIMONIALS ──────────────────────────────── */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}
.testimonial-card {
  background: var(--stone);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-mid);
  font-style: italic;
}
.testimonial-attr-name { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.testimonial-attr-role { font-size: 12.5px; color: var(--text-muted); }
.testimonials-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* ── 18. HOME: GALLERY PREVIEW ───────────────────────────── */
.gallery-preview { background: var(--charcoal); padding: 88px 0; }
.gallery-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 248px;
  gap: 10px;
}
.gp-tile {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--charcoal-soft);
}
.gp-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gp-tile:hover img { transform: scale(1.04); }
.gp-span2  { grid-column: span 2; }
.gp-rowspan { grid-row: span 2; }

/* ── 19. HOME: FAQ ───────────────────────────────────────── */
.faq-section { background: var(--stone); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px 88px;
  align-items: start;
}
.faq-intro-col { position: sticky; top: calc(var(--nav-h) + 32px); }

/* ── 20. SHARED HERO (used on every page) ────────────────── */
/* One consistent hero across home, service, and portfolio pages.
   min-height is tuned so ~15% of viewport remains below the hero
   on desktop — the next section peeks into view to invite scroll. */
.page-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 180px;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(108deg, rgba(8,8,8,0.76) 38%, rgba(8,8,8,0.34) 100%);
}
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero-content { max-width: 520px; }
.page-hero-h1 {
  font-family: var(--font-body);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.62;
  color: rgba(255,255,255,0.70);
  max-width: 500px;
  margin-bottom: 36px;
}
.page-hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── 21. SHARED: INTRO 2-COL ─────────────────────────────── */
.intro-section { background: var(--stone); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 72px;
  align-items: center;
}

/* ── 22. RESIDENTIAL: SERVICE CARDS ──────────────────────── */
.res-services { background: var(--white); }
.res-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}
.res-card {
  background: var(--stone);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  border: 1px solid var(--border);
  transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.res-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.res-card-num { display: none; }
.res-card-title {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.res-card-body { font-size: 14px; line-height: 1.70; color: var(--text-soft); }

/* ── 23. RESIDENTIAL: PROCESS ────────────────────────────── */
.process-section { background: var(--charcoal); padding: 88px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.process-step-num {
  display: none;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.process-step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.process-step-body { font-size: 14px; line-height: 1.70; color: rgba(255,255,255,0.50); }

/* ── 24. RESIDENTIAL: FEATURE BLOCK ─────────────────────── */
.feature-block { background: var(--stone); }
.feature-block-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.feature-block-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feature-block-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── 25. COMMERCIAL: CAPABILITY CARDS ────────────────────── */
.cap-section { background: var(--white); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.cap-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: box-shadow var(--dur-base), border-color var(--dur-base);
}
.cap-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.cap-card-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.cap-card-body { font-size: 14px; line-height: 1.70; color: var(--text-soft); }
.cap-card-num { display: none; }

/* ── 26. COMMERCIAL: APPROACH SPLIT ──────────────────────── */
.approach-section { background: var(--charcoal); padding: 88px 0; }
.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.approach-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.approach-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── 27. COMMERCIAL: PROCESS TIMELINE ───────────────────── */
.timeline-section { background: var(--stone); }
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.timeline-grid::before {
  content: '';
  position: absolute;
  top: 18px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.timeline-step { padding-right: 20px; }
.timeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.timeline-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; letter-spacing: -0.01em; }
.timeline-body  { font-size: 14px; line-height: 1.68; color: var(--text-soft); }

/* ── 28. INDUSTRIAL: SERVICE ROWS ────────────────────────── */
.ind-services { background: var(--white); }
.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 40px;
}
.ind-item {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base);
}
.ind-item:nth-child(even) { border-right: none; }
.ind-item:nth-last-child(-n+2) { border-bottom: none; }
.ind-item:hover { background: var(--stone); }
.ind-item-num  { display: none; }
.ind-item-title { font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: -0.015em; color: var(--text-dark); margin-bottom: 10px; line-height: 1.25; }
.ind-item-body  { font-size: 14px; line-height: 1.70; color: var(--text-soft); }

/* ── 29. INDUSTRIAL: CAPABILITY PILLARS ─────────────────── */
.cap-pillars { background: var(--charcoal); padding: 88px 0; }
.cap-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.cap-pillar-divider {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 24px;
}
.cap-pillar-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.cap-pillar-body { font-size: 15px; line-height: 1.72; color: rgba(255,255,255,0.54); }

/* ── 30. OUR WORK: HEADER ────────────────────────────────── */
.work-header {
  background: var(--stone);
  padding: calc(var(--nav-h) + 64px) 0 64px;
}
.work-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.work-header h1 {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.010em;
}

/* ── 31. OUR WORK: FILTER ────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-base), background var(--dur-base), border-color var(--dur-base);
}
.filter-btn:hover { color: var(--text-dark); background: var(--stone); }
.filter-btn.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* ── 32. OUR WORK: GALLERY ───────────────────────────────── */
.gallery-section { padding: 56px 0 88px; }
.gallery-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--mist);
  aspect-ratio: 3 / 2;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.70s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay { display: none; }
.gallery-caption-type  { display: none; }
.gallery-caption-title { display: none; }
.gallery-item.hidden { display: none; }
.gallery-note { margin-top: 40px; text-align: center; font-size: 12px; color: var(--text-soft); }

/* ── 33. CONTACT: SPLIT PANEL ────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.contact-info {
  background: var(--charcoal);
  padding: 80px 60px 72px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-heading {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.010em;
  color: var(--white);
  margin-bottom: 20px;
}
.contact-info-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 380px;
  margin-bottom: 56px;
}
.contact-detail-row { margin-bottom: 28px; }
.contact-detail-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.contact-detail-val { font-size: 16px; color: rgba(255,255,255,0.70); }
.contact-form-panel {
  background: var(--stone);
  padding: 80px 52px 72px 60px;
  display: flex;
  align-items: center;
}
.contact-form-wrap { width: 100%; max-width: 480px; }
.contact-form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.contact-form-sub { font-size: 15px; color: var(--text-soft); margin-bottom: 40px; }

/* Form elements */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; letter-spacing: 0.01em; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}
.form-submit { width: 100%; }

/* ── 34. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid          { grid-template-columns: 1fr; gap: 40px; }
  .services-split-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-split-img  { aspect-ratio: 16 / 9; max-height: 420px; }
  .featured-card       { grid-template-columns: 1fr; }
  .featured-img        { aspect-ratio: 16 / 9; }
  .featured-content    { padding: 40px; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gp-span2  { grid-column: span 1; }
  .gp-rowspan { grid-row: span 1; }
  .gallery-preview-grid .gp-tile { height: 260px; }
  .faq-grid            { grid-template-columns: 1fr; gap: 48px; }
  .faq-intro-col       { position: static; }
  .intro-grid          { grid-template-columns: 1fr; gap: 40px; }
  .res-cards-grid      { grid-template-columns: 1fr; }
  .process-steps       { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature-block-grid  { grid-template-columns: 1fr; gap: 40px; }
  .feature-block-img   { aspect-ratio: 16 / 9; }
  .cap-grid            { grid-template-columns: 1fr 1fr; }
  .approach-grid       { grid-template-columns: 1fr; gap: 48px; }
  .approach-img        { aspect-ratio: 16 / 9; }
  .timeline-grid       { grid-template-columns: 1fr 1fr; }
  .timeline-grid::before { display: none; }
  .timeline-step       { padding-right: 0; }
  .ind-grid            { grid-template-columns: 1fr; }
  .ind-item            { border-right: none; }
  .ind-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .ind-item:last-child { border-bottom: none; }
  .cap-pillars-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact-split       { grid-template-columns: 1fr; }
  .contact-info        { padding: 80px 40px; }
  .contact-form-panel  { padding: 80px 40px; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .gallery-columns     { grid-template-columns: repeat(2, 1fr); }
  .work-header-inner   { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 82px; }
  .section-pad     { padding: 64px 0; }
  .container       { padding: 0 20px; }

  /* Nav */
  .nav-links, .nav-right .nav-btn { display: none; }
  .nav-hamburger   { display: flex; }
  .nav-logo img    { height: 68px; }

  /* Footer logo tuned for mobile width */
  .footer-brand-link img { height: 128px; }

  /* Hero (shared across all pages) */
  .page-hero       {
    align-items: flex-end;
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 156px;
    min-height: 85vh;
  }
  .page-hero-h1    { font-size: clamp(24px, 7vw, 34px); }
  .page-hero-ctas  { flex-direction: column; align-items: stretch; width: 100%; }
  .page-hero-ctas .btn { width: 100%; justify-content: center; }

  /* Grids: large-phone / small-tablet width keeps 2 columns */
  .gallery-columns       { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-grid  { grid-template-columns: repeat(2, 1fr); height: auto; }
  .gallery-preview-grid .gp-tile { height: 220px; }
  .res-cards-grid        { grid-template-columns: repeat(2, 1fr); }
  .cap-grid              { grid-template-columns: repeat(2, 1fr); }
  .ind-grid              { grid-template-columns: repeat(2, 1fr); }
  .process-steps         { grid-template-columns: 1fr 1fr; }
  .timeline-grid         { grid-template-columns: 1fr 1fr; }

  /* Cap pillars */
  .cap-pillars-grid { grid-template-columns: 1fr; gap: 36px; }

  /* CTA band */
  .cta-band-inner  { flex-direction: column; text-align: center; }
  .cta-band-inner .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Gallery preview */
  .gallery-preview-header { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-grid     { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom   { flex-direction: column; text-align: center; }

  /* Contact */
  .contact-info    { padding: 72px 20px; }
  .contact-form-panel { padding: 56px 20px; }
  .contact-form-wrap { max-width: 100%; }
}

/* Small phones: single-column everything for maximum legibility */
@media (max-width: 560px) {
  .gallery-columns       { grid-template-columns: 1fr; }
  .gallery-preview-grid  { grid-template-columns: 1fr; }
  .res-cards-grid        { grid-template-columns: 1fr; }
  .cap-grid              { grid-template-columns: 1fr; }
  .ind-grid              { grid-template-columns: 1fr; }
  .process-steps         { grid-template-columns: 1fr; }
  .timeline-grid         { grid-template-columns: 1fr; }
}
