/* ============================================================
   Absolute Home Improvements — Shared Service Page Stylesheet
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563a8;
  --blue-dark: #1a4a82;
  --blue-light: #5a9fd4;
  --charcoal: #1e1e1e;
  --grey: #2d2d2d;
  --light: #f4f4f4;
  --white: #ffffff;
  --text: #333333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}
.nav-logo img { height: 50px; display: block; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 1.5rem 2rem 2rem;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.04em;
}
.mobile-menu a:last-child {
  margin-top: 1rem;
  background: var(--blue);
  text-align: center;
  padding: 1rem;
  border-radius: 6px;
  border-bottom: none;
}

/* ── FLOATING CALL BUTTON ── */
.float-call {
  display: none;
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 150;
  background: #1a8a4a;
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  align-items: center;
  gap: 0.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }

/* ── SERVICE HERO ── */
.svc-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    linear-gradient(135deg, rgba(20,20,20,0.92) 0%, rgba(37,99,168,0.55) 100%),
    radial-gradient(circle at 30% 20%, rgba(90,159,212,0.25), transparent 60%),
    var(--charcoal);
  background-size: cover;
  background-position: center;
}
.svc-hero.has-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.7), rgba(20,20,20,0.55));
}
.svc-hero-content { position: relative; z-index: 1; color: var(--white); max-width: 820px; }
.svc-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  font-weight: 700;
}
.svc-breadcrumb a { color: var(--blue-light); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--white); }
.svc-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.svc-hero-content h1 span { color: var(--blue-light); }
.svc-hero-content p {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.92;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.svc-hero-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SECTIONS ── */
section { padding: 5rem 1.5rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ── INTRO / TWO-COLUMN ── */
.svc-intro { background: var(--white); }
.svc-intro .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.svc-intro p { color: #555; line-height: 1.8; margin-bottom: 1rem; font-size: 1.02rem; }
.svc-intro-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  filter: contrast(1.05) saturate(1.08);
}
.svc-intro-media.placeholder {
  min-height: 340px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.svc-intro-media.placeholder .ph-inner { max-width: 260px; }
.svc-intro-media.placeholder .ph-icon { font-size: 3rem; margin-bottom: 0.8rem; }

/* ── FEATURES ── */
.svc-features { background: var(--light); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--blue);
}
.feature-card .fc-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: #666; line-height: 1.65; }

/* ── PROCESS ── */
.svc-process { background: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.process-step { position: relative; padding: 1.5rem; }
.process-step .step-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(37,99,168,0.15);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.process-step h3 { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* ── GALLERY STRIP ── */
.svc-gallery { background: var(--light); }
.svc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.svc-gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  filter: contrast(1.05) saturate(1.1);
  transition: transform 0.3s, filter 0.3s;
}
.svc-gallery-grid img:hover { transform: scale(1.02); filter: contrast(1.1) saturate(1.18) brightness(1.04); }

/* ── CTA BAND ── */
.svc-cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}
.svc-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.8rem; }
.svc-cta p { opacity: 0.9; max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.svc-cta .btn-primary { background: var(--white); color: var(--blue-dark); }
.svc-cta .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
}
footer .footer-logo { height: 44px; margin-bottom: 1rem; mix-blend-mode: screen; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-links {
  margin: 1.2rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: center;
  max-width: 720px;
}
.footer-links a { font-size: 0.82rem; letter-spacing: 0.03em; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.8rem;
  font-size: 2.5rem; color: var(--white);
  background: none; border: none; cursor: pointer; line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; height: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .float-call { display: flex; }
  .mobile-menu { top: 64px; }
  section { padding: 3rem 1.2rem; }
  .btn { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
  .svc-hero { min-height: 70vh; padding: 5rem 1.2rem 3rem; }
  .svc-hero-actions { flex-direction: column; align-items: center; }
  .svc-hero-actions .btn { width: 100%; text-align: center; }
  .svc-intro .wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .svc-intro-media { order: -1; }
  .svc-gallery-grid img { height: 200px; }
}
@media (min-width: 769px) {
  .float-call { display: none !important; }
}
