/* =====================================================
   ProRoof Nigeria — Roofing Demo Template
   Design: Clean industrial, trust-first, conversion-focused
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ===================================================== */

:root {
  --green:       #25D366;
  --green-dark:  #128C7E;
  --green-light: #DCFCE7;
  --text:        #111827;
  --text-2:      #374151;
  --text-3:      #6B7280;
  --bg:          #FFFFFF;
  --bg-2:        #F9FAFB;
  --bg-3:        #F3F4F6;
  --border:      #E5E7EB;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 16px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --t:           220ms ease;
  --section-py:  5rem;
  --font-head:   'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, -apple-system, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mobile bar clearance */
@media (max-width: 991px) { body { padding-bottom: 72px; } }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--green-dark);
  transition: color var(--t);
  text-decoration: none;
}
a:hover { color: var(--text); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Typography === */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.label-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-intro {
  color: var(--text-3);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
}

/* === Demo Banner === */
.demo-banner {
  background: #111827;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 0.55rem 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 1050;
}

/* === Top bar === */
.top-bar {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .sep { opacity: 0.3; margin: 0 0.6rem; }

/* === Navbar === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  padding: 0.9rem 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2) !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 6px;
  transition: background var(--t), color var(--t);
}
.navbar-nav .nav-link:hover { background: var(--bg-3); color: var(--text) !important; }

/* === Buttons === */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: 0.01em;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-wa {
  background: var(--green);
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(37,211,102,.25);
}
.btn-wa:hover {
  background: #1db954;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}

.btn-dark {
  background: var(--text);
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
}
.btn-dark:hover {
  background: #1f2937;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2) !important;
  padding: 0.63rem 1.35rem;
  font-size: 0.92rem;
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text) !important;
  background: var(--bg-3);
}

.btn-call {
  background: #1D4ED8;
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
}
.btn-call:hover {
  background: #1e40af;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29,78,216,.3);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.82rem; }

/* Shine effect on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.btn { position: relative; overflow: hidden; }
.btn:hover::after { opacity: 1; }

/* === Section layout === */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-py-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.bg-alt { background: var(--bg-2); }
.bg-dark { background: var(--text); color: rgba(255,255,255,0.85); }
.bg-green { background: var(--green-light); }

/* === Hero === */
.hero {
  padding: 5rem 0 4.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(37,211,102,.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(17,24,39,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text h1 { margin-bottom: 1rem; }
.hero-text h1 em { font-style: italic; color: var(--green-dark); }

.hero-bullets { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.35rem 0;
}
.hero-bullets .bullet-icon {
  width: 22px;
  height: 22px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrap img { width: 100%; border-radius: var(--radius-lg); }

.hero-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}
.hero-badge-icon {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: 0.85rem; color: var(--text); }
.hero-badge span { color: var(--text-3); font-size: 0.75rem; }

/* Parallax lite (JS-controlled) */
.hero-img-wrap { will-change: transform; }

/* === Trust strip === */
.trust-strip {
  background: var(--text);
  color: #fff;
  padding: 2.5rem 0;
}
.trust-item {
  text-align: center;
  padding: 0.5rem;
}
.trust-value {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.trust-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* === Service cards === */
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,211,102,.08), var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 1.1rem;
  transition: background var(--t), color var(--t);
}
.service-card:hover .service-icon {
  background: var(--green-light);
  color: var(--green-dark);
}
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p { color: var(--text-3); font-size: 0.9rem; margin-bottom: 1.25rem; }
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-link:hover { color: var(--text); gap: 0.55rem; }

/* === Process steps === */
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.step-content p { font-size: 0.9rem; color: var(--text-3); }

.process-connector {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin: 0.4rem 0 0.4rem 21px;
}

/* === Before/After slider === */
.ba-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow);
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-img.before { position: relative; display: block; }
.ba-img.after {
  position: absolute;
  top: 0; left: 0;
  clip-path: inset(0 50% 0 0);
  transition: none;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 8px rgba(0,0,0,.3);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-label {
  position: absolute;
  bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.ba-label.before { left: 10px; background: rgba(220,38,38,.9); color: #fff; }
.ba-label.after  { right: 10px; background: rgba(5,150,105,.9); color: #fff; }

/* === Gallery grid === */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  cursor: pointer;
}
.gallery-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.gallery-item img { width: 100%; display: block; aspect-ratio: 3/2; object-fit: cover; }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(17,24,39,.75));
  color: #fff;
  font-size: 0.75rem;
  padding: 1rem 0.75rem 0.6rem;
  transform: translateY(100%);
  transition: transform var(--t);
}
.gallery-item:hover .gallery-caption { transform: none; }

/* === Review cards === */
.review-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow var(--t), transform var(--t);
}
.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.review-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0.85rem 0 1rem;
  flex: 1;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}
.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text-2);
  flex-shrink: 0;
  font-weight: 400;
}
.reviewer-name { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.reviewer-loc  { font-size: 0.75rem; color: var(--text-3); }
.stars { display: inline-flex; gap: 2px; }

/* === Quote form === */
.quote-section { background: var(--bg-2); }

.form-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: block;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,211,102,.12);
  outline: none;
}
.form-control.error { border-color: #DC2626; }
.form-error-msg { color: #DC2626; font-size: 0.75rem; margin-top: 0.3rem; display: none; }
.form-error-msg.visible { display: block; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.honeypot { display: none !important; visibility: hidden; }

.form-submit-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 0.85rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.visible { display: block; }
.success-icon {
  width: 60px;
  height: 60px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* === FAQ === */
.faq-item { border-bottom: 1.5px solid var(--border); }
.faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color var(--t);
}
.faq-btn:hover { color: var(--green-dark); }
.faq-icon {
  width: 22px;
  height: 22px;
  background: var(--bg-3);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
}
.faq-btn[aria-expanded="true"] .faq-icon {
  background: var(--green-light);
  transform: rotate(45deg);
}
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-body-inner {
  padding-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text-3);
  line-height: 1.75;
}

/* === CTA band === */
.cta-band {
  background: var(--text);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 0.85rem; }
.cta-band p { color: rgba(255,255,255,.65); margin-bottom: 2rem; font-size: 1.05rem; }

/* === Footer === */
.site-footer {
  background: #0D1117;
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 2rem;
}
.footer-logo { color: #fff !important; }
.footer-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.35);
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 0.87rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { font-size: 0.82rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-hr { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: 0.77rem; color: rgba(255,255,255,.3); }

/* === Sticky mobile CTA === */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.6rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.mobile-cta-bar .btn { flex: 1; justify-content: center; }
@media (min-width: 992px) { .mobile-cta-bar { display: none !important; } }

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === Warranty badge === */
.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--green-light);
  border: 1.5px solid rgba(37,211,102,.25);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
}
.warranty-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.warranty-text strong { display: block; font-size: 0.92rem; color: var(--text); }
.warranty-text span   { font-size: 0.8rem; color: var(--text-3); }

/* === Map wrapper === */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 300px; border: none; display: block; }

/* === Utility === */
.text-green { color: var(--green-dark); }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
