/* ============================================================
   PROJECT ATMOS | ATMOS OASIS
   COMMUNITY IMPACT PAGE — impact.css

   TABLE OF CONTENTS

   01. Page Colors and Background
   02. Matrix Animation and Page Layers
   03. Layout and Accessibility
   04. Branding and Navigation
   05. Introduction
   06. Shared Holographic Panels
   07. Community Benefit Cards
   08. Seasonal Comfort Goals
   09. Climate Chart and Data Table
   10. Contact Call to Action
   11. Footer
   12. Responsive Layouts
   ============================================================ */


/* ============================================================
   01. PAGE COLORS AND BACKGROUND
   ============================================================ */

body.impact-page {
    --gold: #b8ff77;
    --pale-gold: #e3ffc2;
    --edge: rgba(184, 255, 119, 0.46);

    position: relative;
    isolation: isolate;
    min-height: 100vh;

    background: #050709;
    color: var(--ink, #ede8dc);
}

body.impact-page *,
body.impact-page *::before,
body.impact-page *::after {
    box-sizing: border-box;
}


/* ============================================================
   01. FIXED ATLANTA BACKGROUND
   ============================================================ */

body.impact-page::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: 0;
    pointer-events: none;

    background-color: #050709;

    background-image:
        url("./assets/phase-atmospheres/impact.png");

    background-size: 100% auto;
    background-position: center -450px;
    background-repeat: no-repeat;
    background-attachment: fixed;

    opacity: 1;
}

/* ============================================================
   TRANSPARENT ATMOSPHERE LAYER
   ============================================================ */

body.impact-page .atmosphere {
    position: fixed;
    inset: 0;

    z-index: 1;
    pointer-events: none;

    background: rgba(0, 0, 0, 0.08);
}


/* ============================================================
   MATRIX ANIMATION LAYER
   ============================================================ */

body.impact-page #matrix {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 2;

    pointer-events: none;
    background: transparent;
    opacity: 0.35;

}

/* ============================================================
   WEBSITE CONTENT LAYER
   ============================================================ */

body.impact-page .impact-shell {
    position: relative;
    z-index: 3;
}


/* ============================================================
   03. LAYOUT AND ACCESSIBILITY
   ============================================================ */

.impact-shell {
    width: min(1050px, calc(100% - 42px));
    margin: 0 auto;
}

/* Keyboard skip navigation */

.impact-skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 100;

    padding: 10px 14px;

    background: #dfffbc;
    color: #08090b;
}

.impact-skip-link:focus {
    top: 10px;
}

/* Keyboard focus indicators */

.impact-page a:focus-visible,
.impact-page summary:focus-visible {
    outline: 2px solid #dfffbc;
    outline-offset: 4px;
}


/* ============================================================
   04. BRANDING AND NAVIGATION
   ============================================================ */

/* Header */

.impact-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 16px;
    padding: 27px 0 18px;

    border-bottom: 1px solid var(--edge);
}

/* Project Atmos logo and name */

.impact-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--pale-gold);

    font: 600 19px var(--display, Georgia, serif);
    letter-spacing: 2px;
    text-decoration: none;
}

.impact-brand-logo {
    width: 54px;
    height: 54px;

    flex-shrink: 0;
    object-fit: contain;
}

/* Navigation links */

.impact-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.impact-navigation a {
    display: inline-flex;
    align-items: center;

    min-height: 44px;
    padding: 10px 17px;

    border: 1px solid var(--edge);
    border-radius: 8px;

    color: var(--gold);
    text-decoration: none;
}

.impact-navigation a:hover,
.impact-navigation a:focus-visible {
    background: rgba(158, 255, 94, 0.12);
}


/* ============================================================
   05. INTRODUCTION
   ============================================================ */

/* Main introduction container */

.impact-intro {
    padding: 64px 15px 37px;
    text-align: center;
}

/* Small uppercase section labels */

