/* ============================================================
   DB Films — Responsive Breakpoints
   ============================================================ */
/* ─── Global Utility Classes ────────────────────────────────── */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ─── Tablet (max 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {

    /* Standardize spacing for mobile/tablet */
    .section[style*="padding"] {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .text-image {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .text-image__content {
        padding-right: 0;
        order: 2;
    }

    .text-image__media {
        order: 1;
    }

    .featured-story {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .featured-story__content {
        padding: var(--space-2xl);
    }

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

    .film-row {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .film-row--reverse .film-row__info {
        order: 1;
    }

    .film-row--reverse .film-row__video {
        order: 2;
    }

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

/* ─── Tablet portrait (max 768px) ───────────────────────────── */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav__inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 20px;
    }

    .nav__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }

    .nav__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        padding: 8px 0;
        cursor: pointer;
        z-index: 10;
    }

    .nav__hamburger span {
        width: 26px;
        height: 1.5px;
        background: #ffffff !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav--scrolled .nav__hamburger span {
        background: var(--color-black) !important;
    }

    /* Mobile Fullscreen Menu Modal (down to up animation) */
    .nav__menu {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #000000;
        z-index: 9999;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 24px 24px 40px 24px;
        box-sizing: border-box;
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    }

    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Top bar inside mobile menu */
    .nav__mobile-header {
        display: flex !important;
        width: 100%;
        align-items: center;
        position: relative;
        height: 48px;
    }

    .nav__close-box {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.85);
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
        padding: 0;
        outline: none;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .nav__close-box:hover,
    .nav__close-box:active {
        transform: scale(0.95);
        border-color: #ffffff;
    }

    .nav__mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--font-accent);
        font-size: 1.15rem;
        letter-spacing: 0.16em;
        color: #ffffff;
        font-weight: 600;
        pointer-events: none;
        white-space: nowrap;
    }

    /* Center links in mobile menu */
    .nav__links-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px;
        margin: auto 0;
        width: 100%;
    }

    .nav__menu .nav__link {
        font-family: var(--font-display);
        font-size: clamp(2.2rem, 8vw, 2.75rem);
        font-weight: 400;
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        opacity: 1;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav__menu .nav__link::after {
        display: none !important;
    }

    .nav__menu .nav__link:hover,
    .nav__menu .nav__link:active {
        opacity: 0.65;
        transform: translateY(-2px);
    }

    /* Bottom area: Socials UP, Inquire button in BOTTOM */
    .nav__bottom-wrap {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 26px;
        margin-top: auto;
    }

    .nav__menu .nav__socials {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin: 0 !important;
    }

    .nav__menu .nav__social-link {
        color: #ffffff !important;
        opacity: 0.9;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav__menu .nav__social-link:hover,
    .nav__menu .nav__social-link:active {
        opacity: 0.6;
        transform: scale(1.1);
    }

    /* Inquire Button at the Bottom */
    .nav__mobile-inquire-btn {
        display: inline-block !important;
        border: 1px solid rgba(255, 255, 255, 0.85);
        background: transparent;
        color: #ffffff !important;
        text-align: center;
        padding: 13px 44px;
        font-family: var(--font-accent);
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 0;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    }

    .nav__mobile-inquire-btn:hover,
    .nav__mobile-inquire-btn:active {
        background: #ffffff;
        color: #000000 !important;
        transform: translateY(-1px);
    }

    /* Staggered smooth animation when menu opens down-to-up */
    .nav__menu.active .nav__mobile-header {
        animation: navFadeUp 0.45s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .nav__menu.active .nav__links-wrap {
        animation: navFadeUp 0.45s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .nav__menu.active .nav__bottom-wrap {
        animation: navFadeUp 0.45s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes navFadeUp {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    .masonry__item:nth-child(3n+2) {
        margin-top: 0;
    }

    .masonry__item:nth-child(2n) {
        margin-top: var(--space-xl);
    }

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

    .stories-grid__item:nth-child(2n) {
        margin-top: var(--space-xl);
    }

    .films-preview {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .form-checkboxes {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .hero {
        height: 65vh;
        min-height: 400px;
    }

    .hero--page {
        height: 50vh;
        min-height: 350px;
    }

    .hero--short {
        height: 40vh;
        min-height: 300px;
    }

    /* Hide custom cursor on touch devices */
    .cursor {
        display: none;
    }

    .video-modal__content {
        width: 95vw;
    }

    .video-modal__player {
        aspect-ratio: 16/9;
    }

    .lightbox__nav--prev {
        left: 8px;
    }

    .lightbox__nav--next {
        right: 8px;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
    }

    /* New Homepage Layouts */
    .modern-intro__grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .modern-intro__content {
        display: contents;
    }

    .modern-intro__title {
        order: 1;
        margin-bottom: 30px !important;
    }

    .modern-intro__images {
        order: 2;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin-bottom: 30px;
    }

    .modern-intro__body {
        order: 3;
        margin-bottom: 30px !important;
    }

    .modern-intro__press {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }

    .press-logos-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 16px 20px !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    .press-brand-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 2px 0 !important;
        opacity: 0.9 !important;
        flex-shrink: 0;
    }

    .press-brand-img {
        height: auto !important;
        max-height: 28px !important;
        max-width: 115px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Optical scaling for mobile to balance wide horizontal logos with script marks */
    .press-brand-img[src*="wedmegood"] {
        max-height: 23px !important;
        max-width: 105px !important;
    }

    .press-brand-img[src*="hindustan"],
    .press-brand-img[src*="times_of_india"] {
        max-height: 22px !important;
        max-width: 110px !important;
    }

    .press-brand-img[src*="conde_nast"] {
        max-height: 23px !important;
        max-width: 105px !important;
    }

    .press-brand-img[src*="vogue"] {
        max-height: 24px !important;
        max-width: 90px !important;
    }

    .press-brand-img[src*="wezoree"],
    .press-brand-img[src*="pinterest"] {
        max-height: 22px !important;
        max-width: 85px !important;
    }

    .press-brand-img[src*="bridal_asia"] {
        max-height: 23px !important;
        max-width: 100px !important;
    }

    .press-brand-img[src*="wittywedding"] {
        max-height: 28px !important;
        transform: scale(1.1) !important;
        transform-origin: center !important;
    }

    .press-brand-img[src*="weddingsutra"] {
        max-height: 26px !important;
        transform: scale(1.05) !important;
        transform-origin: center !important;
    }

    .press-brand-img[src*="wedwise"] {
        max-height: 28px !important;
    }

    .press-brand-text {
        font-size: 0.82rem !important;
        letter-spacing: 0.07em !important;
    }

    .modern-intro__content {
        width: 100%;
    }

    /* Footer Mobile Adjustments */
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        align-items: center;
        min-width: 100%;
    }

    .footer-contact {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .section--gallery-editorial {
        padding: 35px 0 70px;
    }

    .gallery-marquee-container {
        gap: 12px;
    }

    .gallery-marquee__group {
        gap: 12px;
        padding-right: 12px;
    }

    .gallery-marquee__item {
        width: clamp(170px, 46vw, 220px);
        border-radius: 3px;
    }

    .gallery-marquee__quote-card {
        padding: 16px 12px;
    }

    .gallery-marquee__quote-mark {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }

    .gallery-marquee__quote-text {
        font-size: clamp(0.72rem, 2.9vw, 0.9rem);
        line-height: 1.5;
        letter-spacing: 0.06em;
    }

    .gallery-marquee__quote-line {
        margin-top: 10px;
        width: 24px;
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .editorial-grid__quote {
        grid-column: span 1;
        aspect-ratio: 4/5;
        width: 100%;
        height: 100%;
        padding: 10px 6px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .editorial-grid__quote-text {
        font-size: clamp(0.68rem, 2.9vw, 0.92rem);
        line-height: 1.5;
        letter-spacing: 0.05em;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .heart-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 35px;
        padding: 0 20px !important;
    }

    .heart-grid__image {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .heart-grid__content {
        width: 100%;
        padding: 0 !important;
    }

    .heart-grid__image .parallax-container {
        min-height: 0;
        height: auto;
        aspect-ratio: 4/5;
    }

    .cinematic-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cinematic-left {
        position: static;
    }

    .cinematic-videos {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .cinematic-side-video,
    .cinematic-center-video {
        max-width: 100% !important;
        transform: none !important;
    }

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

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .section--parallax-banner {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4/5;
    }
}

/* ─── Mobile (max 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry__item:nth-child(2n) {
        margin-top: var(--space-xl);
    }

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

    .stories-grid__item:nth-child(2n) {
        margin-top: var(--space-xl);
    }

    .featured-story__content {
        padding: var(--space-xl) var(--space-md);
    }

    .testimonial-card {
        padding: var(--space-xl) var(--space-md);
    }

    .testimonial-card__text {
        font-size: var(--text-xl);
    }

    .filter-tabs {
        gap: var(--space-xs);
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 10px;
    }

    .footer__nav {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .film-row__aspect {
        aspect-ratio: 16/9;
    }

    .press-logos-wrap {
        gap: 12px 16px !important;
    }

    .press-brand-img {
        max-height: 24px !important;
        max-width: 95px !important;
    }

    .press-brand-img[src*="wedmegood"] {
        max-height: 20px !important;
        max-width: 95px !important;
    }

    .press-brand-img[src*="hindustan"],
    .press-brand-img[src*="times_of_india"] {
        max-height: 19px !important;
        max-width: 95px !important;
    }

    .press-brand-text {
        font-size: 0.75rem !important;
    }
}

/* ─── Large Desktop (min 1441px) ────────────────────────────── */
@media (min-width: 1441px) {
    .hero__title {
        font-size: 7rem;
    }
}