/* Adventure Luxury Hotel CSS - Mobile First Responsive Design */

/* CSS Custom Properties */
:root {
  --primary-color: #2C5530;
  --secondary-color: #D4AF37;
  --primary-dark: #1a3319;
  --primary-light: #4a7852;
  --secondary-dark: #b8941f;
  --secondary-light: #e8c95f;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Poppins', sans-serif;
}

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

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

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

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

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

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.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(--text-light);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  background: rgba(44, 85, 48, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(44, 85, 48, 0.1);
}

.navbar.scrolled {
  background: rgba(44, 85, 48, 0.98) !important;
  padding: 0.5rem 0;
}

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

.navbar-nav .nav-link {
  color: var(--text-light) !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::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--secondary-color);
  transition: var(--transition);
}

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

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

.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%28212, 175, 55, 1%29' 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(rgba(44, 85, 48, 0.6), rgba(44, 85, 48, 0.4)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%232C5530" width="1200" height="800"/><path fill="%23D4AF37" opacity="0.1" d="M0 400L200 350L400 450L600 300L800 400L1000 350L1200 400V800H0Z"/></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 fill="%23D4AF37" opacity="0.05" cx="20" cy="20" r="2"/><circle fill="%23D4AF37" opacity="0.05" cx="80" cy="80" r="2"/><circle fill="%23D4AF37" opacity="0.05" cx="40" cy="60" r="1"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  color: var(--secondary-light);
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons .btn {
  margin: 0.5rem;
}

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

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

@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);
  }
}

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

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

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  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(--secondary-light));
  border-radius: 2px;
}

/* Adventure Section */
.adventure-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light);
}

.adventure-section .section-title {
  color: var(--text-light);
}

.adventure-section .section-title::after {
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

/* Luxury Section */
.luxury-section {
  background: var(--bg-light);
}

/* Forms */
.form-control {
  border: 2px solid #e0e0e0;
  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, 85, 48, 0.25);
}

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

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

/* Booking Form */
.booking-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

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

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

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

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

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

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

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.animate-slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.animate-slide-right.animated {
  opacity: 1;
  transform: translateX(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: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Error and Success States */
.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: var(--primary-color);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero {
    background-attachment: scroll;
  }
  
  .booking-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
  
  .hero-buttons .btn {
    margin: 0 1rem;
  }
  
  .card-img-top {
    height: 300px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .section {
    padding: 8rem 0;
  }
  
  .hero {
    background-attachment: fixed;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}