/* ==========================================================
   MIR AIRCON - blue & white luxury theme
   ========================================================== */
:root {
    --navy: #0A2540;
    --brand: #1258C7;
    --brand-dark: #0B3F92;
    --sky: #4DA3FF;
    --ice: #EAF3FF;
    --white: #FFFFFF;
    --ink: #0B1F38;
    --muted: #5B6B82;
    --line: #E3ECF8;
    --shadow-sm: 0 4px 16px rgba(10, 37, 64, .06);
    --shadow: 0 16px 40px rgba(18, 88, 199, .12);
    --shadow-lg: 0 30px 60px rgba(10, 37, 64, .18);
    --radius: 20px;
    --tabbar-h: 66px;
    --topbar-h: 58px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body.app-body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    letter-spacing: -.01em;
    font-weight: 700;
}

a { color: var(--brand); transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
::selection { background: var(--sky); color: #fff; }

/* ---------- Buttons ---------- */
.btn-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2F7BF0, var(--brand) 50%, var(--brand-dark));
    color: #fff;
    border: 0;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(18, 88, 199, .28);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-brand::after {
    content: '';
    position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s var(--ease) infinite;
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 88, 199, .36); }

.btn-outline-brand {
    color: var(--brand);
    border: 1.5px solid var(--brand);
    border-radius: 999px;
    font-weight: 700;
    background: transparent;
    transition: all .3s var(--ease);
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.btn-lg-app { padding: .95rem 1.5rem; border-radius: 16px; }

@keyframes shine {
    0%, 60% { left: -75%; }
    100% { left: 130%; }
}

/* ---------- Icon buttons ---------- */
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--ice); color: var(--brand);
    text-decoration: none; font-size: 1.05rem;
    transition: transform .3s var(--ease), background .3s;
}
.icon-btn:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.cart-dot {
    position: absolute; top: -4px; right: -4px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--sky); color: #fff;
    font-size: .68rem; font-weight: 800; line-height: 19px; text-align: center;
    border: 2px solid #fff;
}

/* ---------- Mobile top bar ---------- */
.app-topbar {
    position: sticky; top: 0; z-index: 1030;
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.app-topbar img { height: 30px; width: auto; }

/* ---------- Mobile bottom tab bar ---------- */
.app-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(10, 37, 64, .07);
}
.app-tabbar .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--muted);
    font-size: .7rem; font-weight: 600;
    position: relative;
    transition: color .3s var(--ease);
}
.app-tabbar .tab i { font-size: 1.3rem; transition: transform .35s var(--ease); }
.app-tabbar .tab.active { color: var(--brand); }
.app-tabbar .tab.active i { transform: translateY(-2px) scale(1.1); }
.app-tabbar .tab.active::before {
    content: ''; position: absolute; top: 0; width: 28px; height: 3px;
    border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--sky), var(--brand));
}

@media (max-width: 991.98px) {
    .app-main { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
}

/* Floating WhatsApp */
.whatsapp-fab {
    position: fixed; right: 16px;
    bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff; font-size: 1.6rem;
    box-shadow: 0 12px 26px rgba(37, 211, 102, .4);
    z-index: 1035; text-decoration: none;
    animation: pulse 2.6s infinite;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45), 0 12px 26px rgba(37, 211, 102, .4); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 12px 26px rgba(37, 211, 102, .4); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 12px 26px rgba(37, 211, 102, .4); }
}
@media (min-width: 992px) { .whatsapp-fab { bottom: 28px; right: 28px; } }

