/* 
    Jagadamba Tours & Travels 
    Optimized Component Styles (Home & Subpages)
*/

/* --- Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    will-change: background-color, padding;
}

.header.scrolled {
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.6rem;
    color: var(--secondary-color);
    letter-spacing: 4px;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn-call {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 31, 58, 0.85), rgba(11, 31, 58, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 750px;
}

.hero-tagline {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.img-rounded {
    border-radius: 20px;
    object-fit: cover;
}

.section-tag {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.about-features {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- Fleet Section --- */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.fleet-card {
    background-color: var(--accent-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fleet-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.fleet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fleet-card:hover .fleet-img img {
    transform: scale(1.08);
}

.fleet-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fleet-info h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.fleet-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.fleet-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.fleet-specs li {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
}

.fleet-info .btn {
    margin-top: auto;
}

/* --- Why Choose Us --- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.why-feature-item i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.why-feature-item h4 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

/* --- Footer --- */
.footer {
    background-color: #050e1a;
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about p {
    margin: 25px 0;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* --- Subpage Headers --- */
.page-header {
    padding: clamp(120px, 15vh, 200px) 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--white);
}

/* --- Service Detail (About/Services Page) --- */
.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-detail-item.alt {
    direction: rtl;
}

.service-detail-item.alt .service-detail-text {
    direction: ltr;
}

.service-detail-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.feature-list {
    margin: 25px 0;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Fixed Actions --- */
.fixed-actions {
    position: fixed;
    bottom: 30px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.whatsapp-btn { background-color: #25D366; }
.call-btn { background-color: var(--secondary-color); }

/* --- Mobile Overlay --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary-color);
    z-index: 2000;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-menu-content ul {
    text-align: center;
}

.mobile-menu-content ul li {
    margin-bottom: 30px;
}

.mobile-menu-content ul li a {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
}

/* --- Responsive Fixes --- */
@media (max-width: 992px) {
    .about-grid, .why-grid, .service-detail-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about-features li, .feature-list li {
        justify-content: center;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-text, .hero p {
        margin-inline: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn-call {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}