/* ===============================================
   Beverly's International Event Centre
   Enhanced Mobile-Responsive Stylesheet - style.css
   =============================================== */

/* CSS Custom Properties (Variables) */ 
:root {
  --bs-primary: #050e63ff;
  --bs-secondary: #ee3e3eff;
  --bs-success: #cd853f;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --background-light: #fff8f0;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.3);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s ease;
  --border-radius: 10px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography Classes */
.font-playfair {
  font-family: "Playfair Display", serif;
}

.font-inter {
  font-family: "Inter", sans-serif;
}

/* Custom Color Classes */
.text-primary-custom {
  color: var(--bs-primary) !important;
}

.text-secondary-custom {
  color: var(--bs-secondary) !important;
}

.bg-primary-custom {
  background-color: var(--bs-primary) !important;
}

.bg-secondary-custom {
  background-color: var(--bs-secondary) !important;
}

.bg-light-custom {
  background-color: var(--background-light);
}

/* Navigation Styles */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 50px;
  margin-right: 0.5rem;
}

.navbar-nav {
  width: 100%;
  color: white;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  text-align: center;
  background: #0000003b;  
  margin: 0 .2rem !important;
}

.video-wrapper {
    display: inline-block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 193, 79, 0.7);
    border: none;
    cursor: pointer;
    z-index: 2;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border-radius: 5px;
  transition: all var(--transition-fast);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Mobile Navigation Centering */
.navbar-collapse {
  text-align: center;
  transition: all var(--transition-fast);
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.navbar-nav .nav-item {
  width: 100%;
  max-width: 200px;
}
/* Mobile menu animation */
.navbar-collapse.collapsing {
  transition: height 0.35s ease;
}

.navbar-collapse.show {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styles */
.btn {
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border: none;
  min-height: 44px; /* Touch-friendly minimum */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-custom {
  background-color: var(--bs-primary);
  color: var(--white) !important;
  border: 2px solid var(--bs-primary);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #704115;
  border-color: #704115;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-secondary-custom {
  background-color: var(--bs-secondary);
  border: 2px solid var(--bs-secondary);
  color: var(--bs-primary);
  font-weight: 600;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
  background-color: #b8941f;
  border-color: #b8941f;
  color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Icon Styles */
.feature-icon {
  font-size: 2.5rem;
  color: var(--bs-secondary);
  transition: transform var(--transition-fast);
}

.feature-icon:hover {
  transform: scale(1.1);
}

.large-icon {
  font-size: 4rem;
  color: var(--bs-secondary);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--bs-secondary);
}

/* Hero Sections - Updated with proper video handling */
.hero-section {
  background: linear-gradient(rgba(180, 86, 19, 0.5), rgba(182, 82, 10, 0.5)),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  transition: background var(--transition-medium);
  overflow: hidden;
}

/* Video element styling */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Show video when it's successfully loaded */
.hero-video[data-loaded="true"] {
  opacity: 1;
}

.hero-video.playing {
  opacity: 1;
}

/* Hide background image when video is successfully loaded */
.hero-section.video-loaded {
  background: linear-gradient(rgba(180, 86, 19, 0.5), rgba(182, 82, 10, 0.5));
}

/* Ensure background image shows when video fails */
.hero-section.video-failed {
  background-image: linear-gradient(rgba(180, 86, 19, 0.7), rgba(182, 82, 10, 0.5)),
    url("images/hero-bg.jpg") !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(139, 69, 19, 0.7),
    rgba(139, 69, 19, 0.5)
  );
  z-index: -1;
}

/* Mobile optimizations - hide video on small screens */
@media (max-width: 768px) {
  .hero-video {
    display: none !important;
    opacity: 0 !important;
  }
  
  .hero-section {
    background-attachment: scroll;
    background-image: linear-gradient(rgba(139, 69, 19, 0.5), rgba(139, 69, 19, 0.7)),
      url("images/hero-bg.jpg") !important;
    min-height: 70vh;
    padding: 3rem 0;
  }
}

/* Ensure content is always visible */
.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Page hero for other pages */
.page-hero {
  background: linear-gradient(rgba(139, 69, 19, 0.5), rgba(139, 69, 19, 0.8)),
    url("images/banner.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  color: white;
  margin-top: 50px;
}

/* Fallback for browsers without JavaScript */
.no-js .hero-section {
  background-image: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)),
    url("images/hero-bg.jpg") !important;
}

.no-js .hero-video {
  display: none !important;
}

/* 
  JavaScript Implementation Guide:
  
  Add this JavaScript to your page:
  
  // Remove no-js class when JavaScript is enabled
  document.documentElement.classList.remove('no-js');
  
  const heroVideo = document.querySelector('.hero-video');
  const heroSection = document.querySelector('.hero-section');
  
  if (heroVideo) {
    heroVideo.addEventListener('loadeddata', function() {
      this.setAttribute('data-loaded', 'true');
      heroSection.classList.add('video-loaded');
    });
    
    heroVideo.addEventListener('play', function() {
      this.classList.add('playing');
    });
    
    heroVideo.addEventListener('pause', function() {
      this.classList.remove('playing');
    });
    
    // Handle video loading errors - fallback to background image
    heroVideo.addEventListener('error', function() {
      heroSection.classList.remove('video-loaded');
      this.style.display = 'none';
    });
  }
  
  Note: Add class="no-js" to your <html> element for proper fallback
*/

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

/* Show video when it's loaded and playing */
.hero-video[data-loaded="true"] {
  opacity: 1;
}

.hero-video.playing {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(139, 69, 19, 0.7),
    rgba(139, 69, 19, 0.5)
  );
  z-index: -1;
}

