/* Mountain Luxury Retreat Hotel - CSS Styles */

/* Custom Properties */
:root {
  --primary-color: #2C5F7C;
  --secondary-color: #E8F4F8;
  --accent-color: #8B4513;
  --dark-blue: #1A3A4A;
  --light-blue: #F5F9FA;
  --snow-white: #FFFFFF;
  --mountain-gray: #6C757D;
  --warm-gold: #D4AF37;
  --text-dark: #333333;
  --text-light: #666666;
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --shadow-light: 0 2px 10px rgba(44, 95, 124, 0.1);
  --shadow-medium: 0 4px 20px rgba(44, 95, 124, 0.15);
  --shadow-heavy: 0 8px 30px rgba(44, 95, 124, 0.25);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  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(--snow-white);
  overflow-x: hidden;
}

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

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

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

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

h4 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

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

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

a:hover {
  color: var(--dark-blue);
}

/* Bootstrap 5 Overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--snow-white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--light-blue);
  border-color: var(--light-blue);
  color: var(--primary-color);
}

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

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

.navbar-nav .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--dark-blue);
}

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

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

.form-control {
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  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(44, 95, 124, 0.25);
}

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

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: var(--snow-white);
  box-shadow: var(--shadow-light);
}

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

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

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 95, 124, 0.6), rgba(26, 58, 74, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23E8F4F8" width="1200" height="800"/><polygon fill="%232C5F7C" points="0,800 400,200 800,400 1200,0 1200,800"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--snow-white);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 95, 124, 0.1) 25%, transparent 25%), 
              linear-gradient(-45deg, rgba(44, 95, 124, 0.1) 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, rgba(44, 95, 124, 0.1) 75%), 
              linear-gradient(-45deg, transparent 75%, rgba(44, 95, 124, 0.1) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  opacity: 0.1;
}

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

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

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

.hero .btn {
  margin: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--warm-gold));
  display: block;
  margin: 1rem auto;
  border-radius: 2px;
}

/* About Section */
.about-features {
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.feature-item:hover {
  background-color: var(--snow-white);
  box-shadow: var(--shadow-light);
  transform: translateY(-5px);
}

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

/* Rooms Section */
.room-card {
  position: relative;
  overflow: hidden;
  height: 350px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--secondary-color), var(--light-blue));
}

.room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 95, 124, 0.1) 25%, transparent 25%);
  background-size: 30px 30px;
}

.room-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44, 95, 124, 0.9));
  color: var(--snow-white);
  padding: 2rem;
  transform: translateY(70%);
  transition: var(--transition);
}

.room-card:hover .room-overlay {
  transform: translateY(0);
}

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

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-gold);
  margin-bottom: 1rem;
}

/* Amenities Section */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.amenity-card {
  background: var(--snow-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--warm-gold);
}

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

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

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

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

.form-control.error {
  border-color: var(--error);
  background-color: rgba(220, 53, 69, 0.1);
}

.form-control.success {
  border-color: var(--success);
  background-color: rgba(40, 167, 69, 0.1);
}

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

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

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
  color: var(--snow-white);
  padding: 3rem 0 1rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--warm-gold), var(--primary-color), var(--warm-gold));
}

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

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

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

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

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

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

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--snow-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

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

.scroll-to-top:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary-color);
  border-top: 2px solid var(--snow-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-nav {
    background: var(--snow-white);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .room-overlay {
    transform: translateY(50%);
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
  }
  
  .hero .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: block;
    margin: 0.5rem auto;
    max-width: 250px;
  }
  
  .amenity-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}