/* Historical Walking Tour App - Responsive Styles */
/* Mobile-first responsive design */

/* Base mobile styles (320px and up) */
@media (max-width: 575.98px) {
  /* No animations on mobile - respects prefers-reduced-motion */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Services cards - stack vertically with smaller padding */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  /* Team cards mobile */
  .team-card img {
    height: 200px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Navbar mobile - use Bootstrap standard hamburger */
  .navbar-collapse {
    background-color: var(--light-cream);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--primary-sage);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--primary-sage);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Gallery mobile - single column */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog cards mobile */
  .blog-card img {
    height: 150px;
  }
  
  /* Section padding mobile */
  .section {
    padding: 2rem 0;
  }
  
  /* Price plan mobile */
  .priceplan-card {
    padding: 1.5rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Form elements mobile */
  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Remove hover effects on mobile */
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .priceplan-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .service-card img,
  .team-card img {
    height: 180px;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-card img {
    height: 220px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Enable minimal animations on tablet+ */
  .service-card:hover {
    transform: translateY(-3px);
  }
  
  .team-card:hover {
    transform: scale(1.01);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Full animations on desktop */
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.1);
  }
  
  .team-card:hover {
    transform: scale(1.02);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .priceplan-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Maximum container width for very large screens */
  .container {
    max-width: 1200px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look crisp on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .gallery,
  #space {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-warm);
    outline-offset: 2px;
  }
}

/* Dark mode preference (if browser supports) */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

.hero-content {
    padding-top: 225px;
}