/* ============================================================
   ESA eclipse dashboard stylesheet
   Save as: css/style.css
   ============================================================ */

   :root {
    --esa-blue: #003247;
    --esa-cyan: #00a3e0;
    --esa-dark: #08131d;
    --esa-panel: #132433;
    --esa-panel-soft: #172b3d;
    --esa-text: #ffffff;
    --esa-muted: rgba(255, 255, 255, 0.72);
    --esa-border: rgba(255, 255, 255, 0.12);
}

@font-face {
    font-family: "NotesESA";
    src: url("../fonts/NOTESESAREG.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NotesESA";
    src: url("../fonts/NOTESSTYLE-BOLDTF.TTF") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--esa-dark);
    color: var(--esa-text);
    font-family: "NotesESA", Arial, Helvetica, sans-serif;
}

img,
video,
iframe {
    display: block;
}

.dashboard-width {
    width: min(1380px, 94vw);
    margin: 0 auto;
}

/* -----------------------------
   Top navigation
   ----------------------------- */

.top-navigation {
    background: var(--esa-blue);
    border-bottom: 3px solid var(--esa-cyan);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-block,
.partner-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.esa-logo {
    height: 50px;
    width: auto;
}

.agency-name {
    color: var(--esa-text);
    font-size: 0.95rem;
}

.partner-text {
    color: var(--esa-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.partner-logo {
    max-height: 48px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 4px;
    padding: 6px 8px;
}

/* -----------------------------
   Hero banner
   ----------------------------- */

.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #001b2e;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 25, 45, 0.24),
        rgba(0, 25, 45, 0.14),
        rgba(0, 25, 45, 0.06)
    );
}

.hero-layout {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px 0;
    color: var(--esa-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    color: var(--esa-text);
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    letter-spacing: -0.02em;
}

.title-rule {
    width: 84px;
    height: 5px;
    margin: 24px 0 20px 0;
    background: var(--esa-cyan);
    border-radius: 999px;
}

.hero-text {
    max-width: 560px;
    margin: 0;
    color: var(--esa-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* -----------------------------
   Countdown
   ----------------------------- */

.countdown-card {
    width: 390px;
    padding: 24px;
    color: var(--esa-text);
    background: rgba(0, 27, 46, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.countdown-card h2 {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.countdown-item {
    padding: 12px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.countdown-item strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.countdown-item span {
    display: block;
    margin-top: 5px;
    color: var(--esa-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-date {
    margin: 18px 0 0 0;
    color: var(--esa-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* -----------------------------
   Dashboard panels
   ----------------------------- */

.dashboard-section {
    padding: 30px 0 42px 0;
    background: var(--esa-dark);
}

.dashboard-grid {
    display: grid;
    #grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-panel {
    #padding: 18px;
    #background: var(--esa-panel);
    #border: 1px solid var(--esa-border);
    #border-radius: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;

}

.panel-heading {
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--esa-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.panel-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.media-frame {
    #height: 320px;
    flex: 1;
    overflow: hidden;
    #background: var(--esa-panel-soft);
    border-radius: 12px;
}

.media-frame img,
.media-frame video,
.youtube-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.youtube-frame iframe {
    background: #000000;
}

/* -----------------------------
   Responsive behaviour
   ----------------------------- */

@media (max-width: 900px) {
    .nav-inner {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        height: auto;
        min-height: 500px;
    }

    .hero-layout {
        padding-top: 56px;
        padding-bottom: 56px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .countdown-card {
        width: min(100%, 420px);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-block {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .media-frame {
        height: 260px;
    }
}


/* -----------------------------
   Navigation
   ----------------------------- */

.header-nav {
    display:flex;
    justify-content:center;
    align-items:center;
}

.nav-button {
    padding:10px 22px;
    border:1px solid var(--esa-cyan);
    border-radius:999px;
    color:white;
    text-decoration:none;
    font-weight:700;
}

.nav-button:hover {
    background:var(--esa-cyan);
    color:#08131d;
}

.about-page {
    padding:60px 0;
}

.about-row {
    display:grid;
    grid-template-columns:1fr 3fr;
    gap:40px;
    align-items:center;
    margin-bottom:80px;
}

.about-row.reverse {
    grid-template-columns:3fr 1fr;
}

.about-image {
    background:#0b1520;
    border-radius:16px;
    padding:12px;
}

.about-image img {
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
}

.about-content h2 {
    margin:0 0 10px 0;
    color:white;
    font-size:2rem;
}

.about-subtitle {
    color:var(--esa-cyan);
    margin-bottom:16px;
    font-weight:700;
}

.about-content p {
    color:var(--esa-muted);
    line-height:1.8;
}

@media (max-width:900px) {
    .about-row,
    .about-row.reverse {
        grid-template-columns:1fr;
    }
}

.reference-list {
    margin-top: 24px;
    padding-left: 20px;
}

.reference-list li {
    margin-bottom: 20px;
    color: var(--esa-muted);
    line-height: 1.6;
}

.reference-list strong {
    color: white;
}

.reference-list a {
    color: var(--esa-cyan);
    text-decoration: none;
}

.reference-list a:hover {
    text-decoration: underline;
}
``
