/*
Theme Name: RADIO XM FOR CARS
Theme URI: https://radioxmforcars.com/
Author: Trishala Sharma
Description: Custom, clean, and fully responsive XM Radio theme
Version: 1.1
*/

:root {
    --primary-color: #0052cc;
    --primary-hover: #003d99;
    --accent-color: #00d2ff;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Fixes horizontal space/scrolling bug */
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

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

/* ==========================================
   Typography & Buttons
   ========================================== */
h1, h2, h3 {
    color: #0f172a;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--text-white);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 14px 24px;
    font-size: 1rem;
}

/* ==========================================
   Header / Navbar
   ========================================== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.logo {
    font-size: clamp(1.05rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: var(--dark-bg);
    text-decoration: none;
    white-space: nowrap;
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin: 0 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

/* ==========================================
   Hero Section with Background Image
   ========================================== */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--text-white);
    padding: clamp(40px, 8vw, 80px) 0;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content {
    flex: 1;
}

.badge {
    background-color: rgba(0, 82, 204, 0.3);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-content h1 {
    color: var(--text-white);
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 15px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    max-width: 100%;
    background-color: #ffffff;
    color: var(--text-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
}


/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: clamp(40px, 6vw, 80px) 0;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(25px, 5vw, 40px);
}

.section-title h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.feature-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text-white);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-bg-1 {
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRmUrMj_xen9_RkiDb3ApaoElxCK_bC5038XQicPyl_Gw&s=10') no-repeat center center/cover;
}

.feature-bg-2 {
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQxNsak6FF-yGo2EevFVriaIAPxKgwHJdn7kEAOf2mbug&s=10') no-repeat center center/cover;
}

.feature-bg-3 {
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTQLx3zfPi8H_ithulnyduokcf4nCpca-q19HK-KvAYgw&s=10') no-repeat center center/cover;
}

.card-content-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 20%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
    padding: 20px;
    width: 100%;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: var(--text-white);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
}
/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: clamp(50px, 8vw, 90px) 0;
    background-color: #f8fafc;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Content Styles */
.about-content {
    flex: 1;
    max-width: 580px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 8px;
}

.title-underline {
    width: 45px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-light);
    font-size: clamp(0.92rem, 2vw, 1rem);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Badge Pills */
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tag-pill {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Right Card Styles */
.about-card {
    flex: 0 0 420px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.about-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card-body {
    padding: 28px 24px;
    text-align: center;
}

.support-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.about-card-body h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.about-card-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 18px;
}

.support-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.support-phone:hover {
    color: var(--primary-hover);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }

    .about-content {
        max-width: 100%;
    }

    .about-card {
        width: 100%;
    }
}


/* ==========================================
   FAQ Accordion Section
   ========================================== */
.faq-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background-color: #ffffff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    background: #ffffff;
    padding: 14px 18px;
    text-align: left;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--dark-bg);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
    transition: var(--transition);
    line-height: 1;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: #f8fafc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 12px 18px 18px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================
   Footer Section
   ========================================== */
.footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 24px 0;
    font-size: 0.82rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* ==========================================
   Strict Mobile Responsive Breakpoints
   ========================================== */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        width: 100%;
    }

    .nav-links {
        display: none; /* Hide navigation links */
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {


    /* Header Nav Button Tweaks */
    .nav-actions .btn-outline {
        display: none; /* Hides secondary button in header to prevent overflow */
    }

    .nav-actions .btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }
}