/* ============================================
   EMWRAPS — Subpage Shared Styles
   Matches PPF/Fleet design system
   Used by: vinyl.html, itasha.html, aftermarket.html, ceramic.html
   ============================================ */

/* ============================================
   Gallery Section
   ============================================ */
.sub-gallery-section {
    background: var(--bg-secondary);
}

.sub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 60px;
}

.sub-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: none;
    background: var(--bg-primary);
}

.sub-gallery-item--large {
    grid-column: span 2;
}

.sub-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-smooth);
    will-change: transform;
}

.sub-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.sub-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.sub-gallery-item:hover .sub-gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.sub-gallery-tag {
    display: inline-block;
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    padding: 3px 8px;
    border: 1px solid var(--border-accent);
}

.sub-gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.sub-gallery-overlay p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================================
   Services / Benefits Section
   ============================================ */
.sub-benefits-section {
    background: var(--bg-secondary);
}

.sub-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.sub-benefit-card {
    background: var(--bg-primary);
    padding: 40px 32px;
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.sub-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.sub-benefit-card:hover::before {
    opacity: 1;
}

.sub-benefit-card:hover {
    background: var(--bg-card-hover);
}

.sub-benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin: 16px 0 20px;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.sub-benefit-card:hover .sub-benefit-icon {
    opacity: 1;
}

.sub-benefit-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sub-benefit-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.sub-benefit-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.sub-benefit-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.sub-benefit-features li::before {
    content: '+';
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ============================================
   Services Grid (Card style — for Vinyl, Aftermarket)
   ============================================ */
.sub-services-section {
    background: var(--bg-void);
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.sub-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-smooth);
}

.sub-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.sub-service-card:hover::before {
    opacity: 1;
}

.sub-service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.sub-service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin: 16px 0 20px;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.sub-service-card:hover .sub-service-icon {
    opacity: 1;
}

.sub-service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sub-service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 20px;
}

.sub-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.sub-service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.sub-service-features li::before {
    content: '+';
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ============================================
   Packages Section
   ============================================ */
.sub-packages-section {
    background: var(--bg-void);
}

.sub-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.sub-package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    transition: all 0.5s var(--ease-smooth);
}

.sub-package-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.sub-package-card--featured {
    border-color: var(--border-accent);
    background: var(--bg-secondary);
}

.sub-package-card--featured:hover {
    border-color: var(--accent);
}

.sub-package-badge {
    position: absolute;
    top: -1px;
    left: 32px;
    background: var(--accent);
    color: var(--bg-void);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    padding: 6px 14px;
}

.sub-package-tier {
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.sub-package-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.sub-package-coverage {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.sub-package-features {
    list-style: none;
    margin-bottom: 32px;
}

.sub-package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.sub-check {
    color: var(--accent);
    font-size: 0.7rem;
    width: 16px;
    flex-shrink: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.sub-faq-section {
    background: var(--bg-secondary);
}

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

.sub-faq-item {
    border-bottom: 1px solid var(--border);
}

.sub-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-primary);
    text-align: left;
    cursor: none;
    transition: color 0.3s;
}

.sub-faq-question:hover {
    color: var(--accent);
}

.sub-faq-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.4s var(--ease-out);
    flex-shrink: 0;
    margin-left: 20px;
}

.sub-faq-item.active .sub-faq-icon {
    transform: rotate(45deg);
}

.sub-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
    padding: 0 0;
}

.sub-faq-item.active .sub-faq-answer {
    max-height: 300px;
    padding: 0 0 24px;
}

.sub-faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    padding-left: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.sub-cta-section {
    background: var(--bg-void);
    position: relative;
    overflow: hidden;
}

.sub-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.sub-cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sub-cta-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sub-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .sub-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-gallery-item--large {
        grid-column: span 2;
    }

    .sub-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .sub-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sub-gallery-item--large {
        grid-column: span 1;
    }

    .sub-gallery-item {
        aspect-ratio: 16 / 10;
    }

    .sub-gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .sub-benefits-grid {
        grid-template-columns: 1fr;
    }

    .sub-services-grid {
        grid-template-columns: 1fr;
    }

    .sub-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .sub-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}