/* ============================================
   Supreme Garage Doors El Monte - Main Styles
   Mobile-First Approach
   ============================================ */

:root {
    --primary: #e63e12;
    --primary-dark: #c7340f;
    --secondary: #1a56db;
    --secondary-dark: #0e3ba5;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-alt: #f0f4ff;
    --border: #e2e8f0;
    --star: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

/* ---- HEADER / NAV ---- */
.site-header {
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo:hover { color: var(--primary); }

/* Hamburger Toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    align-items: center;
    z-index: 1001;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background: var(--dark);
    height: 3px;
    width: 26px;
    border-radius: 3px;
    transition: var(--transition);
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle:checked ~ .nav-toggle-label .hamburger { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-label .hamburger::after { top: 0; transform: rotate(-45deg); }

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}
.nav-toggle:checked ~ .main-nav { display: block; }
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav > ul > li { border-bottom: 1px solid var(--border); }
.nav-link {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    min-height: 48px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta { padding: 10px 20px; }
.nav-cta .btn { width: 100%; justify-content: center; }

/* Dropdown */
.dropdown { display: none; background: var(--bg-light); }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 30px;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}
.dropdown li a:hover { color: var(--primary); background: var(--bg); }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    padding: 50px 0 60px;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 1.75rem; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 20px; }
.hero-trust { display: flex; gap: 10px; justify-content: center; font-size: 0.9rem; opacity: 0.85; flex-wrap: wrap; }

.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; }
.page-hero .hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--primary); color: #fff; padding: 16px 0; }
.trust-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 0.85rem; }
.trust-icon { font-size: 1.2rem; }

/* ---- SECTIONS ---- */
.section { padding: 50px 0; }
.section:nth-child(even) { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 30px; }

/* ---- SERVICES GRID ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary); }
.service-icon { font-size: 2rem; }
.service-card h3 { color: var(--dark); font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--text-light); flex:1; }
.service-price { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.card-link { color: var(--secondary); font-weight: 600; font-size: 0.9rem; }

/* ---- WHY US ---- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why-card { text-align: center; padding: 24px; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---- MAP ---- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-section { background: var(--bg-light); }

/* ---- REVIEWS ---- */
.reviews-summary { text-align: center; margin-bottom: 24px; }
.reviews-summary .stars { font-size: 1.5rem; }
.rating-text { display: block; color: var(--text-light); margin-top: 4px; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 4px; }
.review-author { font-weight: 700; color: var(--dark); }
.review-date { font-size: 0.85rem; color: var(--text-light); }
.review-stars { margin-bottom: 8px; }
.review-text { color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.stars { color: var(--star); font-size: 1.2rem; letter-spacing: 2px; }

/* Reviews page */
.reviews-summary-lg { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; padding: 30px; background: var(--bg-light); border-radius: var(--radius); }
.rating-big { font-size: 3rem; font-weight: 800; color: var(--dark); }
.review-stars-lg .stars { font-size: 2rem; }
.reviews-list { display: grid; gap: 16px; margin-bottom: 30px; }
.review-card-full { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-card-full .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.review-cta-box { text-align: center; padding: 40px; background: var(--bg-alt); border-radius: var(--radius); }
.review-cta-box h2 { margin-bottom: 8px; }
.review-cta-box p { margin-bottom: 16px; color: var(--text-light); }

/* ---- AREA CHIPS ---- */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    min-height: 48px;
}
.area-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- FAQ ACCORDION ---- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-toggle { display: none; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    min-height: 48px;
}
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--primary); transition: var(--transition); flex-shrink: 0; margin-left: 10px; }
.faq-toggle:checked + .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-toggle:checked ~ .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 0 16px; color: var(--text-light); line-height: 1.6; }

/* ---- CTA BANNER ---- */
.cta-banner { background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%); color: #fff; padding: 50px 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { opacity: 0.9; margin-bottom: 20px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--bg-light); padding: 12px 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { color: var(--text-light); margin: 0 4px; }

