/* ═══════════════════════════════════════════════════════════
   ITHEMBALETHU — HOME PAGE STYLES
   Premium balanced layout — Hero, Identity, Services, Values, CTA
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Section ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(26, 26, 26, 0.2) 0%,
            rgba(26, 26, 26, 0.4) 40%,
            rgba(26, 26, 26, 0.85) 80%,
            rgba(26, 26, 26, 1) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding-inline: var(--space-lg);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-safety-yellow);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: var(--space-lg);
    animation: dropIn 0.8s var(--ease-out-expo) forwards;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-safety-yellow);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

.hero__title {
    font-size: var(--text-5xl);
    line-height: 0.95;
    margin-bottom: var(--space-lg);
    animation: slideUp 1s var(--ease-out-expo) 0.2s both;
}

.hero__title span {
    display: block;
}

.hero__title .line-accent {
    color: var(--color-safety-yellow);
    -webkit-text-stroke: 0;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-concrete-dark);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    animation: slideUp 1s var(--ease-out-expo) 0.4s both;
    line-height: 1.8;
}

.hero__cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s var(--ease-out-expo) 0.6s both;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    animation: fadeIn 1s var(--ease-out-expo) 1.5s both;
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-concrete-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-safety-yellow), transparent);
    animation: float 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════
   SECTION 2: IDENTITY
   ═══════════════════════════════════════════════════════ */
.identity {
    --section-bg: var(--color-asphalt);
    padding-block: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.identity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-safety-yellow-glow),
            transparent);
}

/* Editorial Grid Layout */
.identity__editorial {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.identity__narrative {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.identity__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-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.identity__label::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--color-safety-yellow);
}

.identity__title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    font-weight: 300;
}

.identity__story {
    margin-bottom: var(--space-2xl);
    border-left: 2px solid rgba(255, 215, 0, 0.2);
    padding-left: var(--space-lg);
}

.identity__text {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-concrete-dark);
    margin-bottom: var(--space-md);
}

.identity__text--lead {
    font-size: var(--text-lg);
    color: var(--color-concrete);
    font-weight: 400;
    line-height: 1.6;
}

.identity__text:last-child {
    margin-bottom: 0;
}

/* Premium Badges */
.identity__badges {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.identity__badge-taste {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.identity__badge-taste:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.05), transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    color: var(--color-safety-yellow);
}

.badge-icon i,
.badge-icon svg {
    width: 24px;
    height: 24px;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-concrete);
    font-weight: 500;
}

.badge-desc {
    font-size: var(--text-sm);
    color: var(--color-concrete-muted);
}

/* Visual Editorial Layout */
.identity__visual-editorial {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-editorial__main-image {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.visual-editorial__main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.visual-editorial__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.identity__visual-editorial:hover .visual-editorial__main-image img {
    transform: scale(1.05);
}

.visual-editorial__stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stat-card-taste {
    position: absolute;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card-taste:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.stat-card-taste--primary {
    bottom: 5%;
    left: 0;
}

.stat-card-taste--secondary {
    top: 15%;
    right: 0;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 300;
    color: var(--color-safety-yellow);
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.stat-plus {
    font-size: var(--text-2xl);
    color: var(--color-concrete);
    margin-left: 2px;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-concrete-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════
   SECTION 3: SERVICES PREVIEW
   ═══════════════════════════════════════════════════════ */
.services-preview {
    padding-block: var(--space-3xl);
    background: var(--color-asphalt-light);
    position: relative;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, var(--color-asphalt), var(--color-asphalt-light));
    pointer-events: none;
}

.services-preview__header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.services-preview__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-safety-yellow);
    display: block;
    margin-bottom: var(--space-sm);
}

.services-preview__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.services-preview__subtitle {
    color: var(--color-concrete-muted);
    font-size: var(--text-base);
}

/* Balanced 3-column card grid */
.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Service Preview Card */
.service-preview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--color-asphalt);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid var(--color-glass-border);
}

.service-preview-card--mining {
    background-image: url('../assets/images/mining-operations.webp');
}

.service-preview-card--civil {
    background-image: url('../assets/images/civil-construction.webp');
}

.service-preview-card--roads {
    background-image: url('../assets/images/earthworks-roads.webp');
}

.service-preview-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.2) 0%,
            rgba(26, 26, 26, 0.7) 50%,
            rgba(26, 26, 26, 0.95) 100%);
    transition: opacity 0.5s var(--transition-base);
    z-index: 1;
}

.service-preview-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out-expo);
}

.service-preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
}

.service-preview-card:hover .service-preview-card__overlay {
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.1) 0%,
            rgba(26, 26, 26, 0.5) 40%,
            rgba(26, 26, 26, 0.9) 100%);
}

