/* ==========================================================================
   NFFIS Homepage Styles
   Palette: near-black #111111 / #2d2d2d, fire orange accent #f4511e
   ========================================================================== */

:root {
    --nffis-dark:    #111111;
    --nffis-green:   #2d2d2d;
    --nffis-accent:  #f4511e;
    --nffis-light:   #f8f9fa;
    --navbar-height: 64px;
}

body.home-page {
    margin-bottom: 0; /* cancel site.css 60px margin for home layout's in-flow footer */
}

/* ==========================================================================
   NAVBAR (home page)
   Inherits Bootstrap navbar-light bg-white — no custom overrides needed.
   ========================================================================== */

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */

#heroCarousel,
#heroCarousel .carousel-item {
    height: 50vh;
    min-height: 300px;
    max-height: 520px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.80) 100%
    );
}

.hero-slide--aerial    { background-image: url('/img/WebGIS.png'); }
.hero-slide--satellite { background-image: url('/img/satellite-monitoring.png'); }
.hero-slide--night     { background-image: url('/img/hotspot.png'); }
.hero-slide--alb       { background-image: url('/img/nation.png'); }
.hero-slide--terrain   { background-image: url('/img/terrain.png'); }

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem 2rem 3rem;
    text-align: center;
    color: #fff;
}

.hero-caption h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.75rem;
}

.hero-caption .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.btn-hero-primary {
    background-color: var(--nffis-accent);
    border: 2px solid var(--nffis-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-hero-primary:hover {
    background-color: #d43e14;
    border-color: #d43e14;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.75rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 3;
    width: 60px;
}

#heroCarousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.section-about {
    background-color: #fff;
    padding: 5rem 0;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nffis-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.section-about h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--nffis-dark);
    line-height: 1.25;
    margin-bottom: 1.75rem;
}

.about-intro-block {
    border-left: 4px solid var(--nffis-accent);
    padding-left: 1.5rem;
    margin-bottom: 1.75rem;
}

.about-intro-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 0;
}

.section-about p {
    line-height: 1.85;
    color: #555;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.section-features {
    background-color: var(--nffis-light);
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: var(--nffis-dark);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: #666;
    max-width: 560px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #111111, #444444);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nffis-dark);
    margin-bottom: 0.65rem;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* ==========================================================================
   CALL TO ACTION BAND
   ========================================================================== */

.section-cta {
    background: #495057;
    padding: 4.5rem 0;
    text-align: center;
    color: #fff;
}

.section-cta h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-cta p {
    opacity: 0.85;
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.btn-cta {
    background-color: var(--nffis-accent);
    border: 2px solid var(--nffis-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-cta:hover {
    background-color: #d43e14;
    border-color: #d43e14;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */

.section-partners {
    background-color: #fff;
    padding: 4rem 0;
    border-top: 1px solid #e8eaed;
}

.section-partners .partners-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 2.5rem;
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-item img {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.8;
    filter: grayscale(15%);
    transition: opacity 0.25s, filter 0.25s;
}

.partner-logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================================================
   FOOTER (home layout only)
   ========================================================================== */

.home-footer {
    background-color: #495057;
    border-top: none;
    line-height: normal;
    padding: 0;
}

.home-footer .text-muted,
.home-footer a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
}

.home-footer a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767.98px) {
    #heroCarousel,
    #heroCarousel .carousel-item {
        height: 45vh;
        min-height: 260px;
    }

    .hero-caption {
        padding: 1rem 1.25rem 2.5rem;
    }

    .btn-hero-secondary {
        margin-left: 0;
        margin-top: 0.6rem;
    }

    .section-about,
    .section-features,
    .section-cta,
    .section-partners {
        padding: 3rem 0;
    }

    .partner-logos {
        gap: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .btn-hero-primary,
    .btn-hero-secondary {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
}
