/* NLP Group – Main Stylesheet v3 (Mobile-First)
   Extends Tailwind with custom utilities shared across all pages */

/* ── iOS/Android safe area support ────────────────── */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
}

/* ── Touch tap highlight removal ──────────────────── */
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* ── Smooth momentum scroll ────────────────────────── */
html { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }

/* ── Scrollbar hide (marquee) ─────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Hero background pattern ──────────────────────── */
.hero-pattern {
    background-color: #0f172a;
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

/* ── Marquee animation ────────────────────────────── */
@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee { animation: marquee 25s linear infinite; }

/* ── Page transition fade ─────────────────────────── */
.page-fade { animation: pageFadeIn 0.4s ease; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Sticky navbar shadow on scroll ──────────────── */
#navbar.scrolled { box-shadow: 0 4px 24px 0 rgba(0,0,0,.07); }

/* ── Product card image hover ─────────────────────── */
.product-card img { transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.05); }

/* ── Admin table ──────────────────────────────────── */
.admin-table th {
    background: #f7f8fa;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #57606a;
    padding: .75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.admin-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: .875rem;
    color: #1f2328;
    vertical-align: middle;
}
.admin-table tr:hover td { background: #f7f8fa; }

/* ── Status badge ─────────────────────────────────── */
.badge-active   { background:#dcfce7; color:#15803d; }
.badge-draft    { background:#fef9c3; color:#854d0e; }
.badge-inactive { background:#f3f4f6; color:#6b7280; }
.badge {
    display: inline-block;
    padding: .15rem .65rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Form focus ring ──────────────────────────────── */
.vns-input {
    width: 100%;
    padding: .6rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: .75rem;
    outline: none;
    transition: border-color .2s;
    font-size: .9rem;
}
.vns-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size:.85rem; color:#57606a; }
.breadcrumb a { color:#16a34a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color:#bbb; }

/* ── Section title underline ──────────────────────── */
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #16a34a;
    border-radius: 2px;
    margin: .5rem auto 0;
}

/* ── Mobile Bottom Nav Bar (4-tab app-like) ─────────── */
.mobile-cta-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 80;
    display: flex;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: .45rem .5rem;
    padding-bottom: calc(.45rem + var(--safe-bottom));
    gap: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
.mobile-cta-bar .nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: .35rem .25rem;
    border-radius: .625rem;
    text-decoration: none;
    color: #57606a;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .15s, background .15s;
    cursor: pointer;
    border: none;
    background: none;
    min-height: 48px;
}
.mobile-cta-bar .nav-tab i { font-size: 1.1rem; line-height: 1; }
.mobile-cta-bar .nav-tab.active,
.mobile-cta-bar .nav-tab:active { color: #16a34a; }
.mobile-cta-bar .nav-tab.cta-primary {
    background: #16a34a;
    color: #fff;
    border-radius: .75rem;
    margin: 0 .25rem;
    box-shadow: 0 2px 8px rgba(22,163,74,.35);
}
.mobile-cta-bar .nav-tab.cta-primary:active { background: #15803d; transform: scale(.97); }
@media (min-width: 768px) { .mobile-cta-bar { display: none; } }

/* ── Floating WhatsApp / Phone button ─────────────── */
.fab-btn {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    z-index: 90;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s;
}
.fab-btn:hover { transform: scale(1.1); }
.fab-phone { background: #16a34a; bottom: 9rem; }
.fab-zalo  { background: #0068ff; bottom: 5rem; }
@media (min-width: 768px) { .fab-btn { bottom: 2rem; } .fab-phone { bottom: 5.5rem; } .fab-zalo { bottom: 2rem; } }

/* ── WOW.js / Scroll reveal helpers ───────────────── */
.wow { visibility: hidden; }
[data-wow-duration] { animation-duration: var(--wow-duration, .8s); }

/* ── Swiper overrides ─────────────────────────────── */
.swiper-pagination-bullet { background: #16a34a !important; opacity: .4; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: #16a34a !important; }
.swiper-button-next,
.swiper-button-prev { color: #16a34a !important; }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 1.2rem !important; }

/* ── Station map page ─────────────────────────────── */
#station-map { width: 100%; height: 500px; border-radius: 1.25rem; overflow: hidden; }
@media (max-width: 767px) { #station-map { height: 320px; } }

/* ── Pricing table highlight ──────────────────────── */
.tariff-peak  { color: #dc2626; font-weight: 800; }
.tariff-norm  { color: #f59e0b; font-weight: 700; }
.tariff-off   { color: #16a34a; font-weight: 700; }
.pricing-card-featured {
    border: 2px solid #16a34a;
    box-shadow: 0 0 0 6px rgba(22,163,74,.08);
}

/* ── App page badges ──────────────────────────────── */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #1f2328;
    color: #fff;
    border-radius: .75rem;
    padding: .75rem 1.4rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
    border: 1.5px solid #374151;
}
.store-badge:hover { background: #16a34a; border-color: #16a34a; transform: translateY(-2px); }
.store-badge i { font-size: 1.8rem; }

/* ── Blog card ────────────────────────────────────── */
.blog-card { transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }

/* ── Mobile sticky bar adjustments when present ───── */
body.has-mobile-bar .fab-phone { bottom: 10rem; }
body.has-mobile-bar .fab-zalo  { bottom: 6.5rem; }

/* ── Hero stats strip glass ───────────────────────── */
.bg-white\/8 { background: rgba(255,255,255,0.08); }

/* ── Swiper custom nav arrows ─────────────────────── */
.swiper-button-next,
.swiper-button-prev {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    color: #16a34a;
    top: 40%;
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 14px; font-weight: 900; }
.swiper-pagination-bullet-active { background: #16a34a !important; }

/* ── WOW hidden initial state fix ─────────────────── */
.wow { visibility: hidden; }
.animate__animated { visibility: visible; }

/* ── Body bottom padding when mobile bar is present ── */
body.has-mobile-bar {
    padding-bottom: calc(68px + var(--safe-bottom));
}

/* ── Mobile input font-size ≥ 16px (prevent iOS zoom) ── */
@media (max-width: 767px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ── Mobile overscroll color (Chrome Android) ──────── */
@media (max-width: 767px) {
    html { overscroll-behavior-y: contain; }
}

/* ── Touch button active press feedback ──────────────── */
@media (max-width: 767px) {
    .btn-touch:active,
    button:active,
    [onclick]:active {
        opacity: .82;
        transform: scale(.98);
    }
}

/* ── Full-width CTA buttons on mobile ──────────────── */
@media (max-width: 639px) {
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group > * { width: 100%; }
}

/* ── Bottom sheet modal on mobile ──────────────────── */
@media (max-width: 639px) {
    #leadModal .modal-inner {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        border-radius: 1.5rem 1.5rem 0 0;
        max-height: 92vh;
        overflow-y: auto;
        animation: slideUp .3s ease;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* ── Pull-to-refresh visual hint ──────────────────── */
.ptr-spinner {
    width: 32px; height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero stats glassmorphism cards ──────────────── */
.glass-stat {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ── Swiper product slider ────────────────────────── */
.product-swiper { overflow: visible; }
.product-swiper .swiper-wrapper { align-items: stretch; }
.product-swiper .swiper-slide { height: auto; }
.product-swiper .swiper-pagination-bullet { background: #16a34a; opacity: .4; }
.product-swiper .swiper-pagination-bullet-active { opacity: 1; }
