/* Backpacker Budget Planner - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.87rem;
  }
  
  .hero-content p {
    font-size: 1.02rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .service-card,
  .team-member,
  .price-plan,
  .blog-card {
    margin-bottom: 1.67rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.02rem !important;
  }
  
  .hero-blob {
    display: none;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-photo {
    height: 200px;
  }
  
  .card-img-top,
  .blog-image {
    height: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.03rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .team-photo {
    height: 220px;
  }
  
  .card-img-top,
  .blog-image {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.37rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .price-plan.featured {
    transform: scale(1.02);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .team-photo {
    height: 240px;
  }
  
  .card-img-top,
  .blog-image {
    height: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.63rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-plan.featured {
    transform: scale(1.05);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .team-photo {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 2.79rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .price-plan.featured {
    transform: scale(1.05);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .team-photo {
    height: 280px;
  }
}

/* Disable animations on mobile devices (less than 768px) */
@media (max-width: 767.98px) {
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 0;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  
  .swiper-pagination {
    position: static !important;
    margin-top: 1.16rem;
  }
  
  /* Disable hover effects on touch devices */
  .card:hover,
  .service-card:hover,
  .team-member:hover,
  .price-plan:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-blob,
  .btn,
  .footer {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    background: none !important;
    color: black !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card,
  .service-card,
  .team-member,
  .price-plan {
    box-shadow: none !important;
    border: 1px solid #c7c7c7;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
  }
  
  .card,
  .service-card,
  .team-member,
  .price-plan,
  .blog-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn {
    border-width: 3px;
  }
  
  .form-control:focus {
    border-width: 3px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
  
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .swiper {
    --swiper-transition-duration: 0ms;
  }
  
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Very large screens (4K and above) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content h1 {
    font-size: 3.03rem;
  }
  
  .section {
    padding: 8rem 0;
  }
}

/* Specific component responsive adjustments */

/* Navigation responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.16rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Grid adjustments */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1.23rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Form responsive */
@media (max-width: 767.98px) {
  .form-row .col-md-6 {
    margin-bottom: 1.23rem;
  }
  
  .form-control {
    font-size: 20.00px; /* Prevents zoom on iOS */
  }
}

/* Gallery responsive masonry effect */
@media (min-width: 768px) {
  .gallery-container {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (min-width: 992px) {
  .gallery-container {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .gallery-container {
    column-count: 4;
  }
}

/* Service cards responsive grid */
@media (max-width: 767.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 1.67rem;
  }
  
  .services-grid .col-lg-4:last-child {
    margin-bottom: 0;
  }
}

/* Team responsive adjustments */
@media (max-width: 991.98px) {
  .team-grid .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2.22rem;
  }
}

@media (max-width: 575.98px) {
  .team-grid .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
} 