/* Samreddhi Properties Custom Premium Stylesheet */

:root {
  --primary-color: #D4AF37; /* Metallic Gold */
  --secondary-color: #E2E8F0; /* Soft off-white for legible body copy */
  --accent-color: #D4AF37; /* Gold Highlight */
  --bg-color: #0B0B0B; /* Deep Obsidian Black */
  --white: #161616; /* Dark luxurious card surface */
  --pure-white: #ffffff;
  --gold-metallic: #D4AF37;
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(212, 175, 55, 0.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.8);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--secondary-color);
  overflow-x: hidden;
}

/* Global Luxury Branding Styles Overrides */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  color: var(--pure-white) !important;
}

.text-dark {
  color: var(--pure-white) !important;
}

.text-muted {
  color: #A0A0A0 !important;
}

/* Custom scrollbar gold style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0B0B;
}
::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B5942F;
}

/* Bootstrap standard component overrides */
.bg-white {
  background-color: #121212 !important;
}

.bg-light {
  background-color: #1A1A1A !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

.bg-primary {
  background-color: #D4AF37 !important;
  color: #111111 !important;
}

.text-primary, .text-success {
  color: #D4AF37 !important;
}

.bg-primary-subtle, .bg-success-subtle {
  background-color: rgba(212, 175, 55, 0.1) !important;
  color: #D4AF37 !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.border {
  border-color: rgba(212, 175, 55, 0.2) !important;
}

.btn-primary {
  background-color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #111111 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: #fcebbb !important;
  border-color: #fcebbb !important;
  color: #000000 !important;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
}

.btn-outline-primary {
  border-color: #D4AF37 !important;
  color: #D4AF37 !important;
  font-weight: 600 !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover {
  background-color: #D4AF37 !important;
  color: #111111 !important;
}

.btn-outline-dark, .btn-outline-secondary {
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #dddddd !important;
}

.btn-outline-dark:hover, .btn-outline-secondary:hover {
  background-color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #111111 !important;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* Base custom offsets for sticky header */
section {
  scroll-margin-top: 80px;
}

/* Header & Navbar styling */
.custom-navbar {
  transition: var(--transition-smooth);
  background-color: rgba(11, 11, 11, 0.92) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(10px);
}

.custom-navbar.scrolled {
  background-color: rgba(11, 11, 11, 0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-sec {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1200");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 120px 0 100px 0;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Custom rounded cards and shadow hover effects */
.custom-card {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  background-color: #161616 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
  overflow: hidden;
  color: #ffffff;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
  border-color: #D4AF37 !important;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #111111;
}

.card-img-wrapper img {
  transition: var(--transition-smooth);
}

.custom-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Badges */
.badge-custom {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #D4AF37 !important;
  color: #111111 !important;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: 1px solid #ffffff;
}

.badge-rent-buy {
  background-color: #111111 !important;
  color: #D4AF37 !important;
  border: 1px solid #D4AF37 !important;
}

.badge-sale {
  background-color: #B5942F !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}

/* Category Slider & Filter */
.filter-btn {
  background-color: #161616 !important;
  color: #E2E8F0 !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background-color: #D4AF37 !important;
  color: #111111 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Icon box styles (Why Choose Us) */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  background-color: rgba(212, 175, 55, 0.1) !important;
  color: #D4AF37 !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.custom-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  background-color: #D4AF37 !important;
  color: #111111 !important;
}

/* Lead generation Form section */
.form-section {
  background-color: #161616 !important;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  background-color: #222222 !important;
  color: #ffffff !important;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
  border-color: #D4AF37 !important;
  background-color: #1e1e1e !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
  color: #ffffff !important;
}

.form-control::placeholder {
  color: #888888 !important;
}

/* CUSTOM SWIPEABLE HORIZONTAL CAROUSEL SYSTEM */
.property-carousel-container {
  position: relative;
  width: 100%;
}

.property-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  padding-top: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars for dynamic slider track */
.property-carousel-track::-webkit-scrollbar {
  display: none;
}
.property-carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: rgba(17, 17, 17, 0.95) !important;
  border: 2px solid #D4AF37 !important;
  color: #D4AF37 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.carousel-control-btn:hover {
  background-color: #D4AF37 !important;
  color: #111111 !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control-prev-custom {
  left: -23px;
}

.carousel-control-next-custom {
  right: -23px;
}

.carousel-item-card {
  flex: 0 0 350px;
  max-width: 350px;
}

@media(max-width: 768px) {
  .carousel-control-btn {
    display: none !important;
  }
  .carousel-item-card {
    flex: 0 0 290px;
    max-width: 290px;
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.22rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Scroll to Top icon */
.scroll-to-top {
  position: fixed;
  bottom: 105px;
  right: 35px;
  background-color: var(--secondary-color);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 999;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Custom testimonial client photos */
.testimonial-img {
  width: 70px;
  height: 70px;
  object-cover: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

/* Form Success Modal Overlay */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.success-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  padding: 40px 30px;
  text-align: center;
  transform: scale(0.85);
  transition: var(--transition-smooth);
}

.success-modal-overlay.active .success-modal-content {
  transform: scale(1);
}

.success-icon-wrap {
  width: 75px;
  height: 75px;
  background-color: rgba(25, 135, 84, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px auto;
}

/* Footer customization */
.footer-text-light {
  color: #a0aec0;
}

.footer-link {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Lazy Load Transition Support */
img {
  transition: opacity 0.5s ease;
}

img[loading="lazy"] {
  opacity: 0.9;
}

/* Custom Bootstrap Utility Helper Fallbacks for Tailwind Remnants (ensures perfect local rendering) */
.w-full {
  width: 100% !important;
}

.h-full {
  height: 100% !important;
}

.object-cover {
  object-fit: cover !important;
}

.max-w-2xl {
  max-width: 42rem !important;
}

.max-w-sm {
  max-width: 24rem !important;
}
