/* --- Base Variables & Reset --- */
:root {
  --gold: #cda274;
  --dark-bg: #141414;
  --text-dark: #1a1a1a;
  --text-muted: #777777;
  --text-light: #ffffff; /* Added missing variable */
  --bg-color: #fafafa;
  --font-main: "Outfit", sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-gold {
  color: var(--gold);
}

/* --- Navbar (Dark Overlay) --- */
.navbar-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  color: #fff;
  transition: background 0.3s;
}

.navbar-dark.scrolled {
  position: fixed;
  background-color: rgba(20, 20, 20, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* Desktop layout adjustments for the new wrapper */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left: 40px;
}

/* Hamburger Icon Styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 101;
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* --- Mobile Responsive Navigation --- */
@media (width < 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: -100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: calc(100vh - 80px);
    z-index: 999;
    background-color: rgba(20, 20, 20, 0.98);
    width: 100%;
    padding: 30px 0 50px 0;
    transition: left 0.4s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    padding-left: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 25px;
    margin-bottom: 40px;
  }

  .nav-actions {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .phone-info {
    justify-content: center;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* --- Page Hero Section --- */
.page-hero {
  height: 60vh;
  min-height: 400px;
  background:
    linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.8)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumb {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb span {
  color: var(--text-muted);
}

/* --- Services Detail Layout --- */
.services-detail-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.bg-watermark-services {
  position: absolute;
  top: 20%;
  left: -5%;
  font-size: 25vw;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.02);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -5px;
  transform: rotate(-5deg);
}

.service-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reversed {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
}

.service-row:hover .service-image img {
  transform: scale(1.02);
}

.service-content {
  flex: 1;
}

.service-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.service-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.service-features {
  list-style: none;
  margin-bottom: 40px;
}

.service-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service Detail Responsive Adjustments */
@media (max-width: 1024px) {
  .service-row {
    gap: 40px;
  }

  .service-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .service-row,
  .service-row.reversed {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
  }

  .service-image img {
    height: 300px;
  }

  .service-content h2 {
    font-size: 2.5rem;
  }
}

/* --- In-Box Service Carousels --- */
.service-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.service-carousel .slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.service-carousel .slides img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 26, 26, 0.6);
  color: #ffffff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0.7;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: var(--gold);
  opacity: 1;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

/* Carousel Responsive */
@media (max-width: 1024px) {
  .service-carousel {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .service-carousel {
    height: 300px;
  }
  .carousel-btn {
    opacity: 1;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* --- Floating Button --- */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #b0b0b0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 100;
}

.back-to-top:hover {
  background-color: var(--text-dark); /* Fixed typo from var(--dark-text) */
}

/* =========================================
   POPUP FORM MODAL CSS
========================================= */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.form-modal-overlay.hidden {
  display: none;
  opacity: 0;
}

.form-modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #a0a0a0;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-modal:hover {
  color: #cda274; /* Gold hover */
}

/* Form Inputs */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #cda274;
}

.submit-form-btn {
  width: 100%;
  background-color: #cda274;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.submit-form-btn:hover {
  background-color: #b8865b;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
