/* Modern Style Contractors - Custom Styles */

/* ===== CSS Variables ===== */
:root {
  --navy: #1B2A4A;
  --navy-light: #243558;
  --navy-dark: #131f38;
  --gold: #C8A35F;
  --gold-light: #D4B577;
  --gold-dark: #B8934F;
  --cream: #F8F7F4;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 75vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 74, 0.85) 0%,
    rgba(27, 42, 74, 0.65) 50%,
    rgba(27, 42, 74, 0.55) 100%
  );
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--gold);
  padding-left: 24px;
}

/* ===== Mobile Nav ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Buttons ===== */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 163, 95, 0.4);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 42, 74, 0.3);
}

/* ===== Section Styles ===== */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* ===== Process Timeline ===== */
.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: calc(100% + 2rem);
  height: 2px;
  background: var(--gold);
  opacity: 0.3;
}

.timeline-step:last-child::before {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.15);
}

/* ===== Cards ===== */
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px;
  transition: color 0.3s;
}

.lightbox-nav:hover {
  color: var(--gold);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* ===== Gallery ===== */
.gallery-filter-btn {
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.gallery-filter-btn:not(.active) {
  background: var(--white);
  color: var(--text);
  border-color: #e5e7eb;
}

.gallery-filter-btn:not(.active):hover {
  border-color: var(--gold);
  color: var(--gold);
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--gold);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

/* ===== Form Styles ===== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 163, 95, 0.15);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.05;
}

/* ===== Page Hero (internal pages) ===== */
.page-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0 60px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 74, 0.9) 0%,
    rgba(27, 42, 74, 0.7) 100%
  );
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }

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

  .timeline-step::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    min-height: 350px;
  }
}
