/* Hotel Modern Luxury Theme - Complete CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1a365d;
  --secondary-color: #ed8936;
  --primary-light: #2d5a87;
  --primary-dark: #0f1e2e;
  --secondary-light: #f6ad55;
  --secondary-dark: #c05621;
  --accent-gold: #d4af37;
  --white: #ffffff;
  --light-gray: #f7fafc;
  --gray: #e2e8f0;
  --dark-gray: #4a5568;
  --black: #1a202c;
  --shadow: rgba(26, 54, 93, 0.1);
  --shadow-dark: rgba(26, 54, 93, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

/* ===== GLOBAL 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(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  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);
}

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

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

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

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

/* ===== BOOTSTRAP 5 OVERRIDES ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

.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: var(--white);
}

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

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

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

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

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--white) !important;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  background-color: rgba(237, 137, 54, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(237, 137, 54, 0.1);
}

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

.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='%23%231a365d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(237, 137, 54, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%23f0f0f0" width="1000" height="1000"/><path fill="%23e0e0e0" d="M0 0h1000v1000H0z"/></svg>');
  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, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* ===== SECTIONS ===== */
.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: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-gold));
  border-radius: 2px;
}

/* ===== ROOMS SECTION ===== */
.room-card {
  height: 100%;
  transition: var(--transition);
}

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

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

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

.room-features {
  list-style: none;
  padding: 0;
}

.room-features li {
  padding: 0.25rem 0;
  color: var(--dark-gray);
}

.room-features li::before {
  content: '✓';
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* ===== AMENITIES SECTION ===== */
.amenity-item {
  text-align: center;
  padding: 2rem 1rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.amenity-item:hover {
  background-color: var(--light-gray);
  transform: translateY(-5px);
}

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

/* ===== CONTACT FORM ===== */
.contact-form {
  background-color: var(--light-gray);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow);
}

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

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

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

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

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

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

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

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

.footer ul li {
  padding: 0.25rem 0;
}

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

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition);
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

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

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

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

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title::after {
    width: 60px;
  }
  
  .amenity-item {
    padding: 1.5rem 0.5rem;
  }
  
  .room-card .card-img-top {
    height: 200px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
  color: var(--primary-color) !important;
}

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

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

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

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

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

.shadow-custom {
  box-shadow: 0 5px 15px var(--shadow) !important;
}

.shadow-dark-custom {
  box-shadow: 0 10px 30px var(--shadow-dark) !important;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar, .footer, .back-to-top, .btn {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: var(--black) !important;
    min-height: auto !important;
  }
  
  * {
    color: var(--black) !important;
    background: transparent !important;
  }
}