/* ============================================
   Visionary Flow Group – Professional Cleaning
   Theme: Black, White, Golden Yellow (from logo)
   ============================================ */

:root {
  /* From logo: black bg, white text, golden accent */
  --black: #000000;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --gold-light: #e5c76b;
  --light: #f5f5f5;
  --light-alt: #eeeeee;
  --muted: #666666;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* ---- Nav ---- */
.navbar {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Mobile: black background when hamburger menu is open */
@media (max-width: 991.98px) {
  .navbar.mobile-open {
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
  }
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--white) !important;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--black);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -0.5px;
  border: 1px solid var(--gold);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--gold) !important;
}

/* Buttons */
.btn-accent {
  background: var(--gold);
  color: var(--black) !important;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-accent:hover {
  background: var(--gold-dark);
  color: var(--black) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-royal {
  background: var(--black);
  color: var(--white) !important;
  border: 1px solid var(--gold);
  font-weight: 600;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-royal:hover {
  background: var(--black-soft);
  color: var(--gold) !important;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white !important;
}

/* Text / BG utilities (logo palette) */
.text-navy { color: var(--black) !important; }
.bg-royal { background-color: var(--black) !important; }
.bg-navy { background-color: var(--black) !important; }
.bg-teal { background-color: var(--gold) !important; }
.bg-accent-yellow { background-color: var(--gold) !important; }
.bg-accent-teal { background-color: var(--gold) !important; }
.bg-light-alt { background-color: var(--light-alt) !important; }

.badge-pill {
  padding: 0.4em 1em;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Hero Carousel ---- */
.hero-carousel-section {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
}

.hero-carousel-section .carousel {
  height: 100vh;
  min-height: 560px;
}

.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
  height: 100%;
}

.hero-carousel-section .carousel-item img {
  object-fit: cover;
  height: 100vh;
  min-height: 560px;
  width: 100%;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.carousel-caption {
  bottom: 15%;
  left: 8%;
  right: 8%;
  text-align: left;
}

.carousel-caption h1 {
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.carousel-caption .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  max-width: 520px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Carousel controls */
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: background var(--transition), transform var(--transition);
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel-section .carousel-control-prev { left: 0; }
.hero-carousel-section .carousel-control-next { right: 0; }

/* Carousel indicators */
.hero-carousel-section .carousel-indicators {
  bottom: 2rem;
}

.hero-carousel-section .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
  transition: background var(--transition), transform var(--transition);
}

.hero-carousel-section .carousel-indicators .active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ---- Animations: Carousel captions ---- */
.carousel-item .animate-caption {
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .animate-caption {
  animation: captionIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes captionIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Service cards ---- */
.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform var(--transition);
}

.service-card:hover .card-icon {
  transform: scale(1.08);
}

/* ---- About ---- */
.check-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.about-image-wrapper {
  max-width: 540px;
  margin-left: auto;
}

.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  font-weight: 700;
  font-size: 0.95rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Footer (logo: black + gold accent) ---- */
footer.bg-navy {
  border-top: 3px solid var(--gold);
}

footer a.text-white-50:hover {
  color: var(--gold) !important;
}

/* ---- Testimonials ---- */
.avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- CTA / Contact ---- */
.bg-cta {
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 50%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}

.bg-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  color: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Dropdown options list - black text on white background */
.contact-form select.form-control option {
  color: var(--black);
  background: white;
}

/* Form success/error messages */
#successMessage,
#errorMessage {
  border-radius: 10px;
  border: none;
  animation: slideDown 0.3s ease-out;
}

#successMessage {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-left: 3px solid #22c55e;
}

#errorMessage {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-left: 3px solid #ef4444;
}

#successMessage.show,
#errorMessage.show {
  display: block !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-gold { color: var(--gold) !important; }
.text-gold:hover { color: var(--gold-light) !important; }

.contact-info-block a.text-gold { color: var(--gold) !important; text-decoration: none; }
.contact-info-block a.text-gold:hover { color: var(--gold-light) !important; text-decoration: underline; }

/* ---- Core Values ---- */
.value-card {
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
}
.value-icon {
  color: var(--gold);
  font-size: 1.25rem;
}

/* ---- Scroll-triggered animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .carousel-caption {
    text-align: center;
    left: 5%;
    right: 5%;
  }

  .carousel-caption .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-caption .btn {
    margin-bottom: 0.5rem;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption .lead {
    font-size: 1rem;
  }

  .about-image-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .floating-badge {
    right: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .hero-carousel-section .carousel-item img {
    min-height: 480px;
  }

  .hero-carousel-section .carousel {
    min-height: 480px;
  }

  .carousel-caption h1 {
    font-size: 1.65rem;
  }

  .carousel-caption .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 1rem;
  }

  .display-5, .display-6 {
    font-size: 1.75rem;
  }

  .hero-carousel-section .carousel-control-prev,
  .hero-carousel-section .carousel-control-next {
    top: 90%;
  }
}

/* ---- Fade-in for carousel items (Bootstrap override) ---- */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.8s;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
}
