/* Responsive Styles for Zero-Waste Wedding Planning Service */

/* Mobile-First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.25rem;
    padding-top: 175px;
}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
    padding-top: 175px;
}
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 175px;
}
  
  .hero-decorative-shape {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3.5rem;
    padding-top: 175px;
}
}

/* Mobile Specific Styles (max-width: 767px) */
@media (max-width: 767px) {
  /* Conservative mobile typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Mobile navbar adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* No animations on mobile */
  .about-feature-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Mobile padding adjustments */
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  /* Hide decorative elements on mobile */
  .hero-decorative-shape {
    display: none;
  }
  
  /* Mobile service cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-card h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .service-card .p-4 {
    padding: 1.5rem !important;
  }
  
  .service-price {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Mobile team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Mobile price cards */
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Mobile gallery adjustments */
  .gallery-image {
    height: 200px;
  }
  
  /* Mobile blog cards */
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Mobile timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Mobile process steps */
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile footer */
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .service-card,
  .blog-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  .service-card h4 {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  .service-card .p-4 {
    padding: 1.75rem !important;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .service-image {
    height: 120px;
  }
  
  .service-card h4 {
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  
  .service-card p {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }
  
  .service-card .p-4 {
    padding: 1rem !important;
  }
  
  .service-price {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images and graphics look crisp on retina displays */
  .team-photo,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
  }
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative-shape {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* Accessibility - Large text preference */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions for users who prefer reduced motion */
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .about-feature-card,
  .service-card,
  .review-card,
  .casestudy-card,
  .blog-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--forest-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--forest-dark);
  }
}