/* ==========================================================================
   GreenStar – Our Technology Styles
   File: assets/css/technology.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.tech-hero {
    background: var(--color-primary-dark);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tech-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.tech-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 40, 10, .6) 0%,
        rgba(30, 86, 30, .45) 55%,
        rgba(0, 0, 0, .35) 100%
    );
}
.tech-hero__container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.tech-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    animation: fadeUp 0.6s ease both;
}
.tech-hero__subtitle {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.8);
    line-height: var(--lh-loose);
    animation: fadeUp 0.6s ease 0.1s both;
}

/* --------------------------------------------------------------------------
   2. Factory Overview
   -------------------------------------------------------------------------- */
.tech-overview {
    padding: 5rem 0;
    background: var(--color-white);
}
.tech-overview__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}
.tech-overview__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.tech-overview__icon img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.tech-overview__content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}
.tech-overview__content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Key Highlights
   -------------------------------------------------------------------------- */
.tech-highlights {
    padding: 4rem 0;
    background: var(--color-off-white);
}
.tech-highlights__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
}
.tech-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.highlight-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.highlight-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.highlight-card__value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
.highlight-card__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.highlight-card__desc {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Factory Gallery
   -------------------------------------------------------------------------- */
.tech-gallery {
    padding: 5rem 0;
    background: var(--color-white);
}
.tech-gallery__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
}
.tech-gallery__carousel {
    position: relative;
}
.tech-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .tech-overview__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .tech-overview__icon {
        max-width: 400px;
        margin: 0 auto;
    }
    .tech-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .tech-highlights__grid {
        grid-template-columns: 1fr;
    }
    .tech-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .tech-gallery__grid {
        grid-template-columns: 1fr;
    }
}