.page-hero {
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.8)),
    url("images/banner.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  color: white;
  margin-top: 50px;
}

/* Card Components */
.service-card,
.facility-card,
.contact-card,
.category-card,
.value-card {
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  border: none;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 100%;
}

.category-card:hover {
  background: #ffe9e7ff !important;
  border: 2px solid red !important;
}

.service-card:hover,
.facility-card:hover,
.contact-card:hover,
.category-card:hover,
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-light);
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  margin-bottom: 20px;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px var(--shadow-heavy);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.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(139, 69, 19, 0.8),
    rgba(212, 175, 55, 0.8)
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Filter Buttons */
.filter-btn {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 25px;
  transition: all var(--transition-fast);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Statistics and Counters */
.stats-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--bs-secondary);
  transition: transform var(--transition-fast);
}

.stats-counter:hover {
  transform: scale(1.1);
}

.achievement-item {
  text-align: center;
  padding: 2rem;
}

.achievement-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--bs-secondary);
  transition: transform var(--transition-fast);
}

.achievement-number:hover {
  transform: scale(1.1);
}

/* Timeline Styles */
.timeline-item {
  border-left: 3px solid var(--bs-secondary);
  padding-left: 25px;
  margin-bottom: 40px;
  position: relative;
  transition: transform var(--transition-fast);
}

.timeline-item:before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--bs-secondary);
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 0;
  transition: transform var(--transition-fast);
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-item:hover:before {
  transform: scale(1.3);
}

/* Testimonial Styles */
.testimonial-card {
  border-left: 4px solid var(--bs-secondary);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

/* Facility Specific Styles */
.capacity-indicator {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition-fast);
}

.capacity-indicator:hover {
  transform: scale(1.05);
}

.spec-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  transition: background-color var(--transition-fast);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item:hover {
  background-color: #f8f9fa;
}

.amenity-highlight {
  background: var(--bs-secondary);
  color: var(--bs-primary);
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  margin: 5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.amenity-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Contact Page Styles */
.map-container {
  height: 400px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.map-container:hover {
  box-shadow: 0 8px 25px var(--shadow-light);
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  color: var(--bs-primary);
}

.hours-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  transition: background-color var(--transition-fast);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item:hover {
  background-color: #f8f9fa;
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
  padding: 20px;
  transition: transform var(--transition-fast);
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--bs-secondary);
  z-index: 0;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bs-secondary);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 15px;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.process-number:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control,
.form-select {
  min-height: 44px; /* Touch-friendly */
  font-size: 16px; /* Prevent zoom on iOS */
}

/* Accordion and FAQ */
.accordion-button {
  font-weight: 500;
  color: var(--bs-primary);
  min-height: 44px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--background-light);
  color: var(--bs-primary);
  border-color: var(--bs-secondary);
}

/* Success Message */
.success-message {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
  transition: all var(--transition-fast);
}

