/* Heritage Luxury Hotel - Complete CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --primary-dark: #5D2F09;
  --secondary-dark: #B8860B;
  --accent-light: #F5DEB3;
  --text-dark: #2C1810;
  --text-light: #6B4423;
  --bg-cream: #FDF6E3;
  --border-gold: #E6C47A;
  --shadow-warm: rgba(139, 69, 19, 0.15);
  --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: 'Lato', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --box-shadow: 0 4px 20px var(--shadow-warm);
}

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

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

html {
  scroll-behavior: smooth;
}

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

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

/* Bootstrap 5 Overrides */
.btn-primary {
  background: var(--gradient-primary);
  border: 2px solid var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gradient-secondary);
  border-color: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

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

.navbar {
  background: rgba(253, 246, 227, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(253, 246, 227, 0.98) !important;
  box-shadow: 0 2px 20px var(--shadow-warm);
  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 {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(139, 69, 19, 0.1);
}

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

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

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

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

.card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
}

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

/* Header Styles */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(139, 69, 19, 0.4), rgba(139, 69, 19, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23D2B48C" width="1200" height="800"/><path fill="%23F5DEB3" d="M0,400 Q300,200 600,400 T1200,400 V800 H0 Z"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

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

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

.hero-subtitle {
  color: var(--accent-light);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Section Styles */
.section-padding {
  padding: 5rem 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: var(--gradient-secondary);
  border-radius: 2px;
}

/* Room Cards */
.room-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.room-card:hover {
  transform: translateY(-10px);
}

.room-image {
  height: 250px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.room-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-secondary);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.amenity-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--text-dark);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.8));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

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

/* Contact Form */
.contact-section {
  background: linear-gradient(135deg, var(--bg-cream), white);
}

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

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

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

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

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

.footer a:hover {
  color: white;
  text-decoration: underline;
}

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

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

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

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

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

/* 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-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-toggler {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
  }
  
  .hero-section {
    background-attachment: scroll;
    padding: 2rem 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .room-card {
    margin-bottom: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}