/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */

:root {
    --bg-color: #0F0F10;
    --bg-alt: #161618;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --accent-color: #00B268;
    --accent-hover: #009959;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Base Styles Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-color);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.accent-bg {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.accent-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(11, 164, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.spacer-8 {
    height: 4rem;
}

/* ==========================================================================
   Image Breakout & Split Layouts
   ========================================================================== */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.split-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Headshot Specific */
.founder-headshot {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 15px 35px rgba(11, 164, 107, 0.15);
}

.founder-headshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 164, 107, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-inverse {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-inverse:hover {
    background-color: rgba(11, 164, 107, 0.1);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 15, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 15, 16, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-label {
    color: var(--text-secondary);
}

.contact-number {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 16, 0.95) 0%, rgba(15, 15, 16, 0.75) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

/* ==========================================================================
   Trust / Clients Section
   ========================================================================== */

.client-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.client-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Who We Serve
   ========================================================================== */

.serve-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.serve-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.check-icon {
    color: var(--accent-color);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(11, 164, 107, 0.3);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(11, 164, 107, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Why Mg Audio Features
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
}

/* ==========================================================================
   Consultation Banner
   ========================================================================== */

.cta-banner {
    padding: 5rem 0;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section & Forms
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method a {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.footer-info p {
    font-size: 0.9rem;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Reliability Program
   ========================================================================== */

.reliability-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.reliability-intro p {
    margin-bottom: 1rem;
}

.reliability-intro .highlight-text {
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 2rem;
    font-size: 1.15rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tier-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 6px;
    transition: var(--transition);
    text-align: left;
}

.tier-card:hover {
    border-color: rgba(11, 164, 107, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tier-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
    background: linear-gradient(180deg, rgba(11, 164, 107, 0.05) 0%, var(--bg-color) 100%);
}

.tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(11, 164, 107, 0.3);
}

.tier-title {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tier-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

.tier-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.tier-list li {
    margin-bottom: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tier-check {
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

.reliability-conclusion {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.value-props-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.value-props-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.value-props-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 2.5rem;
    list-style: none;
}

.value-props-list li {
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-props-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.scarcity-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.testimonial-role {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Helpdesk Interactive Component
   ========================================================================== */

.hd-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 40px; /* Pill shape */
    cursor: pointer;
    transition: var(--transition);
}

.hd-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05); /* Slight highlight */
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.hd-nav-btn svg {
    width: 14px;
    height: 14px;
}

.helpdesk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.helpdesk-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.helpdesk-btn:hover {
    background: rgba(11, 164, 107, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}

.helpdesk-steps {
    animation: fadeIn 0.4s ease forwards;
}

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

/* ==========================================================================
   Knowledge Base Accordion
   ========================================================================== */

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 500;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--accent-color);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-item.active .accordion-icon {
    font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-banner {
        padding: 3rem 0;
    }

    .services-grid, .features-grid, .serve-list, .client-grid {
        gap: 1.25rem;
    }

    .mb-4 {
        margin-bottom: 1.25rem;
    }

    /* Reverse order on mobile if image is first, so text stays above image */
    .split-mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px; /* Header height */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .header.scrolled .main-nav {
        top: 70px;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
    }
}