/* ---- CONTENT LAYOUT ---- */
.content-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; }
.service-content, .area-content { min-width: 0; }
.service-description p { margin-bottom: 16px; line-height: 1.7; }
.service-price-badge { background: var(--bg-alt); padding: 16px 20px; border-radius: var(--radius); margin: 20px 0; display: inline-block; font-size: 1.1rem; }
.benefits-list { list-style: none; padding: 0; margin: 0 0 30px; }
.benefits-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.related-services { display: flex; flex-wrap: wrap; gap: 10px; }
.related-service-link { display: inline-block; padding: 10px 16px; background: var(--bg-light); border-radius: var(--radius); color: var(--secondary); font-weight: 600; text-decoration: none; font-size: 0.9rem; min-height: 48px; display: inline-flex; align-items: center; }
.related-service-link:hover { background: var(--secondary); color: #fff; }

/* Service area list */
.services-list-area { display: grid; gap: 12px; margin-bottom: 30px; }
.service-list-item { display: block; padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: var(--transition); }
.service-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.service-list-item h3 { color: var(--dark); margin-bottom: 6px; }
.service-list-item p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 6px; }
.area-local-text { font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }

/* ---- SIDEBAR ---- */
.service-sidebar { display: none; }
.sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { margin-bottom: 10px; }
.sidebar-card p { margin-bottom: 16px; color: var(--text-light); font-size: 0.95rem; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    min-height: 48px;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.contact-info-card { background: var(--bg-light); padding: 24px; border-radius: var(--radius); margin-bottom: 20px; }
.contact-info-card p { margin-bottom: 12px; }
.contact-info-card a { color: var(--secondary); }

/* ---- ALERTS ---- */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- ABOUT ---- */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.value-card { padding: 24px; background: var(--bg-light); border-radius: var(--radius); text-align: center; }
.value-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; }

.stats-section { background: var(--primary); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.stat-card { padding: 16px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 0.9rem; opacity: 0.9; }

/* ---- HOURS TABLE ---- */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: #ccc; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h3 { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.footer-nap p { margin-bottom: 8px; font-size: 0.9rem; }
.footer-nap a { color: #ccc; }
.footer-nap a:hover { color: var(--primary); }
.footer-icon { margin-right: 6px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #ccc; font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }
.site-footer .hours-table { color: #ccc; }
.site-footer .hours-table td { border-color: rgba(255,255,255,0.1); }

/* ---- MOBILE CALL BAR ---- */
.mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 8px;
    background: var(--bg);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.mobile-call-btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    text-align: center;
}
/* Add bottom padding to body to account for sticky bar */
body { padding-bottom: 70px; }

/* ============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .mobile-call-bar { display: none; }

    .nav-toggle-label { display: none; }
    .main-nav {
        display: flex !important;
        position: static;
        box-shadow: none;
        background: transparent;
    }
    .main-nav > ul {
        display: flex;
        align-items: center;
        gap: 0;
    }
    .main-nav > ul > li { border-bottom: none; }
    .nav-link { padding: 8px 14px; font-size: 0.9rem; white-space: nowrap; }
    .nav-cta { padding: 0 0 0 8px; }
    .nav-cta .btn { width: auto; padding: 10px 18px; font-size: 0.85rem; }

    .has-dropdown { position: relative; }
    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
        z-index: 999;
    }
    .has-dropdown:hover .dropdown { display: block; }
    .dropdown li a { padding: 10px 18px; }

    .hero { padding: 70px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-cta { flex-direction: row; }

    .trust-items { grid-template-columns: repeat(4, 1fr); }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid { grid-template-columns: 1fr 1fr; }
    .content-wrap { grid-template-columns: 1fr 320px; }
    .service-sidebar { display: block; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .logo { font-size: 1.1rem; }
}

/* ---- UTILITY ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
