/* ============================================
   ETHICAL TRAVEL PACKAGE CURATOR - RESPONSIVE CSS
   ============================================ */

/* Mobile First Approach - Base styles are mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  /* Disable animations on mobile to respect performance */
  @media (prefers-reduced-motion: no-preference) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Card adjustments */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card {
    margin-bottom: 1.5rem;
  }
  
  /* Form adjustments */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Gallery adjustments */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Footer adjustments */
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Pricing cards full width on mobile */
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Process items spacing */
  .process-item {
    margin-bottom: 3rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    margin-bottom: 1.5rem;
    border-left-width: 2px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  /* Container adjustments */
  .container {
    max-width: 540px;
  }
  
  /* Gallery grid improvements */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Button adjustments */
  .btn {
    width: auto;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Hero section improvements */
  #hero .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Container adjustments */
  .container {
    max-width: 720px;
  }
  
  /* Typography improvements */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Section padding restoration */
  section {
    padding: 3rem 0;
  }
  
  /* Hero section tablet view */
  #hero {
    min-height: 90vh;
  }
  
  /* Gallery grid tablet view */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features grid improvements */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team and service cards in rows */
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Contact section side by side */
  .contact-info,
  .contact-form {
    margin-bottom: 0;
  }
  
  /* Footer improvements */
  .footer-section {
    text-align: left;
  }
  
  /* Process items horizontal layout preparation */
  .process-item {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Container adjustments */
  .container {
    max-width: 960px;
  }
  
  /* Typography full size */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Full section padding */
  section {
    padding: 4rem 0;
  }
  
  /* Hero section full desktop view */
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative-shape {
    display: block;
  }
  
  /* Gallery grid desktop view */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Features grid desktop view */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Enable hover effects on desktop */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .pricing-card:hover {
    transform: translateY(-5px);
  }
  
  /* Process items in a row */
  .process-item {
    margin-bottom: 0;
  }
  
  /* Better spacing for cards */
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery grid large desktop */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Enhanced spacing */
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Larger decorative shapes */
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 300px;
    height: 300px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Container adjustments */
  .container {
    max-width: 1320px;
  }
  
  /* Maximum gallery items per row */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on high DPI displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .btn,
  .navbar,
  .breadcrumb {
    display: none !important;
  }
  
  /* Ensure content is readable */
  body {
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Remove shadows and decorative elements */
  .hero-decorative-shape,
  .card,
  .feature-card,
  .service-card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  
  /* Ensure page breaks */
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transform effects */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .pricing-card:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .btn-primary {
    background-color: #000;
    border-color: #000;
  }
  
  .btn-outline-primary {
    border-color: #000;
    color: #000;
  }
  
  .navbar-nav .nav-link {
    color: #000;
  }
  
  .form-control {
    border-color: #000;
  }
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 3px solid var(--primary-sage);
  outline-offset: 2px;
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  section {
    padding: 1.5rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .pricing-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 2rem;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
} 

.hero-content {
    padding-top: 175px;
}