/* Responsive CSS for Ethical Diamond Sourcing Consultancy */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No scroll animations in mobile resolution */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .card-padding {
    padding: 1.5rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card,
  .price-card {
    min-height: 400px;
  }
  
  .feature-card {
    min-height: 250px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card,
  .price-card {
    min-height: 450px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-decorative-shape {
    width: 250px;
    height: 250px;
  }
  
  .service-card,
  .price-card {
    min-height: 480px;
  }
}

/* Specific responsive adjustments for team section */
@media (min-width: 768px) {
  .team-row .col-md-4:nth-child(4),
  .team-row .col-md-4:nth-child(5) {
    margin-top: 2rem;
  }
}

@media (min-width: 992px) {
  .team-row .col-lg-2:nth-child(4),
  .team-row .col-lg-2:nth-child(5) {
    margin-top: 0;
  }
}

/* Contact section responsive layout */
@media (min-width: 768px) {
  .contact-section .row {
    align-items: stretch;
  }
  
  .contact-form,
  .contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* FAQ responsive layout */
@media (min-width: 768px) {
  .faq-grid {
    column-count: 2;
    column-gap: 2rem;
  }
  
  .faq-card {
    break-inside: avoid;
  }
}

/* Blog grid responsive layout */
@media (min-width: 768px) and (max-width: 991.98px) {
  .blog-grid .col-md-6:last-child {
    margin-top: 2rem;
  }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section responsive image */
@media (max-width: 767.98px) {
  .hero-image {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 125px;
}
}

/* Services grid responsive adjustments */
@media (min-width: 576px) and (max-width: 991.98px) {
  .services-grid .col-md-6:nth-child(odd) {
    padding-right: 1rem;
  }
  
  .services-grid .col-md-6:nth-child(even) {
    padding-left: 1rem;
  }
}

@media (min-width: 992px) {
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Price plan responsive layout */
@media (min-width: 768px) {
  .priceplan-grid .col-md-4 {
    display: flex;
  }
  
  .price-card {
    width: 100%;
  }
}

/* Timeline responsive layout */
@media (min-width: 768px) {
  .timeline-item:nth-child(odd) {
    margin-left: 2rem;
  }
  
  .timeline-item:nth-child(even) {
    margin-right: 2rem;
  }
}

/* Core info responsive grid */
@media (min-width: 576px) and (max-width: 991.98px) {
  .coreinfo-grid .col-sm-6:nth-child(odd) {
    padding-right: 1rem;
  }
  
  .coreinfo-grid .col-sm-6:nth-child(even) {
    padding-left: 1rem;
  }
}

/* Footer responsive layout */
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .footer .row {
    align-items: flex-start;
  }
}

/* Utility classes for responsive spacing */
@media (max-width: 575.98px) {
  .mb-mobile-2 { margin-bottom: 1rem !important; }
  .mb-mobile-3 { margin-bottom: 1.5rem !important; }
  .mb-mobile-4 { margin-bottom: 2rem !important; }
  .p-mobile-2 { padding: 1rem !important; }
  .p-mobile-3 { padding: 1.5rem !important; }
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-decorative-shape,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .card,
  .feature-card,
  .service-card,
  .team-card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
