/* Responsive Design - Mobile-First Approach */

/* Tablet Styles (768px and below) */
@media screen and (max-width: 768px) {

    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container Adjustments */
    .container {
        padding: 0 16px;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 60px;
        min-height: 90vh;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        gap: 1rem;
    }

    .feature {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    /* Section Padding Adjustments */
    .about,
    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Grid Adjustments */
    .about-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact Grid Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Form Adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quote-form-container {
        padding: 1.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {

    /* Typography Further Adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Navigation Container */
    .nav-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    /* Hero Adjustments */
    .hero {
        padding: 100px 0 40px;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 14px 24px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Card Padding Adjustments */
    .about-card,
    .service-card {
        padding: 1.5rem;
    }

    /* Contact Item Mobile */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Form Adjustments */
    .quote-form-container {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
    }
    #IndexPage {padding:0px; margin:0px; background:url(images/Main03-Small.jpg) center top no-repeat #A188AF fixed; background-size:cover; -moz-background-size:cover; -o-background-size:cover; -webkit-background-size:cover;}
    #ServicesPage {padding:0px; margin:0px; background:url(images/Services-Small.jpg) center top no-repeat #A188AF fixed; background-size:cover; -moz-background-size:cover; -o-background-size:cover; -webkit-background-size:cover;}
}

/* Large Desktop Styles (1200px and above) */
@media screen and (min-width: 1200px) {

    /* Hero Large Screen */
    .hero-container {
        padding: 0 40px;
    }

    .hero-content {
        max-width: 650px;
    }

    /* Larger Container */
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    /* Navigation Large Screen */
    .nav-container {
        max-width: 1400px;
        padding: 0 40px;
    }

    /* Grid Enhancements */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Grid Large Screen */
    .contact-grid {
        gap: 6rem;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    .about-card:hover,
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .nav-link.cta-button:hover {
        transform: none;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .hero-buttons,
    .quote-form-container,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .hero {
        /*background: none;*/
        color: black;
        padding: 20px 0;
    }

    .contact {
        /*background: none;*/
        color: black;
    }

    .section-header h2 {
        border-bottom: 2pt solid black;
        padding-bottom: 10pt;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .logo i,
    .about-card i,
    .service-card i,
    .portfolio-image i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 40px;
    }

    .nav-menu {
        top: 60px;
    }

    .nav-container {
        height: 60px;
    }
}

/* Very Large Screens (1600px and above) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .nav-container {
        max-width: 1600px;
    }

    .hero-container {
        max-width: 1600px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}