/* ---------- Desktop navbar ---------- */
.site-navbar {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .55rem 0;
    transition: box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-navbar.scrolled { box-shadow: var(--shadow-sm); padding: .35rem 0; }
.site-navbar .navbar-brand img { transition: transform .4s var(--ease); }
.site-navbar .navbar-brand:hover img { transform: scale(1.04); }
.site-navbar .nav-link {
    color: var(--ink); font-weight: 600; font-size: .95rem; position: relative;
}
.site-navbar .nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: linear-gradient(90deg, var(--sky), var(--brand));
    border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-navbar .nav-link:hover::after, .site-navbar .nav-link.active::after { transform: scaleX(1); }
.site-navbar .nav-link.active { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 80px 0 72px;
    background:
        radial-gradient(900px 500px at 90% -10%, #D7E8FF 0%, transparent 60%),
        radial-gradient(700px 400px at -10% 110%, #EAF3FF 0%, transparent 60%),
        #FFFFFF;
}
.hero .orb {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
    animation: float 14s var(--ease) infinite alternate;
}
.hero .orb-1 { width: 380px; height: 380px; background: #A9D1FF; top: -120px; right: -80px; }
.hero .orb-2 { width: 300px; height: 300px; background: #C9E2FF; bottom: -120px; left: -60px; animation-delay: -6s; }
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -26px) scale(1.08); }
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .8rem;
}
.eyebrow::before {
    content: ''; width: 26px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), var(--brand));
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700; line-height: 1.04;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--sky), var(--brand) 60%, var(--navy));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% auto;
    animation: gradientMove 7s linear infinite;
}
@keyframes gradientMove { to { background-position: 200% center; } }

.hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* Staggered entrance */
.hero .reveal:nth-child(1) { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .18s; }
.hero .reveal:nth-child(3) { transition-delay: .3s; }
.hero .reveal:nth-child(4) { transition-delay: .42s; }

/* Hero visual card with floating AC */
.hero-visual {
    position: relative;
    background: linear-gradient(160deg, #0B3F92 0%, #1258C7 55%, #4DA3FF 130%);
    border-radius: 32px;
    padding: 48px 28px 36px;
    box-shadow: var(--shadow-lg);
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 380px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-visual::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 45%);
}
.hero-visual .airflow {
    position: absolute; left: 50%; top: 40%; width: 80%; height: 180px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(255,255,255,.18) 14px 16px);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
            mask-image: linear-gradient(to bottom, #000, transparent);
    animation: airflow 3.2s linear infinite;
    border-radius: 50%;
}
@keyframes airflow {
    0% { background-position: 0 0; opacity: .7; }
    100% { background-position: 0 32px; opacity: 1; }
}
.hero-visual .ac-logo {
    position: relative; z-index: 1;
    width: 210px; max-width: 70%;
    background: #fff; border-radius: 22px; padding: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    animation: floatY 5s var(--ease) infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-visual .tagline { position: relative; z-index: 1; margin-top: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; opacity: .9; }

/* Floating badges on the hero visual */
.float-badge {
    position: absolute; z-index: 2;
    background: #fff; color: var(--navy);
    border-radius: 16px; padding: 10px 14px;
    box-shadow: var(--shadow-lg);
    font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    animation: floatY 6s var(--ease) infinite;
}
.float-badge i { color: var(--brand); font-size: 1.1rem; }
.float-badge.b1 { top: 18px; left: -12px; }
.float-badge.b2 { bottom: 22px; right: -10px; animation-delay: -3s; }

/* Hero trust chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.chip-row span { display: inline-flex; align-items: center; gap: 6px; }
.chip-row i { color: var(--brand); }

/* ---------- Stats ---------- */
.stats-band {
    background: var(--navy);
    color: #fff;
    border-radius: 28px;
    padding: 34px 20px;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.stats-band::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%; background: radial-gradient(circle, rgba(77,163,255,.5), transparent 70%);
}
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #A9C4EA; margin-top: 6px; font-weight: 700; }

/* ---------- Sections and cards ---------- */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--ice), #fff); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
@media (max-width: 991.98px) { .section { padding: 52px 0; } }