.impact-eyebrow,
.impact-kicker {
    color: var(--gold);

    font: 700 11px var(--subheading, Arial, sans-serif);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main heading */

.impact-intro h1 {
    margin: 15px auto 12px;

    color: var(--pale-gold);

    font: 600 clamp(38px, 6.5vw, 65px) var(--display, Georgia, serif);
}

/* Introduction tagline */

.impact-intro-lede {
    max-width: 830px;
    margin: 0 auto 25px;

    color: #cfff99;

    font: italic 500 clamp(20px, 2.8vw, 27px) var(--serif, Georgia, serif);

    line-height: 1.5;
}

/* Introduction paragraph */

.impact-intro-copy {
    max-width: 760px;
    margin: 0 auto;

    color: #e5e2db;

    font-size: 18px;
    line-height: 1.85;
}


/* ============================================================
   06. SHARED HOLOGRAPHIC PANELS
   ============================================================ */

/* Shared styling for large panels and small cards */

.impact-panel,
.impact-mini-panel {
    background: rgba(6, 9, 12, 0.94);

    border: 1px solid rgba(200, 255, 144, 0.88);
    border-radius: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 235, 179, 0.27),
        inset 0 0 28px rgba(158, 255, 94, 0.07),
        0 5px 0 rgba(47, 87, 20, 0.77),
        0 22px 40px rgba(0, 0, 0, 0.73),
        0 42px 75px rgba(0, 0, 0, 0.57),
        0 0 42px rgba(158, 255, 94, 0.29);

    transform: translateY(-7px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Large content panels */

.impact-panel {
    max-width: 935px;
    margin: 35px auto 57px;

    padding: 36px clamp(22px, 4vw, 54px);
}

/* Section headings */

.impact-panel h2,
.impact-section-heading h2 {
    margin: 12px 0;

    color: #cfff99;

    font: 700 clamp(26px, 4vw, 38px) var(--serif, Georgia, serif);

    text-align: center;
}

/* Section labels */

.impact-panel>.impact-kicker {
    text-align: center;
}

/* Standard panel paragraphs */

.impact-panel>p:not(.impact-kicker):not(.impact-qualifier):not(.impact-source):not(.impact-conclusion) {
    max-width: 730px;
    margin: 18px auto;

    font-size: 17px;
    line-height: 1.85;
}

/* Decorative green divider */

.impact-gold-rule {
    width: 88px;
    height: 1px;

    margin: 17px auto 28px;

    background:
        linear-gradient(90deg,
            transparent,
            #b8ff77,
            transparent);

    box-shadow:
        0 0 9px rgba(158, 255, 94, 0.48);
}

/* Floating panel hover effect */

@media (hover: hover) {

    .impact-panel:hover,
    .impact-mini-panel:hover {
        transform: translateY(-11px);
    }
}


/* ============================================================
   07. COMMUNITY BENEFIT CARDS
   ============================================================ */

/* Who Could Benefit section */

.impact-benefits {
    margin: 48px auto 64px;
}

.impact-section-heading {
    text-align: center;
}

.impact-section-heading p:last-child {
    max-width: 680px;
    margin: 10px auto 29px;

    font-size: 17px;
    line-height: 1.7;
}

/* Three-column community cards */

.impact-benefit-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
    padding: 12px 6px 0;
}

/* Individual cards */

.impact-mini-panel {
    min-width: 0;
    padding: 29px 25px;
}

.impact-mini-panel h3 {
    margin: 0 0 14px;

    color: #cfff99;

    font: 700 23px var(--serif, Georgia, serif);
}

.impact-mini-panel p {
    margin: 0;

    color: #e5e2db;

    font-size: 16px;
    line-height: 1.75;
}

/* Accessibility and project-status disclaimer */

.impact-qualifier {
    max-width: 780px;
    margin: 22px auto 8px;

    color: #cfc9c0;

    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}


/* ============================================================
   08. SEASONAL COMFORT GOALS
   ============================================================ */

/* Three seasonal design goals */

.impact-goals {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

/* Individual goal panels */

.impact-goals>div {
    padding: 18px 16px;

    background: #111a10;

    border: 1px solid rgba(158, 255, 94, 0.28);
    border-radius: 9px;
}

.impact-goals h3 {
    margin: 0 0 9px;

    color: #b8ff77;

    font: 700 20px var(--serif, Georgia, serif);
}

.impact-goals p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;
}


/* ============================================================
   09. CLIMATE CHART AND DATA TABLE
   ============================================================ */

/* Main climate chart container */

.impact-chart-figure {
    margin: 28px auto 17px;
    padding: 24px 18px 14px;

    background: #0a1209;

    border: 1px solid rgba(158, 255, 94, 0.37);
    border-radius: 11px;
}

/* Chart title */

.impact-chart-figure figcaption {
    margin-bottom: 29px;

    color: #b8ff77;

    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* Allows chart scrolling on smaller screens */

.impact-chart-scroll {
    overflow-x: auto;
    padding: 10px 2px;
}

/* Twelve monthly bars */

.impact-chart {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(44px, 1fr));

    gap: 10px;

    min-width: 690px;
    height: 250px;
}

/* Each month */

.impact-chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
    min-width: 0;
}

/* Bar track */

.impact-chart-track {
    display: flex;
    align-items: flex-end;

    width: 100%;
    height: 198px;

    border-bottom:
        1px solid rgba(158, 255, 94, 0.65);
}

/* Temperature bar */

