/* ============================================
   RESPONSIVE BREAKPOINTS - Manchester SEO
   ============================================ */

/* Add top padding to body for fixed header */
body {
    padding-top: var(--header-height, 70px);
}

/* Main content must be below header dropdown */
main {
    position: relative;
    z-index: 1;
}

.hero,
section {
    position: relative;
    z-index: 1;
}

/* Container responsive */
.container {
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container { max-width: 540px; margin: 0 auto; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* ============================================
   HERO RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
        max-width: 400px;
    }

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

@media (max-width: 767px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   GRIDS RESPONSIVE
   ============================================ */

/* Services Grid */
@media (max-width: 575px) {
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Stats Grid */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 479px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Grid */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Grid */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Steps */
@media (max-width: 991px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Content Grid */
@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid.reverse {
        direction: ltr;
    }
}

/* Contact Grid */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Grid */
@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   TYPOGRAPHY RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }

    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* ============================================
   GENERAL RESPONSIVE RULES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Form elements full width on mobile */
input, textarea, select, button {
    max-width: 100%;
}

@media (max-width: 575px) {
    input, textarea, select {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   CARDS RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }

    .service-card .icon {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   CTA SECTION RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   SCROLL TO TOP RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}
