/* FILE: style.css 
   PROJECT: Rios Enterprise Full Website
   FEATURES: Dropdown Scroll, Sticky Sidebar, Responsive Design
*/

:root {
    --primary-blue: #004a99;
    --teal: #00c2a8;
    --dark-blue: #002d5b;
    --text-gray: #666;
    --light-bg: #f8fafd;
    --white: #ffffff;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* --- NAVIGATION & HEADER --- */
header {
    padding: 15px 8%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
    line-height: 1.2;
    text-decoration: none;
}

.logo span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.active-tab {
    background: #eef4ff;
    color: var(--primary-blue) !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-book-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
}

/* --- DROPDOWN NAVIGATION (With Scroll & Hover Fix) --- */
.dropdown {
    padding: 10px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 270px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    top: 100%;
    left: 0;
    border-top: 4px solid var(--teal);
    max-height: 220px; 
    overflow-y: auto;  
    padding: 10px 0;
}

/* Invisible Bridge for Smooth Hover */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0 !important;
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f8f8f8;
    color: #333 !important;
}

.dropdown-content li a:hover {
    background: #f9f9f9;
    color: var(--teal) !important;
    padding-left: 25px;
}

/* Dropdown Scrollbar Styling */
.dropdown-content::-webkit-scrollbar { width: 5px; }
.dropdown-content::-webkit-scrollbar-track { background: #f1f1f1; }
.dropdown-content::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

/* --- BREADCRUMB --- */
.breadcrumb {
    padding: 20px 8%;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb span { margin: 0 10px; color: #ccc; }

/* --- HERO & SECTION HEADERS --- */
.hero, .about-hero, .services-header {
    padding: 80px 8% 40px;
}

.hero {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
}

.section-tag {
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.sub-text, .about-desc {
    color: var(--text-gray);
    max-width: 750px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- STATS BAR (HOME PAGE) --- */
.stats-container { padding: 0 8%; margin-top: -40px; }
.stats-card {
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-item h2 { color: var(--primary-blue); font-size: 1.8rem; margin-bottom: 5px; }
.stat-item p { font-size: 0.85rem; color: var(--text-gray); }

/* --- GRID SYSTEM (SERVICES & MISSION) --- */
.grid-container, .services-grid, .mission-grid {
    display: grid;
    gap: 30px;
    padding: 40px 8% 100px;
}

.grid-container, .services-grid { grid-template-columns: repeat(2, 1fr); }
.mission-grid { grid-template-columns: repeat(3, 1fr); }

.service-card-wide, .mission-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.service-card-wide:hover { transform: translateY(-5px); }

/* Card Header Components */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon-box, .icon-badge, .mission-icon {
    background: #eef4ff;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 1.3rem;
}

.price-tag { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); }

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto;
}

.duration { font-size: 0.85rem; color: #999; }
.learn-more-link { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* --- SERVICE DETAIL PAGE SPECIFIC --- */
.detail-container { padding: 60px 8% 100px; background-color: #fcfdfe; }
.detail-wrapper { display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; }
.detail-content { flex: 2; }

.title-section { display: flex; align-items: center; gap: 20px; margin-bottom: 35px; }
.title-text h1 { font-size: 2.4rem; margin: 0; }

.content-body { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.content-body h3 { color: var(--dark-blue); margin: 30px 0 20px; }

.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-gray); }
.check-item span { color: var(--teal); font-weight: bold; }

.price-sidebar { flex: 1; }
.price-card {
    background: white; padding: 40px; border-radius: 15px; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); position: sticky; top: 120px;
}
.price-card h2 { font-size: 3.2rem; color: var(--primary-blue); margin-bottom: 5px; }

/* --- BUTTONS --- */
.btn-book-full, .btn-schedule, .btn-primary {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-book-full { width: 100%; margin-bottom: 15px; background: var(--primary-blue); }
.btn-book-full:hover { background: var(--dark-blue); }

.center-btn { text-align: center; margin: 40px 0 80px; }

/* --- FOOTER --- */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 70px 8% 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 { font-size: 1.4rem; margin-bottom: 20px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; opacity: 0.8; font-size: 0.9rem; transition: 0.3s; cursor: pointer; }
.footer-col ul li:hover { opacity: 1; padding-left: 5px; }
.footer-col p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 10px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-links a { color: white; text-decoration: none; margin-left: 20px; }

/* --- FLOATING ELEMENTS --- */
.chat-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1.6rem;
    z-index: 2000;
    transition: transform 0.3s;
}
.chat-float:hover { transform: scale(1.1); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .grid-container, .services-grid, .mission-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .detail-wrapper { flex-direction: column; }
    .checklist-grid { grid-template-columns: 1fr; }
    .price-sidebar { order: -1; } /* Price card on top for mobile */
    .nav-links { display: none; } /* Add mobile menu logic if needed */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}



/* --- BROAD NAV LINKS --- */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 45px; /* Broad spacing for luxury feel */
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links li a:hover:not(.btn-primary) {
    color: #004a99;
    transform: translateY(-2px);
}

/* --- PREMIUM PULSE BUTTON --- */
.nav-links .btn-primary {
    background: #004a99;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    background: #00c2a8;
    box-shadow: 0 8px 20px rgba(0, 194, 168, 0.3);
}

.pulse-btn {
    animation: navPulse 2s infinite;
}

@keyframes navPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 74, 153, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 74, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 74, 153, 0); }
}

/* --- DROPDOWN BOX FIX (No Overflow) --- */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 320px; /* Width badha di taaki text andar rahe */
    box-shadow: 0px 20px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border: 1px solid #eef2f6;
}

.dropdown-content li a {
    color: #333 !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 0.95rem !important;
    white-space: normal !important; /* Text wrapping fix */
    line-height: 1.4;
}

.dropdown-content li a:hover {
    background: #f0f7ff;
    color: #004a99 !important;
    padding-left: 25px !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- SUD INITIAL RESPONSIVE --- */

.nav-logo { height: 6rem !important; width: auto !important; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; background: #fff; position: relative; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span { width: 30px; height: 3px; background: #333; transition: 0.3s; }

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1000;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; text-align: center; }

    /* Main Container stacking */
    .detail-wrapper {
        flex-direction: column !important;
        padding: 20px !important;
    }

    .detail-content, .price-sidebar {
        width: 100% !important;
    }

    .price-sidebar {
        margin-top: 30px;
    }

    /* Checklist adjustments */
    .checklist-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Title section */
    .title-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Footer fix */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
    .footer-bottom { flex-direction: column !important; text-align: center; gap: 15px; }
}

/* Hamburger Animation */
.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle span:nth-child(2) { opacity: 0; }
.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
/* --- Rios Enterprise Navbar Button (Pill Shape) --- */
.btn-primary-nav {
    position: relative;
    padding: 10px 24px; /* Navbar ke hisab se perfect size */
    background: #001a2c;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
    margin-left: 10px;
}

/* Oceanic Pulse Effect (Animated Border) */
.btn-primary-nav::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #004e92, #00d4ff, #00fbff);
    background-size: 400%;
    z-index: -1;
    border-radius: inherit;
    animation: flowColors 5s linear infinite;
    filter: blur(3px);
    opacity: 0.8;
}

/* Hover Interaction */
.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Navbar Flex Alignment Fix */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

/* Animation Logic */
@keyframes flowColors {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .btn-primary-nav {
        margin-left: 0;
        margin-top: 15px;
        width: fit-content;
        align-self: center;
    }
}


/* Price Sidebar Card Polish */
.price-card {
    border: 1px solid rgba(0, 212, 255, 0.1);
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.btn-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;          /* Button ka size */
    height: 60px;
    background-color: #c7c8ff; /* Naya vibrant blue/purple color */
    color: white;
    border-radius: 50%;   /* Isse button ekdum round (circle) ban jayega */
    text-decoration: none;
    font-size: 24px;      /* Icon ka size */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effects */
.btn-phone-icon:hover {
    background-color: #4f46e5; /* Thoda dark shade hover par */
    transform: scale(1.1);      /* Halka sa bada hoga hover par */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sidebar ki centering fix karne ke liye */
.price-card {
    display: flex;
    justify-content: center;
    padding: 20px;
}