/* FILE: style.css
   DESCRIPTION: Complete Stylesheet for Rios Enterprise Website
*/

:root {
    --primary-blue: #004a99;
    --teal: #00c2a8;
    --dark-blue: #002d5b;
    --text-gray: #666;
    --light-bg: #f4f7fa;
    --white: #ffffff;
}

* {
    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 {
    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 15px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-book-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

/* --- DROPDOWN & SCROLLBAR FIX --- */
.dropdown {
    padding: 10px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--teal);
    max-height: 200px; /* Scrollbar height */
    overflow-y: auto;  /* Enable Scroll */
    padding: 10px 0;
}

/* Invisible Bridge for 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 #f5f5f5;
    color: #333 !important;
}

.dropdown-content li a:hover {
    background: #f9f9f9;
    color: var(--teal) !important;
    padding-left: 25px;
}

/* 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 #eee;
}

.breadcrumb span { margin: 0 10px; }

/* --- HERO SECTIONS (HOME & ABOUT) --- */
.hero, .about-hero, .services-header {
    padding: 80px 8% 40px;
}

.hero {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), 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: 1px;
    margin-bottom: 15px;
    display: block;
}

h1 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.sub-text, .about-desc {
    color: var(--text-gray);
    max-width: 750px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- SERVICES GRID (HOME & SERVICES PAGE) --- */
.grid-container, .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 8% 100px;
}

.service-card-wide, .service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.service-card-wide:hover { transform: translateY(-5px); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.icon-box {
    background: #eef4ff;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 1.2rem;
}

.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: #888; }
.learn-more-link { color: var(--teal); text-decoration: none; font-weight: 600; }

/* --- ABOUT PAGE MISSION CARDS --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 8%;
}

.mission-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* --- BUTTONS --- */
.btn-schedule, .btn-primary-white {
    background: var(--dark-blue);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.center-btn { text-align: center; margin-bottom: 80px; }

/* --- FOOTER --- */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 8% 20px;
}

.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; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; opacity: 0.8; font-size: 0.9rem; cursor: pointer; }
.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: 20px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-links a { color: white; text-decoration: none; margin-left: 20px; }

/* --- FLOATING CHAT --- */
.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 15px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2000;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .grid-container, .mission-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.2rem; }
}


/* --- BROAD NAV LINKS (INDEX STYLE) --- */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 45px; /* Broad spacing for luxury look */
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem; /* Slightly larger font */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover effect for normal links */
.nav-links li a:hover:not(.btn-primary) {
    color: #004a99;
    transform: translateY(-2px);
}

/* --- PREMIUM BOOK NOW BUTTON --- */
.nav-links .btn-primary {
    background: #004a99; /* Professional Blue */
    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);
    border: none;
    cursor: pointer;
}

.nav-links .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    background: #00c2a8; /* Modern Teal on hover */
    box-shadow: 0 8px 20px rgba(0, 194, 168, 0.3);
}

/* --- PULSE ANIMATION --- */
.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 Content Styling */
.dropdown-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Responsive Fix */
@media (max-width: 1100px) {
    .nav-links {
        gap: 20px;
    }
}


/* --- SERVICES HEADER --- */
.services-header {
    padding: 100px 8% 60px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    text-align: center;
}

.services-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #004a99 0%, #00c2a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.section-tag {
    color: #00c2a8;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* --- MAIN GRID LAYOUT --- */
.services-main-grid {
    padding: 40px 8% 100px;
    background: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- THE TADAKTA CARD --- */
.service-card-wide {
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 74, 153, 0.05);
}

.service-card-wide:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 70px rgba(0, 74, 153, 0.15);
    border-color: #00c2a8;
}

/* Header Inside Card */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.icon-box {
    font-size: 2.5rem;
    background: #f0f7ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.5s;
}

.service-card-wide:hover .icon-box {
    background: #004a99;
    transform: rotateY(360deg); /* Icon spinning effect */
}

/* Price Tag Styling */
.price-tag {
    background: #00c2a8;
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 194, 168, 0.3);
}

