/* ===========================================================
   Express Roofing Solutions — styles.css
   Palette: pulled from logo — deep navy + lime green
   =========================================================== */

:root {
  --bg: #0f2334;
  --bg-alt: #16304a;
  --surface: #1b3a58;
  --border: #2a4a6b;
  --white: #ffffff;
  --text: #eef3f6;
  --text-muted: #93a5b8;
  --accent: #8cd102;
  --accent-2: #b8e34a;
  --accent-contrast: #0f2334;
  --light-bg: #f5f7f6;
  --light-surface: #ffffff;
  --light-text: #10202f;
  --light-muted: #5b6b78;

  --font-head: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light-bg);
  color: var(--light-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  box-shadow: 0 8px 24px rgba(140, 209, 2, 0.3);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost {
  color: var(--light-text);
  background: transparent;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}
.topbar-phone { color: var(--accent-2); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
}
.logo-img { height: 34px; width: auto; display: block; }
.site-header .logo-badge { padding: 6px 14px; }
.site-header .logo-img { height: 72px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--accent-2); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn-ghost { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(140,209,2,0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.text-accent { color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-trust {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-trust li {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding-left: 18px;
  position: relative;
}
.hero-trust li::before {
  content: "✓";
  color: var(--accent-2);
  position: absolute;
  left: 0;
}
.hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 24px;
}
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-2);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Section shared ---------- */
section { padding: 90px 0; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.section-sub {
  color: var(--light-muted);
  margin-top: 14px;
  max-width: 60ch;
  font-size: 1.02rem;
}

/* ---------- Services ---------- */
.services { background: var(--light-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: var(--light-surface);
  border: 1px solid #dfe4e8;
  border-radius: var(--radius);
  padding: 28px 22px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 20, 20, 0.08);
}
.service-photo-link {
  display: block;
  margin: -28px -22px 16px;
  overflow: hidden;
}
.service-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.service-photo-link:hover .service-photo { transform: scale(1.06); }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--light-muted); font-size: 0.92rem; }
.service-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

/* ---------- Why Us ---------- */
.why-us { background: var(--bg); color: var(--white); }
.why-us .section-sub { color: var(--text-muted); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.why-item {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.why-item h4 { font-family: var(--font-head); margin-bottom: 6px; }
.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Process ---------- */
.process { background: var(--light-bg); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.process-step {
  background: var(--light-surface);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid #dfe4e8;
}
.process-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
}
.process-step h3 { font-family: var(--font-head); margin: 10px 0 8px; }
.process-step p { color: var(--light-muted); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  text-align: center;
}
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-inner p { margin: 12px 0 26px; opacity: 0.85; }
.cta-banner .btn-primary { background: var(--bg); color: var(--white); box-shadow: none; }

/* ---------- Reviews ---------- */
.reviews { background: var(--light-bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.review-card {
  background: var(--light-surface);
  border-radius: var(--radius);
  border: 1px solid #dfe4e8;
  padding: 26px 22px;
}
.stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 0.95rem; color: var(--light-text); }
.review-card cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--light-muted); font-size: 0.85rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); color: var(--white); }
.gallery .section-sub { color: var(--text-muted); }
.gallery-group { margin-top: 48px; }
.gallery-group h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--accent-2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-thumb:hover img { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--accent-2); }

/* ---------- Service Subpages ---------- */
.service-hero {
  background: var(--bg);
  color: var(--white);
  padding: 70px 0 60px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--accent-2); }
.service-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.service-hero .hero-sub { max-width: 60ch; }
.service-hero .hero-actions { margin-top: 26px; }

.service-detail { background: var(--light-bg); }
.service-detail .placeholder-note {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--light-muted);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--light-muted);
  background: rgba(0,0,0,0.02);
}

.service-colors { background: var(--bg); color: var(--white); }
.service-colors .section-sub { color: var(--text-muted); }
.service-colors .placeholder-note {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.color-swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.color-swatch-block { height: 64px; }
.color-swatch span {
  display: block;
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.service-warranty { background: var(--light-bg); }
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.warranty-card {
  background: var(--light-surface);
  border: 1px solid #dfe4e8;
  border-radius: var(--radius);
  padding: 24px;
}
.warranty-card h4 { font-family: var(--font-head); margin-bottom: 8px; }
.warranty-card p { color: var(--light-muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); color: var(--white); }
.contact .section-sub { color: var(--text-muted); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-details a { color: var(--accent-2); font-weight: 600; }
.contact-details li { color: var(--text-muted); font-size: 0.95rem; }

.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 480px;
}
.contact-form-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 456px;
  border: none;
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer { background: #081420; color: var(--text-muted); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-col a, .footer-col span { font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  padding: 20px 24px;
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { height: 260px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat:nth-child(2) { border-right: none; }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
  .warranty-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header .logo-img { height: 52px; }
  .site-header.open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .site-header.open .header-cta {
    display: flex;
    position: absolute;
    top: calc(100% + 190px);
    left: 0; right: 0;
    background: var(--bg);
    padding: 0 24px 20px;
    flex-direction: column;
  }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}