/* Social Links */
.social-links a {
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-medium);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInMenuItem {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Calculator Enhancements */
.clickable-service {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.3s ease;
  min-height: 44px;
}

.clickable-service:hover {
  border-color: var(--bs-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clickable-service.selected {
  border-color: var(--bs-primary);
  background: linear-gradient(135deg, #fff8f0, #ffffff);
  position: relative;
}

.clickable-service.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bs-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 5;
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Mobile First - Default styles above are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .gallery-item img {
    height: 280px;
  }

  .filter-btn {
    margin: 8px;
    padding: 12px 24px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  html {
    font-size: 16px; /* Restore normal font size */
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-brand img {
    max-height: 45px;
  }

  /* Reset navigation to horizontal layout for tablets and up */
  .navbar-collapse {
    background: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    text-align: left;
    backdrop-filter: none;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .navbar-nav .nav-item {
    width: auto;
    max-width: none;
    margin: 0;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    margin: 0;
    color: inherit !important;
    text-align: left;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    background-color: var(--bs-secondary);
    color: var(--bs-primary) !important;
    margin-left: 0.5rem;
    margin-top: 0;
    border: 2px solid var(--bs-secondary);
  }

  .hero-section {
    min-height: 80vh;
  }

  .page-hero {
    padding: 80px 0;
    margin-top: 60px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .feature-icon {
    font-size: 2.2rem;
  }

  .large-icon {
    font-size: 3.5rem;
  }

  .contact-icon {
    font-size: 2.2rem;
  }

  .gallery-item img {
    height: 250px;
  }

  .stats-counter,
  .achievement-number {
    font-size: 2.2rem;
  }

  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.1rem;
  }

  .map-container {
    height: 350px;
  }

  /* Show connecting lines for process steps */
  .process-step:not(:last-child)::after {
    display: block;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-brand img {
    max-height: 50px;
  }

  .hero-section {
    min-height: 100vh;
    background-attachment: fixed;
  }

  /* Show video on larger screens when loaded */
  .hero-video {
    display: block;
  }

  /* Ensure background image is hidden when video is playing on desktop */
  .hero-section:has(.hero-video[data-loaded="true"]),
  .hero-section.video-loaded {
    background-image: linear-gradient(
      rgba(139, 69, 19, 0.7),
      rgba(139, 69, 19, 0.7)
    );
  }

  .page-hero {
    padding: 100px 0;
    margin-top: 50px;
    background-attachment: fixed;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .large-icon {
    font-size: 4rem;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  .gallery-item img {
    height: 250px;
  }

  .stats-counter,
  .achievement-number {
    font-size: 2.5rem;
  }

  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .map-container {
    height: 400px;
  }

  /* Masonry layout for larger screens */
  .masonry-grid {
    column-count: 2;
    column-gap: 20px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
  }

  .feature-icon,
  .contact-icon {
    font-size: 2.8rem;
  }

  .large-icon {
    font-size: 4.5rem;
  }

  .stats-counter,
  .achievement-number {
    font-size: 3rem;
  }

  .masonry-grid {
    column-count: 3;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }

  .container {
    max-width: 1320px;
  }
}

/* ===============================================
   MOBILE SPECIFIC OPTIMIZATIONS
   =============================================== */

/* Mobile-only styles */
@media (max-width: 767.98px) {
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }

  /* Full-width mobile navigation with centering */
  .navbar-collapse {
    margin: 1rem -1rem;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
  }

  /* Hide the mobile menu background when collapsed */
  .navbar-collapse:not(.show) {
    background: none;
    margin: 0;
    padding: 0;
    backdrop-filter: none;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    max-width: 250px;
    margin: 0.25rem 0;
  }

  .navbar-nav .nav-link {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin: 0.25rem 0;
  }

  /* Animate menu items only when menu is shown */
  .navbar-collapse.show .nav-link {
    opacity: 0;
    transform: translateY(10px);
    animation: slideInMenuItem 0.3s ease-out forwards;
  }

  /* Staggered animation for menu items */
  .navbar-collapse.show .nav-item:nth-child(1) .nav-link {
    animation-delay: 0.1s;
  }
  .navbar-collapse.show .nav-item:nth-child(2) .nav-link {
    animation-delay: 0.15s;
  }
  .navbar-collapse.show .nav-item:nth-child(3) .nav-link {
    animation-delay: 0.2s;
  }
  .navbar-collapse.show .nav-item:nth-child(4) .nav-link {
    animation-delay: 0.25s;
  }
  .navbar-collapse.show .nav-item:nth-child(5) .nav-link {
    animation-delay: 0.3s;
  }
  .navbar-collapse.show .nav-item:nth-child(6) .nav-link {
    animation-delay: 0.35s;
  }
  .navbar-collapse.show .nav-item:nth-child(7) .nav-link {
    animation-delay: 0.4s;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(0);
  }

  /* Book Now button special styling in mobile menu */
  .navbar-nav .nav-item:last-child .nav-link {
    background-color: var(--bs-secondary);
    color: var(--bs-primary) !important;
    font-weight: 600;
    margin-top: 1rem;
    border: 2px solid var(--bs-secondary);
  }

  .navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: rgba(212, 175, 55, 0.8);
    transform: translateY(-2px);
  }

  /* Mobile-friendly buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .d-flex.flex-wrap.gap-3 .btn {
    width: auto;
    flex: 1;
    min-width: 120px;
  }

  /* Mobile hero adjustments */
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0;
    background-attachment: scroll;
    /* Always show background image on mobile */
    background-image: linear-gradient(
        rgba(139, 69, 19, 0.7),
        rgba(139, 69, 19, 0.7)
      ),
      url("images/hero-bg.jpg") !important;
  }

  /* Hide video completely on mobile */
  .hero-video {
    display: none !important;
    opacity: 0 !important;
  }

  .page-hero {
    padding: 3rem 0 2rem;
    background-attachment: scroll;
    margin-top: 70px;
  }

  /* Mobile card spacing */
  .card {
    margin-bottom: 1.5rem;
  }

  /* Mobile gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }

  /* Mobile filter buttons */
  .filter-btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
  }

  /* Mobile forms */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
  }

  /* Mobile contact cards */
  .contact-card {
    text-align: center;
  }

  /* Mobile process steps */
  .process-step:not(:last-child)::after {
    display: none;
  }

  .process-step {
    margin-bottom: 2rem;
  }

  /* Mobile testimonials */
  .testimonial-card {
    margin-bottom: 1.5rem;
  }

  /* Mobile map */
  .map-container {
    height: 250px;
    margin: 1rem 0;
  }

  /* Mobile timeline */
  .timeline-item {
    padding-left: 15px;
    margin-bottom: 2rem;
  }

  .timeline-item:before {
    width: 10px;
    height: 10px;
    left: -6px;
  }

  /* Mobile pricing cards */
  .pricing-card.featured {
    transform: none;
    margin: 1rem 0;
  }

  /* Mobile stats */
  .achievement-item {
    padding: 1rem;
  }

  /* Hide hover effects on mobile */
  .service-card:hover,
  .facility-card:hover,
  .contact-card:hover,
  .category-card:hover,
  .value-card:hover,
  .gallery-item:hover,
  .testimonial-card:hover {
    transform: none;
    box-shadow: 0 4px 15px var(--shadow-light);
  }

  .clickable-service:hover {
    transform: none;
  }

  /* Mobile-specific animations */
  .gallery-item:hover .gallery-overlay {
    opacity: 0; /* Disable overlay on mobile */
  }

  /* Touch-friendly spacing */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-3 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
}

/* Very small devices (320px and up) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-brand img {
    max-height: 30px;
    margin-right: 10px;
    margin-bottom: 0.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feature-icon,
  .contact-icon {
    font-size: 1.8rem;
  }

  .large-icon {
    font-size: 2.5rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .map-container {
    height: 200px;
  }

  .process-number {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }

  .stats-counter,
  .achievement-number {
    font-size: 1.8rem;
  }
}

/* ===============================================
   UTILITY CLASSES FOR MOBILE
   =============================================== */

/* Mobile visibility */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }
}

/* Touch-friendly spacing */
.touch-padding {
  padding: 1rem;
}

.touch-margin {
  margin: 1rem 0;
}

/* ===============================================
   ACCESSIBILITY IMPROVEMENTS
   =============================================== */

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.filter-btn:focus {
  outline: 2px solid var(--bs-secondary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bs-primary: #000000;
    --bs-secondary: #ffd700;
    --text-dark: #000000;
    --text-light: #333333;
  }

  .clickable-service,
  .package-option {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-section {
    background-attachment: scroll !important;
  }

  /* Hide video for users who prefer reduced motion */
  .hero-video {
    display: none !important;
  }

  /* Always show background image for reduced motion users */
  .hero-section {
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .social-links,
  .gallery-overlay {
    display: none !important;
  }

  .hero-section {
    background: var(--bs-primary) !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
  }

  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}
