/**
 * Krishna Overseas Header & Hero Stylesheet
 * Recreating reference design pixel-perfect
 */

/* ==========================================================================
   Top Bar Styles
   ========================================================================== */
.krishna-topbar {
    background-color: var(--krishna-topbar-bg, #22252a);
    color: var(--krishna-topbar-text, #ffffff);
    font-family: var(--krishna-font-secondary, 'Inter', sans-serif);
    font-size: 12.5px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1001;
}

.krishna-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 7px;
    padding-bottom: 7px;
}

/* Left: Ticker Highlights */
.krishna-topbar-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    max-width: 68%;
}

.krishna-ticker-nav {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    display: flex;
    align-items: center;
    cursor: default;
}

.krishna-topbar-ticker-content {
    color: #e2e8f0;
    font-weight: 400;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: Contact Items */
.krishna-topbar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.krishna-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f1f5f9;
    font-weight: 400;
    transition: color 0.2s ease;
}

.krishna-topbar-item i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.krishna-topbar-item:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-topbar-item:hover i {
    color: var(--krishna-primary, #ef7f1a);
}


/* ==========================================================================
   Floating Header Card & Navigation
   ========================================================================== */
.site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.krishna-header-card-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: 16px;
    pointer-events: none; /* Allows clicks inside the card only */
}

