/* Mountain Wilderness Luxury Hotel - CSS */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;600&display=swap');

/* CSS Custom Properties */
:root {
  --primary-color: #2C5F7A;
  --secondary-color: #B8D4E3;
  --accent-color: #1A4A5C;
  --light-bg: #F8FBFD;
  --dark-text: #1E3A46;
  --medium-text: #4A6B7A;
  --light-text: #7A9BAD;
  --white: #FFFFFF;
  --gold-accent: #D4A574;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  
  --shadow-light: 0 2px 10px rgba(44, 95, 122, 0.1);
  --shadow-medium: 0 4px 20px rgba(44, 95, 122, 0.15);
  --shadow-heavy: 0 8px 30px rgba(44, 95, 122, 0.2);
  
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

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

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

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  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.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--medium-text);
  font-size: 1.1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--light-text);
}

/* Bootstrap 5 Overrides */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--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: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent), #C19A5A);
  color: var(--white);
  border: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #C19A5A, var(--gold-accent));
  color: var(--white);
  transform: translateY(-2px);
}

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

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

.card-header {
  background: linear-gradient(135deg, var(--secondary-color), #D4E8F0);
  border-bottom: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Form Controls */
.form-control {
  border: 2px solid #E8F1F5;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 122, 0.25);
  background: var(--white);
}

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

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--medium-text) !important;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 95, 122, 0.4), rgba(26, 74, 92, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="%232C5F7A"/><stop offset="100%" stop-color="%231A4A5C"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23bg)"/><polygon fill="%23B8D4E3" opacity="0.1" points="0,800 400,600 800,700 1200,500 1200,800"/><polygon fill="%23ffffff" opacity="0.05" points="0,700 300,500 600,600 900,400 1200,450 1200,800 0,800"/></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: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="25" r="1" fill="white" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="2s" repeatCount="indefinite"/></circle><circle cx="50" cy="75" r="1" fill="white" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="4s" repeatCount="indefinite"/></circle></svg>') repeat;
  animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

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

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.section {
  padding: 80px 0;
  position: relative;
}

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

.section-dark {
  background: var(--primary-color);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--secondary-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

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

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

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

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

.room-card .card-body {
  position: relative;
  background: var(--white);
}

.room-price {
  position: absolute;
  top: -20px;
  right: 20px;
  background: var(--gold-accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-medium);
}

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

.room-features li {
  padding: 5px 0;
  color: var(--medium-text);
  position: relative;
  padding-left: 25px;
}

.room-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Amenities Grid */
.amenity-item {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 2rem;
  height: 100%;
}

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

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

.amenity-item h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 95, 122, 0.8), rgba(26, 74, 92, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay i {
  font-size: 3rem;
  color: var(--white);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
  border-left: 4px solid var(--gold-accent);
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary-color);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-heading);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--medium-text);
}

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

.testimonial-role {
  color: var(--light-text);
  font-size: 0.9rem;
}

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

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

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

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

.form-floating > .form-control:focus ~ label {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer p,
.footer li {
  color: var(--secondary-color);
}

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

.footer a:hover {
  color: var(--white);
  transform: translateX(5px);
}

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

.footer-links li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(184, 212, 227, 0.1);
}

.footer-links li:last-child {
  border-bottom: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(184, 212, 227, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--secondary-color);
}

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

/* Loading Spinner */
.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);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .testimonial {
    padding: 2rem 1.5rem;
  }
  
  .room-price {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .amenity-item {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .social-links {
    display: none !important;
  }
  
  .hero {
    height: auto;
    padding: 2rem 0;
  }
  
  * {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
}