/* ═══════════════════════════════════════════════════════════
   ITHEMBALETHU — PLANT & EQUIPMENT HIRE PAGE STYLES
   "The Fleet Garage"
   ═══════════════════════════════════════════════════════════ */

/* ── Page Hero ──────────────────────────────────────────── */
.plant-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    background-image:
        linear-gradient(to bottom,
            rgba(26, 26, 26, 0.75) 0%,
            rgba(42, 32, 20, 0.6) 50%,
            rgba(26, 26, 26, 0.95) 100%),
        url('../assets/images/plant-hero.webp');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    background-color: var(--color-asphalt);
}

.plant-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(139, 105, 20, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.plant-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--color-asphalt));
    pointer-events: none;
}

.plant-hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-inline: var(--space-lg);
}

.plant-hero__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-safety-yellow);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    animation: dropIn 0.8s var(--ease-out-expo) forwards;
}

.plant-hero__label::before,
.plant-hero__label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--color-safety-yellow);
}

.plant-hero__title {
    font-size: var(--text-4xl);
    line-height: 0.95;
    margin-bottom: var(--space-lg);
    animation: slideUp 1s var(--ease-out-expo) 0.2s both;
}

.plant-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-concrete-dark);
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.8;
    animation: slideUp 1s var(--ease-out-expo) 0.4s both;
}

/* ── Category Navigation ────────────────────────────────── */
.fleet-nav {
    padding-block: var(--space-lg);
    background: var(--color-asphalt);
    position: sticky;
    top: var(--header-height);
    z-index: calc(var(--z-above) + 5);
    border-bottom: 1px solid var(--color-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.fleet-nav__list {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.fleet-nav__btn {
    padding: var(--space-xs) var(--space-lg);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-concrete-muted);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.fleet-nav__btn:hover {
    color: var(--color-concrete);
    border-color: var(--color-safety-yellow);
    transform: translateY(-2px);
}

.fleet-nav__btn.is-active {
    color: var(--color-asphalt);
    background: var(--color-safety-yellow);
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
}

/* ── Fleet Category Sections ────────────────────────────── */
.fleet-section {
    padding-block: var(--space-2xl);
    scroll-margin-top: calc(var(--header-height) + 80px);
}

.fleet-section:nth-child(even) {
    background: var(--color-asphalt-light);
}

.fleet-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.fleet-section__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-safety-yellow);
    margin-bottom: var(--space-sm);
}

.fleet-section__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.fleet-section__desc {
    font-size: var(--text-base);
    color: var(--color-concrete-muted);
    max-width: 600px;
    margin-inline: auto;
}

/* ── Fleet Showcase Image ───────────────────────────────── */
.fleet__showcase {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-glass-border);
}

.fleet__showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease-out-expo);
}

.fleet__showcase:hover .fleet__showcase-img {
    transform: scale(1.04);
}

.fleet__showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.05) 0%,
            rgba(42, 32, 20, 0.15) 60%,
            rgba(26, 26, 26, 0.5) 100%);
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.fleet__showcase:hover .fleet__showcase-overlay {
    opacity: 0.7;
}

/* ── Equipment Cards ────────────────────────────────────── */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.equipment-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-safety-yellow), var(--color-safety-yellow-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.equipment-card:hover::before {
    transform: scaleX(1);
}

.equipment-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
}

.equipment-card__visual {
    width: 80px;
    height: 80px;
    margin-inline: auto;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-xl);
    font-size: 2.2rem;
    transition: all var(--transition-base);
}

.equipment-card:hover .equipment-card__visual {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.05));
    box-shadow: var(--shadow-glow);
    transform: scale(1.1) rotate(-3deg);
}

.equipment-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-concrete);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.equipment-card__category {
    font-size: var(--text-xs);
    color: var(--color-safety-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.equipment-card__desc {
    font-size: var(--text-sm);
    color: var(--color-concrete-muted);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ── Fleet Stats ────────────────────────────────────────── */
.fleet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-block: var(--space-2xl);
}

.fleet-stat {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.fleet-stat:hover {
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.fleet-stat__icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.fleet-stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-safety-yellow);
    display: block;
    margin-bottom: var(--space-2xs);
}

.fleet-stat__label {
    font-size: var(--text-xs);
    color: var(--color-concrete-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Fleet CTA ──────────────────────────────────────────── */
.fleet-cta {
    padding-block: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(to bottom,
            rgba(26, 26, 26, 0.82) 0%,
            rgba(42, 32, 20, 0.7) 50%,
            rgba(26, 26, 26, 0.88) 100%),
        url('../assets/images/plant-cta.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-asphalt);
}

.fleet-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.fleet-cta__content {
    position: relative;
    z-index: 10;
}

.fleet-cta__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.fleet-cta__text {
    color: var(--color-concrete-dark);
    font-size: var(--text-lg);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .plant-hero {
        min-height: 45vh;
    }

    .fleet-stats {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-nav__list {
        gap: var(--space-xs);
    }

    .fleet__showcase {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .plant-hero__title {
        font-size: var(--text-3xl);
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .fleet-nav {
        position: relative;
        top: 0;
    }

    .fleet-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .fleet-nav__btn {
        text-align: center;
    }

    .fleet__showcase {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-md);
    }
}
