/* ======================
   1. CSS RESET & BASE
   ====================== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ======================
   2. CSS CUSTOM PROPERTIES
   ====================== */
:root {
  --red: #b9101b;
  --black: #000000;
  --dark: #1a1a1a;
  --white: #ffffff;
  --gold: #d7bb39;
  --grey-light: #f5f5f5;
  --text-dark: #333333;
  --container-max: 1170px;
  --font-main: 'Inter', sans-serif;
}

/* ======================
   3. GLOBAL UTILITIES
   ====================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 10px auto 0;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin: 0 0 50px;
}

.section-subtitle.light {
  color: #aaa;
}

/* Button system */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.85;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

/* Section CTA block */
.section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* ======================
   4. HEADER & NAV
   ====================== */
#site-header {
  position: static;
  background: var(--dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 108px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tagline {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}


/* ======================
   5. HERO SECTION
   ====================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 20px 40px;
  width: 100%;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 36px;
  line-height: 1.25;
  text-align: center;
}

.hero-title-sub {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  margin-top: 10px;
}

/* Stacked hero CTAs */
.hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.hero-btn {
  width: 260px;
  min-height: 60px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 2px;
  padding: 12px 20px;
}

.btn-line-1 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-line-2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Animate-up keyframes */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  opacity: 0;
  animation: slideUpFade 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }


/* ======================
   6. ABOUT SECTION
   ====================== */
#about {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/72a59dac-c9e9-4cab-9efa-dcdb3eeb66d6/root/1775835281592_all-lighting-maintenance-fleet-service-trucks.webp");
  background-size: cover;
  background-position: center;
  padding-top: 40px;
}

#about .section-title {
  font-size: 2.8rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: transparent;
  border: none;
  padding: 40px 30px;
  text-align: center;
}

.card-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
}

.card p {
  font-size: 1.0rem;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
}

/* ======================
   7. REVIEWS SECTION
   ====================== */
#reviews {
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.92), rgba(26, 26, 26, 0.92)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/72a59dac-c9e9-4cab-9efa-dcdb3eeb66d6/root/1775834971075_all-lighting-maintenance-bucket-truck-repair.webp");
  background-size: cover;
  background-position: center;
}

#reviews .section-title {
  color: var(--white);
}

#reviews .section-title::after {
  background: var(--gold);
}

#reviews .section-subtitle {
  color: #aaa;
}

.reviews-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.review-card {
  background: #2a2a2a;
  border: 2px solid #333;
  padding: 32px;
  max-width: 640px;
  width: 100%;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.review-date {
  font-size: 0.8rem;
  color: #888;
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  margin: 0;
}

.reviews-widget {
  margin-top: 40px;
  display: none; /* Remove this line when Google reviews are live */
}

/* ======================
   8. GALLERY SECTION
   ====================== */
#gallery {
  background: var(--grey-light);
}

/* Carousel wrapper */
.gallery-carousel {
  position: relative;
  overflow: hidden;
}

.gallery-track-wrapper {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 12px;
}

.gallery-item {
  flex: 0 0 calc(25% - 9px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid #ccc;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Carousel nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid var(--gold);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #aaa;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--gold);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border: 2px solid #333;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--red);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--gold);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2001;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

#gallery .section-title::after {
  background: var(--red);
}


/* ======================
   9. VIDEOS SECTION
   ====================== */
#videos {
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.92), rgba(26, 26, 26, 0.92)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/72a59dac-c9e9-4cab-9efa-dcdb3eeb66d6/root/1775835368841_all-lighting-maintenance-crane-and-bucket-truck-service.webp");
  background-size: cover;
  background-position: center;
}

#videos .section-title {
  color: var(--white);
}

#videos .section-title::after {
  background: var(--gold);
}

#videos .section-subtitle {
  color: #aaa;
}

#videos .video-wrapper {
  border-color: #444;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 2px solid var(--black);
  background: #111;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ======================
   10. CTA SECTION
   ====================== */
#cta-section {
  background-color: var(--grey-light);
  background-image:
    linear-gradient(rgba(245, 245, 245, 0.88), rgba(245, 245, 245, 0.88)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/72a59dac-c9e9-4cab-9efa-dcdb3eeb66d6/root/1775835756681_all-lighting-maintenance-auger-truck-pole-setting.webp");
  background-size: cover;
  background-position: center;
}

#cta-section .section-title {
  color: var(--dark);
}

#cta-section .section-title::after {
  background: var(--red);
}

.cta-body {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-body p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #555;
  margin: 0 0 0;
  line-height: 1.7;
}

/* Truck silhouette accents on light sections */
#about,
#gallery,
#cta-section {
  position: relative;
}


/* ======================
   11. FOOTER
   ====================== */

#site-footer {
  background: var(--dark);
  color: #ccc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 60px 0 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.footer-contact a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--red);
}

.footer-social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-icons a i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.social-icons a:hover {
  color: #ccc;
}

.social-icons a:hover i {
  color: var(--red);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom a {
  color: inherit;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ======================
   12b. REVIEW MODAL
   ====================== */
.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal.open {
  display: flex;
}

.review-modal__inner {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.review-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark);
  z-index: 1;
  padding: 4px 8px;
}

.review-modal__close:hover {
  color: var(--red);
}

/* ======================
   13. RESPONSIVE
   ====================== */
@media (max-width: 1025px) {
  /* Hero */
  .hero-title {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.2rem;
  }

  .hero-btn {
    width: 240px;
  }

  /* About */
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Gallery */
  .gallery-item {
    flex: 0 0 calc(50% - 6px);
  }

  /* Videos */
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .hero-title-sub {
    font-size: 1rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 320px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-cta {
    flex-direction: column;
    align-items: center;
  }

  .section-cta .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .brand-logo {
    height: 72px;
  }

  .gallery-item {
    flex: 0 0 100%;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    padding-bottom: 52px;
  }

  .carousel-btn {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .carousel-btn.prev {
    left: calc(50% - 56px);
  }

  .carousel-btn.next {
    right: calc(50% - 56px);
  }

  .reviews-widget iframe {
    min-height: 250px !important;
  }

  .footer-inner {
    flex-direction: column;
    padding: 40px 0 30px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 0 30px;
  }
}
