/* ============================================
   AA Bridal Studio — Luxury Stylesheet
   ============================================ */

/* --- Base & Typography --- */
::selection {
  background-color: #D4AF37;
  color: #FAF8F5;
}

/* --- Navigation --- */
#navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.15);
}

.nav-link {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #D4AF37;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  color: #D4AF37;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #D4AF37;
}

#menu-toggle.active .menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* --- Hero Background --- */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.1) 0%, transparent 50%),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}

/* Fallback gradient if image fails */
@supports not (background: url('')) {
  .hero-bg {
    background: linear-gradient(160deg, #2D2D2D 0%, #1A1A1A 40%, #3D2B1F 100%);
  }
}

/* --- Scroll Indicator Animation --- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1A1A1A;
  background: #D4AF37;
  border: 1px solid #D4AF37;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #FAF8F5;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary:hover {
  color: #1A1A1A;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1A1A1A;
  background: transparent;
  border: 1px solid #D4AF37;
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  background: #D4AF37;
  color: #1A1A1A;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

/* --- Trust Banner --- */
.trust-banner {
  position: relative;
}

/* --- Filter Buttons --- */
.filter-btn {
  padding: 0.625rem 1.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1A1A1A;
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.2);
  transition: all 0.35s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

.filter-btn.active {
  background: #1A1A1A;
  color: #FAF8F5;
  border-color: #1A1A1A;
}

.filter-btn.active:hover {
  background: #2D2D2D;
  color: #FAF8F5;
}

/* --- Product Cards --- */
.product-card {
  position: relative;
  overflow: hidden;
  background: #FAF8F5;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.1);
}

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #F5F0E8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(4px);
  color: #1A1A1A;
  z-index: 2;
}

.product-info {
  padding: 1.5rem 1.25rem 1.75rem;
  text-align: center;
}

.product-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: #B8962E;
}

.inquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: #FAF8F5;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
}

.inquire-btn:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #1A1A1A;
}

.inquire-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Product card fade animation */
.product-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.fade-in {
  animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- How It Works Steps --- */
.step-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: #FAF8F5;
  border: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
  transition: all 0.4s ease;
}

.step-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.06);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(212, 175, 55, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.step-card:hover .step-number {
  color: rgba(212, 175, 55, 0.5);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.step-card:hover .step-icon {
  background: #D4AF37;
  color: #FAF8F5;
  border-color: #D4AF37;
}

/* --- Social Buttons --- */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #FAF8F5;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  transition: all 0.35s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #1A1A1A;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.social-btn-outline {
  background: transparent;
  color: #1A1A1A;
  border-color: #1A1A1A;
}

.social-btn-outline:hover {
  background: #1A1A1A;
  color: #FAF8F5;
  border-color: #1A1A1A;
}

/* --- Footer Social --- */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgba(250, 248, 245, 0.6);
  border: 1px solid rgba(250, 248, 245, 0.15);
  border-radius: 50%;
  transition: all 0.35s ease;
}

.footer-social:hover {
  color: #D4AF37;
  border-color: #D4AF37;
  transform: translateY(-2px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Smooth scrollbar (webkit) --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F0E8;
}

::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8962E;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 0.65rem;
  }

  .product-title {
    font-size: 1.2rem;
  }
}
