:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --dark: #111827;
  --darker: #0f172a;
  --card: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; color: var(--text); background: var(--darker); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

header { background: var(--dark); border-bottom: 3px solid var(--primary); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.4rem; color: white; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
nav a { color: var(--text); margin-left: 1.8rem; text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--primary); }

.hero { background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%); padding: 6rem 0 5rem; text-align: center; position: relative; }
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; color: var(--muted); margin-bottom: 2rem; }
.btn { display: inline-block; background: var(--primary); color: white; padding: 0.9rem 2rem; text-decoration: none; border-radius: 6px; font-weight: 600; transition: background 0.2s; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); margin-left: 1rem; }
.btn-outline:hover { background: var(--primary); }

section { padding: 4rem 0; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; color: white; text-align: center; }
h2 span { color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; margin-top: 2rem; }
.card { background: var(--card); padding: 2rem; border-radius: 12px; border-top: 4px solid var(--primary); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card h3 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1.3rem; }

.stats { background: var(--dark); text-align: center; }
.stats .grid { grid-template-columns: repeat(3, 1fr); }
.stat { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--muted); }

.testimonials { background: var(--darker); }
.testimonial { background: var(--card); padding: 1.8rem; border-radius: 10px; margin-bottom: 1rem; border-left: 4px solid var(--primary); }
.testimonial p { font-style: italic; margin-bottom: 0.8rem; }
.testimonial .author { color: var(--primary); font-weight: 600; }

.why-us ul { max-width: 700px; margin: 2rem auto 0; list-style: none; }
.why-us li { background: var(--card); margin-bottom: 0.8rem; padding: 1rem 1.2rem; border-radius: 8px; border-left: 4px solid var(--primary); }

.page-header { background: linear-gradient(135deg, #0f172a, #134e4a); padding: 4rem 0; text-align: center; }
.service-detail, .about-content, .contact { max-width: 800px; margin: 0 auto; }
.service-detail h2, .about-content h2 { text-align: left; margin-top: 2.5rem; }
.service-detail ul, .about-content ul { margin: 1rem 0 1rem 1.5rem; color: var(--text); }

footer { background: var(--dark); border-top: 3px solid var(--primary); text-align: center; padding: 2.5rem 0; color: var(--muted); }
footer a { color: var(--primary); }

@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 1rem; }
  nav a { margin: 0 0.6rem; }
  .hero h1 { font-size: 2rem; }
  .stats .grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
}
/* Floating WhatsApp button */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.35); z-index: 1000; transition: transform 0.2s; }
.whatsapp-float:hover, .whatsapp-float:focus { transform: scale(1.08); }
@media (max-width: 768px) { .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; } }

/* Header logo image */
.logo img { height: 48px; width: auto; display: inline-block; vertical-align: middle; margin-right: 0.6rem; }
@media (max-width: 768px) { .logo img { height: 38px; } }

/* Project gallery and before / after comparisons */
.section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2rem; }
.before-after-band h2, .project-gallery h2 { margin-bottom: 0.65rem; }
.gallery-subhead { margin-top: 3.4rem; }
.gallery-note { text-align: center; color: var(--muted); margin-top: 2.2rem; }
.gallery-note a { color: var(--primary); font-weight: 600; }
.gallery-cta { text-align: center; margin-top: 0.4rem; }

.ba-card, .project-card { background: var(--card); border-radius: 12px; border-top: 4px solid var(--primary); }
.ba-card { padding: 1.45rem 1.3rem 1.5rem; margin-bottom: 1.6rem; }
.ba-card h3 { text-align: center; color: var(--primary); font-size: 1.28rem; margin-bottom: 0.2rem; }
.ba-process { text-align: center; color: var(--muted); margin-bottom: 1.05rem; font-size: 0.95rem; }
.ba-card figure, .project-card figure { margin: 0; }
.ba-card figcaption, .project-card figcaption p { text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 0.65rem; }

.ba-compare { display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr); grid-template-areas: "before arrow after" "beforecap . aftercap"; gap: 0.7rem 0.55rem; align-items: center; }
.ba-compare > figure { display: contents; }
.ba-compare > figure:first-of-type .photo-btn { grid-area: before; }
.ba-compare > figure:first-of-type figcaption { grid-area: beforecap; }
.ba-compare > figure:last-of-type .photo-btn { grid-area: after; }
.ba-compare > figure:last-of-type figcaption { grid-area: aftercap; }
.ba-arrow { grid-area: arrow; align-self: center; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.ba-compare .photo-btn { min-width: 0; }

.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 10px; line-height: 0; }
.photo-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.photo-btn img { width: 100%; height: auto; display: block; border-radius: 10px; border: 2px solid var(--primary); background: #0f172a; }
.ba-compact .photo-btn img { height: 340px; object-fit: cover; object-position: center; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 1; line-height: 1; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding: 0.38rem 0.62rem; border-radius: 999px; pointer-events: none; }
.badge-before { background: rgba(17, 24, 39, 0.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.badge-after, .badge-both { background: var(--primary-dark); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.project-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { padding: 0.85rem 0.85rem 1.1rem; }
.project-card h3 { color: var(--primary); font-size: 1.08rem; text-align: center; margin: 0.85rem 0.25rem 0; }
.project-card figcaption p { margin-top: 0.35rem; }

.before-after-band { background: var(--dark); }
#before-after, #combined-repairs, #workshop { scroll-margin-top: 5.5rem; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; padding: 4.2rem 1.2rem 1.25rem; background: rgba(15, 23, 42, 0.94); overflow: auto; }
.lightbox[hidden] { display: none !important; }
.lightbox-image { max-width: min(1100px, 94vw); max-height: calc(100vh - 11rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 2px solid var(--primary); background: #0f172a; }
.lightbox-caption { color: var(--text); text-align: center; max-width: 740px; line-height: 1.45; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--primary-dark); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .ba-compare { grid-template-columns: minmax(0, 1fr); grid-template-areas: "before" "beforecap" "arrow" "after" "aftercap"; gap: 0.65rem; }
  .ba-arrow { transform: rotate(90deg); margin: 0.1rem auto; }
  .project-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ba-compact .photo-btn img { height: 250px; }
  .badge { top: 10px; left: 10px; }
}
