/* ============================================
   RE & RI – THE DESIGN FACTORY
   Responsive Stylesheet (responsive.css)
   ============================================ */

/* ── Large Desktop & Laptops (1200px and down) ── */
@media (max-width: 1200px) {
    :root {
        --space-section: clamp(4rem, 8vw, 8rem);
    }
    
    .nav__list {
        gap: 30px;
    }
}

/* ── Laptops & Large Tablets (992px and down) ── */
@media (max-width: 992px) {
    .header__nav {
        display: none !important; /* Hide left & right menus */
    }

    .header__right {
        display: none !important; /* Hide socials section */
    }

    .header__left {
        width: auto;
    }

    .header__left::after {
        display: none; /* Hide vertical divider */
    }

    .header__center {
        width: auto;
    }

    .about-preview__image-col {
        margin-bottom: var(--space-xl);
    }

    .process-timeline::before {
        left: 20px; /* Shift timeline line to the left */
    }

    .process-item {
        width: 100%;
        left: 0 !important;
        padding-left: var(--space-2xl) !important;
        padding-right: 0 !important;
        margin-bottom: var(--space-xl);
    }

    .process-item__node {
        left: 10px !important;
        right: auto !important;
    }

    .contact-info-card {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-left: 0;
        padding-top: var(--space-2xl);
        margin-top: var(--space-2xl);
    }

    .footer__bottom-links {
        justify-content: flex-start;
        margin-top: var(--space-md);
    }

    /* ── About Section Mobile Stack ── */
    .about-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .about-wrapper .about-content {
        min-width: 100%;
    }

    .about-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .about-desc {
        max-width: 100%;
    }

    .about-desc p {
        font-size: 1rem;
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.6);
    }

    .about-images-col {
        max-width: 100%;
        width: 100%;
    }

    .about-wrapper .about-images {
        max-width: 400px;
        height: 500px;
        margin: 0 auto;
    }

    .tj-about-section .sec-left-image {
        display: none !important;
    }
}

/* ── Small Tablets & Portrait (768px and down) ── */
@media (max-width: 768px) {
    :root {
        --gutter: 20px;
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .hero__actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

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

    .hero__brand-badge {
        display: none; /* Hide badge on mobile to save vertical space */
    }

    .scroll-indicator {
        display: none;
    }

    .about-preview__quote {
        font-size: var(--fs-h4);
        margin: var(--space-lg) 0;
    }

    .service-card {
        padding: var(--space-lg);
    }

    .portfolio-filters {
        justify-content: flex-start;
        margin-bottom: var(--space-xl);
    }

    .portfolio-filter-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .project-details__meta {
        padding: var(--space-lg);
    }

    .project-nav__link--prev,
    .project-nav__link--next {
        width: 100%;
        text-align: left;
        align-items: flex-start;
    }

    .project-nav__link--next {
        margin-top: var(--space-lg);
    }

    /* ── Hero Slide: Full-screen mobile layout ── */
    .hero,
    .hero-swiper {
        height: 100svh;
        min-height: 580px;
    }

    .hero-slide {
        height: 100%;
        padding: 0;
        align-items: flex-end;
    }

    .hero-slide::before {
        display: none;
    }

    .hero-slide__bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slide__overlay {
        background: linear-gradient(180deg, 
            rgba(18, 19, 21, 0.3) 0%, 
            rgba(18, 19, 21, 0.15) 35%, 
            rgba(18, 19, 21, 0.55) 70%, 
            rgba(18, 19, 21, 0.75) 100%) !important;
    }

    .hero-slide__container {
        padding-top: 0;
        padding-bottom: 90px;
    }

    .hero__badge {
        font-size: 0.7rem;
        margin-bottom: 18px;
    }

    .hero__title {
        font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .hero__title .badge-capsule {
        padding: 2px 18px;
        font-size: 0.85em;
    }

    .hero__desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero__slider-controls {
        bottom: 30px;
        right: 20px;
    }

    /* ── About Section Mobile ── */
    .tj-about-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .about-wrapper .about-images {
        height: 460px;
    }

    /* ── Archly Services ── */
    .archly-services__wrap {
        flex-direction: column;
    }

    .archly-services__title-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 30px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .archly-services__heading {
        font-size: 2rem;
    }

    .archly-services__grid {
        grid-template-columns: 1fr 1fr;
    }

    .archly-svc-card,
    .archly-svc-card--text,
    .archly-svc-card--image {
        height: auto;
        min-height: 200px;
    }

    .archly-svc-card__title {
        font-size: 1.05rem;
    }

    .archly-svc-card__desc {
        font-size: 0.78rem;
    }

    /* ── Fun Fact Area ── */
    .fun-fact-area {
        flex-direction: column;
        border-radius: 24px;
        padding: 20px;
        gap: 15px;
    }

    .fun-fact-item {
        width: 100%;
        justify-content: center;
    }

    .fun-fact-item .tj-count {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    /* ── Inner Page Hero ── */
    .inner-hero {
        min-height: 45vh;
    }

    .inner-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* ── Gallery Filter Pills ── */
    .gallery-filter-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gallery-filter-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    /* ── Portfolio Grid ── */
    .portfolio-card {
        aspect-ratio: 3/2;
    }

    .portfolio-card--large {
        aspect-ratio: 3/2;
    }

    .portfolio-card__title {
        font-size: 1.2rem;
    }

    /* ── Section Headers Mobile ── */
    .section-header__title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .section-header__subtitle {
        font-size: 0.65rem;
    }

    /* ── Footer Mobile ── */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ── Small Mobile Screens (480px and down) ── */
@media (max-width: 480px) {
    :root {
        --fs-hero: 2.5rem;
        --fs-h1: 2rem;
        --fs-h2: 1.75rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1.25rem;
    }

    .logo__text {
        font-size: 1.5rem;
    }

    .logo__sub {
        font-size: 0.6rem;
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .btn-premium {
        padding: 12px 28px;
    }

    .service-card__icon {
        font-size: 1.8rem;
    }

    .industry-card__overlay {
        padding: var(--space-lg);
    }

    /* ── Hero: bigger text, centered ── */
    .hero__title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
    }

    /* ── About Section ── */
    .about-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .about-wrapper .about-images {
        height: 400px;
    }

    /* ── Services Grid: Single Column ── */
    .archly-services__grid {
        grid-template-columns: 1fr;
    }

    .archly-services__title-col {
        padding: 24px 16px;
    }

    .archly-services__heading {
        font-size: 1.8rem;
    }

    .archly-svc-card,
    .archly-svc-card--text,
    .archly-svc-card--image {
        min-height: 180px;
    }

    /* ── Fun Fact ── */
    .fun-fact-item .tj-count {
        width: 85px;
        height: 85px;
        font-size: 1.6rem;
    }

    .fun-fact-text .count-title {
        font-size: 0.8rem;
    }

    /* ── Marquee ── */
    .marquee {
        font-size: 1.2rem;
    }
}
