/* ==========================================================================
   SRK HONDA – GLOBAL PREMIUM THEME
   Path: /home/_admin/app/header.css
   Used by: admin header + public pages
   ========================================================================== */

/* ---------- BASE ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0a0a0a;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- THEME TOKENS ---------- */

:root {
    --red: #d50000;
    --red-soft: #ffebee;
    --red-dark: #a50000;
    --gold: #d4af37;

    --honda-red: #e4002b;

    --dark: #0a0a0a;
    --gray-900: #0a0a0a;
    --gray-800: #1a1a1a;
    --gray-700: #2e2e2e;
    --gray-600: #424242;
    --gray-500: #616161;
    --gray-400: #9e9e9e;
    --gray-300: #bdbdbd;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50:  #fafafa;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --shadow-soft: 0 12px 36px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-strong: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);

    --maxw: 1280px;
}

/* ---------- UTILITIES ---------- */

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-muted {
    color: var(--gray-500);
    font-size: 0.85rem;
    opacity: 0.85;
}

.text-link {
    color: var(--red);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.error {
    color: var(--red-dark);
    font-weight: 500;
}

/* ---------- TOP BAR + HEADER ---------- */

.top-bar {
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

.site-header .nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ---------- BRAND ---------- */

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand span {
    background: linear-gradient(45deg, var(--red), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- NAV PILLS (DESKTOP) ---------- */

.nav-pills {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.nav-pills:hover {
    box-shadow: var(--shadow-strong);
}

.nav-item {
    position: relative;
}

.nav-pills a,
.nav-pills button {
    all: unset;
    cursor: pointer;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    color: var(--dark);
    white-space: nowrap;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.nav-pills a:hover,
.nav-pills button:hover {
    background: var(--red-soft);
    color: var(--red);
    transform: scale(1.05);
}

.nav-pills a.primary {
    background: linear-gradient(45deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(213,0,0,0.3);
}

.nav-pills a.primary:hover {
    background: linear-gradient(45deg, var(--red-dark), var(--red));
    transform: translateY(-2px);
}

/* ---------- DROPDOWN MENUS ---------- */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: auto !important;
    width: max-content;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    display: none;
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    color: var(--dark);
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--red-soft);
    color: var(--red);
    font-weight: 600;
    padding-left: 1.8rem;
}

.nav-item.open .dropdown-menu {
    display: block;
}

/* ---------- MOBILE NAV TOGGLE BUTTON ---------- */

.mobile-toggle {
    display: none;
    background: linear-gradient(45deg, #d50000, #a50000);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

/* ---------- EMI RESULTS (HOME – optional) ---------- */

.emi-results-box {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.86rem;
}

.emi-results-box .emi-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.emi-results-box .emi-row span:first-child {
    color: #6b7280;
}

.emi-results-box .emi-row span:last-child {
    font-weight: 600;
    color: #111827;
}

.emi-note {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* On smaller screens, hero forms can stack as single column (if present) */
@media (max-width: 900px) {
    .hero-stack {
        margin-top: 1.4rem;
    }

    .hero-stack .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- MOBILE NAV OVERLAY (GLOBAL: public + admin) ---------- */

@media (max-width: 992px) {
    .site-header .nav-pills {
        position: fixed;
        top: 78px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 22px;
        padding: 1.5rem 1rem;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        background: #ffffff;
        display: none;              /* JS toggles .show */
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 999;
    }

    .site-header .nav-pills.show {
        display: flex;
    }

    .site-header .nav-pills a,
    .site-header .nav-pills button {
        width: 100%;
        padding: 0.9rem 1.2rem;
    }

    .site-header .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        margin-top: 0.3rem;
        width: 100%;
    }

    .mobile-toggle {
        display: inline-flex;
    }
}
