/* NAVBAR HEIGHT & SCROLL FIX */

/* Navbar Fixed Styles */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo sizing */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* When scrolled */
.navbar.scrolled {
    min-height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
    max-height: 40px;
}

/* Navbar Nav Items */
.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2C3E50 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #FF6B35, #FFD23F);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #FF6B35 !important;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid #FF6B35;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 53, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
    overflow-x: hidden;
}

/* Section padding to account for sticky header */
section {
    scroll-margin-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar {
        min-height: 65px;
    }
    
    .navbar-brand img {
        height: 45px;
        max-height: 45px;
    }
    
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .navbar-brand img {
        height: 40px;
        max-height: 40px;
    }
}

/* Brand Text Styles */
.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #FF6B35;
    white-space: nowrap;
}

/* Social Header Icons */
.social-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-header a {
    color: #FF6B35;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-header a:hover {
    color: #FFD23F;
    transform: translateY(-3px);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .brand-text {
        font-size: 1.2rem;
    }
    
    .social-header {
        margin-top: 1rem;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #f0f0f0;
    }
    
    .navbar-nav {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1rem;
    }
}

/* ---- LOGO SIZE ENFORCEMENT ---- */
.navbar-brand img,
.navbar .navbar-brand img,
#mainNavbar .navbar-brand img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}
.navbar.scrolled .navbar-brand img,
.navbar.scrolled #mainNavbar .navbar-brand img {
    height: 40px !important;
    max-height: 40px !important;
}
@media (max-width: 991px) {
    .navbar-brand img { height: 44px !important; max-height: 44px !important; }
}
@media (max-width: 576px) {
    .navbar-brand img { height: 38px !important; max-height: 38px !important; }
}
