/* ------------------------------------------------------------
   SECTION TINT SYSTEM — BOLD NAVY / GRAY
------------------------------------------------------------ */

.section:nth-of-type(even) {
  background: rgba(208, 209, 211, 0.3);
}

.section:nth-of-type(odd) {
  background: rgba(101, 114, 147, 0.3);
}

/* ------------------------------------------------------------
   NAV
------------------------------------------------------------ */

/* ------------------------------------------------------------
   NAV — Black Text, Gold Hover, Gold Active, Gold Border
------------------------------------------------------------ */

.navbar {
  border-bottom: 4px solid var(--color-accent);
  background: var(--color-surface) !important; /* white/navy contrast */
  position: sticky;
  top: 0;
  z-index: 1000;
  opacity: 95%;
}

/* Default link style */
.navbar .nav-link {
  color: #000 !important; /* black text */
  font-weight: 600;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

/* Hover */
.navbar .nav-link:hover {
  color: var(--color-accent) !important; /* gold */
  text-shadow: 0 0 6px rgba(234, 179, 8, 0.45);
}

/* Active link */
.navbar .nav-link.active {
  color: var(--color-accent) !important; /* gold */
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 4px;
}

/* ------------------------------------------------------------
   GALLERY STRIP
------------------------------------------------------------ */

.gallery-strip {
  display: flex;
}

.gallery-strip-item {
  width: 25%;
  min-width: 200px;
  height: 600px;
  overflow: hidden;
}

.gallery-strip-item img {
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 992px) {
  .gallery-strip-item {
    width: 33.33%;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .gallery-strip-item {
    width: 100%;
    height: 300px;
    min-width: 0;
  }
}

/* ------------------------------------------------------------
   HERO — FULL-WIDTH ROTATOR WITH TEXT OVERLAY
------------------------------------------------------------ */

#hero {
  position: relative; /* CRITICAL FIX */
}

/* Rotating background layer */
.hero-rotator-wide {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-rotator-wide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-rotator-wide img.active {
  opacity: 1;
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Content sits above everything */
.hero-wide-content {
  position: relative;
  z-index: 3;
  color: white;
}

/* ------------------------------------------------------------
   SPACING
------------------------------------------------------------ */

.hairline {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin: 3rem 0;
}

.section-spacer {
  height: 40px;
}

/* ------------------------------------------------------------
   ABOUT
------------------------------------------------------------ */

.about-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.about-feature {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25),
    rgba(29, 78, 216, 0.25)
  );
  border-radius: var(--bs-border-radius);
}

.about {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------------
   TESTIMONIALS
------------------------------------------------------------ */

.testimonial-card,
.testimonial-spotlight,
.testimonial-carousel-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: var(--bs-border-radius);
}

#testimonialCarousel .carousel-item {
  min-height: 350px;
}

.testimonial-carousel-item {
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ------------------------------------------------------------
   CTA
------------------------------------------------------------ */

.btn-text-us {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.1s ease,
    background 0.2s ease;
}

.btn-text-us:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   CONTACT
------------------------------------------------------------ */

.contact-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.contact-button {
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: 8px;
  font-weight: 600;
}

.contact-secondary {
  color: var(--color-primary);
  font-weight: 500;
}

/* ------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------ */

.service-card-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: fadeIn 1s ease forwards;
}

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

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

.fade-scroll {
  animation: fadeIn 1s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

@keyframes heroFloatIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-animate {
  animation: heroFloatIn 1s ease-out forwards;
}



/* ============================================
   MOBILE SERVICE BLOCK WIDTH FIX
   Makes service cards wider on mobile
=========================================== */
@media (max-width: 768px) {
  .service-block {
    width: calc(100% - 0.5rem) !important; /* wider card */
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.25rem !important;
    border-radius: 14px !important;
  }

  .service-block .service-content h3,
  .service-block .service-content .card-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  .service-block .service-content {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
}