.krishna-header-card {
    pointer-events: auto;
    background: #ffffff;
    border-radius: var(--krishna-radius-pill, 9999px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
    max-width: var(--krishna-container);
    width: calc(100% - 40px);
    padding: 6px 20px 6px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Logo Styling */
.krishna-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.krishna-logo-wrap .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.krishna-logo-wrap .custom-logo {
    height: 58px;
    width: auto;
    max-height: 62px;
    max-width: 155px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.05) saturate(1.02);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.krishna-logo-wrap .custom-logo:hover {
    transform: scale(1.03) translateZ(0);
    filter: contrast(1.09) saturate(1.05);
}

/* Desktop Navigation Menu */
.krishna-main-navigation {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.krishna-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
}

.krishna-nav-menu > li {
    position: relative;
    padding: 10px 0;
}

.krishna-nav-menu > li > a {
    font-family: var(--krishna-font-primary, 'Poppins', sans-serif);
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

/* Hover effect */
.krishna-nav-menu > li:hover > a {
    color: var(--krishna-primary, #ef7f1a);
}

/* Active Menu Item with Orange Underline */
.krishna-nav-menu > li.current-menu-item > a,
.krishna-nav-menu > li.current_page_item > a {
    color: #1e293b;
}

.krishna-nav-menu > li.current-menu-item > a::after,
.krishna-nav-menu > li.current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--krishna-primary, #ef7f1a);
    border-radius: 3px;
}

/* Multi-level Dropdown Menus */
.krishna-nav-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    pointer-events: none;
}

.krishna-nav-menu > li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.krishna-nav-menu ul.sub-menu li {
    padding: 0;
}

.krishna-nav-menu ul.sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
}

.krishna-nav-menu ul.sub-menu li a:hover {
    background-color: #fff7ed;
    color: var(--krishna-primary, #ef7f1a);
    padding-left: 24px;
}


/* ==========================================================================
   Header Right Actions (Call Us & Orange Pill Button)
   ========================================================================== */
.krishna-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

/* Call Us Block */
.krishna-call-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.krishna-call-box:hover {
    background-color: rgba(239, 127, 26, 0.05);
}

.krishna-call-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(239, 127, 26, 0.1);
    color: var(--krishna-primary, #ef7f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.krishna-call-box:hover .krishna-call-icon {
    transform: rotate(12deg) scale(1.05);
}

.krishna-call-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.krishna-call-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--krishna-primary, #ef7f1a);
    line-height: 1.15;
    text-transform: capitalize;
}

.krishna-call-number {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.2px;
    font-family: var(--krishna-font-primary, sans-serif);
}

/* Orange Pill Button */
.krishna-pill-btn {
    background: var(--krishna-primary, #ef7f1a);
    color: #ffffff !important;
    font-family: var(--krishna-font-primary, sans-serif);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--krishna-radius-pill, 9999px);
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(239, 127, 26, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.krishna-pill-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.krishna-pill-btn:hover {
    background: var(--krishna-primary-hover, #d96f13);
    box-shadow: 0 6px 20px rgba(239, 127, 26, 0.45);
    transform: translateY(-1px);
}

.krishna-pill-btn:hover i {
    transform: translateX(3px);
}


/* ==========================================================================
   Hero / Banner Section
   ========================================================================== */
.krishna-hero-section {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding-top: 140px; /* Space for the floating header card */
    padding-bottom: 70px;
    overflow: hidden;
}

.krishna-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.72) 42%,
        rgba(15, 23, 42, 0.25) 85%
    );
    z-index: 1;
}

.krishna-hero-container {
    position: relative;
    z-index: 2;
}

.krishna-hero-content {
    max-width: 620px;
    color: #ffffff;
}

/* Tagline with Vertical Accent Line */
.krishna-hero-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--krishna-font-primary, sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.krishna-accent-bar {
    width: 3.5px;
    height: 22px;
    background-color: var(--krishna-primary, #ef7f1a);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* Headline */
.krishna-hero-title {
    font-family: var(--krishna-font-primary, sans-serif);
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.4px;
}

/* Subtitle / Specs */
.krishna-hero-subtitle {
    font-family: var(--krishna-font-secondary, sans-serif);
    font-size: 17px;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Hero CTA Button */
.krishna-btn-hero {
    padding: 12px 28px;
    font-size: 15px;
}


/* ==========================================================================
   Mobile Toggle & Responsive Navigation Drawer
   ========================================================================== */
.krishna-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Drawer Overlay */
.krishna-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.krishna-mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.krishna-mobile-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.krishna-mobile-drawer.active {
    right: 0;
}

.krishna-mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
}

.krishna-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.krishna-mobile-logo img,
.krishna-mobile-logo .custom-logo {
    height: 48px;
    width: auto;
    max-height: 52px;
    max-width: 130px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.krishna-mobile-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
    transition: background 0.2s ease;
}

.krishna-mobile-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Mobile Menu Links */
.krishna-mobile-menu-wrap {
    margin: 20px 0;
    flex-grow: 1;
}

.krishna-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.krishna-mobile-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.krishna-mobile-nav li a {
    display: block;
    padding: 12px 6px;
    font-family: var(--krishna-font-primary, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
}

.krishna-mobile-nav li.current-menu-item a,
.krishna-mobile-nav li a:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-mobile-drawer-footer {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.krishna-mobile-call {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
}

.krishna-mobile-call i {
    font-size: 18px;
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-mobile-call .label {
    display: block;
    font-size: 11px;
    color: var(--krishna-primary, #ef7f1a);
    font-weight: 600;
}

.krishna-mobile-call .phone {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.krishna-mobile-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

.krishna-mobile-topbar-info {
    margin-top: 8px;
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.krishna-mobile-topbar-info .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Large Desktop / Laptops */
@media (max-width: 1200px) {
    .krishna-nav-menu {
        gap: 18px;
    }
    .krishna-nav-menu > li > a {
        font-size: 13.5px;
    }
    .krishna-call-number {
        font-size: 13px;
    }
    .krishna-hero-title {
        font-size: 36px;
    }
}

/* Tablet Landscape and below (< 1024px) */
@media (max-width: 1024px) {
    .krishna-main-navigation {
        display: none;
    }

    .krishna-mobile-toggle {
        display: flex;
    }

    .krishna-header-card {
        padding: 8px 18px;
    }

    .krishna-logo-wrap .custom-logo {
        height: 52px;
    }

    .krishna-hero-section {
        min-height: 520px;
        padding-top: 130px;
    }
}

/* Mobile & Tablet Portrait (< 768px) */
@media (max-width: 768px) {
    .krishna-topbar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .krishna-topbar-ticker-wrap {
        max-width: 100%;
        justify-content: center;
    }

    .krishna-topbar-contact {
        gap: 14px;
    }

    .krishna-header-card-wrap {
        padding-top: 10px;
    }

    .krishna-header-card {
        width: calc(100% - 24px);
        padding: 6px 14px;
    }

    .krishna-logo-wrap .custom-logo {
        height: 46px;
    }

    .krishna-call-box {
        display: none; /* Hide Call Us on small mobile header, accessible in drawer */
    }

    .krishna-header-actions .krishna-pill-btn {
        padding: 7px 14px;
        font-size: 12.5px;
    }

    .krishna-hero-section {
        min-height: 460px;
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .krishna-hero-title {
        font-size: 28px;
    }

    .krishna-hero-subtitle {
        font-size: 14.5px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .krishna-logo-wrap .custom-logo {
        height: 40px;
    }

    .krishna-header-actions .krishna-pill-btn {
        display: none; /* Accessible in drawer */
    }

    .krishna-hero-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Large Displays (1600px, 1920px & 1980px Screens)
   ========================================================================== */
@media (min-width: 1600px) {
    .krishna-header-card {
        padding: 10px 24px 10px 30px;
    }
    .krishna-logo-wrap .custom-logo {
        height: 62px;
        max-width: 165px;
    }
    .krishna-nav-menu {
        gap: 32px;
    }
    .krishna-nav-menu > li > a {
        font-size: 15px;
    }
    .krishna-hero-section {
        min-height: 620px;
        padding-top: 160px;
        padding-bottom: 90px;
    }
    .krishna-hero-content {
        max-width: 720px;
    }
    .krishna-hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1800px) {
    .krishna-header-card {
        padding: 12px 28px 12px 34px;
    }
    .krishna-logo-wrap .custom-logo {
        height: 66px;
        max-width: 175px;
    }
    .krishna-nav-menu {
        gap: 38px;
    }
    .krishna-nav-menu > li > a {
        font-size: 15.5px;
    }
    .krishna-hero-section {
        min-height: 680px;
        padding-top: 175px;
        padding-bottom: 110px;
    }
    .krishna-hero-content {
        max-width: 820px;
    }
    .krishna-hero-title {
        font-size: 54px;
        line-height: 1.18;
    }
    .krishna-pill-btn {
        padding: 12px 26px;
        font-size: 15px;
    }
}

