<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Secondhand Cellular | iPhone's Galaxies &amp; More!</title>
    <style>
        /* --- CSS VARIABLES & RESET --- */
        :root {
            --color-primary: #E50914; /* Vibrant Red */
            --color-primary-hover: #b2070f;
            --color-bg-dark: #121212;
            --color-bg-card: #1e1e1e;
            --color-text-main: #ffffff;
            --color-text-muted: #a0a0a0;
            --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            --spacing-container: 1200px;
            --transition: all 0.3s ease;
        }

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

        body {
            background-color: var(--color-bg-dark);
            color: var(--color-text-main);
            font-family: var(--font-main);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            /* Ensure body doesn't cut off fixed elements */
            overflow-x: hidden;
        }

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

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* --- UTILITIES --- */
        .container {
            max-width: var(--spacing-container);
            margin: 0 auto;
            padding: 0 20px;
        }

        .btn {
            display: inline-block;
            padding: 12px 24px;
            background-color: var(--color-primary);
            color: white;
            font-weight: bold;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            text-align: center;
        }

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

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

        .btn-outline:hover {
            background-color: var(--color-primary);
        }
        
        /* Button styling for Shop sub-filter */
        .shop-filter-btn {
            background-color: #333;
            color: white;
            border: 1px solid #555;
            margin-bottom: 10px;
            font-weight: bold;
            cursor: pointer;
            padding: 10px 20px;
        }
        
        .shop-filter-btn.active {
            background-color: var(--color-primary);
            border-color: var(--color-primary);
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 1rem;
            color: white;
        }

        .section-subtitle {
            text-align: center;
            color: var(--color-text-muted);
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* --- HEADER & NAVIGATION --- */
        header {
            background-color: rgba(18, 18, 18, 0.95);
            border-bottom: 1px solid #333;
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 15px 0;
            backdrop-filter: blur(5px);
        }

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

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

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

        nav ul {
            display: flex;
            gap: 25px;
        }

        nav a {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--color-text-muted);
            position: relative;
        }

        nav a:hover, nav a.active {
            color: white;
        }

        nav a.active::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--color-primary);
        }

        /* --- FLOATING CALL BUTTON --- */
        /* BASE STYLES (Fallback) */
        .floating-call-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #E50914; /* Hardcoded color for safety */
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex; /* Flex to center icon */
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            /* High Z-Index to sit above WordPress Admin Bars & Overlays */
            z-index: 2147483647 !important; 
            transition: transform 0.3s ease, background-color 0.3s ease;
            cursor: pointer;
            text-decoration: none; /* Ensure no underline */
            overflow: visible;
        }

        .floating-call-btn:hover {
            transform: scale(1.1);
            background-color: var(--color-primary-hover);
        }

        .floating-call-btn svg {
            width: 30px;
            height: 30px;
            fill: white;
            pointer-events: none; /* Prevent clicks on icon stopping the link */
        }

        /* --- PAGE CONTENT HANDLING --- */
        .page-section {
            display: none; /* Hidden by default */
            padding: 60px 0;
            animation: fadeIn 0.5s ease;
        }

        .page-section.active-section {
            display: block; /* Show active section */
        }

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

        /* --- HOME PAGE --- */
        .hero {
            text-align: center;
            padding: 80px 20px;
            /* Subtle Electronics Background */
            background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
            border-radius: 0 0 20px 20px;
            margin-bottom: 40px;
        }

        .hero-logo {
            margin-bottom: 30px;
            max-width: 500px; 
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-logo img {
            width: 100%;
            height: auto;
        }

        .hero h1 {
            font-size: 3.5rem; /* Large size for impact */
            margin-bottom: 5px; /* Reduced margin to bring lines closer */
            line-height: 1.1;
            font-weight: 900;
            color: white;
            text-transform: uppercase;
        }

        .hero-tagline {
            font-size: 2rem;
            color: var(--color-primary);
            font-weight: 900;
            margin-bottom: 40px;
            text-transform: uppercase;
        }

        /* New Shop Selector Styles */
        .shop-selector-container {
            margin-bottom: 50px;
        }

        .shop-selector-title {
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.5rem;
            color: white;
        }

        .brand-buttons {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .brand-btn {
            cursor: pointer;
            width: 300px;
            height: 300px;
            object-fit: cover;
            border-radius: 12px;
            border: 3px solid #333;
            overflow: hidden;
            transition: transform 0.3s ease, border-color 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }

        .brand-btn img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Ensure whole image is visible */
            background-color: #000; /* Ensure contrast for transparent parts */
        }

        .brand-btn:hover {
            transform: scale(1.05);
            border-color: var(--color-primary);
        }

        /* --- SHOP PAGE --- */
        .shop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }

        .product-card {
            background-color: var(--color-bg-card);
            border-radius: 8px;
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid #333;
        }

        .product-card:hover {
            transform: translateY(-5px);
            border-color: var(--color-primary);
        }

        .product-img {
            height: 200px;
            background-color: #2a2a2a;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-info {
            padding: 20px;
        }

        .product-cat {
            font-size: 0.8rem;
            color: var(--color-text-muted);
            text-transform: uppercase;
        }

        .product-title {
            font-size: 1.2rem;
            margin: 5px 0;
        }

        .product-price {
            font-size: 1.3rem;
            font-weight: bold;
            color: white;
            margin-bottom: 15px;
        }

        /* --- SELL PAGE --- */
        .sell-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: start;
            margin-top: 40px;
        }

        .sell-steps {
            margin-bottom: 30px;
        }

        .step {
            display: flex;
            align-items: start;
            margin-bottom: 25px;
        }

        .step-number {
            background-color: var(--color-primary);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 20px;
            flex-shrink: 0;
        }

        .sell-form {
            background-color: var(--color-bg-card);
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--color-text-muted);
        }

        .form-control {
            width: 100%;
            padding: 12px;
            background-color: #2a2a2a;
            border: 1px solid #444;
            color: white;
            border-radius: 4px;
            font-family: inherit;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--color-primary);
        }

        /* --- FINANCING PAGE --- */
        .financing-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .finance-card {
            background-color: var(--color-bg-card);
            padding: 40px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid #333;
            position: relative;
            overflow: hidden;
        }

        .finance-card.featured {
            border: 2px solid var(--color-primary);
        }

        .finance-card.featured::before {
            content: 'Best Value';
            position: absolute;
            top: 20px;
            right: -30px;
            background: var(--color-primary);
            padding: 5px 40px;
            transform: rotate(45deg);
            font-size: 0.8rem;
            font-weight: bold;
        }

        .plan-price {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 20px 0;
        }

        .plan-features li {
            margin-bottom: 10px;
            color: var(--color-text-muted);
        }

        /* --- REVIEWS PAGE --- */
        .reviews-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .review-card {
            background-color: var(--color-bg-card);
            padding: 30px;
            border-radius: 8px;
        }

        .stars {
            color: #FFD700;
            margin-bottom: 15px;
        }

        .review-text {
            font-style: italic;
            color: #ddd;
            margin-bottom: 20px;
        }

        .reviewer-name {
            font-weight: bold;
            color: var(--color-primary);
        }

        /* --- FOOTER --- */
        footer {
            background-color: #000;
            padding: 60px 0 20px;
            margin-top: auto;
            border-top: 1px solid #333;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-col h3 {
            color: white;
            margin-bottom: 20px;
            border-bottom: 2px solid var(--color-primary);
            display: inline-block;
            padding-bottom: 5px;
        }

        /* New Footer Contact Styling */
        .footer-contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        /* SVG Icons Styling */
        .icon-red {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            fill: #E50914; /* Red Color */
            flex-shrink: 0;
        }

        .footer-col .contact-link {
            color: #E50914; /* Red Letters */
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
        }
        
        .footer-col .hours-text {
            color: #E50914; /* Red Letters */
            font-weight: 500;
            font-size: 1.1rem;
            margin-bottom: 5px;
            display: block;
        }

        .copyright {
            text-align: center;
            color: #666;
            padding-top: 20px;
            border-top: 1px solid #222;
        }

        /* --- RESPONSIVE MEDIA QUERIES --- */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 15px;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }
            
            nav a.active::after {
                bottom: -5px;
            }

            .hero-logo {
                max-width: 100%;
            }

            .hero h1 {
                font-size: 2rem;
            }
            
            .hero-tagline {
                font-size: 1.5rem;
            }

            .brand-btn {
                width: 100%;
                max-width: 400px;
                height: 250px;
            }

            .sell-layout {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>

    <!-- Header & Navigation -->
    <header>
        <div class="container nav-container">
            <div class="logo">Secondhand <span>Cellular</span></div>
            <nav>
                <ul>
                    <li><a href="#" onclick="showPage('home')" class="nav-link active" id="nav-home">Home</a></li>
                    <li><a href="#" onclick="showPage('shop')" class="nav-link" id="nav-shop">Shop</a></li>
                    <li><a href="#" onclick="showPage('sell')" class="nav-link" id="nav-sell">Sell</a></li>
                    <li><a href="#" onclick="showPage('financing')" class="nav-link" id="nav-financing">Financing</a></li>
                    <li><a href="#" onclick="showPage('reviews')" class="nav-link" id="nav-reviews">Reviews</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <main class="container">
        
        <!-- PAGE: HOME -->
        <section id="home" class="page-section active-section">
            <div class="hero">
                <!-- LOGO AREA: Empty container -->
                <div class="hero-logo">
                </div>
                
                <h1>We Buy and Sell</h1>
                <h1>New and Used</h1>
                <p class="hero-tagline">iPhone's Galaxies and More!</p>
            </div>

            <!-- New Clickable Image Buttons -->
            <div class="shop-selector-container">
                <h2 class="shop-selector-title">What are you shopping for?</h2>
                <div class="brand-buttons">
                    <!-- Apple Button: Opens Calendly Link -->
                    <div class="brand-btn" onclick="window.open('https://calendly.com/shc-vip', '_blank')" title="Shop Apple Products">
                        <img src="https://z-cdn-media.chatglm.cn/files/e747cb0d-c978-46b6-9b6f-7a4603966f18.png?auth_key=1868071290-80274cb27ade4a309ede4e0e96761875-0-2ea9cf442ca0075a2e771f40bc3a8b39" alt="Apple Products">
                    </div>
                    
                    <!-- Samsung Button: Opens Calendly Link -->
                    <div class="brand-btn" onclick="window.open('https://calendly.com/shc-vip', '_blank')" title="Shop Samsung Products">
                        <img src="https://z-cdn-media.chatglm.cn/files/1e08b3e0-d4b3-4825-b0b2-b444f8521455.png?auth_key=1868071290-fd1b1e5723f844279459963b235c93a3-0-84b535c78a2e45057ef315c0a3e8335a" alt="Samsung Products">
                    </div>
                </div>
            </div>

            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">✔</div>
                    <h3>Like New Quality</h3>
                    <p>Every device is inspected, graded, and certified to ensure premium quality.</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">💰</div>
                    <h3>Best Prices</h3>
                    <p>Sell your device for top dollar or buy your dream phone for up to 50% less than retail.</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">⚙</div>
                    <h3>Apple &amp; Samsung</h3>
                    <p>Specializing in high-end electronics including iPhone, Galaxy, and Pixels.</p>
                </div>
            </div>
        </section>

        <!-- PAGE: SHOP -->
        <section id="shop" class="page-section">
            <!-- COPY: Shop Selector from Home Page -->
            <div class="shop-selector-container">
                <h2 class="shop-selector-title">What are you shopping for?</h2>
                <div class="brand-buttons">
                    <!-- Apple Button: Opens Calendly Link -->
                    <div class="brand-btn" onclick="window.open('https://calendly.com/shc-vip', '_blank')" title="Shop Apple Products">
                        <img src="https://z-cdn-media.chatglm.cn/files/e747cb0d-c978-46b6-9b6f-7a4603966f18.png?auth_key=1868071290-80274cb27ade4a309ede4e0e96761875-0-2ea9cf442ca0075a2e771f40bc3a8b39" alt="Apple Products">
                    </div>
                    
                    <!-- Samsung Button: Opens Calendly Link -->
                    <div class="brand-btn" onclick="window.open('https://calendly.com/shc-vip', '_blank')" title="Shop Samsung Products">
                        <img src="https://z-cdn-media.chatglm.cn/files/1e08b3e0-d4b3-4825-b0b2-b444f8521455.png?auth_key=1868071290-fd1b1e5723f844279459963b235c93a3-0-84b535c78a2e45057ef315c0a3e8335a" alt="Samsung Products">
                    </div>
                </div>
            </div>

            <h2 class="section-title" id="shop-title">Shop Our Inventory</h2>
            <p class="section-subtitle">Browse our selection of premium pre-owned devices.</p>
            
            <!-- Filter Buttons for "Sub-pages" -->
            <div style="text-align: center; margin-bottom: 40px;">
                <button class="shop-filter-btn" onclick="showPage('shop')" id="filter-all">View All Devices</button>
                <button class="shop-filter-btn" onclick="showPage('shop', 'apple')" id="filter-apple">View Apple Devices</button>
                <button class="shop-filter-btn" onclick="showPage('shop', 'samsung')" id="filter-samsung">View Samsung Devices</button>
            </div>
            
            <!-- ALL PLACEHOLDER PRODUCTS REMOVED - READY FOR USER INPUT -->
        </section>

        <!-- PAGE: SELL -->
        <section id="sell" class="page-section">
            <!-- Image Only - No Text Overlay -->
            <div style="text-align: center; margin-bottom: 20px;">
                <img src="https://z-cdn-media.chatglm.cn/files/51bf1e61-3645-4b72-8598-e59d4d85fb29.png?auth_key=1868077194-b67c33077c314e56865c360994f7e83a-0-729da6456be1e63c909c3fda57efbd26" alt="Secondhand Cellular Ad" style="max-width: 100%; border-radius: 10px; display: inline-block;">
            </div>

            <div class="sell-layout">
                <div class="sell-info">
                    <div class="sell-steps">
                        <div class="step">
                            <div class="step-number">1</div>
                            <div>
                                <h3>Get a Quote</h3>
                                <p class="text-muted">Tell us about your device. We offer competitive market rates.</p>
                            </div>
                        </div>
                        <div class="step">
                            <div class="step-number">2</div>
                            <div>
                                <h3>Visit Us or Ship</h3>
                                <p class="text-muted">Bring your device to our Largo location or mail it in securely.</p>
                            </div>
                        </div>
                        <div class="step">
                            <div class="step-number">3</div>
                            <div>
                                <h3>Get Paid Instantly</h3>
                                <p class="text-muted">Once inspected, we pay you cash or direct deposit on spot.</p>
                            </div>
                        </div>
                    </div>
                    <p style="margin-top: 20px;">We buy broken and cracked screens too!</p>
                </div>

                <div class="sell-form">
                    <h3 style="margin-bottom: 20px;">Request a Quote</h3>
                    <!-- Updated Form with IDs and new onsubmit handler -->
                    <form id="quote-form" onsubmit="sendEmail(event)">
                        <div class="form-group">
                            <label>Device Model (e.g., iPhone 13, S21)</label>
                            <input type="text" id="device-model" class="form-control" placeholder="Enter model" required="">
                        </div>
                        <div class="form-group">
                            <label>Storage Capacity</label>
                            <select id="device-storage" class="form-control">
                                <option>64GB</option>
                                <option>128GB</option>
                                <option>256GB</option>
                                <option>512GB</option>
                                <option>1TB</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Condition</label>
                            <select id="device-condition" class="form-control">
                                <option>New Sealed/Unopened</option>
                                <option>Flawless / Like New</option>
                                <option>Good (Minor Scratches)</option>
                                <option>Cracked Screen</option>
                                <option>Other Issues</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Carrier</label>
                            <select id="device-carrier" class="form-control">
                                <option>Unlocked</option>
                                <option>Verizon</option>
                                <option>AT&amp;T</option>
                                <option>T-Mobile</option>
                                <option>Spectrum/Xfinity</option>
                                <option>Metro</option>
                                <option>Cricket</option>
                                <option>Other/Unknown</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Phone Number</label>
                            <input type="tel" id="device-phone" class="form-control" placeholder="(727) 555-0123" required="">
                        </div>
                        <div class="form-group">
                            <label>Additional Notes</label>
                            <textarea id="device-notes" class="form-control" rows="3" placeholder="Any other details about=device..."></textarea>
                        </div>
                        <button type="submit" class="btn" style="width: 100%;">Get Offer</button>
                    </form>
                </div>
            </div>
        </section>

        <!-- PAGE: FINANCING -->
        <section id="financing" class="page-section">
            <h2 class="section-title">Flexible Financing</h2>
            <p class="section-subtitle">Get=device you want today and pay over time. Bad credit? No problem!</p>

            <div class="financing-options">
                <!-- Card 1: Progressive Leasing -->
                <div class="finance-card featured">
                    <h3>ACIMA Lease to Own</h3>
                    <div class="plan-price">Easy Payments</div>
                    <ul class="plan-features">
                        <li>90 Day Same as Cash</li>
                        <li>No Credit Check Needed</li>
                        <li>Approval in Minutes</li>
                        <li>Early Buyout Options</li><li>Must CALL for Application Link</li>
                    </ul>
                    
                    <!-- IMAGE DELETED - SPACE LEFT BEHIND -->
                </div>

                <!-- Card 2: Acima -->
                <div class="finance-card featured">
                    <h3>Progressive Leasing</h3>
                    <div class="plan-price">Instant Approval</div>
                    <ul class="plan-features">
                        <li>No Credit Needed</li>
                        <li>Lease to Own</li>
                        <li>Up to $5,000 Credit Limit</li>
                        <li>Click Apply Now&nbsp;<div class=""><br></div></li>
                    </ul>
                    
                    <!-- MODIFIED BUTTON TO LEAD TO APPLICATION LINK -->
                    <a href="https://approve.me/s/indymobile/148085" class="btn" style="margin-top: 20px;">Apply Now</a>
                </div>
            </div>
        </section>

        <!-- PAGE: REVIEWS -->
        <section id="reviews" class="page-section">
            <h2 class="section-title">Customer Reviews</h2>
            <p class="section-subtitle">See what our customers in Largo and beyond are saying.</p>

            <div class="reviews-grid">
                <!-- Review 1 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"Absolutely best place to buy a used phone. My iPhone 12 looks brand new and price was unbeatable. Highly recommend Secondhand Cellular!"</p>
                    <div class="reviewer-name">- Sarah J.</div>
                </div>

                <!-- Review 2 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"I sold my old Samsung Galaxy here. The process was fast, they gave me a fair price, and I walked out with cash in 15 minutes."</p>
                    <div class="reviewer-name">- Mike T.</div>
                </div>

                <!-- Review 3 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"The financing option saved me. I needed a phone for work but didn't have=the cash upfront. Got approved instantly."</p>
                    <div class="reviewer-name">- Jessica R.</div>
                </div>

                <!-- Review 4 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"Great customer service. They helped me transfer all my data and set up my new device. Friendly staff."</p>
                    <div class="reviewer-name">- David B.</div>
                </div>
                
                <!-- Review 5 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"Huge selection of phones. I found exactly what I was looking for at a price I couldn't beat anywhere else."</p>
                    <div class="reviewer-name">- James K.</div>
                </div>

                <!-- Review 6 -->
                <div class="review-card">
                    <div class="stars">★★★★★</div>
                    <p class="review-text">"Brought in my phone with a cracked screen and they fixed it in under an hour. Looks brand new now. Best experience ever!"</p>
                    <div class="reviewer-name">- Emily R.</div>
                </div>
            </div>
        </section>

    </main>

    <!-- Floating Call Button -->
    <!-- 
         CRITICAL FIXES FOR WORDPRESS:
         1. 'style="..."' attributes added directly to the tag to override theme CSS.
         2. 'z-index' set to 2147483647 to sit above all WordPress overlays.
         3. 'display: block' ensures it renders even if theme hides it.
    -->
    <a href="tel:7277090517" 
       class="floating-call-btn" 
       style="position: fixed !important; z-index: 2147483647 !important; bottom: 20px !important; right: 20px !important; display: block !important; background-color: #E50914 !important; width: 60px !important; height: 60px !important; border-radius: 50% !important; align-items: center !important; justify-content: center !important; box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important; transform: scale(1) !important;"
       aria-label="Call Us">
        <svg style="width: 30px; height: 30px; fill: white !important; pointer-events: none;" viewBox="0 0 24 24">
            <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"></path>
        </svg>
    </a>

    <!-- Footer -->
    <footer>
        <div class="container">
            <div class="footer-grid">
                <div class="footer-col">
                    <h3>Secondhand Cellular</h3>
                    <p style="color: #a0a0a0; margin-bottom: 10px;">iPhone's Galaxies &amp; More!</p>
                    <p style="color: #a0a0a0; margin-bottom: 10px;">Established 2017</p>
                    <p style="color: #a0a0a0;">We Buy and Sell Like New Devices.</p>
                </div>
                
                <!-- Updated Contact Column -->
                <div class="footer-col">
                    <h3>Contact Info</h3>
                    <!-- Phone -->
                    <div class="footer-contact-item">
                        <!-- SVG Phone Icon -->
                        <svg class="icon-red" viewBox="0 0 24 24">
                            <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"></path>
                        </svg>
                        <a href="tel:7277090517" class="contact-link">727-709-0517</a>
                    </div>
                    
                    <!-- Address -->
                    <div class="footer-contact-item">
                        <!-- SVG Map Pin Icon -->
                        <svg class="icon-red" viewBox="0 0 24 24">
                            <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5-1.12 2.5 2.5-1.12 2.5-1.12 2.5-1.12 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5 2.5-1.12 2.5-1.12 2.5-1.12 2.5 2.5-1.12 2.5z"></path>
                        </svg>
                        <a href="https://www.google.com/maps/search/?api=1&amp;query=Secondhand+Cellular,+13355+Belcher+Rd+S.+Largo+FL+33773" target="_blank" class="contact-link" style="font-size: 1rem; font-weight: 500; line-height: 1.4;">
                            13355 Belcher Rd S.<br>
                            Largo, FL 33773
                        </a>
                    </div>
                </div>

                <!-- Updated Hours Column -->
                <div class="footer-col">
                    <h3>Hours</h3>
                    <span class="hours-text">Mon - Fri: 10:00 - 6:00</span>
                    <span class="hours-text">Saturday: 10:00 - 5:00</span>
                    <p style="color: #666; font-size: 0.9rem; margin-top: 10px;">Sunday: Closed</p>
                </div>
            </div>
            <div class="copyright">
                &copy; 2023 Secondhand Cellular. All Rights Reserved.
            </div>
        </div>
    </footer>

    <!-- JavaScript for Page Navigation & Email Submission -->
    <script>
        // State for current filter category (all, apple, samsung)
        let currentCategory = 'all';

        function showPage(pageId, category = 'all') {
            // If navigating to home, reset category
            if (pageId === 'home') {
                currentCategory = 'all';
            } else if (category !== 'all') {
                currentCategory = category;
            }

            // Hide all sections
            const sections = document.querySelectorAll('.page-section');
            sections.forEach(section => {
                section.classList.remove('active-section');
            });

            // Show target section
            const targetSection = document.getElementById(pageId);
            if (targetSection) {
                targetSection.classList.add('active-section');
            }

            // Update Navigation Active State
            const navLinks = document.querySelectorAll('.nav-link');
            navLinks.forEach(link => {
                link.classList.remove('active');
            });
            
            // Set active class to clicked link
            const activeLink = document.getElementById('nav-' + pageId);
            if (activeLink) {
                activeLink.classList.add('active');
            }

            // --- SPECIAL LOGIC FOR SHOP PAGE SUB-PAGES ---
            if (pageId === 'shop') {
                // Update Title based on category
                const titleElement = document.getElementById('shop-title');
                const filterAllBtn = document.getElementById('filter-all');
                const filterAppleBtn = document.getElementById('filter-apple');
                const filterSamsungBtn = document.getElementById('filter-samsung');

                if (currentCategory === 'apple') {
                    titleElement.innerText = 'Shop Apple Devices';
                    // filterAllBtn.classList.remove('active'); // Removed old text buttons check
                    filterAppleBtn.classList.add('active');
                    filterSamsungBtn.classList.remove('active');
                } else if (currentCategory === 'samsung') {
                    titleElement.innerText = 'Shop Samsung Devices';
                    // filterAllBtn.classList.remove('active'); // Removed old text buttons check
                    filterAppleBtn.classList.remove('active');
                    filterSamsungBtn.classList.add('active');
                } else {
                    titleElement.innerText = 'Shop Our Inventory';
                    // filterAllBtn.classList.add('active'); // Removed old text buttons check
                    filterAppleBtn.classList.remove('active');
                    filterSamsungBtn.classList.remove('active');
                }

                // Filter Products
                // NOTE: This looks for elements with 'data-brand'. Since we removed=the products, this will loop zero times.
                // When you add new products, ensure they have data-brand="apple" or data-brand="samsung" attributes.
                const products = document.querySelectorAll('.product-card');
                products.forEach(product => {
                    const productBrand = product.getAttribute('data-brand');
                    if (currentCategory === 'all' || productBrand === currentCategory) {
                        product.style.display = 'block';
                    } else {
                        product.style.display = 'none';
                    }
                });
            }

            // Scroll to top for better UX
            window.scrollTo(0, 0);
        }

        // NEW FUNCTION TO HANDLE EMAIL SUBMISSION
        function sendEmail(event) {
            event.preventDefault(); // Prevent form submission from reloading page

            // 1. Get values from form
            const model = document.getElementById('device-model').value;
            const storage = document.getElementById('device-storage').value;
            const condition = document.getElementById('device-condition').value;
            const carrier = document.getElementById('device-carrier').value;
            const phone = document.getElementById('device-phone').value;
            const notes = document.getElementById('device-notes').value;

            // 2. Construct Email Body content
            // Using %0D for new lines and %0A for separation
            const emailBody = `New Quote Request from Website:%0D%0A-------------------%0D%0A` +
                           `Model: ${model}%0D` +
                           `Storage: ${storage}%0D` +
                           `Condition: ${condition}%0D` +
                           `Carrier: ${carrier}%0D` +
                           `Phone: ${phone}%0D` +
                           `Notes: ${notes}`;

            // 3. Construct mailto link
            // encodeURIComponent ensures spaces and special characters don't break URL
            const mailtoLink = `mailto:secondhandcellularflorida@gmail.com?subject=New Quote Request&body=${encodeURIComponent(emailBody)}`;

            // 4. Open user's default email client with data pre-filled
            window.location.href = mailtoLink;

            // 5. Alert user
            alert('Your quote request has been prepared to send via email.');
        }
    </script>


</body></html>