/* Medieval Luxury Hotel - Complete CSS */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Custom Properties */
:root {
  --primary-color: #8B0000;
  --secondary-color: #FFD700;
  --primary-dark: #5d0000;
  --primary-light: #a60000;
  --secondary-dark: #ccaa00;
  --secondary-light: #fff3a0;
  --text-primary: #2c2c2c;
  --text-secondary: #555555;
  --text-light: #ffffff;
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-light: rgba(139, 0, 0, 0.1);
  --shadow-medium: rgba(139, 0, 0, 0.2);
  --shadow-heavy: rgba(139, 0, 0, 0.3);
  --font-primary: 'Cinzel', serif;
  --font-secondary: 'Crimson Text', serif;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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.5rem);
}

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

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 400;
  color: var(--text-primary);
}

/* Bootstrap 5 Overrides */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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.6s;
  z-index: -1;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
  color: var(--text-light);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  border: 2px solid var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  border-color: var(--secondary-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-secondary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
}

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

/* Navigation */
.navbar {
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.95), rgba(139, 0, 0, 0.9)) !important;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--secondary-color);
  transition: all var(--transition-fast);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(139, 0, 0, 0.98) !important;
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px var(--shadow-heavy);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--secondary-light) !important;
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-fast);
}

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

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color);
  padding: 0.5rem;
  transition: all var(--transition-fast);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.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='%23FFD700' 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(139, 0, 0, 0.4), rgba(139, 0, 0, 0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" fill="%23f5f5f5"><rect width="1200" height="800" fill="%23f5f5f5"/><text x="600" y="400" font-size="48" text-anchor="middle" fill="%23cccccc" font-family="serif">Medieval Castle</text></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: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 215, 0, 0.03) 2px,
    rgba(255, 215, 0, 0.03) 4px
  );
  pointer-events: none;
}

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

.hero-title {
  color: var(--secondary-color);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons .btn {
  margin: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary-color);
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--secondary-light);
  transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--secondary-color);
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-medium);
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(139, 0, 0, 0.15);
}

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.1));
  opacity: 0;
  transition: all var(--transition-medium);
  z-index: 2;
}

.room-card:hover::before {
  opacity: 1;
}

.room-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--text-light);
  padding: 2rem;
  transform: translateY(50%);
  transition: all var(--transition-medium);
  z-index: 3;
}

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

/* Form Styling */
.form-floating {
  margin-bottom: 1rem;
}

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

.form-floating > label {
  font-family: var(--font-primary);
  font-weight: 500;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem var(--shadow-light);
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
  transition: all var(--transition-medium);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 4rem;
  color: var(--secondary-color);
  font-family: var(--font-primary);
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.testimonial-author {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-color);
}

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

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

.footer a {
  color: #cccccc;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--shadow-medium);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(139, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
  }
}

/* Utility Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

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

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

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

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

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

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

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

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--secondary-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* Media Queries */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
    max-width: 300px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .testimonial {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title::after {
    width: 60px;
  }
  
  .testimonial::before {
    font-size: 3rem;
    top: -15px;
    left: 20px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .navbar-brand,
  .hero-title {
    text-rendering: optimizeLegibility;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  .footer {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: #000 !important;
    min-height: auto;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
}