/* ══════════════════════════════════════════
   CITY MITRA — Hero Section V3 (Reference Match)
   ══════════════════════════════════════════ */

/* ── Marquee Tagline Bar ── */
.marquee-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--orange);
    overflow: hidden;
    white-space: nowrap;
    height: 28px;
    display: flex;
    align-items: center;
}

/* Push navbar down only on pages with the marquee */
body.has-marquee .navbar {
    top: 28px;
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-track span {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-dark);
    padding-top: calc(var(--nav-h) + 28px); /* nav + marquee */
}

/* Background image - centered at bottom */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../assets/hero-bg.png') center bottom / cover no-repeat;
    opacity: 0.55;
    z-index: 0;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 18, 30, 0.85) 0%, rgba(15, 18, 30, 0.5) 50%, rgba(15, 18, 30, 0.9) 100%),
        linear-gradient(90deg, rgba(15, 18, 30, 0.9) 0%, transparent 40%, transparent 60%, rgba(15, 18, 30, 0.7) 100%);
    z-index: 1;
}

/* ── Hero Layout ── */
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 24px 12px;
}

/* ── Left: Content Column ── */
.hero-content {
    animation: fade-in-up 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: var(--radius-full);
    color: #34D399;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(52, 211, 153, 0.15); }
}

.hero-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 900;
    color: white;
    line-height: 1.12;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    max-width: 400px;
    margin-bottom: 8px;
}

/* Language toggle */
.hero-lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lang-chip {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}
.lang-chip.active {
    color: white;
    font-weight: 600;
}
.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Stats Row */
.hero-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.hero-stat-icon {
    font-size: 18px;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 1px;
}

/* ── Right: Chat Mockup ── */
.hero-visual {
    position: relative;
    animation: slide-in-right 0.9s ease;
}

.hero-mockup {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 460px;
    margin: 0 auto;
}

/* Mockup header (like WhatsApp/app style) */
.mockup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mockup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.mockup-name {
    font-weight: 700;
    font-size: 13px;
    color: white;
}
.mockup-status {
    font-size: 10.5px;
    color: #34D399;
}

.mockup-header-actions {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Mockup chat messages */
.mockup-chat {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: auto;
}

.mockup-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.45;
    animation: fade-in-up 0.4s ease backwards;
    position: relative;
}

.mockup-msg-user {
    background: linear-gradient(135deg, var(--orange), #F97316);
    color: white;
    border-radius: 14px 14px 3px 14px;
    margin-left: auto;
    animation-delay: 0.5s;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.mockup-msg-bot {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px 14px 14px 14px;
    animation-delay: 1.2s;
    padding: 0;
    overflow: hidden;
}

.mockup-time {
    display: block;
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
    text-align: right;
}
.mockup-msg-user .mockup-time { color: rgba(255, 255, 255, 0.6); }
.mockup-msg-bot .mockup-time { padding: 3px 12px 5px; }

/* Bot card inside mockup */
.mockup-bot-card {
    overflow: hidden;
}
.mockup-card-header {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.3), rgba(234, 88, 12, 0.15));
    color: #FFEDD5;
    font-weight: 700;
    font-size: 11.5px;
    border-bottom: 1px solid rgba(234, 88, 12, 0.2);
}
.mockup-card-field {
    padding: 5px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mockup-card-field:last-child { border-bottom: none; }

/* Nearby service chips */
.mockup-nearby {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mockup-nearby::-webkit-scrollbar {
    display: none;
}

.mockup-nearby-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.mockup-nearby-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}
.mockup-nearby-chip small {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
}

.mnc-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.mockup-nearby-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Mockup input bar */
.mockup-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mockup-input-text {
    flex: 1;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.25);
}
.mockup-input-mic {
    font-size: 15px;
    opacity: 0.4;
}
.mockup-input-send {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

/* ── Feature Cards Strip ── */
.hero-features {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
    padding: 0 24px;
    margin: 12px auto 14px;
    max-width: var(--max-w);
}

.hero-feature-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(234, 88, 12, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.15);
}

.hfc-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.hero-feature-card div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-feature-card strong {
    font-size: 12.5px;
    color: white;
    font-weight: 600;
}
.hero-feature-card small {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.3;
}

.hfc-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ── Live Cities Marquee ── */
.live-ticker {
    position: relative;
    width: 100%;
    max-width: var(--max-w);
    margin: auto auto 0;
    overflow: hidden;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.live-ticker-label {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(90deg, var(--surface-dark) 80%, transparent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    z-index: 3;
}

.ticker-track {
    display: flex;
    gap: 20px;
    animation: marquee 40s linear infinite;
    width: max-content;
    padding-left: 140px;
    align-items: center;
}

.ticker-city {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.ticker-city:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.95;
}

.ticker-city-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}
.ticker-city:hover .ticker-city-img {
    border-color: var(--orange-lt);
}

.ticker-city-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}
.ticker-city:hover .ticker-city-name {
    color: white;
}

.ticker-city-live {
    font-size: 8px;
    color: #34D399;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}
.ticker-city-live::before {
    content: '';
    width: 4px; height: 4px;
    background: #34D399;
    border-radius: 50%;
}

.ticker-view-all {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(270deg, var(--surface-dark) 70%, transparent);
    z-index: 3;
}
.ticker-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--orange);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.ticker-view-all a:hover { background: var(--orange-deep); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        max-height: none;
        padding-top: calc(var(--nav-h) + 36px);
        padding-bottom: 0;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px 20px 20px;
        gap: 16px;
    }
    .hero-visual {
        display: none !important;
    }
    .hero-subtitle {
        margin: 0 auto 12px;
        font-size: 0.95rem;
    }
    .hero-lang-toggle { justify-content: center; }
    .hero-actions { justify-content: center; gap: 10px; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 440px;
        margin: 0 auto;
    }
    .hero-stat {
        justify-content: center;
        padding: 8px 12px;
    }
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px;
        margin: 12px auto 16px;
    }
    .hero-feature-card {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: row;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 14px;
    }
    .hero-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 14px;
        font-size: 13.5px;
    }
    .hero-features {
        grid-template-columns: 1fr;
    }
    .live-ticker-label {
        padding: 0 12px;
        font-size: 9px;
    }
}
