/* ===== RESPONSIVE DESIGN - SUSTAINABLE BRANDS TEMPLATE ===== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-section {
    padding: 100px 0;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .contact-form {
    padding: 40px;
  }
  
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 30px;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* Mobile Devices (below 768px) */
@media (max-width: 767.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card {
    margin-bottom: 20px;
    padding: 25px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .faq-card {
    padding: 20px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog Cards */
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  /* Navbar */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-toggler {
    border: none;
    padding: 4px 8px;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 30px;
  }
}

/* Extra Small Devices (below 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.15rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 50px 0;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 40px 0;
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  .contact-form {
    padding: 25px 15px;
  }
  
  .faq-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  /* Form Elements */
  .form-control {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 15px;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  /* Service Prices */
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Container Padding */
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Landscape Orientation (Tablets) */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .blog-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-shape,
  .gallery-item {
    display: none;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px 0;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .service-card,
  .gallery-item img,
  .btn-primary,
  .blog-card {
    transition: none;
    animation: none;
  }
  
  .service-card:hover,
  .btn-primary:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .contact-form,
  .faq-card {
    border: 2px solid var(--primary-forest);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-forest);
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Dark Mode Preference */

/* Container Breakpoint Adjustments */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile Animation Overrides - Disable scroll-triggered animations on mobile */
@media (max-width: 768px) {
  /* Disable all sal.js animations */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable hover effects and transitions */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .features-list,
  .blog-card {
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable transform animations */
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .price-card:hover {
    transform: none !important;
  }
  
  /* Disable any fade-in/fade-out animations */
  .fade-in,
  .fade-out,
  .slide-in,
  .slide-out {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Disable navbar scroll effects */
  .navbar.scrolled {
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable any CSS scroll-triggered animations */
  *[class*="animate"],
  *[class*="animation"],
  *[class*="scroll"] {
    animation: none !important;
    transition: none !important;
  }
  
  /* Ensure all elements are visible and in normal state */
  .sal-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}