/*
Theme Name: Magento Guru Theme
Theme URI: https://magentoguru.in
Author: Magento Guru
Author URI: https://magentoguru.in
Description: High-performance, SEO-optimized custom theme featuring an accessible multi-column mega menu.
Version: 1.0.0
Text Domain: magento-guru
*/

:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-blue: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.5rem 5%;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.top-bar a:hover {
    color: var(--accent-orange);
}

/* NAVIGATION HEADER */
nav {
    background-color: var(--secondary-dark);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* LOGO STYLING FIX */
/* BRAND LOGO & TEXT ALIGNMENT */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    text-decoration: none !important;
}

.logo-img,
.custom-logo {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.logo-text {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

.logo-text span {
    color: var(--accent-orange) !important;
    margin-left: 2px;
}

.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
}

/* DESKTOP NAV & MEGA MENU */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.has-mega-menu {
    position: static;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-dropdown-trigger .arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    background-color: var(--secondary-dark);
    border: 1px solid #334155;
    border-top: 3px solid var(--accent-orange);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 6px 6px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease-in-out;
    z-index: 1001;
}

@media (min-width: 769px) {
    .has-mega-menu:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .has-mega-menu:hover .nav-dropdown-trigger .arrow {
        transform: rotate(180deg);
    }
}

.mega-column h4 {
    color: var(--accent-orange);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #334155;
}

.mega-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-column ul li a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.mega-column ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.nav-cta {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-cta:hover {
    background-color: var(--accent-orange-hover) !important;
}

/* HAMBURGER BUTTON & OVERLAY */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    padding: 4rem 5% 3.5rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-orange);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 1.8rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-features span::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #475569;
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* STATS BAR */
.trust-bar {
    background-color: #ffffff;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.trust-item h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* COMMON CONTAINER & SECTIONS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 3.5rem 1.5rem;*/
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-orange);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* CARD GRIDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-orange);
    padding-left: 0.6rem;
    font-weight: 700;
}

.card-list {
    list-style: none;
}

.card-list li {
    padding: 0.45rem 0;
    color: var(--text-main);
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.card-list li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.card-list li a:hover {
    color: var(--accent-orange);
}

.card-list li::before {
    content: "•";
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.6rem;
}

/* QA GRID */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.qa-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
}

.qa-card .tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.3rem;
    display: block;
}

.qa-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.qa-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* CONTACT CONTAINER & FORMS */
.contact-container {
    background-color: var(--primary-dark);
    color: #ffffff;
    border-radius: 8px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-info-item {
    margin-bottom: 1.2rem;
}

.contact-info-item strong {
    color: var(--accent-orange);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #334155;
    background-color: var(--secondary-dark);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* FOOTER */
footer {
    background-color: #020617;
    color: #64748b;
    text-align: center;
    padding: 1.8rem;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--secondary-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 1.8rem 2rem;
        gap: 1.2rem;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
        display: block;
    }

    .has-mega-menu {
        width: 100%;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-orange);
        border-radius: 0;
        padding: 0.4rem 0 0.8rem 1rem;
        background: transparent;
        display: none;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .has-mega-menu.open .mega-menu {
        display: grid;
    }

    .has-mega-menu.open .nav-dropdown-trigger .arrow {
        transform: rotate(180deg);
    }

    .mega-column h4 {
        margin-top: 0.4rem;
        font-size: 0.78rem;
    }

    .hero h1 { font-size: 2rem; }

    .top-bar {
        justify-content: center;
        text-align: center;
    }
}