/* Hotel Industrial Luxury Theme - Modern Responsive Design */

/* CSS Custom Properties */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-gray: #34495E;
  --light-gray: #95A5A6;
  --accent-gray: #BDC3C7;
  --white: #FFFFFF;
  --black: #2C2C2C;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 4px 20px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 8px 30px rgba(44, 62, 80, 0.25);
  --border-radius: 8px;
  --container-max-width: 1200px;
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

a:hover, a:focus {
  color: var(--primary-color);
  outline: none;
}

/* Bootstrap 5 Overrides */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

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

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--dark-gray);
  border-color: var(--dark-gray);
  color: var(--white);
}

.form-control {
  border: 2px solid var(--accent-gray);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25);
}

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

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

.card-header {
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Navbar Styling */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  background-color: rgba(230, 126, 34, 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%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(230, 126, 34, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 2rem;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.bg-light-section {
  background-color: #F8F9FA;
}

/* Room Cards */
.room-card {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.room-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.room-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), rgba(230, 126, 34, 0.1));
  opacity: 0;
  transition: var(--transition-smooth);
}

.room-card:hover .room-image::before {
  opacity: 1;
}

.room-info {
  padding: 1.5rem;
}

.room-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.room-price {
  color: var(--secondary-color);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Amenities Section */
.amenity-item {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.amenity-item:hover {
  background-color: rgba(230, 126, 34, 0.05);
  transform: translateY(-5px);
}

.amenity-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
}

.amenity-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.form-floating {
  position: relative;
}

.form-floating .form-control {
  height: 3.5rem;
  padding: 1rem 0.75rem 0.25rem;
}

.form-floating label {
  padding: 1rem 0.75rem;
  color: var(--light-gray);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  color: var(--secondary-color);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.error-message {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.success-message {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

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

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

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

/* 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.6s ease-out;
}

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

/* Loading Animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 126, 34, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    height: 85vh;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  .hero-content {
    padding: 0 3rem;
  }
}

@media (min-width: 992px) {
  .room-image {
    height: 300px;
  }
  
  .amenity-item {
    padding: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
}

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

.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 */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .hero-section {
    height: auto;
    background: none;
    color: #000;
  }
}