/*
* LRC Creative - Responsive Stylesheet
* Author: Llewellyn Reinecke
* Website: www.lrcreative.co.za
*/

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* 
* Small devices: 576px and below
* Medium devices: 577px to 768px
* Large devices: 769px to 992px
* Extra large devices: 993px to 1200px
* Extra extra large devices: 1201px and above
*/

/* ===== GLOBAL RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 80px;
        --container-padding: 30px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
        --container-padding: 20px;
    }
    
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 24px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 50px;
        --container-padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        z-index: 102;
    }
    
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        height: 85vh;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===== SERVICES SECTION RESPONSIVE ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 25px;
    }
}

/* ===== PROJECTS SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .project-image img {
        height: 220px;
    }
    
    .project-info {
        padding: 20px;
    }
}

/* ===== TESTIMONIALS SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .testimonial-content {
        font-size: 1.1rem;
    }
}

/* ===== CONTACT CTA RESPONSIVE ===== */
@media (max-width: 576px) {
    .contact-cta {
        padding: 60px 0;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 40px;
    }
    
    .footer-links {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav, 
    .footer-services, 
    .footer-contact {
        margin-bottom: 0;
    }
}

/* ===== ABOUT PAGE RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-date {
        width: 60px;
        font-size: 0.9rem;
    }
}

/* ===== SERVICES PAGE RESPONSIVE ===== */
@media (max-width: 992px) {
    .service-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-image {
        order: -1;
    }
    
    .process-container::before {
        left: 30px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* ===== PORTFOLIO PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT PAGE RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* ===== OVERFLOW FIXES ===== */
@media (max-width: 576px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Fix page header for smaller screens */
    .page-header {
        padding: 30px 15px;
        height: auto;
        min-height: 200px;
    }
    
    /* Adjust navigation */
    .nav-container {
        padding: 0 15px;
    }
}