/* ==========================================================================
   Sudali Digital - responsive.css
   Mobile-first adjustments for tablet, mobile and reduced-width desktops
   ========================================================================== */

/* ---------------------------------------------------------------
   Large desktop: hide floating hero cards below 1280px
   --------------------------------------------------------------- */
@media (max-width: 1280px) {
    .hero__floaters { display: none; }
    .hero__controls { right: 16px; }
}

/* ---------------------------------------------------------------
   Why-choose: 5 columns are too tight on smaller laptops
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* ---------------------------------------------------------------
   Tablet / small laptop: navigation collapses
   --------------------------------------------------------------- */
@media (max-width: 980px) {
    :root { --header-h: 70px; }

    .nav,
    .header-call { display: none; }

    .nav-toggle { display: block; }

    .section { padding: 46px 0; }
    .section__head { margin-bottom: 40px; }

    .service-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

    .about__grid,
    .split,
    .gifts,
    .contact__grid,
    .detail-block__grid { grid-template-columns: 1fr; gap: 40px; }

    .split--reverse .split__body,
    .split--reverse .split__media,
    .detail-block__grid.is-reverse .detail-block__media,
    .detail-block__grid.is-reverse .detail-block__body { order: initial; }

    .about__floater { right: 12px; bottom: -26px; width: 38%; }

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

    .enquiry { display: none; }

    .compare { margin-top: 56px; }
    .visualizer { margin-top: 54px; }
    .gifts { margin-top: 58px; }

    /* --- Frame models --- */
    .frame-models { margin-top: 58px; }
    .frame-models__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .model-modal__dialog { grid-template-columns: 1fr; }
    .model-modal__media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 14px; }
    .model-modal__media img { max-height: 34vh; }

    /* --- Design services strip stacks --- */
    .design-services {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
        padding: 26px 20px;
    }
    .design-services__cta { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------
   Small tablet
   --------------------------------------------------------------- */
@media (max-width: 860px) {
    .contact-sheet { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .print-list { grid-template-columns: 1fr; }
    .reviews-carousel { padding: 0 0 60px; }
    .reviews__arrow { top: auto; bottom: 0; transform: none; }
    .reviews__arrow--prev { left: calc(50% - 60px); }
    .reviews__arrow--next { right: calc(50% - 60px); }
    .reviews__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; }

    /* --- Frame models: custom-design CTA stacks --- */
    .frame-custom {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 28px 20px;
        margin-top: 18px;
    }
    .frame-custom__content { align-items: flex-start; gap: 14px; }
    .frame-custom__icon { width: 44px; height: 44px; }
    .frame-custom__cta { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------
   Mobile: conversion bar, compact hero, stacked layouts
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding-bottom: 74px; /* space for the fixed Call / WhatsApp / Enquire bar */
    }

    .section { padding: 38px 0; }
    .section__head { margin-bottom: 34px; }

    .brand__mark { width: 40px; height: 40px; }
    .brand__name { font-size: .95rem; letter-spacing: .05em; }
    .brand__tag { font-size: .52rem; letter-spacing: .1em; }
    .header-wa { display: none; }

    .topbar__inner { min-height: 32px; padding-block: 5px; gap: 12px; }
    .topbar__item { font-size: .74rem; gap: 6px; }
    .topbar__icon { width: 13px; height: 13px; }

    /* --- Hero: image on top, content anchored at the bottom --- */
    .hero {
        height: min(96vh, 900px);
        min-height: 700px;
    }
    .hero__inner {
        align-items: flex-end;
        padding-bottom: 108px;
    }
    .hero__content {
        max-width: 100%;
        padding: 18px 18px 22px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(23, 2, 6, .68) 0%, rgba(23, 2, 6, .46) 100%);
    }
    .hero__title { font-size: clamp(1.75rem, 7vw, 2.35rem); margin-bottom: .4em; text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
    .hero__desc { font-size: .95rem; margin-bottom: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
    .hero__actions .btn { flex: 1 1 auto; padding: 14px 18px; font-size: .92rem; }
    .hero__eyebrow { font-size: .7rem; }

    .hero__controls {
        flex-direction: row;
        top: auto;
        bottom: 74px;
        right: 14px;
        transform: none;
    }
    .hero__arrow { width: 42px; height: 42px; }
    .hero__arrow svg { width: 18px; height: 18px; }

    .hero__indicators {
        bottom: 20px;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hero__indicators::-webkit-scrollbar { display: none; }
    .hero__indicatorBar { width: 24px; }
    .hero__indicator.is-active .hero__indicatorBar { width: 64px; }

    /* --- Contact sheet / gallery / why --- */
    .contact-sheet { padding: 18px 10px; }
    .gallery-grid { gap: 12px; }
    .why-grid { grid-template-columns: 1fr; gap: 14px; }
    /* icon + title share the first line, the description sits under the title */
    .why-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; text-align: left; padding: 20px 22px; }
    .why-card__icon { margin: 0; flex: none; width: 54px; height: 54px; }
    .why-card__title { font-size: 1.05rem; margin-bottom: 0; flex: 1 1 0; min-width: 0; }
    .why-card__text { flex: 1 0 100%; font-size: .95rem; }

    /* --- Frames / visualizer --- */
    .visualizer { padding: 32px 16px 36px; }

    .frame-models { margin-top: 46px; }
    .frame-models__head { margin-bottom: 26px; }
    .frame-models__grid { gap: 12px; }
    .model-card__body { padding: 12px 14px 14px; }
    .model-card__name { font-size: 1rem; }
    .model-card__meta { font-size: .78rem; }
    .model-card__cta { margin-top: 6px; font-size: .64rem; }

    .model-modal { padding: 12px; }
    .model-modal__dialog { max-height: calc(100vh - 24px); }
    .model-modal__body { padding: 24px 18px 22px; }
    .model-modal__close { width: 38px; height: 38px; font-size: 1.4rem; }
    .visualizer__options { gap: 8px; }
    .visualizer__opt { min-width: 0; flex: 1 1 calc(33.333% - 8px); padding: 11px 8px; font-size: .88rem; }
    .visualizer__stage { min-height: 250px; }
    .visualizer__frame { width: min(calc(var(--frame-h, 210px) * var(--frame-ratio, 1)), 100%); border-width: 9px; }
    .visualizer__frame.is-drawing::after { inset: -12px; }

    .frame-reveal__art { border-width: 10px; }

    /* --- Compare slider --- */
    .compare__handle { width: 44px; height: 44px; }
    .compare__label { font-size: .6rem; padding: 5px 10px; top: 10px; }
    .compare__label--left { left: 10px; }
    .compare__label--right { right: 10px; }

    /* --- Reviews --- */
    .review-card { padding: 32px 22px; }

    /* --- FAQ --- */
    .faq-item summary { padding: 18px 54px 18px 18px; font-size: .97rem; min-height: 58px; }
    .faq-item__body { padding: 0 54px 20px 18px; }

    /* --- CTA / footer --- */
    .cta-final { padding: 48px 0; }
    .cta-final__actions .btn { flex: 1 1 100%; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
    .site-footer { padding-top: 54px; }
    .site-footer__bottomInner { justify-content: center; text-align: center; gap: 14px; }
    .site-footer__follow { width: 100%; justify-content: center; }

    /* --- Contact --- */
    .contact__grid { gap: 34px; }

    /* --- Conversion furniture --- */
    .mobile-bar { display: flex; gap: 6px; }

    .floating-wa {
        right: 14px;
        bottom: 84px;
        padding: 14px;
        border-radius: 50%;
        animation: none;
    }
    .floating-wa__label { display: none; }
    .floating-wa svg { width: 26px; height: 26px; }

    .back-to-top { right: 16px; bottom: 148px; width: 44px; height: 44px; }

    .page-hero { padding: calc(var(--header-h) + 54px) 0 56px; }

    .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 22px; transform: none; }
    .lightbox__nav--prev { left: calc(50% - 56px); }
    .lightbox__nav--next { right: calc(50% - 56px); }
    .lightbox { padding: 74px 14px 90px; }
    .lightbox__img { max-height: 64vh; }
}

/* ---------------------------------------------------------------
   Small mobile
   --------------------------------------------------------------- */
@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--polaroid { padding: 10px 10px 38px; }
    .contact-sheet { grid-template-columns: 1fr 1fr; }

    .hero { min-height: 640px; }
    .hero__actions { gap: 10px; }

    .film-strip__cell { flex: 0 0 160px; }

    .about__floater { display: none; }

    .mobile-menu__link { font-size: 1.15rem; padding: 14px 4px; }

    .topbar__inner { min-height: 30px; padding-block: 4px; }
    .topbar__item { font-size: .7rem; }

    .design-services__list { gap: 6px; }
    .design-services__list li { padding: 8px 13px; font-size: .8rem; }
}

/* ---------------------------------------------------------------
   Very small screens
   --------------------------------------------------------------- */
@media (max-width: 380px) {
    .site-header .brand__tag { display: none; } /* compact header only - the footer keeps its slogan */
    .contact-sheet { grid-template-columns: 1fr; }
    .mobile-bar__btn span { font-size: .68rem; }

    .topbar__inner { gap: 8px; padding-inline: 16px; }
    .site-header__inner { padding-inline: 16px; } /* logo/nav share the topbar's narrow gutter */
    .topbar__item { font-size: .64rem; gap: 5px; }
    .topbar__icon { display: none; } /* very narrow screens: keep both values visible */
}

/* ---------------------------------------------------------------
   Coarse pointers: no hover-dependent behaviour
   --------------------------------------------------------------- */
@media (hover: none) {
    .service-card__img--alt { display: none; }
    .service-card:hover .service-card__img--base { opacity: 1; transform: none; }

    .gallery-item__overlay { opacity: 1; background: linear-gradient(to top, rgba(23, 2, 6, .72), transparent 58%); justify-content: flex-end; padding-bottom: 12px; }
    .gallery-item__cat { transform: none; }

    .why-card:hover,
    .service-card:hover,
    .vision__card:hover { transform: none; }
}

/* ---------------------------------------------------------------
   Print
   --------------------------------------------------------------- */
@media print {
    .site-header, .mobile-menu, .hero__controls, .hero__indicators,
    .floating-wa, .mobile-bar, .enquiry, .back-to-top, .cta-final,
    .gallery-item__btn::before, .contact-sheet__frame::before { display: none !important; }
    body { padding-bottom: 0; }
    .section { padding: 24px 0; }
}
