/* Modern Luxury Hotel Website Styles */

/* CSS Custom Properties */
:root {
  --primary-color: #D2691E;
  --primary-dark: #B8591A;
  --primary-light: #E6A366;
  --secondary-color: #2F4F4F;
  --secondary-dark: #1E3333;
  --secondary-light: #5A7A7A;
  --accent-gold: #FFD700;
  --accent-cream: #F5F5DC;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --text-muted: #666666;
  --background-light: #FAFAFA;
  --border-light: #E0E0E0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

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

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

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(210, 105, 30, 0.4);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(47, 79, 79, 0.4);
}

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

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

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Card Overrides */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-elegant);
  overflow: hidden;
  transition: var(--transition-smooth);
  background: white;
}

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

.card-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  border-bottom: none;
  padding: 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

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

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  color: var(--text-dark) !important;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(47, 79, 79, 0.6), rgba(210, 105, 30, 0.3));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(47, 79, 79, 0.8), rgba(210, 105, 30, 0.6));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero .lead {
  color: var(--accent-cream);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--background-light);
}

.section-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.section-primary h2,
.section-primary h3 {
  color: var(--text-light);
}

.section-primary p {
  color: var(--accent-cream);
}

/* About Section */
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
}

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

.about-image:hover img {
  transform: scale(1.05);
}

/* Rooms Section */
.room-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  margin-bottom: 2rem;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px var(--shadow-medium);
}

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

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

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

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

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-primary);
}

/* Amenities */
.amenity-item {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  height: 100%;
}

.amenity-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
}

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

/* Contact Form */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
}

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

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating > label {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

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

.footer a {
  color: var(--accent-cream);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid var(--secondary-light);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: var(--accent-cream);
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

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

.shadow-elegant {
  box-shadow: var(--shadow-elegant) !important;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .navbar-nav {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .room-card-image {
    height: 200px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --text-muted: #333333;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}