/* =========================================================
   Sai Interiors — Responsive Foundations
   ========================================================= */

/* Laptop / small desktop */
@media (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .about-preview-inner {
        grid-template-columns: 1fr;
    }

    .about-preview-media {
        order: -1;
        padding: 16px 0 16px 12%;
    }

    /* Tablet: keep the single straight horizontal line, tighten spacing */
    .approach-journey {
        margin-top: 44px;
    }

    .approach-journey-line {
        top: 88px;
        left: 4%;
        right: 4%;
    }

    .approach-journey-grid {
        gap: 20px;
    }

    .approach-journey-number {
        height: 48px;
        font-size: 3.25rem;
    }

    .approach-journey-marker {
        width: 60px;
        height: 60px;
        margin: 10px 0 18px;
    }

    .approach-journey-icon {
        font-size: 1.25rem;
    }

    .approach-journey-desc {
        max-width: 200px;
    }

    .services-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-choose-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-choose-intro {
        text-align: center;
        padding-right: 0;
        border-right: none;
        margin-bottom: 16px;
    }

    .contact-hero-media {
        left: 55%;
    }

    .contact-hero-media::before {
        background: linear-gradient(90deg, var(--primary-color) 0%, rgba(18, 53, 36, 0.75) 40%, rgba(18, 53, 36, 0.2) 100%);
    }

    .contact-hero-content {
        max-width: 420px;
    }

    .contact-main-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-studio-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-points {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-choose-point + .why-choose-point::before {
        display: none;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-hero-media {
        display: none;
    }

    .contact-hero-content {
        max-width: none;
    }

    .contact-form-wrap {
        padding: 28px;
    }
}

/* Mobile nav breakpoint */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .main-nav.is-open {
        max-height: 400px;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .nav-link {
        display: block;
        padding: 14px 24px;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background-color: var(--background-light);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile: clean vertical journey — 01 / marker / 02 / marker / 03 / marker,
       stacked top to bottom with a straight vertical connector, no SVG. */
    .approach-journey {
        margin-top: 36px;
    }

    .approach-journey-line {
        display: none;
    }

    .approach-journey-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .approach-journey-step {
        position: relative;
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 18px;
        text-align: left;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .approach-journey-step + .approach-journey-step {
        margin-top: 32px;
    }

    .approach-journey-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 56px;
        left: 27px;
        width: 1px;
        height: calc(100% + 32px - 56px);
        background: linear-gradient(var(--primary-light), var(--border-color));
    }

    .approach-journey-number {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        justify-content: center;
        font-size: 1.5rem;
        opacity: 0.45;
        color: var(--primary-light);
        margin-bottom: 6px;
    }

    .approach-journey-marker {
        grid-column: 1;
        grid-row: 2;
        width: 56px;
        height: 56px;
        margin: 0;
    }

    .approach-journey-icon {
        font-size: 1.125rem;
    }

    .approach-journey-content {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }

    .approach-journey-title::after {
        left: 0;
        transform: none;
    }

    .approach-journey-desc {
        max-width: none;
        margin: 0;
    }
}

/* CTA buttons — mobile (all pages: banners, final CTA, portfolio, etc.) */
@media (max-width: 600px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    /* Flex-based CTA variants (icon/arrow buttons) need their content
       centered explicitly once the button is stretched to full width —
       otherwise the label and arrow default to flex-start and the arrow
       ends up floating away from the text near the button's edge. */
    .btn-outline-light,
    .btn-dark,
    .btn-hero,
    .btn-primary {
        justify-content: center;
        white-space: normal;
        padding: 14px 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
}
