/*
Theme Name: GarageGymHub Custom Theme
Author: AI Assistant
Description: 100% identical match to local HTML repo, with images and JS.
Version: 1.2
*/


        /* CSS Reset & Variables */
        :root {
            --primary: #fafafa;
            --accent: #d90429;
            --text-main: #1a1a1a;
            --text-muted: #666666;
            --nav-height: 80px;
            --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            background-color: var(--primary); 
            color: var(--text-main); 
            font-family: var(--font-main); 
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }
        a { text-decoration: none; color: inherit; }

        /* Lenis Smooth Scroll */
        html.lenis, html.lenis body { height: auto; }
        .lenis.lenis-smooth { scroll-behavior: auto !important; }
        .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
        .lenis.lenis-stopped { overflow: hidden; }

        /* Navigation Bar (Frosted Glass) */
        .navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background: #ffffff;  border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; z-index: 1000; transition: transform 0.4s ease; }
        .logo { font-size: 26px; font-weight: 900; color: #1a1a1a; text-decoration: none; letter-spacing: -1.5px; z-index: 1000; }
        .logo span { color: var(--accent); font-weight: 900; }
        .nav-links { display: flex; gap: 35px; align-items: center; }
        .nav-item { font-size: 14px; font-weight: 500; color: #555; transition: color 0.3s; padding: 20px 0; position: relative; }
        .nav-item:hover { color: #1a1a1a; }
        .nav-item.active { color: #1a1a1a; }
        .nav-item.active::after { content: ''; position: absolute; bottom: 14px; left: 0; width: 100%; height: 2px; background: var(--accent); border-radius: 2px; }

        /* Dropdown */
        .dropdown { position: relative; }
        .dropdown-trigger { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; color: #555; padding: 20px 0; transition: color 0.3s; }
        .dropdown-trigger:hover { color: #1a1a1a; }
        .chevron { transition: transform 0.3s ease; flex-shrink: 0; }
        .dropdown:hover .chevron, .dropdown.open .chevron { transform: rotate(180deg); }
        .dropdown-content { position: absolute; top: 60px; left: -20px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; min-width: 260px; overflow: hidden; z-index: 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; display: flex; flex-direction: column; padding: 10px; }
        .dropdown:hover .dropdown-content, .dropdown.open .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-content a { padding: 12px 15px; font-size: 13px; font-weight: 500; color: #555; border-radius: 8px; transition: all 0.2s; }
        .dropdown-content a:hover { background-color: rgba(0,0,0,0.04); color: var(--accent); }

        /* Mobile Hamburger */
        .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; position: relative; z-index: 1001; padding: 0; }
        .hamburger span { display: block; width: 100%; height: 2px; background: #1a1a1a; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
        .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.active span:nth-child(2) { opacity: 0; }
        .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        @media (max-width: 860px) {
            .hamburger { display: flex; }
            .nav-links {
                position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
                background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
                flex-direction: column; align-items: flex-start; justify-content: flex-start;
                gap: 4px; padding: calc(var(--nav-height) + 20px) 30px 30px;
                transform: translateX(100%); transition: transform 0.4s ease; overflow-y: auto;
                border-left: 1px solid rgba(0,0,0,0.08); box-shadow: -5px 0 30px rgba(0,0,0,0.05);
            }
            .nav-links.active { transform: translateX(0); }
            .nav-item, .dropdown-trigger { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
            .nav-item.active::after { display: none; }
            .dropdown-trigger { justify-content: space-between; }
            .dropdown-content { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; max-height: 0; padding: 0; background: rgba(0,0,0,0.03); border: none; transition: max-height 0.35s ease, padding 0.35s ease; }
            .dropdown.open .dropdown-content { max-height: 400px; padding: 8px; }
        }

        /* Hero Section */
        .hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        /* Beautiful Home Wellness Gym Image */
        .hero-bg { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; background: url('https://images.unsplash.com/photo-1598136490937-f77b0ce520fe?q=80&w=2000') center/cover; opacity: 0.35; z-index: 1; filter: grayscale(20%); }
        .hero-content { z-index: 2; text-align: center; padding: 0 20px; max-width: 900px; margin-top: 50px; }
        .hero h1 { font-size: 8vw; font-weight: 800; letter-spacing: -3px; line-height: 0.95; text-transform: uppercase; margin-bottom: 30px; }
        .hero p { font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto 40px auto; font-weight: 400; line-height: 1.6; }
        .hero-btn { display: inline-block; background: var(--accent); color: #ffffff; padding: 16px 36px; font-size: 15px; font-weight: 600; border-radius: 30px; transition: transform 0.3s, background 0.3s; letter-spacing: 0.5px; }
        .hero-btn:hover { background: #ff2a2a; transform: scale(1.05); }

        /* Section Layouts */
        .section-container { max-width: 1300px; margin: 120px auto; padding: 0 5%; }
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .section-header h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
        .view-all { font-weight: 500; color: var(--accent); font-size: 14px; position: relative; }
        .view-all::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: width 0.3s ease; }
        .view-all:hover::after { width: 100%; }

        /* Featured Split Section */
        .featured { display: flex; align-items: center; gap: 80px; margin: 150px auto; max-width: 1300px; padding: 0 5%; }
        .featured-text { flex: 1; }
        .featured-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
        .featured-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px; max-width: 500px; }
        .featured-img-wrap { flex: 1; height: 600px; border-radius: 20px; overflow: hidden; position: relative; }
        /* Premium Home Studio Image */
        .featured-img { width: 100%; height: 130%; background: url('garage_featured_custom.jpg') center/cover; }

        /* Articles Grid */
        .article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px; }
        .article-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: background 0.3s; }
        .article-card:hover { background: rgba(255,255,255,0.04); }
        .article-img-wrapper { width: 100%; height: 240px; overflow: hidden; position: relative; }
        .article-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
        .article-card:hover .article-img { transform: scale(1.08); }
        .category-badge { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); color: #ffffff; padding: 6px 14px; font-size: 11px; font-weight: 600; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; border: 1px solid rgba(0,0,0,0.1); z-index: 2; }
        .article-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
        .article-content h3 { font-size: 22px; margin-bottom: 15px; line-height: 1.3; font-weight: 600; transition: color 0.3s; }
        .article-card:hover .article-content h3 { color: var(--accent); }
        .article-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; flex-grow: 1; line-height: 1.6; }
        .read-more { font-weight: 600; color: #1a1a1a; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; transition: gap 0.3s; }
        .article-card:hover .read-more { gap: 12px; color: var(--accent); }

        /* AdSense Placeholders */
        .adsense-placeholder { background: rgba(0,0,0,0.03); border: 1px dashed rgba(255,255,255,0.15); color: #555; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin: 60px auto; border-radius: 8px; transition: background 0.3s; }
        .adsense-placeholder:hover { background: #ffffff; }
        .ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }

        /* Footer */
        footer { background: #fafafa; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; padding: 60px 20px; margin-top: 80px; }
        footer p { color: #666; font-size: 13px; margin-bottom: 15px; }
        .footer-links { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
        .footer-links a { color: #888; font-size: 13px; transition: color 0.2s; }
        .footer-links a:hover { color: var(--accent); }

        /* Utility GSAP Classes */
        .split-char { display: inline-block; overflow: hidden; vertical-align: bottom; }
        .split-char div { transform: translateY(100%); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
        .is-inview .split-char div { transform: translateY(0); }
    
        /* Logo Image */
        .logo { font-size: 26px; font-weight: 900; color: #1a1a1a; text-decoration: none; letter-spacing: -1.5px; z-index: 1000; }
        

        @media (max-width: 860px) {
            .hero h1 { font-size: 12vw !important; letter-spacing: -1px; margin-bottom: 20px; }
            .hero p { font-size: 1.1rem; padding: 0 10px; }
            .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
            .section-header h2 { font-size: 2rem; }
            .featured { flex-direction: column; text-align: center; margin: 80px auto; gap: 40px; }
            .featured-text h2 { font-size: 2.5rem; }
            .featured-img-wrap { height: 400px; width: 100%; }
            .article-grid { grid-template-columns: 1fr; }
            .footer-links { flex-direction: column; gap: 15px; }
        }
    


/* Fix Navbar position when WordPress Admin Bar is showing */
.admin-bar .navbar { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .navbar { top: 46px !important; } }

/* GPU Hardware Acceleration for Parallax */
#heroBg, .parallax-img {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
}
