﻿/* ============================================================
   REFRESH GLOBAL — CERTIFICATIONS PAGE MASTER STYLESHEET
   ------------------------------------------------------------
   PURPOSE:
     • Defines structure, spacing, and typography for the
       Certifications page.
     • Powers the NASA/SPI rotating hero captions.
     • Ensures enterprise-grade readability and brand consistency.
   ------------------------------------------------------------
   COMPLEMENTS:
     • hero.css
     • global typography and layout system
   ============================================================ */


/* ============================================================
   SECTION TITLES
   ------------------------------------------------------------
   Used for major content blocks across the Certifications page.
   Clean, bold, and corporate.
   ============================================================ */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
    position: relative;
}


/* ============================================================
   PARAGRAPH STYLING
   ------------------------------------------------------------
   Default paragraph styling for all sections EXCEPT the hero.
   Hero captions override this.
   ============================================================ */
section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.2rem;
}


/* ============================================================
   HIGHLIGHT BOXES
   ------------------------------------------------------------
   Used for certification summaries, SPI product notes,
   and emphasized content blocks.
   ============================================================ */
.highlight-box {
    background: #ffffff;
    border-left: 4px solid #007bff;
    padding: 1.5rem 1.8rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

    .highlight-box h4 {
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .highlight-box ul li {
        margin-bottom: 0.8rem;
    }


/* ============================================================
   VALUES GRID (if used)
   ------------------------------------------------------------
   Two-column layout for structured content.
   ============================================================ */
.row .col-md-6 h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.row .col-md-6 p {
    margin-bottom: 0;
}


/* ============================================================
   WHY CHOOSE US LIST
   ------------------------------------------------------------
   Clean bullet list with consistent spacing.
   ============================================================ */
.why-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #333;
}



/* ============================================================
   HERO CAPTION SYSTEM (TITLE + SUBTITLE ROTATION)
   ------------------------------------------------------------
   This is the core of the Certifications hero section.
   Features:
     • NASA/SPI messaging
     • Ultra-slow luxury pacing
     • Fade + slide transitions
     • Fixed height to prevent clipping
   ============================================================ */

.hero-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    color: #fff;
    overflow: hidden;
    height: 180px; /* FIXED: Allows tall NASA/SPI titles + subtitles */
    z-index: 5;
}


    /* ============================================================
   INDIVIDUAL CAPTION BLOCKS
   ------------------------------------------------------------
   Each caption contains:
     • <h1> NASA/SPI title
     • <p>  Subtitle
   Positioned absolutely for animation.
   ============================================================ */
    .hero-caption .caption {
        position: absolute;
        opacity: 0;
        transform: translateY(20px);
        animation: captionCycle 32s infinite; /* 4 captions × 8s each */
    }


        /* ============================================================
   CAPTION TITLE (H1)
   ------------------------------------------------------------
   Large, bold, premium typography.
   Perfect for NASA/SPI authority statements.
   ============================================================ */
        .hero-caption .caption h1 {
            font-size: 2.8rem;
            font-weight: 700;
            margin: 0;
            line-height: 1.2;
            color: #fff;
        }


        /* ============================================================
   CAPTION SUBTITLE (P)
   ------------------------------------------------------------
   Clean, readable, and slightly softer than the title.
   Forced white color for consistency.
   ============================================================ */
        .hero-caption .caption p {
            font-size: 1.2rem;
            margin: 8px 0 0;
            opacity: 0.9;
            color: #fff !important;
        }


        /* ============================================================
   CAPTION TIMING — 4 CAPTIONS
   ------------------------------------------------------------
   32s total cycle:
     • Caption 1: 0s
     • Caption 2: 8s
     • Caption 3: 16s
     • Caption 4: 24s
   ============================================================ */
        .hero-caption .caption:nth-child(1) {
            animation-delay: 0s;
        }

        .hero-caption .caption:nth-child(2) {
            animation-delay: 8s;
        }

        .hero-caption .caption:nth-child(3) {
            animation-delay: 16s;
        }

        .hero-caption .caption:nth-child(4) {
            animation-delay: 24s;
        }


/* ============================================================
   CAPTION ANIMATION — FADE + SLIDE
   ------------------------------------------------------------
   Cinematic, premium, luxury-brand transitions.
   ============================================================ */
@keyframes captionCycle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    12% {
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(0);
    }

    40% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* ============================================================
   IMAGE WRAPPERS (TECH + FIELD)
   ------------------------------------------------------------
   Used for SPI product visuals, certification documents,
   or field application photos.
   ============================================================ */
.tech-img-wrapper,
.field-img-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tech-img-wrapper img,
    .field-img-wrapper img {
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------
   Ensures readability and spacing on mobile devices.
   ============================================================ */
@media (max-width: 768px) {

    .hero-caption {
        height: 160px; /* Slightly reduced for mobile */
    }

        .hero-caption .caption h1 {
            font-size: 2rem;
        }

        .hero-caption .caption p {
            font-size: 1rem;
        }
}



/* Space between Hero and SPI Section */
.spi-section {
    margin-top: 4rem; /* Adjust as needed: 3rem, 5rem, etc. */
    margin-bottom: 3rem;
}

    /* Justified Paragraph Formatting */
    .spi-section p {
        text-align: justify;
        text-justify: inter-word;
        font-size: 1.05rem;
        line-height: 1.75;
        color: #333;
    }

/* Optional: Improve readability on large screens */
@media (min-width: 992px) {
    .spi-section p {
        max-width: 95%;
    }
}

/* Image Styling */
.spi-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

/* Title Styling */
.spi-section h3 {
    font-weight: 600;
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .spi-section {
        margin-top: 2.5rem;
    }

        .spi-section h3 {
            font-size: 1.5rem;
        }

        .spi-section p {
            font-size: 1rem;
        }
}

.spi-section p {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}


/* ============================================================
   APPROVALS SECTION — PURE CSS GRID
   ============================================================ */
.spi-approvals-section {
    padding: 4rem 1rem;
    background-color: #f9f9f9;
}

    .spi-approvals-section .section-title {
        font-size: 2rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 2rem;
        color: #222;
    }

/* Grid container */
.approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual card */
.approval-card {
    background: #fff;
    border-left: 4px solid #007bff;
    padding: 1.5rem 1.8rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

    /* Card title */
    .approval-card h4 {
        font-weight: 700;
        font-size: 1.15rem;
        margin-bottom: 1rem;
        color: #1a1a1a;
    }

    /* Card list */
    .approval-card ul {
        padding-left: 1.2rem;
        margin: 0;
    }

        .approval-card ul li {
            margin-bottom: 0.6rem;
            font-size: 1rem;
            color: #333;
        }

/* Responsive tweaks */
@media (max-width: 768px) {
    .spi-approvals-section {
        padding: 2.5rem 1rem;
    }

        .spi-approvals-section .section-title {
            font-size: 1.6rem;
        }

    .approval-card {
        padding: 1.2rem 1.4rem;
    }
}

