/* ===============================================
   LUXURY HOTEL WEBSITE STYLES
   Modern Luxury Theme
   Primary: #C41E3A | Secondary: #1A1A1A
   =============================================== */

/* ROOT VARIABLES */
:root {
  --primary-color: #C41E3A;
  --secondary-color: #1A1A1A;
  --accent-gold: #D4AF37;
  --text-light: #F8F9FA;
  --text-dark: #1A1A1A;
  --text-gray: #6C757D;
  --bg-light: #FFFFFF;
  --bg-gray: #F8F9FA;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* BOOTSTRAP 5 OVERRIDES */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #A01729;
  border-color: #A01729;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-dark {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: #2D2D2D;
  border-color: #2D2D2D;
  transform: translateY(-2px);
}

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

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-dark {
  background-color: var(--secondary-color) !important;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #A01729;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
}

/* UTILITY CLASSES */
.text-gold {
  color: var(--accent-gold);
}

.bg-gold {
  background-color: var(--accent-gold);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.luxury-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  border: none;
  margin: 2rem auto;
}

.section-padding {
  padding: 5rem 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(196, 30, 58, 0.3));
  z-index: 1;
}

/* HEADER & NAVIGATION */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(196, 30, 58, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* HERO SECTION */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(248, 249, 250, 0.9);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD COMPONENTS */
.luxury-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.luxury-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.luxury-card:hover::before {
  transform: scaleX(1);
}

.luxury-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.luxury-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.5rem;
}

/* ROOM CARDS */
.room-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.room-card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.room-card:hover .room-card-img img {
  transform: scale(1.05);
}

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.125rem;
}

.room-card-body {
  padding: 1.5rem;
}

.room-amenities {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.room-amenities li {
  display: inline-block;
  background: var(--bg-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin: 0.25rem;
  color: var(--text-gray);
}

/* FORMS */
.form-control {
  border: 2px solid #E9ECEF;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: var(--bg-light);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
  background-color: var(--bg-light);
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.booking-form {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  text-align: center;
  position: relative;
  margin: 1rem 0;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  margin: 1rem 0 2rem;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

.testimonial-role {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

/* FOOTER */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer a {
  color: rgba(248, 249, 250, 0.8);
  transition: var(--transition-smooth);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(248, 249, 250, 0.1);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 249, 250, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(248, 249, 250, 0.7);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-light);
  z-index: 9999;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--secondary-color);
  text-align: center;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary-color);
}

/* LOADING ANIMATION */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 1s ease-in-out infinite;
}

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

/* SCROLL TO TOP */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #A01729;
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .luxury-card {
    padding: 1.5rem;
  }
  
  .booking-form {
    margin-top: -1rem;
    padding: 1.5rem;
  }
  
  .room-card-img {
    height: 200px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .luxury-card {
    padding: 1rem;
  }
  
  .room-card-body {
    padding: 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* PRINT STYLES */
@media print {
  .navbar,
  .mobile-menu,
  .scroll-to-top,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}