/* PhotoRise - Responsive Design */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 80px;
        min-height: 70vh;
    }
    
    #hero .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team Images */
    .card img.rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Form */
    .form-control {
        padding: 10px 12px;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact Info */
    #contact .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Pricing Cards */
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Animations disabled on mobile for performance */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.8rem;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .card img.rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.3rem;
    }
    
    .h2 {
        font-size: 1.9rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .card-img-top {
        height: 230px;
    }
    
    /* Adjust grid for tablets */
    .services .col-md-6:nth-child(3) {
        margin-top: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .card-img-top {
        height: 240px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    .h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 100px 0;
    }
    
    .card-img-top {
        height: 260px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card img,
    #hero img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .form-control {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover,
    .card img.rounded-circle {
        transform: none !important;
    }
    
    .animate-on-scroll {
        transition: none !important;
    }
}

/* Dark Mode Support */

/* Accessibility - Focus Management */
@media (min-width: 768px) {
    .nav-link:focus {
        outline-offset: 4px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
}

/* Container Adjustments for Different Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Gallery Responsive Behavior */
@media (max-width: 767.98px) {
    #gallery .row > div {
        margin-bottom: 1rem;
    }
    
    #gallery .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Form Responsive Behavior */
@media (max-width: 575.98px) {
    .row.g-3 > .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
    .breadcrumb img {
        height: 20px !important;
    }
} 