/* Modern Luxury Hotel Website Styles */

/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #8B0000;
  --primary-light: #B22222;
  --primary-dark: #660000;
  --secondary-color: #2F4F4F;
  --secondary-light: #708090;
  --secondary-dark: #1C1C1C;
  --accent-gold: #D4AF37;
  --accent-cream: #F5F5DC;
  --text-dark: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --background-light: #FFFFFF;
  --background-gray: #F8F9FA;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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.2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
}

/* Card Overrides */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 20px var(--shadow-light);
  transition: var(--transition-medium);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.card-title {
  color: var(--text-dark);
  font-weight: 600;
}

.card-text {
  color: var(--text-light);
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-light);
  transition: var(--transition-fast);
  padding: 1rem 0;
}

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

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

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

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 15px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0;
  focus: none;
}

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

.mobile-menu-icon {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 20px;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-icon span {
  display: block;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px var(--shadow-dark);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-cream);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta .btn {
  margin: 0 10px 10px 0;
}

/* Section Spacing */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 20px auto 0;
}

/* Features/Services Grid */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  border-radius: 8px;
  transition: var(--transition-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
  background-color: var(--accent-gold);
  transform: scale(1.1);
}

/* Image Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 0.8;
}

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

.gallery-overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay-content {
  transform: translateY(0);
}

/* Contact Form */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-form {
  background-color: var(--background-gray);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.8);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 2rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: white;
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

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

.bg-secondary-custom {
  background-color: var(--secondary-color);
}

.bg-light-gray {
  background-color: var(--background-gray);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Design - Mobile First */
@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta .btn {
    display: block;
    margin: 10px 0;
    width: 100%;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 10px 0;
    padding: 10px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    height: 80vh;
  }
  
  .section {
    padding: 70px 0;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    margin: 0 20px;
  }
  
  .feature-card {
    padding: 2.5rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Smooth scroll behavior for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}