/* --- Griya Rias Saraswati Custom CSS --- */

:root {
  --primary-gold: #c5a880;
  --primary-gold-dark: #a8865b;
  --accent-gold: #d8b88d;
  --bg-warm-white: #fcfbf9;
  --dark-slate: #1f272a;
  --dark-slate-card: #2e373b;
  --text-dark: #333333;
  --text-muted: #777777;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-premium-hover: 0 15px 35px rgba(197, 168, 128, 0.2);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: var(--font-sans);
  background-color: var(--bg-warm-white);
  color: var(--text-dark);
  position: relative;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
.serif-font {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* --- Navbar Styling --- */
.navbar-custom {
  background-color: rgba(31, 39, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar-custom .navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff !important;
  display: flex;
  align-items: center;
}

.navbar-custom .navbar-brand i {
  color: var(--primary-gold);
  margin-right: 10px;
}

.navbar-custom .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-gold) !important;
}

.navbar-custom .btn-nav-login {
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold) !important;
  border-radius: 20px;
  padding: 5px 20px !important;
  transition: all 0.3s ease;
}

.navbar-custom .btn-nav-login:hover {
  background-color: var(--primary-gold);
  color: var(--dark-slate) !important;
}

.navbar-custom .btn-nav-signup {
  background-color: var(--primary-gold);
  color: var(--dark-slate) !important;
  border-radius: 20px;
  padding: 5px 20px !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-custom .btn-nav-signup:hover {
  background-color: var(--primary-gold-dark);
}

.navbar-custom .btn-nav-admin {
  border: 1px solid var(--accent-gold);
  background: rgba(197, 168, 128, 0.12);
  color: var(--accent-gold) !important;
  border-radius: 20px;
  padding: 5px 16px !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-custom .btn-nav-admin:hover {
  background-color: var(--primary-gold);
  color: var(--dark-slate) !important;
  border-color: var(--primary-gold);
}

.text-gold {
  color: var(--primary-gold) !important;
}

.includes-badge {
  background: rgba(197, 168, 128, 0.12) !important;
  color: var(--primary-gold-dark) !important;
  border: 1px solid rgba(197, 168, 128, 0.3) !important;
  font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -70px; /* Offset body padding-top */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-serif);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.btn-gold-cta {
  background: var(--primary-gold);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-gold-cta:hover {
  background: var(--primary-gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.6);
  color: #ffffff;
}

/* --- Why Choose Us --- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.why-choose-us-p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* --- Gallery Section --- */
.gallery-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.gallery-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.gallery-card {
  flex: 1;
  height: 400px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.gallery-card-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-premium-hover);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.btn-dark-outline {
  background-color: #3b4447;
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 5px;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-dark-outline:hover {
  background-color: var(--dark-slate);
  transform: translateY(-2px);
}

/* --- Packages Section --- */
.packages-section {
  background-color: var(--bg-warm-white);
  padding: 100px 0;
}

.package-card {
  background-color: var(--dark-slate-card);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 16px;
  padding: 35px;
  color: #ffffff;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.package-name {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 25px;
  font-family: var(--font-serif);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  flex-grow: 1;
}

.package-features li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.package-features li::before {
  content: "•";
  color: var(--primary-gold);
  font-weight: bold;
  display: inline-block;
  width: 15px;
  margin-left: -5px;
  flex-shrink: 0;
}

.package-footer-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.package-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-sans);
}

.btn-cart-bronze {
  background-color: #a07855;
  color: #ffffff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(160, 120, 85, 0.3);
}

.btn-cart-bronze:hover {
  background-color: #b88a62;
  transform: scale(1.1);
  color: #ffffff;
}

.btn-cart-bronze i {
  font-size: 1.2rem;
}

/* --- Footer --- */
.footer-section {
  background-color: var(--dark-slate);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 30px 0;
  border-top: 2px solid var(--primary-gold);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-brand {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(4px);
}

.footer-contact-info li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.text-gold {
  color: var(--primary-gold) !important;
}

.footer-socials .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(197, 168, 128, 0.2);
  transition: all 0.3s ease;
}

.footer-socials .social-icon:hover {
  background: var(--primary-gold);
  color: var(--dark-slate);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.text-muted-footer {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .hero-section {
    height: 100vh;
    min-height: 450px;
  }
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .gallery-card {
    flex: 1 1 calc(50% - 10px);
    height: 280px;
  }
  .package-card {
    padding: 26px;
    margin-bottom: 15px;
  }
}

@media (max-width: 575.98px) {
  .navbar-custom {
    padding: 10px 0;
  }
  .navbar-custom .navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
  }
  .hero-section {
    height: 100vh;
    min-height: 380px;
  }
  .hero-title {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .btn-gold-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  .gallery-card {
    flex: 1 1 100%;
    height: 220px;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .why-choose-us-p {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .package-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .package-name {
    font-size: 1.35rem;
  }
  .package-price {
    font-size: 1.15rem;
  }
  .footer-section {
    padding: 45px 0 20px 0;
  }
}

/* --- Customer Features Overrides & Styles --- */
.nav-pills .nav-link {
  color: var(--dark-slate);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--primary-gold-dark);
  border-color: var(--primary-gold);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-gold) !important;
  color: #ffffff !important;
  border-color: var(--primary-gold) !important;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 0 0.25rem rgba(197, 168, 128, 0.25) !important;
}

.table th {
  background-color: var(--dark-slate) !important;
  color: #ffffff !important;
  border-bottom: 2px solid var(--primary-gold) !important;
}

.decorations-banner h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.check-gold:checked {
  background-color: var(--primary-gold) !important;
  border-color: var(--primary-gold) !important;
}

.check-gold:focus {
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 0 0.25rem rgba(197, 168, 128, 0.25) !important;
}

#categoryDropdown + .dropdown-menu,
#categoryDropdown + .dropdown-menu * {
  transition: none !important;
  animation: none !important;
}

/* Custom Dropdown Item Hover & Active states matching Griya Rias Saraswati Gold Theme */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: rgba(197, 168, 128, 0.1) !important;
  color: var(--primary-gold-dark) !important;
}

.dropdown-menu .dropdown-item:hover .form-check-label {
  color: var(--primary-gold-dark) !important;
}

.dropdown-menu .dropdown-item:active {
  background-color: var(--primary-gold) !important;
  color: #ffffff !important;
}

.dropdown-menu .dropdown-item:active .form-check-label {
  color: #ffffff !important;
}
