/* Modern Luxury Hotel Theme - CSS */

/* ===== CSS Custom Properties ===== */
:root {
  --primary-color: #D2691E;
  --secondary-color: #2F4F4F;
  --primary-light: #E6935C;
  --primary-dark: #A0471A;
  --secondary-light: #3E6565;
  --secondary-dark: #1F3333;
  --accent-gold: #C9B037;
  --text-dark: #2C2C2C;
  --text-light: #666666;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --border-light: #E8E8E8;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

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

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

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

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

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

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

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

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  transform: translateY(-2px);
  color: white;
}

/* Form Controls */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-fast);
  background: var(--bg-white);
}

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

.form-select {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
}

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

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

.card-img-top {
  transition: var(--transition-smooth);
}

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

/* ===== Navigation ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

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

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  padding: 4px;
}

.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%2847, 79, 79, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 79, 79, 0.8), rgba(210, 105, 30, 0.8));
  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="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
  z-index: 2;
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  border-radius: 2px;
}

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

/* ===== Room Cards ===== */
.room-card {
  height: 100%;
  transition: var(--transition-smooth);
}

.room-card .card-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.room-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

.room-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(47, 79, 79, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.room-features {
  display: flex;
  gap: 15px;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.room-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

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

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

.amenity-title {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

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

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

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.success-message {
  color: #198754;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

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

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

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

/* ===== Utilities ===== */
.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);
}

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

.shadow-custom {
  box-shadow: var(--shadow-soft);
}

.rounded-custom {
  border-radius: 16px;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

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

.pulse-on-hover:hover {
  animation: pulse 0.6s ease-in-out;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 80vh;
    padding: 0 15px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .room-features {
    justify-content: center;
  }
  
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 800px;
  }
}

/* ===== Loading States ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  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);
  }
}

/* ===== Focus States for Accessibility ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .footer,
  .scroll-indicator {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: white;
    color: var(--text-dark);
  }
}