/* ===== PRESTIGE CARRIERS - Luxury Styles ===== */

/* ---------- BASE RESET & SMOOTHING ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(197, 160, 89, 0.25);
  color: #1A1A2E;
}

/* ---------- HERO VIDEO BACKGROUND ---------- */
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
}


/* ---------- HERO GRADIENT & EFFECTS ---------- */
.hero-gradient {
  background: radial-gradient(ellipse at 20% 50%, rgba(197, 160, 89, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(26, 26, 46, 0.8) 0%, transparent 50%);
}

.hero-pattern {
  background-image: 
    linear-gradient(30deg, #C5A059 12%, transparent 12.5%, transparent 87%, #C5A059 87.5%, #C5A059),
    linear-gradient(150deg, #C5A059 12%, transparent 12.5%, transparent 87%, #C5A059 87.5%, #C5A059),
    linear-gradient(30deg, #C5A059 12%, transparent 12.5%, transparent 87%, #C5A059 87.5%, #C5A059),
    linear-gradient(150deg, #C5A059 12%, transparent 12.5%, transparent 87%, #C5A059 87.5%, #C5A059),
    linear-gradient(60deg, rgba(197, 160, 89, 0.3) 25%, transparent 25.5%, transparent 75%, rgba(197, 160, 89, 0.3) 75%, rgba(197, 160, 89, 0.3)),
    linear-gradient(60deg, rgba(197, 160, 89, 0.3) 25%, transparent 25.5%, transparent 75%, rgba(197, 160, 89, 0.3) 75%, rgba(197, 160, 89, 0.3));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}


/* ---------- HERO ANIMATIONS ---------- */
.hero-fade-in {
  animation: heroFadeIn 0.9s ease forwards;
}

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

.hero-fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-fade-in:nth-child(2) { animation-delay: 0.3s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.5s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.7s; }
.hero-fade-in:nth-child(5) { animation-delay: 0.9s; }


/* ---------- SCROLL BOUNCE ---------- */
@keyframes bounceSlow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.animate-bounce-slow {
  animation: bounceSlow 2.5s ease-in-out infinite;
}


/* ---------- SCROLL REVEAL ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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


/* ---------- NAVBAR STATES ---------- */
#navbar {
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(197, 160, 89, 0.1);
}

/* Logo swap on scroll */
#navbar .nav-logo-white { display: block; }
#navbar .nav-logo-dark { display: none; }
#navbar.scrolled .nav-logo-white { display: none; }
#navbar.scrolled .nav-logo-dark { display: block; }

#navbar.scrolled .nav-link {
  color: #1A1A2E;
}

#navbar:not(.scrolled) .nav-link {
  color: #ffffff;
}

#navbar:not(.scrolled) .hamburger-line {
  background-color: #ffffff;
}

#navbar.scrolled .hamburger-line {
  background-color: #1A1A2E;
}

#navbar.mobile-open {
  background-color: #1A1A2E;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#navbar.mobile-open .nav-logo-white { display: block; }
#navbar.mobile-open .nav-logo-dark { display: none; }
#navbar.mobile-open .hamburger-line { background-color: #ffffff; }

#navbar.mobile-open #mobile-menu {
  background-color: #1A1A2E !important;
}


/* ---------- TEXT VISIBILITY TWEAKS ---------- */
.text-midnight\/30,
.text-midnight\/40,
.text-midnight\/50,
.text-midnight\/55,
.text-midnight\/60,
.text-midnight\/65,
.text-midnight\/70 {
  color: rgba(17, 17, 17, 0.95) !important;
}

.text-white\/30,
.text-white\/40,
.text-white\/50,
.text-white\/55,
.text-white\/60,
.text-white\/70,
.text-white\/80 {
  color: rgba(255, 255, 255, 0.95) !important;
}


/* ---------- SERVICE CARDS ---------- */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(26, 26, 46, 0.08);
}


/* ---------- QUOTE CONTAINER ---------- */
.quote-container {
  position: relative;
}

.quote-container iframe {
  display: block;
  width: 100%;
}


/* ---------- FORM STYLES ---------- */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(26, 26, 46, 0.2);
}


/* ---------- FORM RESPONSE ---------- */
#form-response.success {
  background-color: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: #1A1A2E;
}

#form-response.error {
  background-color: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #dc2626;
}


/* ---------- LOADING SPINNER ---------- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ---------- MOBILE MENU ---------- */
#mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}


/* ---------- SMOOTH ANCHOR ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ---------- COMPANY TABLE (MOBILE) ---------- */
@media (max-width: 640px) {
  .company-table {
    display: block;
  }

  .company-table tbody,
  .company-table tr {
    display: block;
  }

  .company-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 1);
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .company-table th {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89, 0.1);
    color: #1A1A2E;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 9999px;
    letter-spacing: 0.08em;
  }

  .company-table td {
    padding-top: 8px;
    padding-bottom: 4px;
    color: #1A1A2E;
    line-height: 1.8;
  }
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 640px) {
  .hero-fade-in h1 span {
    font-size: 2.5rem;
  }

  #hero-video {
    object-position: 60% center;
  }
}

/* ---------- CONTRACT CARD (STATIC) ---------- */
.contract-detail {
  max-height: none;
  overflow: visible;
  opacity: 1;
  border-top-color: rgba(197, 160, 89, 0.2);
}

.contract-card,
.contract-card * {
  cursor: default;
}

.contract-card:hover,
.contract-card-header:hover {
  background: transparent;
}
