/* ============================================
   RESPONSIVE BREAKPOINTS - Kuwait 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 {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
}

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

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

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

    .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: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

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

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

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

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

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

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

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

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }
}

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

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

    .testimonial-content {
        padding-left: 1.5rem;
    }

    [dir="rtl"] .testimonial-content {
        padding-left: 0;
        padding-right: 1.5rem;
    }
}

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

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

    .page-hero h1 {
        font-size: 1.75rem;
    }
}

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

    section {
        padding: 3rem 0;
    }
}

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

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

    [dir="rtl"] .scroll-to-top {
        right: auto;
        left: 1rem;
    }
}

/* ============================================
   RTL SPECIFIC RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    [dir="rtl"] .breadcrumbs {
        flex-direction: row-reverse;
    }
}

/* ============================================
   PROCESS PAGE RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .process-timeline {
        gap: 0.75rem;
    }

    .process-step {
        padding: 0.75rem 1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .phase-content,
    .phase-content.reverse {
        grid-template-columns: 1fr;
    }

    .phase-content.reverse .phase-icon {
        order: 0;
    }

    .phase-icon {
        max-width: 180px;
        margin-bottom: 2rem;
    }

    .timeline-expectations {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expectation-card.featured {
        transform: none;
    }

    .expectation-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 575px) {
    .process-timeline {
        flex-direction: column;
        align-items: stretch;
    }

    .process-step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .phase-details {
        grid-template-columns: 1fr;
    }

    .process-phase {
        padding: 3rem 0;
    }

    .phase-description {
        font-size: 1rem;
    }
}

/* ============================================
   TESTIMONIALS PAGE RESPONSIVE
   ============================================ */

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

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

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .featured-card {
        padding: 2rem;
    }

    .featured-card blockquote {
        font-size: 1.1rem;
    }

    .featured-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .stars {
        justify-content: center;
    }

    .result-number {
        font-size: 2.5rem;
    }

    .result-suffix {
        font-size: 1.5rem;
    }
}

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

    .testimonial-card blockquote {
        min-height: auto;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .industry-item {
        padding: 1rem;
    }

    .industry-icon {
        width: 40px;
        height: 40px;
    }

    .industry-item span {
        font-size: 0.8rem;
    }
}

/* ============================================
   CONTACT PAGE RESPONSIVE
   ============================================ */

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

    .contact-info-wrapper {
        order: -1;
    }
}

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

    .contact-section {
        padding: 3rem 0;
    }

    .info-card {
        padding: 1rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-icon svg {
        width: 20px;
        height: 20px;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

/* ============================================
   404 PAGE RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .error-illustration {
        width: 150px;
        height: 150px;
    }

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

    .error-content p {
        font-size: 1rem;
    }
}
