﻿/* ===== ICT4DEV v2 — Design Modernisé ===== */

:root {
    --surface: #f8f9fc;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", "Montserrat", sans-serif;
}

/* --- Section header pattern --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 0.6rem;
}
.section-eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

/* --- Hero --- */
#header-carousel .carousel-item {
    position: relative;
    height: 120vh;
    min-height: 500px;
}
#header-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 70vh;
        min-height: 380px;
    }
}
.carousel-caption {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.1) 100%
    ) !important;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    margin-bottom: 2rem;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-hero-solid {
    background: var(--orange);
    color: #fff;
    border: 2px solid var(--orange);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-solid:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4);
}
.btn-hero-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Stats strip --- */
.stats-section {
    background: linear-gradient(
        135deg,
        hsl(32deg 100% 46%) 0%,
        hsl(24deg 100% 54%) 100%
    );
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}
.stats-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.stat-box {
    text-align: center;
    padding: 1.25rem 1rem;
    position: relative;
}
.stat-box + .stat-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 575px) {
    .stat-box + .stat-box::before {
        display: none;
    }
}
.stat-icon {
    font-size: 1.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    display: block;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
    font-family: "Inter", sans-serif;
}
.stat-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Service cards --- */
.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}
.service-card-top {
    padding: 2rem 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.svc-icon {
    width: 80px;
    height: 80px;
    background: #fff5e6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.35s;
}
.service-card:hover .svc-icon {
    background: var(--orange);
}
.service-card:hover .svc-icon img {
    filter: brightness(0) invert(1);
}
.svc-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}
.service-card-foot {
    padding: 1rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.service-card-foot a {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}
.service-card-foot a:hover {
    gap: 0.6rem;
}

/* --- About features --- */
.about-feat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    border-radius: 12px;
    border-left: 3px solid var(--orange);
    margin-bottom: 0.75rem;
    transition: transform 0.25s;
}
.about-feat:hover {
    transform: translateX(4px);
}
.about-feat-icon {
    width: 42px;
    height: 42px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
}
.about-feat-text h6 {
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
}
.about-feat-text p {
    font-size: 0.83rem;
    color: #777;
    margin: 0;
    line-height: 1.55;
}

/* --- Partners grid --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 1.1rem;
}
@media (max-width: 575px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.partner-tile {
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    filter: grayscale(100%);
    opacity: 0.62;
    transition: all 0.35s ease;
    min-height: 88px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.partner-tile:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.partner-tile img {
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
}

/* --- Contact info cards --- */
.cinfo-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.4rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0.9rem;
    transition: transform 0.25s;
}
.cinfo-card:hover {
    transform: translateX(4px);
}
.cinfo-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.1rem;
}
.cinfo-content small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-weight: 600;
    display: block;
    margin-bottom: 0.1rem;
}
.cinfo-content span {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.92rem;
}

/* --- Form focus --- */
.form-floating .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem hsla(32deg, 100%, 50%, 0.18);
}

/* --- Map --- */
#map {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

/* --- Project card polish --- */
.project-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}
.project-carousel .owl-item {
    display: flex;
    height: auto !important;
}
.project-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 85%;
}
.project-item .position-relative img.img-fluid {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.project-item .p-4.bg-white {
    flex: 1;
}

.project-item .p-4 a.d-block {
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
}
.project-item .p-4 a.d-block:hover {
    color: var(--orange);
}
.project-item .p-4 span {
    font-size: 0.84rem;
    color: #888;
}

/* --- Topbar icons --- */
.topbar-social .btn-sm-square {
    transition: transform 0.2s;
}
.topbar-social .btn-sm-square:hover {
    transform: scale(1.15);
}

/* --- Footer logo --- */
.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}
