/* ==========================================================================
   SARAVANAA BHAVAN - OFFICIAL HEADER DESIGN SYSTEM
   Brand Color: #85C227 (Vibrant Fresh Green Everywhere)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&display=swap');

:root {
    /* Brand Color Palette - All Vibrant #85C227 */
    --hsb-green-primary: #85C227;
    --hsb-green-dark: #85C227;
    --hsb-green-topbar: #85C227;
    --hsb-green-glow: #ffffff;
    --hsb-green-hover: #85C227;
    --hsb-green-light: #f2fae6;
    --hsb-red-brand: #a81c1c;
    --hsb-navy-brand: #1a2750;
    
    /* Backgrounds */
    --hsb-bg-cream: #faf7f0;
    --hsb-bg-cream-pure: #ffffff;
    --hsb-border-light: #ece6da;
    
    /* Typography Colors */
    --hsb-text-dark: #22252a;
    --hsb-text-muted: #52575e;
    
    /* Dimensions & Transitions */
    --hsb-font-main: 'Jost', sans-serif;
    --hsb-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   HEADER CONTAINER
   ========================================================================== */
.hsb-site-header {
    width: 100%;
    font-family: var(--hsb-font-main);
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hsb-site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: var(--hsb-transition);
}

.hsb-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   ROW 1: TOP GREEN ANNOUNCEMENT BAR (#85C227)
   ========================================================================== */
.hsb-top-bar {
    background: #85C227 !important;
    background-color: #85C227 !important;
    color: #ffffff;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hsb-top-bar .hsb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hsb-top-bar-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

/* White Pulsing Status Dot */
.hsb-status-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.hsb-status-dot::after {
    display: none;
}

.hsb-top-bar-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #000000;
    text-transform: none;
}

.hsb-top-bar-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.hsb-top-bar-right .hsb-address {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hsb-top-bar-right .hsb-address:hover {
    opacity: 0.85;
}

.hsb-top-bar-right .hsb-separator-dot {
    color: rgba(0, 0, 0, 0.7);
    font-size: 15px;
}

.hsb-top-bar-right .hsb-service-badge {
    color: #000000;
    font-weight: 500;
}

/* ==========================================================================
   ROW 2: MAIN NAVIGATION BAR
   ========================================================================== */
.hsb-main-nav-bar {
    background-color: #ffffff;
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--hsb-border-light);
}

.hsb-main-nav-bar .hsb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Brand Logo */
.hsb-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hsb-brand-logo img {
    height: 56px;
    width: auto;
    max-width: 290px;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.hsb-brand-logo:hover img {
    transform: scale(1.02);
}

/* Desktop Nav Menu */
.hsb-nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hsb-nav-item {
    position: relative;
    list-style: none;
}

.hsb-nav-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hsb-text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--hsb-transition);
    white-space: nowrap;
}

.hsb-nav-link:hover {
    color: #85C227 !important;
    background-color: rgba(133, 194, 39, 0.08);
}

/* Active HOME Pill Button with #85C227 */
.hsb-nav-item.is-active .hsb-nav-link,
.hsb-nav-link.hsb-active-pill {
    background: #85C227 !important;
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 7px 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 10px rgba(133, 194, 39, 0.4);
}

.hsb-nav-item.is-active .hsb-nav-link:hover,
.hsb-nav-link.hsb-active-pill:hover {
    background: #85C227 !important;
    box-shadow: 0 4px 12px rgba(133, 194, 39, 0.5);
}

/* Actions Container */
.hsb-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Order Online Button */
.hsb-dropdown-wrapper {
    position: relative;
}

.hsb-btn-order-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #333333;
    border: 1.5px solid #ded9cb;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--hsb-transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.hsb-btn-order-online:hover {
    border-color: #85C227 !important;
    color: #85C227 !important;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(133, 194, 39, 0.2);
}

.hsb-btn-order-online .hsb-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    stroke: currentColor;
}

.hsb-dropdown-wrapper.is-open .hsb-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.hsb-order-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1050;
    animation: hsb-dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hsb-dropdown-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hsb-dropdown-wrapper.is-open .hsb-order-dropdown-menu,
.hsb-dropdown-wrapper:hover .hsb-order-dropdown-menu {
    display: flex;
}

.hsb-dropdown-header {
    padding: 6px 12px 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b8f95;
    border-bottom: 1px solid #f0eee6;
    margin-bottom: 4px;
}

.hsb-order-platform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #23272e;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--hsb-transition);
}

.hsb-order-platform-item:hover {
    background-color: var(--hsb-green-light);
    color: #85C227 !important;
    transform: translateX(3px);
}

.hsb-platform-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.hsb-platform-badge.uber { background: #000000; color: #06c167; }
.hsb-platform-badge.foodora { background: #d70f64; color: #ffffff; }
.hsb-platform-badge.bolt { background: #34d186; color: #ffffff; }

.hsb-platform-info {
    display: flex;
    flex-direction: column;
}

.hsb-platform-sub {
    font-size: 11px;
    font-weight: 400;
    color: #7b8089;
}

/* "Book a Table" Green Pill Button with #85C227 */
.hsb-btn-book-table {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #85C227 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.02em;
    box-shadow: 0 3px 10px rgba(133, 194, 39, 0.4);
    transition: var(--hsb-transition);
}

.hsb-btn-book-table:hover {
    background: #85C227 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(133, 194, 39, 0.5);
    color: #ffffff !important;
}

.hsb-btn-book-table:hover .hsb-cal-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.hsb-btn-book-table:active {
    transform: translateY(0);
}

.hsb-btn-book-table .hsb-cal-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Circular Action Button with #85C227 */
.hsb-btn-circle-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #85C227 !important;
    color: #ffffff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(133, 194, 39, 0.35);
    transition: var(--hsb-transition);
    position: relative;
    text-decoration: none;
}

.hsb-btn-circle-action:hover {
    transform: scale(1.08);
    background: #85C227 !important;
    box-shadow: 0 4px 12px rgba(133, 194, 39, 0.5);
}

.hsb-btn-circle-action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hsb-btn-circle-action::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -32px;
    right: 50%;
    transform: translateX(50%);
    background: #1e242b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1060;
}

.hsb-btn-circle-action:hover::before {
    opacity: 1;
    transform: translateX(50%) translateY(2px);
}

/* Mobile Toggle */
.hsb-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--hsb-text-dark);
    border-radius: 8px;
    transition: var(--hsb-transition);
}

