/* 
    Modernized Template CSS for R4R.co.in
*/
:root {
    --primary-color: #0EC3F7; /* Original R4R blue */
    --secondary-color: #1a1a1a;
    --bg-color: #f9f9fb;
    --text-color: #333;
    --footer-bg: #2d2d2d;
    --footer-text: #eaeaea;
    --accent: #ff6b6b;
    --font-main: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid #eaeaea;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.extra-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.extra-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.extra-links a:hover {
    color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.main-nav {
    padding: 0 5%;
    background: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Simple Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px 0;
    z-index: 999;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f8ff;
    color: var(--primary-color);
}

.dropdown-category {
    font-weight: bold;
    color: #222;
    padding: 10px 20px 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 5% 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-bottom-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-wrapper {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav {
        padding: 0;
    }
    
    .nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .nav-list::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .nav-item {
        flex: 0 0 auto;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
}
