/* =========================================================
   Virgin Motor Oil — Theme Stylesheet
   ========================================================= */

:root {
    --primary: #900b31;
    --primary-dark: #6e0824;
    --primary-light: #b31644;
    --secondary: #0056b3;
    --secondary-dark: #003d82;
    --secondary-light: #3385ff;
    --accent: #28a745;
    --accent-hover: #218838;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.vmo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.vmo-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.admin-bar .vmo-navbar { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .vmo-navbar { top: 46px; }
}

.vmo-navbar .vmo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.vmo-logo {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vmo-logo img { max-height: 48px; width: auto; }

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

.vmo-nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.vmo-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.vmo-nav-links a:hover { color: var(--primary); }
.vmo-nav-links a:hover::after { width: 100%; }

.vmo-nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ===== Buttons ===== */
.vmo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.vmo-btn-outline {
    border: 2px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
}

.vmo-btn-outline:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-2px);
}

.vmo-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(144, 11, 49, 0.3);
}

.vmo-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 11, 49, 0.4);
    color: white;
}

.vmo-btn-accent {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.vmo-btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: white;
}

/* ===== Hero Banner ===== */
.vmo-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vmo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiIHN0cm9rZS13aWR0aD0iMiI+CjxwYXRoIGQ9Ik0wIDEwMCBMMTAwIDAgTDIwMCAxMDAgTDEwMCAyMDAgWiIvPgo8L3N2Zz4=') repeat;
    opacity: 0.5;
    z-index: 1;
}

.vmo-hero .vmo-container {
    position: relative;
    z-index: 2;
}

.vmo-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: -1px;
    animation: vmoFadeInDown 0.8s ease-out forwards;
}

.vmo-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: vmoFadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* ===== Intro Section ===== */
.vmo-intro {
    padding: 100px 0;
    background: var(--bg-light);
}

.vmo-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.vmo-intro-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vmo-intro-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.vmo-intro-image:hover::after { opacity: 1; }

.vmo-intro-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.vmo-intro-image:hover img { transform: scale(1.05); }

.vmo-intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.vmo-intro-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== Products Sections ===== */
.vmo-products {
    padding: 80px 0;
    background: white;
}

.vmo-products.vmo-alt-bg { background: var(--bg-light); }

.vmo-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.vmo-section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 16px;
}

.vmo-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.vmo-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

.vmo-product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vmo-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.vmo-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.vmo-product-card:hover::before { transform: scaleY(1); }

.vmo-product-img {
    flex: 0 0 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.vmo-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    cursor: pointer;
}

.vmo-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vmo-product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.vmo-product-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.vmo-product-info .vmo-btn-accent { align-self: flex-start; }

/* ===== Delivery Section ===== */
.vmo-delivery {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vmo-delivery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    animation: vmoPulse 10s infinite alternate;
}

.vmo-delivery .vmo-container { position: relative; z-index: 2; }

.vmo-delivery-header {
    max-width: 800px;
    margin: 0 auto 64px;
}

.vmo-delivery-header h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.vmo-delivery-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.vmo-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.vmo-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.vmo-feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.vmo-feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-size: 40px;
}

.vmo-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.vmo-feature-card p {
    opacity: 0.9;
    font-size: 1rem;
}

/* ===== Footer ===== */
.vmo-footer {
    background: white;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.vmo-social-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.vmo-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.vmo-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.vmo-social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.vmo-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vmo-copyright + .vmo-copyright { margin-top: 10px; }

/* ===== Sticky WhatsApp ===== */
.vmo-whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.vmo-whatsapp-sticky:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

/* ===== Lightbox ===== */
.vmo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding-top: 50px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vmo-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.vmo-lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vmo-lightbox.is-open .vmo-lightbox-img { transform: scale(1); }

.vmo-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border: none;
}

.vmo-lightbox-close:hover { color: #bbb; }

.vmo-intro-image img { cursor: pointer; }

/* ===== Animations ===== */
@keyframes vmoFadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vmoFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vmoPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.vmo-fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.vmo-fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.vmo-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-main);
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .vmo-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .vmo-intro-image {
        margin: 0 auto;
        max-width: 500px;
    }
    .vmo-features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .vmo-nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    .vmo-nav-links.is-open { display: flex; }
    .vmo-menu-toggle { display: inline-flex; align-items: center; }
    .vmo-nav-actions .vmo-btn-outline:not(.vmo-lang-toggle) { display: none; }
    .vmo-lang-toggle {
        padding: 6px 12px !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .vmo-nav-actions { gap: 8px !important; }
    .vmo-logo { white-space: nowrap; font-size: 1.1rem; }
    .vmo-logo img { max-height: 36px; }
    .vmo-hero h1 { font-size: 2.5rem; }
    .vmo-product-grid { grid-template-columns: 1fr; }
    .vmo-delivery-header h2 { font-size: 2.2rem; }
    .vmo-whatsapp-sticky {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 16px;
        right: 16px;
    }
}

/* ===== WordPress Core Classes ===== */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== Inner pages (page.php / single.php) ===== */
.vmo-inner-page {
    margin-top: 80px;
    padding: 80px 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.vmo-inner-page article {
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.vmo-inner-page h1.entry-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.vmo-inner-page .entry-content > * + * { margin-top: 1.25em; }
.vmo-inner-page .entry-content h2 { font-size: 1.875rem; margin-top: 1.5em; }
.vmo-inner-page .entry-content h3 { font-size: 1.5rem; margin-top: 1.5em; }
.vmo-inner-page .entry-content a { color: var(--primary); text-decoration: underline; }
.vmo-inner-page .entry-content ul,
.vmo-inner-page .entry-content ol { padding-left: 1.5rem; }

@media (max-width: 768px) {
    .vmo-inner-page article { padding: 24px; }
    .vmo-inner-page h1.entry-title { font-size: 1.875rem; }
}
