/* Style.css - Jaipur Safa House Custom Stylesheet */

/* Design Variables */
:root {
  --primary-gold: #D4AF37;
  --primary-gold-hover: #C59F2D;
  --secondary-crimson: #990024;
  --secondary-crimson-hover: #7E001B;
  --neutral-light: #FDFBF7;
  --neutral-dark: #2C0E14;
  --text-muted-dark: #5C4A4D;
  --bg-gradient: linear-gradient(135deg, #2C0E14 0%, #1A0508 100%);
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 100%);
  --crimson-gradient: linear-gradient(135deg, #990024 0%, #D81B60 100%);
  
  /* Category Colors */
  --btn-barati-grad: linear-gradient(135deg, #FF007F 0%, #FF7F00 100%);
  --btn-dupatta-grad: linear-gradient(135deg, #990024 0%, #D4AF37 100%);
  --btn-pagri-grad: linear-gradient(135deg, #7E001B 0%, #2C0E14 100%);
  --btn-readymade-grad: linear-gradient(135deg, #0F52BA 0%, #D4AF37 100%);
}

/* Typography & Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Announcement Bar */
.top-bar {
  background-color: var(--neutral-dark);
  border-bottom: 2px solid var(--primary-gold);
  font-size: 0.85rem;
}
.top-bar a {
  color: #fff;
  transition: color 0.3s ease;
}
.top-bar a:hover {
  color: var(--primary-gold);
}

/* Navigation Header */
.navbar {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}
.navbar-brand img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05);
}
.nav-link {
  color: var(--neutral-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}
.nav-link:hover, .nav-link.active {
  color: var(--secondary-crimson) !important;
}

/* CTAs & Buttons */
.btn-royal-gold {
  background: var(--gold-gradient);
  color: var(--neutral-dark) !important;
  font-weight: 600;
  border: 1px solid var(--primary-gold);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.btn-royal-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
  background: var(--primary-gold);
  color: #fff !important;
}

.btn-royal-outline {
  background: transparent;
  color: var(--primary-gold) !important;
  font-weight: 600;
  border: 2px solid var(--primary-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-royal-outline:hover {
  background: var(--gold-gradient);
  color: var(--neutral-dark) !important;
  transform: translateY(-2px);
}

/* Custom separator line */
.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 3rem 0;
}
.royal-divider::before,
.royal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
  max-width: 150px;
}
.royal-divider i {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin: 0 1rem;
}

/* Hero Section (Updated to Clean Jaipur background) */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(44, 14, 20, 0.85), rgba(44, 14, 20, 0.75)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 5px solid var(--primary-gold);
}
.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}
.hero-content p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
}

/* Subpage Hero Section (Thin Royal Header Banner) */
.subpage-hero {
  position: relative;
  background-image: linear-gradient(rgba(44, 14, 20, 0.9), rgba(44, 14, 20, 0.85)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  padding: 4rem 0;
  color: #fff;
  border-bottom: 4px solid var(--primary-gold);
}
.subpage-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-gold);
}

/* Categories & Product Cards Grid */
.section-title {
  color: var(--neutral-dark);
  position: relative;
  font-size: 2.25rem;
}
.section-subtitle {
  color: var(--text-muted-dark);
  font-size: 1rem;
}

.category-card, .product-card {
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(44, 14, 20, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card:hover, .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(44, 14, 20, 0.12);
  border-color: var(--primary-gold);
}
.category-img-wrapper, .product-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background-color: var(--neutral-light);
}
.category-img-wrapper img, .product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover .category-img-wrapper img,
.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}
.category-badge, .product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-crimson);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary-gold);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.category-info, .product-info {
  padding: 1.5rem;
}
.category-info h3, .product-info h3 {
  font-size: 1.35rem;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.category-card:hover .category-info h3,
.product-card:hover .product-info h3 {
  color: var(--secondary-crimson);
}
.category-info p, .product-info p {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.product-code {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Category Specific Buttons */
.btn-category, .btn-product {
  width: 100%;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-category:hover, .btn-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #fff;
}

.btn-barati { background: var(--btn-barati-grad); }
.btn-barati:hover { filter: brightness(1.1); }

.btn-dupatta { background: var(--btn-dupatta-grad); }
.btn-dupatta:hover { filter: brightness(1.1); }

.btn-pagri { background: var(--btn-pagri-grad); }
.btn-pagri:hover { filter: brightness(1.1); }

.btn-readymade { background: var(--btn-readymade-grad); }
.btn-readymade:hover { filter: brightness(1.1); }

.btn-groom {
  background: linear-gradient(135deg, #7A001E 0%, #D4AF37 100%);
  color: #fff;
}
.btn-groom:hover {
  filter: brightness(1.1);
  color: #fff;
}

.btn-whatsapp-direct {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  color: #fff;
}
.btn-whatsapp-direct:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Banner / Flyer section style */
.banner-container {
  border: 4px double var(--primary-gold);
  border-radius: 12px;
  padding: 8px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(44,14,20,0.1);
}
.banner-container img {
  border-radius: 6px;
  width: 100%;
  height: auto;
}

/* Why Choose Us Section */
.why-section {
  background-color: #fff;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
}
.why-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--primary-gold), var(--primary-gold) 10px, transparent 10px, transparent 20px);
  opacity: 0.15;
}
.feature-card {
  padding: 2.25rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background-color: var(--neutral-light);
  border-radius: 6px;
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(44, 14, 20, 0.05);
}
.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--secondary-crimson);
  font-size: 2rem;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-wrapper {
  background-color: var(--secondary-crimson);
  color: #fff;
  transform: rotateY(360deg);
  transition: transform 0.6s ease, background-color 0.3s ease;
}
.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

/* Modal Customization */
.modal-content {
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  background-color: var(--neutral-light);
}
.modal-header {
  background-color: var(--neutral-dark);
  color: #fff;
  border-bottom: 2px solid var(--primary-gold);
  padding: 1.25rem 1.5rem;
}
.modal-header .btn-close {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(340deg);
}
.modal-title h4 {
  font-family: 'Cinzel', serif;
  margin-bottom: 0;
}
.modal-body {
  padding: 1.5rem;
}
.form-label {
  font-weight: 500;
  color: var(--neutral-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  border: 1px solid rgba(44, 14, 20, 0.2);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
  outline: none;
}
.modal-footer {
  border-top: 1px solid rgba(44, 14, 20, 0.1);
  padding: 1rem 1.5rem;
}

/* Footer Styles */
footer {
  background: var(--bg-gradient);
  color: #fff;
  border-top: 4px solid var(--primary-gold);
}
.footer-logo {
  max-width: 140px;
  height: auto;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  padding: 5px;
  background-color: rgba(253, 251, 247, 0.05);
}
.footer-heading {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-gold);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(5px);
}
.footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-contact-item {
  display: flex;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer-contact-item i {
  color: var(--primary-gold);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #fff;
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social-icons a:hover {
  background-color: var(--primary-gold);
  color: var(--neutral-dark);
  transform: translateY(-3px);
}
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Floating WhatsApp Button */
.whatsapp-float,
.whatsapp-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1040;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover,
.whatsapp-floating:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile responsive fine tuning */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--neutral-light);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover {
    padding-left: 1.5rem !important;
  }
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  .whatsapp-float,
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
