/* ============================================
   RESPONSIVE BREAKPOINTS
   Liverpool 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 {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 100%;
    }

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

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

@media (max-width: 575px) {
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

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

    .hero-content .lead {
        font-size: 1rem;
    }

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

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

/* ============================================
   SECTIONS RESPONSIVE
   ============================================ */

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================
   SERVICES GRID RESPONSIVE
   ============================================ */

@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); }
}

@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   STATS GRID RESPONSIVE
   ============================================ */

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

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

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

/* ============================================
   TESTIMONIALS GRID RESPONSIVE
   ============================================ */

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

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

/* ============================================
   PROCESS GRID RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   FOOTER GRID RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}

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

@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   FAQ RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .faq-accordion.faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-tabs {
        gap: 0.25rem;
    }

    .faq-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   PAGE HEADER RESPONSIVE
   ============================================ */

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

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

    .page-header p {
        font-size: 1rem;
    }
}

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

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

    .service-card {
        padding: 1.5rem;
    }
}

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

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

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

    .cta-section p {
        font-size: 1rem;
    }
}

/* ============================================
   FORMS RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .form-control {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
}

/* ============================================
   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%;
    }
}

/* ============================================
   TWO COLUMN LAYOUT RESPONSIVE
   ============================================ */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column.reverse-mobile {
        direction: ltr;
    }

    .two-column.reverse-mobile > *:first-child {
        order: 2;
    }

    .two-column.reverse-mobile > *:last-child {
        order: 1;
    }
}

/* ============================================
   FEATURE LIST RESPONSIVE
   ============================================ */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

/* ============================================
   CONTACT PAGE LAYOUT
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

/* ============================================
   BLOG GRID RESPONSIVE
   ============================================ */

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

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

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

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    main {
        margin: 0;
    }

    .container {
        max-width: 100%;
    }
}