.impact-chart-bar {
    position: relative;
    display: block;

    width: 100%;

    background:
        linear-gradient(90deg,
            #3d6d16,
            #8ade3a 48%,
            #e6ffc3 63%,
            #5a9123);

    border: 1px solid #b8ff77;
    border-radius: 5px 5px 0 0;

    box-shadow:
        0 0 14px rgba(158, 255, 94, 0.23);
}

/* Temperature labels above bars */

.impact-chart-bar span {
    position: absolute;

    bottom: calc(100% + 5px);
    left: 50%;

    transform: translateX(-50%);

    color: #ede8dc;

    font: 700 10px var(--sans, Arial, sans-serif);
    white-space: nowrap;
}

/* Month labels */

.impact-chart-item small {
    color: #dcd5ca;
    font-size: 12px;
}

/* Chart explanation */

.impact-chart-note {
    margin: 14px 4px 0;

    color: #bdb6ad;

    font-size: 12px;
    line-height: 1.6;
}

/* Expandable temperature data table */

.impact-data-table {
    margin: 14px auto 20px;
}

.impact-data-table summary {
    padding: 10px;

    color: #b8ff77;

    cursor: pointer;
    font-size: 15px;
}

.impact-data-table table {
    width: 100%;
    max-width: 640px;

    margin: 12px auto;

    border-collapse: collapse;
    font-size: 14px;
}

.impact-data-table caption {
    padding: 8px;
    font-size: 13px;
}

.impact-data-table th,
.impact-data-table td {
    padding: 8px 14px;

    border-bottom:
        1px solid rgba(158, 255, 94, 0.20);

    text-align: left;
}

.impact-data-table td {
    text-align: right;
}

/* NOAA source information */

.impact-source {
    color: #cfc8bd;

    font-size: 13px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.impact-source a {
    color: #cfff99;

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   10. CONTACT CALL TO ACTION
   ============================================================ */

.impact-cta {
    text-align: center;
}

.impact-cta>p:not(.impact-kicker):not(.impact-conclusion) {
    text-align: left;
}

/* Final message */

.impact-conclusion {
    max-width: 660px;
    margin: 25px auto;

    color: #b8ff77;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.65;
}

/* Share Your Perspective button */

.impact-contact-link {
    display: inline-flex;
    align-items: center;

    min-height: 48px;
    padding: 11px 22px;

    background:
        linear-gradient(#463521, #17120f);

    border: 1px solid #dfffbc;
    border-radius: 9px;

    box-shadow:
        0 0 24px rgba(158, 255, 94, 0.25);

    color: #dfffbc;

    font: 700 13px var(--subheading, Arial, sans-serif);

    letter-spacing: 0.6px;
    text-decoration: none;
}

.impact-contact-link:hover,
.impact-contact-link:focus-visible {
    background:
        linear-gradient(#5f482c, #231811);
}


/* ============================================================
   11. FOOTER
   ============================================================ */

/* Footer container */

.impact-footer {
    margin-top: 30px;
    padding: 23px 0 30px;

    border-top: 1px solid var(--edge);

    color: var(--gold);

    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

/* Project Atmos tagline */

.impact-footer-tagline {
    margin-bottom: 18px;

    color: #b8ff77;

    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.8;
}

/* Copyright */

.impact-footer-copyright {
    padding-top: 16px;

    border-top:
        1px solid rgba(184, 255, 119, 0.35);

    color: #d8f5c5;

    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.8;
}


/* ============================================================
   12. RESPONSIVE LAYOUTS
   ============================================================ */

/* Tablet screens */

@media (max-width: 760px) {

    .impact-benefit-grid,
    .impact-goals {
        grid-template-columns: 1fr;
    }

    .impact-intro {
        padding-top: 43px;
    }

    .impact-panel {
        margin: 27px auto 47px;
    }
}

/* Mobile screens */

@media (max-width: 520px) {

    .impact-shell {
        width: calc(100% - 24px);
    }

    .impact-topbar {
        justify-content: center;
    }

    .impact-intro-copy,
    .impact-panel>p:not(.impact-kicker):not(.impact-qualifier):not(.impact-source):not(.impact-conclusion) {
        font-size: 16px;
    }

    .impact-mini-panel {
        padding: 24px 21px;
    }

    .impact-chart-figure {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Reduced-motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .impact-panel,
    .impact-mini-panel {
        transition: none;
    }

    .impact-panel:hover,
    .impact-mini-panel:hover {
        transform: translateY(-7px);
    }
}


/* ============================================================
   TEST — KEEP ATLANTA SKYLINE STATIONARY
   ============================================================ */

body.impact-page::before {
    animation: none !important;
    transform: none !important;
    background-attachment: fixed;
}

body.impact-page .atmosphere {
    animation: none !important;
    transform: none !important;
}
