/* CreaNext home: the Android app (hero phone, #app section, header button). Loaded after home-v2.css. */

/* Header ------------------------------------------------------------------- */
header nav .nav-app { display: none; }
header .btn-app {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    margin-right: 0.75rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(251, 239, 223, 0.35);
    border-radius: 6px;
    color: var(--cream);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
header .btn-app i { font-size: 1.1rem; color: #A4C639; }
header .btn-app:hover { border-color: var(--marigold); color: var(--marigold); }

header .logo { flex: none; white-space: nowrap; }

/* Nine menu links plus Login already fill a laptop screen, so the app button shrinks to its icon there. */
@media (min-width: 1181px) and (max-width: 1440px) {
    header nav ul { gap: 1.35rem !important; }
    header .btn-app { padding: 0 0.8rem; margin-right: 0.6rem; }
}

@media (max-width: 1180px) {
    header nav .nav-app { display: block; }
    header .btn-app { display: none; }
}

/* Hero ---------------------------------------------------------------------- */
.hero-new { gap: 0.55rem; padding-left: 0.4rem; }
.hero-new-tag {
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: var(--saffron);
    color: var(--ink-deep);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-new:hover .hero-new-tag { background: var(--ink-deep); color: var(--marigold); }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.975rem;
    color: #C9D3DA;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust i { color: var(--marigold); font-size: 0.9rem; }

.hero-phone { display: none; }

@media (min-width: 1200px) {
    .hero-copy { padding-right: 22rem; }
    .hero-phone {
        position: absolute;
        z-index: 3;
        top: 50%;
        right: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
        display: block;
        width: 17.5rem;
        transform: translateY(-42%) rotate(3deg);
        transition: transform 0.4s ease;
    }
    .hero-phone:hover { transform: translateY(-43%) rotate(0deg); }
    .hero-phone-tag {
        position: absolute;
        left: -2.75rem;
        bottom: 3.5rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 0.9rem;
        border-radius: 8px;
        background: var(--cream);
        color: var(--ink-deep);
        font-weight: 600;
        font-size: 0.9375rem;
        white-space: nowrap;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
        transform: rotate(-3deg);
    }
    .hero-phone-tag i { color: #6B8E23; font-size: 1.1rem; }
}

/* Phone frame (hero + app section) ------------------------------------------ */
.phone {
    display: block;
    margin: 0;
    padding: 0.55rem;
    border-radius: 2.4rem;
    background: #0B0B0A;
    box-shadow: 0 0 0 1px rgba(251, 239, 223, 0.16), 0 30px 60px -12px rgba(0, 0, 0, 0.55);
}
.phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 844;
    object-fit: cover;
    border-radius: 1.9rem;
}

/* App section --------------------------------------------------------------- */
.app-band {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: var(--ink);
    color: var(--cream);
    isolation: isolate;
}
.app-band::before {
    content: '';
    position: absolute;
    right: -12rem;
    top: 10%;
    width: 44rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 38, 0.28), transparent 65%);
    z-index: -1;
    pointer-events: none;
}
.app-band .kicker { color: var(--marigold); }

.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.app-copy h2 { margin-bottom: 1.25rem; }
.app-lede { max-width: 34rem; font-size: 1.1875rem; line-height: 1.55; color: #E4E9EC; margin-bottom: 2rem; }

.app-features { display: grid; gap: 1.1rem; margin: 0 0 2.25rem; padding: 0; list-style: none; }
.app-features li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.app-features i {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(255, 106, 38, 0.16);
    color: var(--saffron);
    font-size: 1.05rem;
}
.app-features b { display: block; font-size: 1.0625rem; line-height: 1.35; }
.app-features span { display: block; font-size: 0.975rem; line-height: 1.45; color: #BCC8D1; }
.app-features span span { display: inline; color: var(--marigold); }

.app-get { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.app-dl { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.6rem; font-size: 1.0625rem; }
.app-dl i { font-size: 1.3rem; }

.app-qr { display: flex; align-items: center; gap: 0.9rem; max-width: 15rem; }
.app-qr img { flex: none; width: 104px; height: 104px; border-radius: 8px; background: var(--paper); padding: 4px; }
.app-qr span { font-size: 0.9375rem; line-height: 1.4; color: #BCC8D1; }

.app-meta { margin: 1.25rem 0 0.35rem; font-size: 0.9375rem; font-weight: 600; color: var(--cream); }
.app-help { margin: 0; max-width: 32rem; font-size: 0.9rem; line-height: 1.45; color: #9FB0BC; }

.app-phones { position: relative; min-height: 34rem; }
.app-phones .phone { position: absolute; width: min(17rem, 46%); }
.app-phones .phone-back { right: 4%; top: 0; transform: rotate(4deg); opacity: 0.92; }
.app-phones .phone-front { left: 8%; top: 3.5rem; transform: rotate(-3deg); }

.app-more { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1px solid rgba(251, 239, 223, 0.14); }
.app-more > p { margin-bottom: 1.1rem; font-weight: 600; color: #BCC8D1; }
.app-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.app-chips li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(251, 239, 223, 0.14);
    border-radius: 10px;
    background: var(--ink-raised);
}
.app-chips img, .app-chip-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.app-chip-icon { display: grid; place-items: center; background: var(--saffron); color: var(--ink-deep); font-size: 1.25rem; }
.app-chips b { display: block; font-size: 1rem; }
.app-chips small { display: block; font-size: 0.875rem; line-height: 1.35; color: #BCC8D1; }

/* Website promo: the year-round app offer line */
.site-promo p.promo-offer a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; margin-left: 0.25rem; }
.site-promo p.promo-offer a:hover { color: var(--marigold); }

/* Phones and tablets --------------------------------------------------------- */
@media (max-width: 960px) {
    .app-grid { grid-template-columns: 1fr; }
    .app-phones { order: -1; min-height: 0; height: clamp(22rem, 92vw, 30rem); max-width: 30rem; width: 100%; margin: 0 auto; }
    .app-phones .phone { width: min(14rem, 46%); }
}

@media (max-width: 768px) {
    /* QR codes are for scanning from a computer; on the phone itself the button is enough. */
    .app-qr { display: none; }
    .app-dl { width: 100%; justify-content: center; }
    .hero-trust { margin-top: 1.75rem; gap: 0.5rem 1.1rem; font-size: 0.9375rem; }
    .app-features span { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-phone, .hero-phone:hover { transition: none; }
}

/* Featured client (Mrs India) at the top of the work section */
.feature-client {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 12px;
    background: #7E0F17;
    background: linear-gradient(120deg, #5E0A10, #9E1722 55%, #B3202A);
    color: #FFF3E6;
    isolation: isolate;
}
.fc-shot { min-height: 100%; overflow: hidden; }
.fc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s ease; }
.feature-client:hover .fc-shot img { transform: scale(1.03); }
.fc-copy { position: relative; padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.fc-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.25rem; padding: 0.3rem 0.75rem; border-radius: 999px;
    background: rgba(255, 214, 120, 0.16); color: #FFD678;
    font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.fc-logo { position: absolute; top: clamp(1.25rem, 3vw, 2rem); right: clamp(1.25rem, 3vw, 2rem); width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.feature-client h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; margin-bottom: 0.9rem; color: #fff; }
.feature-client p { font-size: 1.0625rem; line-height: 1.55; color: #F6DCCF; margin-bottom: 1.5rem; max-width: 30rem; }
.fc-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; color: #FFD678; text-decoration: underline; text-underline-offset: 5px; }
.feature-client:hover .fc-link { color: #fff; }

.app-more-link { margin: 0.75rem 0 0.35rem; }
.app-more-link .text-link { color: var(--cream); }
.app-more-link .text-link:hover { color: var(--marigold); }

@media (max-width: 860px) {
    .feature-client { grid-template-columns: 1fr; }
    .fc-shot { aspect-ratio: 16 / 10; }
    .fc-logo { width: 64px; height: 64px; }
    .fc-copy h3 { padding-right: 4.5rem; }
}

/* ===== 2026-11-17: 3D hero, client strip, tilt ===== */
.hero-night::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60rem 30rem at 85% 30%, rgba(255, 106, 38, 0.16), transparent 60%),
        radial-gradient(40rem 26rem at 8% 85%, rgba(61, 123, 255, 0.14), transparent 60%),
        radial-gradient(rgba(251, 239, 223, 0.07) 1px, transparent 1.2px) 0 0 / 26px 26px;
}
.hero3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero3d.on { opacity: 1; }
.hero3d.soft.on { opacity: 0.55; }

.glow-word {
    background: linear-gradient(100deg, var(--marigold), var(--saffron) 55%, #FF8F6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 1200px) {
    .hero-phone {
        transform: translateY(-42%) perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, -8deg)) rotateZ(2deg);
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
        transform-style: preserve-3d;
    }
    .hero-phone:hover { transform: translateY(-43%) perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(0deg); }
    .hero-phone .phone { box-shadow: 0 0 0 1px rgba(251, 239, 223, 0.2), 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 120px -20px rgba(255, 106, 38, 0.35); }
    .hero-phone-tag { transform: translateZ(60px) rotate(-3deg); }
}

/* Client strip */
.clients-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 0 1.15rem max(1rem, calc((100vw - 1200px) / 2 + 2rem));
    background: var(--ink-deep);
    color: var(--cream);
    border-top: 1px solid rgba(251, 239, 223, 0.1);
    overflow: hidden;
}
.clients-label { flex: none; margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marigold); }
.clients-marquee {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-track { display: flex; flex: none; gap: 2.75rem; margin: 0; padding: 0 2.75rem 0 0; list-style: none; animation: cn-marquee 38s linear infinite; }
.clients-track li { white-space: nowrap; font-family: var(--font-display); font-size: 1.25rem; color: #D3DCE3; }
.clients-track li::before { content: '✦'; margin-right: 2.75rem; color: var(--saffron); font-family: var(--font-main); font-size: 0.8rem; vertical-align: middle; }
.clients-strip:hover .clients-track { animation-play-state: paused; }
@keyframes cn-marquee { to { transform: translateX(-100%); } }

/* Tilt-on-hover cards (driven by home-app.js) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s; }
.work-item .work-shot[data-tilt] { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.feature-client[data-tilt] { transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.app-phones[data-tilt] { transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.work-item:hover .work-shot { box-shadow: 0 30px 60px -30px rgba(6, 38, 61, 0.55); }
.feature-client:hover { box-shadow: 0 40px 80px -40px rgba(94, 10, 16, 0.75); }

/* Section headings get a little more presence */
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; }
.kicker::before { content: ''; width: 1.75rem; height: 2px; background: currentColor; }

@media (max-width: 768px) {
    .clients-strip { gap: 1rem; padding-left: 1rem; }
    .clients-label { display: none; }
    .clients-track li { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .clients-track { animation: none; }
    [data-tilt] { transform: none !important; }
}

/* ===== Photos: services, builder showcase, closing ===== */
.service-row { grid-template-columns: 3.5rem 5.5rem minmax(0, 1fr) minmax(0, 1fr) 2rem; }
.service-img {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ink);
    box-shadow: 0 10px 24px -14px rgba(6, 38, 61, 0.6);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-row:hover .service-img img { transform: scale(1.08); }

/* Website promo: real sites made with the builder */
.site-promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.promo-visual { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.site-stack { position: relative; height: clamp(17rem, 30vw, 22rem); }
.sw {
    position: absolute;
    margin: 0;
    width: 78%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(251, 239, 223, 0.15), 0 28px 50px -24px rgba(0, 0, 0, 0.75);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sw img { display: block; width: 100%; aspect-ratio: 800 / 410; object-fit: cover; object-position: top center; }
.sw-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #EDE6DC; }
.sw-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CFC4B6; }
.sw-bar i:first-child { background: #FF6A26; }
.sw-bar span { flex: 1; overflow: hidden; margin-left: 8px; padding: 2px 8px; border-radius: 5px; background: #fff; color: #41515F; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.sw-1 { left: 0; top: 0; transform: rotate(-4deg); }
.sw-2 { right: 0; top: 1.5rem; transform: rotate(4deg); }
.sw-3 { left: 11%; bottom: 0; z-index: 2; }
.site-promo:hover .sw-1 { transform: rotate(-6deg) translate(-6px, -4px); }
.site-promo:hover .sw-2 { transform: rotate(6deg) translate(6px, -4px); }
.site-promo:hover .sw-3 { transform: translateY(-6px); }
.promo-visual .promo-url { position: relative; z-index: 3; }

/* Closing: studio photo behind the call to action */
.closing.has-photo {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(100deg, rgba(4, 26, 43, 0.97) 35%, rgba(4, 26, 43, 0.82) 65%, rgba(4, 26, 43, 0.55)),
        url("../images/studio/filmset.jpg") right center / cover no-repeat;
}

@media (max-width: 860px) {
    .service-row { grid-template-columns: 2.5rem 4rem minmax(0, 1fr) 1.5rem; }
    .service-img { grid-column: 2; grid-row: 1 / span 2; width: 4rem; height: 4rem; align-self: center; }
    .service-row h3 { grid-column: 3; }
    .service-row p { grid-column: 3; grid-row: 2; }
    .service-row i { grid-column: 4; grid-row: 1; }
    .site-promo { grid-template-columns: 1fr; }
    .site-stack { height: clamp(14rem, 62vw, 20rem); }
    .closing.has-photo { background: linear-gradient(rgba(4, 26, 43, 0.9), rgba(4, 26, 43, 0.94)), url("../images/studio/filmset.jpg") center / cover no-repeat; }
}
@media (max-width: 860px) {
    /* On phones the photo replaces the 01/02 number so titles keep their width. */
    .service-row { grid-template-columns: 4rem minmax(0, 1fr) 1.5rem; column-gap: 1rem; }
    .service-row .service-num { display: none; }
    .service-img { grid-column: 1; grid-row: 1 / span 2; }
    .service-row h3 { grid-column: 2; font-size: 1.6rem; overflow-wrap: normal; }
    .service-row p { grid-column: 2; grid-row: 2; }
    .service-row i { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

/* The website box follows the dark app section, so it needs breathing room above it. */
.app-band + .promo-band { padding-top: clamp(4rem, 8vw, 6.5rem); }
