/* ==========================================================================
   Responsive CSS - Mobile First Approach
   ========================================================================== */

/* ==========================================================================
   Small Devices (Phones) - Default Styles Above
   ========================================================================== */

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    
    /* Typography adjustments for mobile */
    :root {
        --font-size-h1: 1.5rem;        /* 24px on mobile */
        --font-size-h2: 1.375rem;      /* 22px on mobile */
        --font-size-h3: 1.25rem;       /* 20px on mobile */
        --font-size-brand: 1.125rem;   /* 18px on mobile */
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: var(--spacing-lg) 0;
        text-align: center;
    }
    
    .hero-section h1 {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        font-size: var(--font-size-normal);
    }
    
    /* Navigation mobile */
    .navbar-nav {
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        display: block;
    }
    
    /* Cards mobile spacing */
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .blog-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 40px !important;
        text-align: left !important;
        margin: var(--spacing-md) 0;
    }
    
    .timeline-year {
        left: -30px !important;
        right: auto !important;
    }
    
    /* Contact info mobile */
    .contact-icon {
        font-size: 1.25rem;
    }
    
    /* Gallery mobile */
    .gallery-image {
        height: 200px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Team photos mobile */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-normal);
    }
    
    /* Swiper disable autoplay/effects on mobile */
    .swiper {
        --swiper-navigation-size: 24px;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-nav {
        margin-top: 70px;
    }
}

/* ==========================================================================
   Medium Devices (Tablets) - 768px and up
   ========================================================================== */

@media (min-width: 768px) {
    
    /* Container adjustments */
    .container {
        max-width: 720px;
    }
    
    /* Hero section tablet */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    /* Navigation tablet */
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    /* Cards tablet layout */
    .service-card,
    .feature-card {
        height: auto;
        min-height: 300px;
    }
    
    /* Gallery tablet */
    .gallery-image {
        height: 220px;
    }
    
    /* Team section tablet */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Timeline tablet */
    .timeline-item {
        padding: var(--spacing-lg);
    }
    
    /* Contact form tablet */
    .contact-form {
        padding: 0 var(--spacing-md);
    }
}

/* ==========================================================================
   Large Devices (Desktops) - 992px and up
   ========================================================================== */

@media (min-width: 992px) {
    
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography desktop */
    :root {
        --font-size-h1: 2.25rem;       /* 36px on desktop */
        --font-size-h2: 1.875rem;      /* 30px on desktop */
        --font-size-h3: 1.5rem;        /* 24px on desktop */
        --font-size-brand: 1.375rem;   /* 22px on desktop */
    }
    
    /* Hero section desktop */
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: var(--font-size-large);
    }
    
    /* Navigation desktop */
    .navbar {
        padding: var(--spacing-md) 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0 var(--spacing-sm);
        font-size: var(--font-size-normal);
    }
    
    /* Custom grid for 5 columns */
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Cards desktop layout */
    .service-card {
        min-height: 350px;
    }
    
    .feature-card {
        min-height: 250px;
    }
    
    .price-card {
        min-height: 400px;
    }
    
    /* Gallery desktop */
    .gallery-image {
        height: 250px;
    }
    
    /* Team section desktop */
    .team-photo {
        width: 160px;
        height: 160px;
    }
    
    /* Process steps desktop */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    /* Timeline desktop */
    .timeline-item {
        padding: var(--spacing-xl);
    }
    
    /* Contact section desktop */
    .contact-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Hover effects desktop only */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: translateY(-6px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
    
    .gallery-image:hover {
        transform: scale(1.08);
    }
}

/* ==========================================================================
   Extra Large Devices (Large Desktops) - 1200px and up
   ========================================================================== */

@media (min-width: 1200px) {
    
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section large desktop */
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    /* Larger spacing for big screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Cards large desktop */
    .service-card {
        min-height: 380px;
    }
    
    .feature-card {
        min-height: 280px;
    }
    
    /* Gallery large desktop */
    .gallery-image {
        height: 280px;
    }
    
    /* Team photos large desktop */
    .team-photo {
        width: 180px;
        height: 180px;
    }
}

/* ==========================================================================
   XXL Devices (Extra Large Desktops) - 1400px and up
   ========================================================================== */

@media (min-width: 1400px) {
    
    /* Container adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Maximum scaling for very large screens */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 2.25rem;
    }
    
    /* Maintain proportions on very large screens */
    .service-card {
        max-height: 450px;
    }
    
    .gallery-image {
        height: 300px;
    }
}

/* ==========================================================================
   Landscape Orientation Adjustments
   ========================================================================== */

@media (orientation: landscape) and (max-height: 600px) {
    
    /* Reduce hero height on landscape mobile */
    .hero-section {
        padding: var(--spacing-md) 0;
        min-height: auto;
    }
    
    /* Adjust navbar for landscape */
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Reduce vertical spacing */
    .py-5 {
        padding-top: var(--spacing-lg) !important;
        padding-bottom: var(--spacing-lg) !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    
    /* Hide interactive elements */
    .navbar,
    .btn,
    .swiper-pagination,
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Ensure good contrast */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    /* Remove shadows and effects */
    .feature-card,
    .service-card,
    .price-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    /* Page breaks */
    .hero-section,
    #about,
    #services,
    #contact {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

/* Focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    
    :root {
        --color-primary: #654321;
        --color-secondary: #1C3A1C;
        --color-dark: #000000;
        --color-gray: #333333;
    }
    
    .btn-primary {
        border: 2px solid var(--color-dark);
    }
    
    .feature-card,
    .service-card {
        border: 2px solid var(--color-gray);
    }
}

/* Dark mode preference (basic support) */
@media (prefers-color-scheme: dark) {
    /* Note: As per requirements, we don't include dark mode styles */
    /* This media query is here for future reference only */
}

/* ==========================================================================
   Bootstrap Overrides for Responsive Behavior
   ========================================================================== */

/* Ensure proper Bootstrap column behavior */
@media (min-width: 992px) {
    .col-lg-2-4 {
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Fix for accordion on mobile */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: var(--font-size-small);
        padding: var(--spacing-sm);
    }
} 