/* HoneyFlow - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.81rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 80px;
        text-align: center;
    }
    
    #hero::before,
    #hero::after {
        display: none;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 9px 8px rgba(0,0,0,0.1);
    }
    
    /* Gallery mobile */
    #gallery img:hover {
        transform: none;
    }
    
    /* Team images mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .team-member img:hover {
        transform: none;
    }
    
    /* Button mobile */
    .btn-primary:hover {
        transform: none;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2.34rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 90px;
    }
    
    /* Team images */
    .team-member img {
        width: 110px;
        height: 110px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        padding-top: 95px;
    }
    
    /* Services cards */
    #services .col-lg-4 {
        margin-bottom: 1.65rem;
    }
    
    /* Team layout */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .team-member img:hover {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    /* Hero section full */
    #hero {
        padding-top: 100px;
    }
    
    #hero::before,
    #hero::after {
        display: block;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        padding-top: 70px;
        min-height: 70vh;
    }
    
    .py-5 {
        padding-top: 1.74rem !important;
        padding-bottom: 1.63rem !important;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .navbar {
        display: none !important;
    }
    
    /* Ensure good contrast */
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Dark mode support (if system preference) */

/* Reduced motion support - enhanced */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable transform effects */
    .card:hover,
    #gallery img:hover,
    .team-member img:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Remove decorative elements that might cause motion */
    #hero::before,
    #hero::after {
        display: none !important;
    }
}

/* Focus styles for accessibility */
@media (min-width: 992px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover effects only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .team-member img:hover {
        transform: scale(1.05);
    }
    
    .navbar-nav .nav-link:hover {
        color: var(--primary-color);
    }
    
    #footer a:hover {
        color: var(--secondary-color);
    }
}

/* No hover effects on touch devices */
@media (hover: none) {
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover,
    .team-member img:hover {
        transform: none;
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 175px;
}