/* =========================================
   NEPL | About Page — Institutional Styles
   ========================================= */

/* --- Page-Level Overrides --- */
body {
    background-color: var(--color-white);
    color: var(--color-gray-dark);
}

/* --- Active Navigation Indicator --- */
.nav-item.active-page {
    opacity: 1 !important;
    color: var(--color-green-accent) !important;
    position: relative;
}

.nav-item.active-page::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-green-accent);
}

/* --- Section Labels --- */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-green-accent);
    margin-bottom: 1.5rem;
    max-width: none;
}

/* --- Reveal Animation System (Progressive Enhancement) ---
   Content is VISIBLE by default. Animations only activate
   after JS adds .js-ready to the body. No blank screens ever. */

.js-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 450ms cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 450ms cubic-bezier(0.25, 0.8, 0.25, 1);
    backface-visibility: hidden;
}

.js-ready .reveal.revealed,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.js-ready .reveal.delay-1 {
    transition-delay: 80ms;
}

.js-ready .reveal.delay-2 {
    transition-delay: 160ms;
}

.js-ready .reveal.delay-3 {
    transition-delay: 240ms;
}

.js-ready .reveal.delay-4 {
    transition-delay: 320ms;
}

/* Force-visible fallback: applied by JS timeout if IntersectionObserver fails */
.force-visible .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== Section 1 — About Hero ===== */
.about-hero {
    padding-top: calc(var(--spacing-xl) + 100px);
    /* Account for fixed navbar */
    padding-bottom: var(--spacing-xl);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-black);
    margin-bottom: 2rem;
    line-height: 1.05;
}

.about-hero-sub {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Section 2 — Vision ===== */
.vision-block {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.vision-statement {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.vision-subtext {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Section 3 — Mission ===== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.split-left h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-black);
    line-height: 1.25;
    text-transform: none;
    letter-spacing: -0.01em;
}

.split-right p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.mission-pillars {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.pillar {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-green-accent);
    color: var(--color-green-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== Section 4 — Core Values ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.value-card {
    padding: 2rem 1.5rem;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.value-card h3 {
    font-size: 1.1rem;
    color: var(--color-black);
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.925rem;
    line-height: 1.6;
}

.values-footer {
    text-align: center;
    font-style: italic;
    color: var(--color-gray-dark);
    opacity: 0.7;
    font-size: 1rem;
}

/* ===== Section 5 — Industry Matters ===== */
.industry-block {
    position: relative;
    overflow: hidden;
}

.industry-stat {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: -2rem;
    letter-spacing: -0.03em;
    pointer-events: none;
    user-select: none;
}

.industry-content {
    position: relative;
    max-width: 800px;
}

.industry-content h2 {
    margin-bottom: 2rem;
}

.industry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== Section 6 — Contribution ===== */
.contribution-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.contribution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-left: 2px solid var(--color-green-accent);
    background-color: var(--color-white);
}

.contribution-item svg {
    flex-shrink: 0;
    color: var(--color-green-accent);
    margin-top: 2px;
}

.contribution-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.contribution-footer {
    text-align: center;
    font-weight: 600;
    color: var(--color-green-accent);
    font-size: 1.05rem;
}

/* ===== Section 7 — Operational Segments ===== */
.operational-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.op-block {
    padding: 2.5rem 2rem;
    border-top: 2px solid var(--color-green-accent);
    background-color: var(--color-gray-light);
}

.op-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    line-height: 1;
}

.op-block h3 {
    font-size: 1.15rem;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.op-block p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.op-footer {
    text-align: center;
    font-style: italic;
    color: var(--color-gray-dark);
    font-size: 1rem;
}

/* ===== Section 8 — Technology (Dark) ===== */
.about-dark-section {
    background-color: var(--color-black) !important;
    border-bottom: none !important;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tech-item {
    padding: 2rem;
}

.tech-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-green-accent);
    margin-bottom: 1.5rem;
}

.tech-item h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tech-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3rem;
    font-style: italic;
    font-size: 1rem;
}

/* ===== Section 9 — Strengths ===== */
.strengths-list {
    max-width: 700px;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.strength-marker {
    width: 8px;
    height: 8px;
    background-color: var(--color-green-accent);
    flex-shrink: 0;
}

.strength-item p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.strengths-coda {
    font-weight: 600;
    color: var(--color-green-accent);
    font-size: 1.05rem;
    max-width: 600px;
}

/* ===== Section 10 — Geography ===== */
.geo-layout {
    max-width: 800px;
}

.infra-features {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-green-accent);
}

.infra-features p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.geo-location {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.geo-pin {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.geo-pin svg {
    color: var(--color-green-accent);
    flex-shrink: 0;
}

.geo-pin strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-black);
}

.geo-pin span {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.geo-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-dark);
}


/* ===== Section 11 — Certifications ===== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.cert-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: border-color 300ms ease;
}

.cert-item:hover {
    border-color: var(--color-green-accent);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    cursor: pointer;
    user-select: none;
}

.cert-header h3 {
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 0;
}

.cert-logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cert-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Ensures white backgrounds blend cleanly into the background */
    opacity: 0.9;
    filter: grayscale(100%);
    /* Maintain professional aesthetic conformity */
    transition: filter 300ms ease, opacity 300ms ease;
}

