/* ==========================================================================
   Bếp Nhà Mơ - Global Common Stylesheet
   Applied across all pages (Header, Navbar, Footer, Typography, Buttons)
   ========================================================================== */

:root {
    --bnm-primary: #16331f;
    --bnm-primary-dark: #0f2415;
    --bnm-primary-light: #214d2e;
    --bnm-accent: #c53a29;
    --bnm-accent-hover: #ab2e1e;
    --bnm-gold: #e5a83b;
    --bnm-cream: #faf6f0;
    --bnm-cream-dark: #f0e6d6;
    --bnm-text: #242424;
    --bnm-text-muted: #666666;
    --bnm-border: #ece6dc;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-handwriting: 'Dancing Script', cursive;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

body {
    font-family: var(--font-body) !important;
    color: var(--bnm-text);
    margin-top: 0 !important;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.bnm-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    z-index: 1030;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.bnm-navbar .navbar-collapse {
    height: auto !important;
    padding: 0 !important;
}

.bnm-navbar .navbar-nav {
    width: auto !important;
    height: auto !important;
    gap: 1.25rem !important;
}

.bnm-header-logo {
    height: 46px !important;
    width: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.bnm-brand-name-wrap {
    line-height: 1.15;
}

.bnm-brand-name {
    font-family: var(--font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--bnm-primary) !important;
    letter-spacing: -0.3px;
}

.bnm-brand-slogan {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px;
    color: var(--bnm-accent) !important;
}

.bnm-nav-link {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    color: #2b2b2b !important;
    font-size: 0.92rem !important;
    padding: 6px 10px !important;
    transition: color 0.2s ease;
    text-decoration: none;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    line-height: 1.4 !important;
}

.bnm-nav-link:hover,
.bnm-nav-link.active {
    color: var(--bnm-accent) !important;
    font-weight: 600 !important;
}

/* Search input on navbar */
.bnm-navbar-search {
    position: relative;
    width: 220px;
}

.bnm-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bnm-search-input {
    border-radius: 999px !important;
    background-color: #f6f5f2 !important;
    border: 1px solid #e2ddd4 !important;
    padding: 6px 36px 6px 16px !important;
    font-size: 0.85rem !important;
    color: var(--bnm-text) !important;
    transition: all 0.25s ease;
    height: 36px !important;
    width: 100%;
}

.bnm-search-input::placeholder {
    color: #9c978f;
    font-size: 0.82rem;
}

.bnm-search-input:focus {
    background-color: #ffffff !important;
    border-color: var(--bnm-accent) !important;
    box-shadow: 0 0 0 3px rgba(197, 58, 41, 0.12) !important;
    outline: none !important;
}

.bnm-search-submit {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #7d776d;
    font-size: 0.85rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bnm-search-submit:hover {
    color: var(--bnm-accent) !important;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.bnm-footer {
    background: linear-gradient(135deg, #102517 0%, #16331f 100%) !important;
    font-family: var(--font-body);
}

.bnm-footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.bnm-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background-color: var(--bnm-accent);
}

.bnm-footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 3px 0;
}

.bnm-footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.bnm-social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.bnm-social-icon:hover {
    background-color: var(--bnm-accent);
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Hide legacy balloon contact */
.balloon-contact {
    display: none !important;
}

/* ==========================================================================
   Floating Action Widget (Scroll-To-Top & Phone Call Radar)
   ========================================================================== */
.bnm-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* 1. Scroll-To-Top Button (Dark circle with white arrow) */
.bnm-btn-scroll-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1e2530;
    color: #ffffff !important;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.bnm-btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bnm-btn-scroll-top:hover {
    background-color: #111722;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

/* 2. Hotline Call Button with Radar concentric ripples */
.bnm-btn-call {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.bnm-btn-call-inner {
    position: relative;
    z-index: 3;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #198754;
    background: linear-gradient(135deg, #22a061 0%, #166534 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 4px 18px rgba(25, 135, 84, 0.45);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bnm-btn-call:hover .bnm-btn-call-inner {
    transform: scale(1.08);
    background: linear-gradient(135deg, #198754 0%, #134e2a 100%);
    box-shadow: 0 6px 24px rgba(25, 135, 84, 0.65);
}

.bnm-ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(34, 160, 97, 0.55);
    pointer-events: none;
    z-index: 1;
}

.bnm-ripple-ring.ring-1 {
    width: 74px;
    height: 74px;
    animation: bnmRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.bnm-ripple-ring.ring-2 {
    width: 92px;
    height: 92px;
    animation: bnmRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.7s;
}

.bnm-ripple-ring.ring-3 {
    width: 110px;
    height: 110px;
    animation: bnmRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 1.4s;
}

@keyframes bnmRadarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.85;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }
}