.card-app {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    height: 100%;
    position: relative;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card-app:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #C7DBF7; }

.icon-badge {
    width: 56px; height: 56px; border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ice), #D6E8FF);
    color: var(--brand); font-size: 1.5rem;
    margin-bottom: 16px;
    transition: transform .5s var(--ease);
}
.card-app:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-media {
    position: relative; height: 190px;
    background: radial-gradient(circle at 50% 30%, #FFFFFF, var(--ice));
    display: grid; place-items: center; overflow: hidden;
}
.product-media .ac-art {
    font-size: 4.4rem; color: var(--brand);
    transition: transform .6s var(--ease);
    filter: drop-shadow(0 12px 16px rgba(18, 88, 199, .2));
}
.product-card:hover .ac-art { transform: scale(1.08) translateY(-4px); }
.product-media::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
    transform: skewX(-18deg);
    transition: left .9s var(--ease);
}
.product-card:hover .product-media::after { left: 130%; }
.badge-off {
    position: absolute; top: 14px; left: 14px;
    background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800;
    padding: 5px 10px; border-radius: 999px; letter-spacing: .04em;
}
.badge-stock-out { background: #8A97AB; }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.product-title { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin: 6px 0 10px; }
.spec-chip {
    display: inline-block; font-size: .72rem; font-weight: 700;
    background: var(--ice); color: var(--brand-dark);
    padding: 4px 9px; border-radius: 8px; margin: 0 4px 4px 0;
}
.price-now { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.price-mrp { font-size: .9rem; color: #94A3B8; text-decoration: line-through; margin-left: 6px; }

/* Horizontal product row (mobile app carousel) */
.h-scroll {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: 0 0 auto; width: 260px; }
@media (min-width: 992px) {
    .h-scroll { overflow: visible; }
    .h-scroll > * { width: auto; flex: 1 1 0; }
}

/* ---------- Brand marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-pill {
    flex: 0 0 auto; min-width: 160px; height: 84px;
    display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-sm); padding: 12px 22px;
    transition: transform .4s var(--ease), border-color .4s;
    text-decoration: none; color: var(--navy); font-weight: 800;
}
.brand-pill:hover { transform: translateY(-4px); border-color: var(--sky); color: var(--navy); }
.brand-pill img { max-height: 42px; width: auto; object-fit: contain; }
.brand-badge {
    font-weight: 800; font-size: .92rem; color: var(--brand-dark);
    background: var(--ice); border-radius: 10px; padding: 8px 12px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quick actions (mobile) ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-actions a {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 14px 6px; text-align: center; text-decoration: none; color: var(--navy);
    font-size: .78rem; font-weight: 700; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease);
}
.quick-actions a:active { transform: scale(.96); }
.quick-actions a i { display: block; font-size: 1.4rem; color: var(--brand); margin-bottom: 4px; }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-zoom.in { opacity: 1; transform: none; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 14px; border: 1px solid var(--line);
    padding: .8rem 1rem; background: #F8FBFF;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sky); background: #fff;
    box-shadow: 0 0 0 .22rem rgba(77, 163, 255, .2);
}
.form-label { font-weight: 700; font-size: .88rem; color: var(--navy); }

/* ---------- Page band (inner pages) ---------- */
.page-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, var(--ice) 100%);
    border-bottom: 1px solid var(--line);
    padding: 52px 0 40px;
}
.page-band::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: radial-gradient(circle, rgba(77,163,255,.25), transparent 70%);
    animation: float 12s var(--ease) infinite alternate;
}
.page-band h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; margin-bottom: .4rem; }
@media (max-width: 991.98px) { .page-band { padding: 30px 0 26px; } }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: #DCE8F7;
    margin-top: 60px;
}
.site-footer .footer-head {
    color: var(--sky); font-family: 'Manrope', sans-serif; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.site-footer .footer-links a { color: #DCE8F7; text-decoration: none; display: inline-block; margin-bottom: 6px; transition: color .3s, transform .3s; }
.site-footer .footer-links a:hover { color: #fff; transform: translateX(4px); }
.site-footer .footer-muted { color: #9FB6D6; }
.site-footer hr { border-color: rgba(255,255,255,.12); }
.site-footer img { background: #fff; border-radius: 12px; padding: 6px 10px; }

/* ---------- Cart & checkout ---------- */
.qty-input { width: 84px; text-align: center; }
.summary-card { position: sticky; top: 100px; }
.cart-thumb {
    width: 84px; height: 84px; border-radius: 16px; flex-shrink: 0;
    background: radial-gradient(circle, #fff, var(--ice));
    display: grid; place-items: center; color: var(--brand); font-size: 2.2rem;
}

/* ---------- Mobile fine-tuning ---------- */
@media (max-width: 575.98px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .card-app { padding: 20px; }
    .hero { padding: 36px 0 44px; }
    .hero-visual { min-height: 300px; padding: 36px 20px 28px; }
    .float-badge.b1 { left: 8px; }
    .float-badge.b2 { right: 8px; }
    .btn-lg-app { width: 100%; }
}

/* ---------- Respect reduced-motion users ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-left, .reveal-zoom { opacity: 1; transform: none; }
}