.hsb-mobile-toggle:hover {
    background: rgba(133, 194, 39, 0.1);
    color: #85C227 !important;
}

.hsb-mobile-toggle svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Mobile Drawer */
.hsb-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.hsb-mobile-drawer.is-active {
    right: 0;
}

.hsb-mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hsb-mobile-drawer-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hsb-drawer-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0eee6;
    background: #ffffff;
}

.hsb-drawer-header img {
    height: 38px;
    width: auto;
}

.hsb-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #444;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--hsb-transition);
}

.hsb-drawer-close:hover {
    color: var(--hsb-red-brand);
    background: #f7edea;
}

.hsb-drawer-nav {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsb-drawer-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hsb-text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--hsb-transition);
}

.hsb-drawer-link:hover,
.hsb-drawer-link.is-active {
    background: var(--hsb-green-light);
    color: #85C227 !important;
}

.hsb-drawer-order {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0eee6;
}

.hsb-drawer-order-title {
    padding: 0 16px 8px;
    color: #8b8f95;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hsb-drawer-order-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--hsb-text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: var(--hsb-transition);
}

.hsb-drawer-order-link:hover {
    background: var(--hsb-green-light);
    color: #85C227;
}

.hsb-drawer-order-link > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hsb-drawer-order-link strong {
    font-size: 14px;
    font-weight: 700;
}

.hsb-drawer-order-link small {
    color: #7b8089;
    font-size: 11px;
}

.hsb-drawer-actions {
    padding: 20px 24px 30px;
    margin-top: auto;
    border-top: 1px solid #f0eee6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Modal */
.hsb-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 28, 12, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hsb-modal-backdrop.is-open {
    display: flex;
    animation: hsb-fade-in 0.25s ease-out;
}

@keyframes hsb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hsb-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: hsb-scale-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hsb-scale-up {
    from { transform: scale(0.93); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hsb-modal-header {
    background: #85C227 !important;
    color: #ffffff;
    padding: 24px 28px;
    position: relative;
}

.hsb-modal-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.hsb-modal-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.hsb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--hsb-transition);
}

.hsb-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hsb-modal-body {
    padding: 24px 28px;
}

.hsb-form-group {
    margin-bottom: 16px;
}

.hsb-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a505a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hsb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hsb-input,
.hsb-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ded9cb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: var(--hsb-transition);
    outline: none;
    background: #faf9f6;
}

.hsb-input:focus,
.hsb-select:focus {
    border-color: #85C227 !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(133, 194, 39, 0.25) !important;
}

.hsb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.hsb-btn-modal-cancel {
    padding: 10px 18px;
    border: 1.5px solid #ded9cb;
    border-radius: 9999px;
    background: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.hsb-btn-modal-confirm {
    padding: 10px 24px;
    border: none;
    border-radius: 9999px;
    background: #85C227 !important;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(133, 194, 39, 0.4);
    transition: var(--hsb-transition);
}

.hsb-btn-modal-confirm:hover {
    background: #85C227 !important;
}

/* Breakpoints */
@media (max-width: 1400px) {
    .hsb-container { padding-left: 16px; padding-right: 16px; }
    .hsb-main-nav-bar .hsb-container { gap: 10px; }
    .hsb-brand-logo { min-width: 0; }
    .hsb-brand-logo img { height: 44px; max-width: 220px; }
    .hsb-nav-menu-desktop { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 2px; }
    .hsb-nav-link { padding: 5px 6px; font-size: 11px; letter-spacing: 0.02em; }
    .hsb-nav-item.is-active .hsb-nav-link,
    .hsb-nav-link.hsb-active-pill { padding: 5px 10px; }
    .hsb-nav-actions { gap: 6px; }
    .hsb-btn-order-online,
    .hsb-btn-book-table { gap: 5px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
    .hsb-btn-order-online .hsb-chevron { width: 12px; height: 12px; }
}

@media (max-width: 1080px) {
    .hsb-nav-menu-desktop { display: none; }
    .hsb-mobile-toggle { display: block; }
}

@media (max-width: 992px) {
    .hsb-top-bar-left { font-size: 11px; }
}

@media (max-width: 768px) {
    .hsb-top-bar .hsb-container { justify-content: center; text-align: center; }
    .hsb-top-bar-right { display: none; }
    .hsb-btn-order-online { display: none; }
    .hsb-nav-actions > .hsb-btn-book-table { display: none; }
    .hsb-brand-logo img { height: 44px; }
    .hsb-top-bar-title { font-size: 13px; line-height: 1.35; }
    .hsb-drawer-link { font-size: 15px; }
    .hsb-modal-header p { font-size: 14px; }
    .hsb-form-group label { font-size: 14px; }
    .hsb-btn-modal-cancel,
    .hsb-btn-modal-confirm { font-size: 14px; }
}