.service-preview-card:hover .service-preview-card__content {
    transform: translateY(0);
}

.service-preview-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: auto;
    /* Pushes everything else to the bottom */
}

.service-preview-card__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: rgba(255, 215, 0, 0.4);
    line-height: 1;
    transition: color 0.3s ease;
}

.service-preview-card:hover .service-preview-card__number {
    color: var(--color-safety-yellow);
}

.service-preview-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-out-expo);
}

.service-preview-card__icon i,
.service-preview-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-safety-yellow);
}

.service-preview-card:hover .service-preview-card__icon {
    background: var(--color-safety-yellow);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-safety-yellow);
}

.service-preview-card:hover .service-preview-card__icon i,
.service-preview-card:hover .service-preview-card__icon svg {
    color: var(--color-asphalt);
}

.service-preview-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-concrete);
    transform: translateY(10px);
    transition: transform 0.5s var(--ease-out-expo);
}

.service-preview-card:hover .service-preview-card__title {
    transform: translateY(0);
}

.service-preview-card__text {
    font-size: var(--text-sm);
    color: var(--color-concrete-muted);
    line-height: 1.6;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.service-preview-card:hover .service-preview-card__text {
    opacity: 1;
}

.service-preview-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-safety-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s var(--ease-out-expo);
}

.service-preview-card:hover .service-preview-card__link {
    opacity: 1;
    transform: translateX(0);
}

.service-preview-card__link i,
.service-preview-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-preview-card__link:hover i,
.service-preview-card__link:hover svg {
    transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════
   SECTION 4: CORE VALUES
   ═══════════════════════════════════════════════════════ */
.values {
    --section-bg: var(--color-asphalt);
    padding-block: var(--space-3xl);
    background: var(--color-asphalt);
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, var(--color-asphalt-light), var(--color-asphalt));
    pointer-events: none;
}

.values__header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.values__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);
}

.values__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.values__subtitle {
    color: var(--color-concrete-muted);
    font-size: var(--text-base);
}

/* Balanced 3-column grid — wraps to 3+2 naturally */
.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Center the last row when it has fewer items */
.values__grid::after {
    content: '';
    grid-column: span 1;
}

.value-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-safety-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    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.15), transparent);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.value-card__icon i,
.value-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-safety-yellow);
}

.value-card:hover .value-card__icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.05));
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.value-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-concrete);
}

.value-card__description {
    font-size: var(--text-sm);
    color: var(--color-concrete-muted);
    line-height: 1.7;
}

.value-card.is-active {
    border-color: var(--color-safety-yellow);
    box-shadow: var(--shadow-glow);
}

.value-card.is-active .value-card__icon {
    background: var(--color-safety-yellow);
}

.value-card.is-active .value-card__icon i,
.value-card.is-active .value-card__icon svg {
    color: var(--color-asphalt);
}


/* ═══════════════════════════════════════════════════════
   SECTION 5: CTA BANNER
   ═══════════════════════════════════════════════════════ */
.cta-banner {
    padding-block: var(--space-3xl);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg,
            rgba(26, 26, 26, 0.95) 0%,
            rgba(26, 26, 26, 0.8) 50%,
            rgba(26, 26, 26, 0.95) 100%), url('../assets/images/partnership-cta.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-asphalt);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, var(--color-asphalt), transparent);
    pointer-events: none;
}

.cta-banner__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.cta-banner__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.cta-banner__text {
    color: var(--color-concrete-dark);
    font-size: var(--text-lg);
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

.cta-banner__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* CTA stat visual cards */
.cta-banner__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.cta-banner__stat-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.cta-banner__stat-card:hover {
    border-color: var(--color-safety-yellow);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}

.cta-banner__stat-card:first-child {
    grid-column: 1 / -1;
}

.cta-banner__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);
}

.cta-banner__stat-label {
    font-size: var(--text-xs);
    color: var(--color-concrete-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    .identity__editorial {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .visual-editorial__main-image {
        width: 100%;
        height: 500px;
    }

    .identity__badges {
        max-width: 500px;
    }

    .services-preview__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-inline: auto;
    }

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

    .cta-banner__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-banner__text {
        margin-inline: auto;
    }

    .cta-banner__actions {
        justify-content: center;
    }

    .cta-banner__visual {
        max-width: 400px;
        margin-inline: auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }

    .visual-editorial__main-image {
        height: 350px;
    }

    .stat-card-taste {
        padding: var(--space-md);
    }

    .stat-value {
        font-size: var(--text-3xl);
    }

    .values__grid {
        grid-template-columns: 1fr;
    }

    .cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-banner__visual {
        grid-template-columns: 1fr;
    }

    .cta-banner__stat-card:first-child {
        grid-column: auto;
    }
}
