/* ==========================================================================
   CSS CUSTOM PROPERTIES (Light + Dark themes)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-surface: #f3f4f6;
  --bg-dark-section: #111111;
  --text: #111111;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --border: #d1d5db;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #f3f4f6;
  --footer-bg: #111111;
  --footer-text: rgba(255, 255, 255, 0.7);
}

html.dark {
  --bg: #0a0a0a;
  --bg-surface: #1a1a1a;
  --bg-dark-section: #0f0f0f;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --border: #2a2a2a;
  --nav-bg: rgba(10, 10, 10, 0.96);
  --card-bg: #1a1a1a;
  --footer-bg: #050505;
  --footer-text: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 60px);
  height: 70px;
  background: transparent !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dark mode toggle button */
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: background 0.2s;
}

.dark-toggle:hover {
  background: var(--bg-surface);
}

/* "Request a Quote" button */
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

html.dark .btn-quote {
  background: #fff;
  color: #111;
  border-color: #444;
}

.btn-quote:hover {
  background: #f3f4f6;
}

.btn-quote .arrow {
  font-size: 0.82rem;
  display: inline-block;
  transform: rotate(-45deg);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .navbar-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: block;
  }

  .btn-quote {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 70px 20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/IMG-20260216-WA0018.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
  z-index: 0;
}

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

html.dark .hero-overlay {
  background: rgba(0, 0, 0, 0.62);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-content h4 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */

.section {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.about-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}

.service-card {
  background: var(--bg);
  padding: 40px 32px;
}

.service-card .num {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process-section {
  background: var(--bg-dark-section);
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px);
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-section .section-label {
  color: #6b7280;
}

.process-section .section-title {
  color: #fff;
}

.process-section .section-desc {
  color: #9ca3af;
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .process-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.process-steps {
  border-top: 1px solid #2a2a2a;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid #2a2a2a;
  align-items: start;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 50px 1fr;
  }

  .process-step .step-desc {
    grid-column: 1 / -1;
  }
}

.process-step .step-num {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.process-step .step-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.65;
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.04) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.28) 60%);
}

.project-overlay .proj-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.project-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.project-overlay .proj-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.project-overlay .proj-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  line-height: 1.5;
}

.project-card:hover .project-overlay .proj-desc {
  max-height: 120px;
  opacity: 1;
}

/* ==========================================================================
   CONTACT / GET IN TOUCH
   ========================================================================== */

.contact-section {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 20px;
  background: var(--bg-surface);
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 12px;
}

.contact-section .contact-email {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
  display: block;
}

.contact-section .contact-email a {
  color: var(--text);
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: background 0.2s;
  cursor: pointer;
}

.contact-btn:hover {
  background: var(--bg-surface);
}

/* ==========================================================================
   CONSTRUCTION HIGHLIGHTS SLIDESHOW
   ========================================================================== */

#sitephotos-gallery {
  display: block;
  margin: 48px auto 0;
  max-width: 1200px;
  padding: 0 16px 24px;
  position: relative;
  z-index: 1;
}

#sitephotos-gallery .sitephotos-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
}

#sitephotos-gallery .sitephotos-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
}

#sitephotos-gallery .sitephotos-track::-webkit-scrollbar {
  height: 8px;
}

#sitephotos-gallery .sitephotos-track::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

#sitephotos-gallery .sitephotos-card {
  position: relative;
  flex: 0 0 clamp(280px, 54vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
  will-change: transform, opacity, filter;
  background: #111;
}

#sitephotos-gallery .sitephotos-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#sitephotos-gallery .sitephotos-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.02) 45%);
  pointer-events: none;
}

#sitephotos-gallery .sitephotos-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

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

.sitephotos-lightbox.open {
  display: flex;
}

.sitephotos-lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
}

.sitephotos-lightbox .lb-close,
.sitephotos-lightbox .lb-prev,
.sitephotos-lightbox .lb-next {
  position: absolute;
  border: 1px solid #9ca3af;
  background: rgba(17, 17, 17, 0.8);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
}

.sitephotos-lightbox .lb-close {
  top: 18px;
  right: 18px;
}

.sitephotos-lightbox .lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.sitephotos-lightbox .lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  padding: 80px clamp(20px, 5vw, 80px) 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-col span {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .phone-number {
  color: #b0b0b0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--footer-text);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

/* ==========================================================================
   UTILITY: Hide old React root
   ========================================================================== */

#root {
  display: none;
}