.service-card-wide h3 {
    font-size: 1.6rem;
    color: #004a99;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card-wide p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Footer Info */
.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.duration {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

.learn-more-link {
    text-decoration: none;
    color: #004a99;
    font-weight: 700;
    transition: 0.3s;
}

.learn-more-link:hover {
    letter-spacing: 1px;
    color: #00c2a8;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .services-header h1 { font-size: 2.5rem; }
    .grid-container { grid-template-columns: 1fr; }
}


/* --- DROPDOWN HEIGHT FIX --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px; /* Thoda broad taaki text wrap na ho */
    box-shadow: 0px 15px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 12px;
    top: 100%; /* Link ke thik niche khulega */
    left: 0;
    padding: 10px 0; /* Upar niche thodi jagah */
    border: 1px solid #eee;
    
    /* Ye do lines sabse zaroori hain */
    height: auto !important; 
    overflow: visible !important; 
}

/* Jab dropdown open ho */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.dropdown-content li {
    width: 100%;
    list-style: none;
}

.dropdown-content li a {
    color: #333 !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    text-align: left;
}

/* Hover par rang badalna */
.dropdown-content li a:hover {
    background-color: #f0f7ff;
    color: #004a99 !important;
    padding-left: 25px !important; /* Halka sa slide effect */
}

/* Smooth opening animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DROPDOWN BOX SIZE FIX --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    /* Width ko 300px kar diya taaki lamba text andar rahe */
    min-width: 300px; 
    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 #e0e6ed;
    /* Height ko auto rakha hai taaki 4 options fit aayein */
    height: auto !important;
    overflow: visible !important;
}

.dropdown-content li a {
    color: #333 !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.4; /* Line gap thoda badhaya */
    text-align: left;
    /* Agar text bada ho toh agli line mein aa jaye, bahar na nikle */
    white-space: normal !important; 
    transition: all 0.2s ease;
}

/* Hover Effect */
.dropdown-content li a:hover {
    background-color: #f0f7ff;
    color: #004a99 !important;
    padding-left: 25px !important;
}

/* Dropdown ko dikhane ke liye */
.dropdown:hover .dropdown-content {
    display: block;
}



/* --- SERVICES PAGE 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; }

/* Sub-text fix */
.sub-text {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
}

.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; }

    /* Services Grid Fix */
    .grid-container {
        grid-template-columns: 1fr !important; /* Mobile pe single column */
        padding: 20px !important;
        gap: 20px;
    }

    .service-card-wide {
        margin: 0 !important;
        width: 100% !important;
    }

    .services-header h1 {
        font-size: 2.2rem !important;
        padding: 0 10px;
    }

    /* Footer Fix */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
    .footer-bottom { flex-direction: column !important; text-align: center; gap: 15px; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* 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 --- */
.btn-primary-nav {
    position: relative;
    padding: 12px 28px;
    background: #001a2c;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
}

/* --- Animated Price Tags (Extra Touch) --- */
.price-tag {
    background: linear-gradient(45deg, #001a2c, #004e92);
    color: #00d4ff;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Service Card Hover Glow --- */
.service-card-wide {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 78, 146, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card-wide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 78, 146, 0.1);
    border-color: #00d4ff;
}

/* --- The Pulse Effect on Nav Button --- */
.btn-primary-nav::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(45deg, #00d4ff, #004e92, #00d4ff, #00fbff);
    background-size: 400%;
    z-index: -1;
    border-radius: inherit;
    animation: flowColors 5s linear infinite;
    filter: blur(4px);
    opacity: 0.8;
}

/* Hover Aura for Nav Button */
.btn-primary-nav::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #00d4ff, #004e92, #00fbff);
    background-size: 400%;
    z-index: -1;
    border-radius: inherit;
    filter: blur(15px);
    animation: flowColors 5s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary-nav:hover::after {
    opacity: 1;
}

/* --- Animations --- */
@keyframes flowColors {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Chat Pulse */
.chat-float {
    animation: floatPulse 2s infinite;
    cursor: pointer;
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}


/* Container ko flexbox banayein */
.grid-container {
    display: flex;
    flex-wrap: nowrap; /* Cards ko next line par jane se rokega */
    gap: 20px;         /* Cards ke beech ka gap */
    width: 100%;
    overflow-x: auto;  /* Agar screen choti ho to scroll bar dikhega */
    padding: 10px 0;
}

/* Har card ki width fix karein taaki wo ek line mein fit ho sakein */
.service-card-wide {
    flex: 1;           /* Sabhi cards barabar jagah lenge */
    min-width: 300px;  /* Card ko bahut zyada chota hone se rokne ke liye */
}

/* Mobile responsive banane ke liye (Optional) */
@media (max-width: 768px) {
    .grid-container {
        flex-wrap: wrap; /* Mobile par cards ek ke niche ek aa jayenge */
    }
}