.cert-item:hover .cert-logo {
    filter: grayscale(20%);
    opacity: 1;
}

.cert-chevron {
    color: var(--color-gray-dark);
    transition: transform 300ms ease;
    flex-shrink: 0;
}

.cert-item.open .cert-chevron {
    transform: rotate(180deg);
}

.cert-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms cubic-bezier(0.25, 0.8, 0.25, 1),
        padding 350ms cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 1.5rem;
}

.cert-item.open .cert-body {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.cert-body p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Environmental Responsibility */
.env-responsibility {
    padding: 3rem 0;
    border-top: 1px solid var(--color-gray-light);
    margin-bottom: 3rem;
}

.env-responsibility h3 {
    color: var(--color-black);
    margin-bottom: 2rem;
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.env-grid p {
    padding-left: 1rem;
    border-left: 2px solid var(--color-green-accent);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.env-note {
    font-weight: 600;
    color: var(--color-green-accent);
    font-size: 1rem;
}

/* Standards Block */
.standards-block {
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray-light);
}

.standards-block h3 {
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.standards-block p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Section 12 — Origin Story ===== */
.about-origin {
    padding-top: var(--spacing-xl);
    padding-bottom: calc(var(--spacing-xl) + 2rem);
}

.story-blocks {
    max-width: 750px;
    margin-top: 3rem;
}

.story-block {
    margin-bottom: 2.5rem;
}

.story-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.story-highlight {
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--color-green-accent);
    background-color: var(--color-white);
}

.story-highlight p {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
}

/* ===== Footer ===== */
.about-footer {
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    border-bottom: none !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive — Medium screens (nav wrapping) ===== */
@media (max-width: 1200px) {

    /* Nav links wrap below logo at medium widths */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding: 0.75rem 0 0.5rem 0;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links .nav-item {
        white-space: nowrap;
    }

    .nav-actions {
        display: none;
    }

    /* Increase hero padding to account for taller wrapped navbar */
    .about-hero {
        padding-top: calc(var(--spacing-xl) + 140px);
    }
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contribution-list {
        grid-template-columns: 1fr;
    }

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

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

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
    .about-hero {
        padding-top: calc(var(--spacing-xl) + 120px);
        min-height: auto;
    }

    .about-hero-content h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-pillars {
        flex-wrap: wrap;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .industry-stat {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}

/* --- Directors Grid & Hover Effect --- */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.director-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--color-white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    cursor: pointer;
}

.director-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    color: #94a3b8;
}

.director-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 79, 44, 0.95) 0%, rgba(15, 79, 44, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.director-card:hover .director-info-overlay {
    opacity: 1;
}

.director-info-content h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
    opacity: 0;
}

.director-info-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s, opacity 0.4s ease 0.15s;
    opacity: 0;
}

.director-card:hover .director-info-content h3,
.director-card:hover .director-info-content p {
    opacity: 1;
    transform: translateY(0);
}