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

html { scroll-behavior: smooth; }

:root {
  /* ── Brand palette — update these to retheme the whole site ── */
  --orange:       #b84d18;   /* accent / CTA color */
  --orange-hover: #9a3e12;   /* darker shade for hover states */
  --dark:         #0a1a34;   /* header, contact section, primary card */
  --dark-mid:     #0d2040;   /* header gradient mid stop */
  --dark-deep:    #071428;   /* header gradient deep stop */
  --gray:         #16161e;   /* alternate section background */
  --surface:      #1e1e2a;   /* main section background */
  --surface-card: #26263a;   /* card / inset background */
  --text:         #e2e2e8;
  --subtext:      #9090a8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

/* ── Top CTA Bar ── */
.top-bar {
  background: var(--dark-mid);
  color: rgba(255,255,255,0.7);
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 101;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.top-bar-tagline { font-size: 0.82rem; }
.top-bar-btn {
  background: transparent;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.5);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.top-bar-btn:hover { border-color: #fff; color: #fff; }

/* ── Header ── */
header {
  background: var(--dark);
  border-bottom: 3px solid var(--orange);
  color: #fff;
  position: sticky;
  top: 34px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand { display: flex; align-items: center; }
.brand-logo { display: block; text-decoration: none; }
.brand-logo-img {
  height: 120px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.brand-logo-img:hover { opacity: 0.9; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--orange); }
.nav-phone { color: var(--orange) !important; font-weight: 700 !important; }

/* ── Hero Slideshow ── */
.hero {
  position: relative;
  height: 580px;
  background: var(--dark);
  overflow: hidden;
}
.slides-container { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; }

/* Dark gradient overlay so headline is always readable */
.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero headline */
.hero-headline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  text-align: center;
  z-index: 5;
  color: #fff;
  width: 90%;
  max-width: 700px;
}
.hero-headline h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  margin-bottom: 0.7rem;
}
.hero-headline p {
  font-size: 1.05rem;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
}
.hero-cta { font-size: 1rem; padding: 0.7rem 1.8rem; }

.hero-overlay {
  position: absolute;
  bottom: 52px;
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
.hero-overlay h2 {
  display: inline-block;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(0,0,0,0.4);
  padding: 0.25rem 0.9rem;
  border-radius: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.3px;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  width: 46px;
  height: 60px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 10;
}
.slide-btn:hover { background: rgba(0,0,0,0.65); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: #fff; transform: scale(1.25); }
.hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
}

/* ── Gallery Section ── */
.gallery-section { padding: 3.5rem 1.5rem; background: var(--surface); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.8rem; color: var(--text); }
.section-header p { color: var(--subtext); margin-top: 6px; }

.job-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.job-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface-card);
}
.job-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.job-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray);
  display: block;
}
.job-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray), var(--surface-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 0.85rem;
}
.job-info { padding: 1rem 1.1rem; }
.job-info h3 { font-size: 1.05rem; color: var(--text); }
.job-info p { color: var(--subtext); font-size: 0.88rem; margin-top: 4px; }
.job-count { color: var(--orange); font-size: 0.82rem; margin-top: 6px; font-weight: 600; }
.loading { color: var(--subtext); text-align: center; padding: 3rem; grid-column: 1/-1; }
.no-projects { color: var(--subtext); text-align: center; padding: 3rem; grid-column: 1/-1; font-size: 1rem; }

/* ── Contact section (form) ── */
.contact-section {
  background: var(--dark);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.contact-section .section-header h2 { color: #fff; }
.contact-section .section-header p { color: rgba(255,255,255,0.6); }
.contact-info { margin-top: 1.5rem; }
.contact-info p { color: rgba(255,255,255,0.75); margin-bottom: 1.2rem; }
.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.cta-btn:hover { background: var(--orange-hover); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content { text-align: center; max-width: 90vw; }
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  object-fit: contain;
}
.lightbox-content p {
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.lightbox-close {
  position: fixed;
  top: 16px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 2.5rem;
  cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  font-size: 2.5rem; width: 52px; height: 70px;
  cursor: pointer; border-radius: 4px;
  transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ── Service Area ── */
.service-area-section {
  background: var(--gray);
  padding: 3.5rem 1.5rem;
}
.area-grid {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.area-card {
  background: var(--surface-card);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-left: 4px solid var(--orange);
}
.area-card.primary {
  border-left-color: var(--orange);
  background: var(--dark-mid);
  color: #fff;
}
.area-card.primary p { color: rgba(255,255,255,0.65); }
.area-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.area-card h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--text); }
.area-card p { font-size: 0.85rem; color: var(--subtext); line-height: 1.45; }
.area-note {
  text-align: center;
  color: var(--subtext);
  font-size: 0.9rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Testimonials — card grid ── */
.testimonials-section {
  background: var(--surface);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.testimonial-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.testimonial-card {
  background: var(--surface-card);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tc-stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 2px; }
.tc-body {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.tc-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
}
.tc-location {
  font-weight: normal;
  color: var(--subtext);
}


/* ── Contact Form ── */
.contact-info { margin-bottom: 2rem; }
.phone-btn { font-size: 1.2rem; padding: 0.85rem 2.2rem; }

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.form-group input, .form-group textarea {
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.12);
}
.submit-btn { align-self: flex-start; margin-top: 0.3rem; }

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.footer-brand p { font-size: 0.85rem; margin-bottom: 0.3rem; line-height: 1.5; }
.footer-brand a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-brand a:hover { color: var(--orange); }
.footer-hours { margin-top: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { font-size: 0.83rem; margin-bottom: 0.4rem; color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  /* Top bar becomes fixed bottom call bar */
  .top-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    z-index: 200;
    padding: 0.7rem 1.2rem;
  }
  .top-bar-tagline { display: none; }
  .top-bar-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
    font-size: 1rem;
    border-radius: 6px;
  }
  /* Header no longer needs to offset for top bar */
  header { top: 0; }
  /* Body padding so content isn't hidden behind bottom bar */
  body { padding-bottom: 58px; }

  .hero { height: 420px; }
  .hero-headline h1 { font-size: 1.85rem; }
  .hero-headline p { font-size: 0.88rem; }
  .hero-cta { font-size: 0.9rem; padding: 0.6rem 1.4rem; }
  .slide-btn { display: none; }

  .nav-phone { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .submit-btn { width: 100%; text-align: center; }

  .estimate-banner h2 { font-size: 1.4rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
