/**
 * Suraj Transport - Layout Styles
 * Navigation, Footer, and structural components
 * Module: UI Theme & Components
 */

/* ============================================
   NAVIGATION BAR
   ============================================ */

.st-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--st-z-fixed);
    background: #e31837;
    /* Brand Red Color */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    transition: all var(--st-transition-normal);
    padding-top: env(safe-area-inset-top);
}

.st-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.st-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: calc(var(--st-z-fixed) + 2);
}

.st-nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--st-brand-primary);
    border-radius: var(--st-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.st-nav-logo-icon svg {
    width: 24px;
    height: 24px;
}

.st-nav-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.st-nav-logo-accent {
    color: #ffcccc;
}

/* Desktop Links */
.st-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.st-nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--st-transition-fast);
    position: relative;
}

.st-nav-link:hover,
.st-nav-link-active {
    color: white;
}

.st-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all var(--st-transition-normal);
    transform: translateX(-50%);
}

.st-nav-link:hover::after,
.st-nav-link-active::after {
    width: 100%;
}

/* Actions */
.st-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .st-nav-actions {
        gap: 1rem;
    }
}

.st-nav-theme-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--st-transition-fast);
    color: white !important;
    flex-shrink: 0;
}

.st-nav-mobile-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none;
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 99999; 
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.st-toggle-bar {
    width: 26px;
    height: 3px;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.st-nav-mobile-toggle.is-active .st-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: white !important;
}

.st-nav-mobile-toggle.is-active .st-toggle-bar:nth-child(2) {
    opacity: 0;
}

.st-nav-mobile-toggle.is-active .st-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: white !important;
}

/* Spacer */
.st-nav-spacer {
    height: 80px;
}

/* Mobile Menu - FORCE RED & WHITE */
.st-mobile-menu[data-mobile-menu] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #e31837 !important; /* BRAND RED */
    z-index: 99990 !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    overflow-y: auto;
    display: block !important;
    padding-top: 20px !important; /* Adjusted for logo */
}

.st-mobile-menu-branding {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.st-mobile-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.st-mobile-menu.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.st-mobile-link {
    display: flex !important;
    align-items: center !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important; /* FORCE WHITE */
    text-decoration: none !important;
    padding: 1.25rem 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.st-mobile-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 2.5rem !important;
}

/* Fix for containers inside mobile menu */
.st-mobile-menu .st-container {
    background: transparent !important;
    padding: 0 !important;
}

@media (max-width: 375px) {
    .st-nav-logo img {
        height: 38px !important;
        max-width: 130px !important;
    }
    
    .st-nav-inner {
        padding: 0 0.75rem !important;
    }
}

.st-mobile-menu .st-btn-primary {
    background: white;
    color: #e31837;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    margin-top: 1.5rem;
}

/* Logo Responsiveness */
@media (max-width: 380px) {
    .st-nav-logo img {
        height: 36px !important;
    }
}
/* Touch optimization for mobile menu */
@media (hover: none) and (pointer: coarse) {
    .st-mobile-link {
        min-height: 56px;
        display: flex;
        align-items: center;
        padding: 1rem 2rem;
    }
    
    .st-mobile-link:hover {
        padding-left: 2rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.st-footer {
    background: var(--st-bg-tertiary);
    padding-top: 5rem;
    color: var(--st-text-secondary);
    border-top: 1px solid var(--st-border-light);
}

.st-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .st-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .st-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.st-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.st-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.st-footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--st-brand-primary);
    border-radius: var(--st-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.st-footer-logo-icon svg {
    width: 20px;
    height: 20px;
}

.st-footer-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--st-text-primary);
}

.st-footer-logo-accent {
    color: var(--st-brand-primary);
}

.st-footer-tagline {
    font-weight: 600;
    color: var(--st-text-primary);
}

.st-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.st-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--st-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-text-secondary);
    transition: all var(--st-transition-fast);
    border: 1px solid var(--st-border-light);
}

.st-social-link svg {
    width: 18px;
    height: 18px;
}

.st-social-link:hover {
    background: var(--st-brand-primary);
    color: white;
    border-color: var(--st-brand-primary);
    transform: translateY(-2px);
}

.st-footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--st-text-primary);
    margin-bottom: 1.5rem;
}

.st-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.st-footer-link {
    color: var(--st-text-secondary);
    text-decoration: none;
    transition: color var(--st-transition-fast);
}

.st-footer-link:hover {
    color: var(--st-brand-primary);
}

.st-footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.st-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.st-contact-icon {
    font-size: 1.25rem;
}

.st-contact-link {
    color: var(--st-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--st-transition-fast);
}

.st-contact-link:hover {
    color: var(--st-brand-primary);
}

.st-footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--st-border-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.st-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.st-footer-legal-link {
    color: var(--st-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.st-footer-legal-link:hover {
    color: var(--st-text-primary);
}

/* Cleaned up: Bottom Nav removed for Web version */

@media (max-width: 1024px) {
    .st-footer {
        padding-bottom: 0;
    }
}