/* SAVE AS: assets/css/homepage.css
 * Hero rebuilt under a dedicated namespace (.homepage-hero-*) so it can
 * never collide with the unrelated .hero rule in style.css used
 * elsewhere on the site. Image rendering uses a real <img> with
 * object-fit instead of a CSS background-image.
 */

.homepage-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    max-height: 800px;
    min-height: 320px;
    overflow: hidden;
    background: #1a1a1a;
}

.homepage-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
}

.homepage-hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.homepage-hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.homepage-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
}

.homepage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 60px 40px;
    color: #fff;
}

.homepage-hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}

.homepage-hero-content p {
    font-size: 16px;
    color: #eee;
    margin: 0 0 26px;
    line-height: 1.5;
}

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

.homepage-hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.homepage-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}

.homepage-hero-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .homepage-hero-slider {
        aspect-ratio: 4 / 5;
        max-height: 640px;
        min-height: 380px;
    }
    .homepage-hero-content {
        padding: 40px 24px;
        max-width: 100%;
    }
    .homepage-hero-content h1 {
        font-size: 26px;
    }
    .homepage-hero-content p {
        font-size: 14px;
    }
    .homepage-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .homepage-hero-buttons .btn {
        text-align: center;
    }
}

/* ============================================================
   PHASE 2 - Materials & Customization mini-card sections
   ============================================================ */

.homepage-materials,
.homepage-customizations {
    padding: 60px 0;
}

.homepage-customizations {
    background: #f7f7f8;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 14px;
    max-width: 560px;
    margin: -10px auto 30px;
    line-height: 1.5;
}

.homepage-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.homepage-mini-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.homepage-mini-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.homepage-mini-card img,
.homepage-mini-card-fallback {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.homepage-mini-card-fallback {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 22px;
}

.homepage-mini-card h4 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.homepage-mini-card p {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.4;
}

.homepage-mini-card-link {
    font-size: 12px;
    font-weight: 700;
    color: #c8960a;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .homepage-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   PHASE 3 - Client Manufacturing Showcase (right-to-left scroll)
   ============================================================ */

.client-showcase {
    padding: 60px 0 50px;
    background: #fff;
}

.client-showcase-track-wrap {
    overflow: hidden;
    width: 100%;
}

.client-showcase-track {
    display: flex;
    width: max-content;
    gap: 18px;
    padding: 0 18px;
    animation: clientShowcaseScroll 40s linear infinite;
}

.client-showcase-track-wrap:hover .client-showcase-track {
    animation-play-state: paused;
}

@keyframes clientShowcaseScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-showcase-item {
    position: relative;
    flex: 0 0 240px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.client-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.client-showcase-item:hover img {
    transform: scale(1.05);
}

.client-showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.client-showcase-caption span {
    font-size: 13px;
    font-weight: 700;
}

.client-showcase-caption small {
    font-size: 11px;
    color: #eee;
    opacity: .85;
}

@media (max-width: 640px) {
    .client-showcase-item {
        flex: 0 0 170px;
        height: 130px;
    }
    .client-showcase-track {
        animation-duration: 26s;
    }
}

/* ============================================================
   PHASE 4 - Who We Are, Process, Capability, Shipping
   ============================================================ */

.homepage-intro {
    padding: 50px 0;
    text-align: center;
}

.homepage-intro-text {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.homepage-process {
    padding: 60px 0;
    background: #f7f7f8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.process-step {
    background: #fff;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid #eee;
}

.process-step-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #c8960a;
    margin-bottom: 6px;
}

.process-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.homepage-capability {
    padding: 50px 0;
}

.capability-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.capability-item {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.homepage-shipping {
    padding: 60px 0;
    background: #f7f7f8;
    text-align: center;
}

.shipping-methods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.shipping-method-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.homepage-shipping-note {
    max-width: 640px;
    margin: 0 auto;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}
