/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
    --navy:          #152857;
    --orange:        #a6b2c9;
    --turquoise:   rgba(46,140,164,1.0);
    --teal:          #63b8f8;
    --lblue:         #5bbad6;
    --toc-btn:       #2E8CA4;
    --toc-btn-hover: #3aa5bf;
    --border:        #c5d5e8;
    --text:          #3c3c3c;
    --text-mid:      #525252;
    --text-light:    #888;
    --bg-page:       #eef1f5;
    --nav-h:         48px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--text);
    background: var(--bg-page);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    position: relative;
    background-color: #ffffff;
    background-image: url('../assets/images/full_header_ImgID1.png');
    background-size: 70% auto;
    background-position: right center;
    background-repeat: no-repeat;
    overflow: hidden;
    height: 130px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dde4ed;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 28px 0 40px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.logo-header-img {
    height: 52px;
    width: auto;
}

.logo-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,40,100,0.18));
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-name {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-seven {
    /* no colour change per PDF — all navy */
    color: var(--navy);
}

.logo-tagline {
    font-size: 11.5px;
    color: #000;
    line-height: 1.45;
    font-style: italic;
}

/* ============================================================
   COMPACT STICKY HEADER
   ============================================================ */
.compact-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 42px;
    background-color: #fff;
    background-image:
        linear-gradient(to right, rgba(255,255,255,1) 22%, rgba(255,255,255,0) 55%),
        url('../assets/images/full_header_small_scroll_ImgID1.png');
    background-size: 100%, 40% auto;
    background-position: right top;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    padding: 0 18px 0 40px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.compact-header.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.compact-inner {
    width: 100%;
    display: flex;
    align-items: center;
}

.compact-logo-group {
    display: flex;
    align-items: center;
    gap: 9px;
}

.compact-logo-img {
    height: 24px;
    width: auto;
}

.compact-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.3px;
    line-height: 1;
}

.compact-seven {
    color: var(--navy);
}

.compact-top-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.55);
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.compact-top-btn:hover {
    background: rgba(255,255,255,0.82);
}

.compact-top-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ============================================================
   NAV BAR  (scrolls with page — no longer sticky)
   ============================================================ */
.main-nav {
    position: relative;
    z-index: 1000;
    background: var(--navy);
    height: var(--nav-h);
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px 0 206px;
    gap: 2px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    padding: 7px 14px;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

/* ============================================================
   PAGE BODY  — flex row: toc | content
   ============================================================ */
.page-body {
    display: flex;
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 14px;
    gap: 20px;
}

/* ============================================================
   TOC SIDEBAR
   ============================================================ */
.toc-col {
    width: 172px;
    flex-shrink: 0;
}

.toc-sticky {
    /* position managed by JS sticky logic in main.js */
}

.toc-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--turquoise);
    text-align: right;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    margin-bottom: 11px;
    padding-right: 2px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-link {
    display: block;
    background: var(--toc-btn);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 3px;
    line-height: 1.3;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.toc-link:hover,
.toc-link.active {
    background: var(--toc-btn-hover);
}

/* ============================================================
   CONTENT COLUMN
   ============================================================ */
.content-col {
    flex: 1;
    min-width: 0;
}

.content-panel {
    background: #ffffff;
    border-left:  2px solid #2E8CA4;
    border-right: 2px solid #2E8CA4;
    border-top:   2px solid #2E8CA4;
}

/* ============================================================
   INDIVIDUAL CONTENT SECTIONS
   ============================================================ */
.c-section {
    padding: 32px 32px 40px;
    border-bottom: 1px solid #e8edf3;
}

.c-section:last-child {
    border-bottom: none;
}

/* Section header row: icon + title */
.c-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 8px;
}

.c-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.c-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* Dashed orange rule below section heading */
.c-rule {
    border: none;
    border-top: 2px dashed var(--turquoise);
    margin: 10px 0 22px;
}

/* Body text */
.c-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.c-body p:last-child {
    margin-bottom: 0;
}

.c-body ul {
    margin: 0 0 16px 0;
    padding-left: 1.5em;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-mid);
}

/* ============================================================
   FIGURES
   ============================================================ */
.figure-block {
    margin: 22px 0;
    text-align: center;
}

.figure-block img,
.figure-block svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   LOTTIE ANIMATION
   ============================================================ */
#lottie-animation {
    width: 105%;
    margin-left: -2.5%;
}

/* ============================================================
   ZONES REFERENCE GRID (below the animation)
   ============================================================ */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 18px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #f5f8fb;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.zone-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zone-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.zone-epsg {
    font-family: monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--turquoise);
}

/* ============================================================
   BENEFITS LIST  (what for? section)
   ============================================================ */
.benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.benefit-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.benefit-text em {
    display: block;
    font-size: 16px;
    font-style: italic;
    color: var(--turquoise);
    line-height: 1.4;
}

/* ============================================================
   INLINE TEXT LINKS
   ============================================================ */
.text-link {
    color: var(--toc-btn);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(46,140,164,0.4);
    transition: color 0.15s;
}

.text-link:hover {
    color: var(--orange);
    text-decoration-color: rgba(232,99,42,0.38);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 14px 36px;
}

.footer-inner {
    /* indent to align under the content panel (toc-col width + gap) */
    margin-left: calc(172px + 20px);
    border-top: 2px solid #2E8CA4;
    background: #fff;
    padding: 14px 28px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid #2E8CA4;
    border-left:   2px solid #2E8CA4;
    border-right:  2px solid #2E8CA4;
}

.footer-copy {
    font-size: 10.5px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Logo group on the left side of footer */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.tuwien-badge,
.eodc-badge {
    flex-shrink: 0;
    display: block;
}

.tuwien-badge img,
.eodc-badge img {
    display: block;
    height: 52px;
    width: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 740px) {
    .toc-col { display: none; }
    .page-body { padding: 0 8px; }
    .site-footer { padding: 0 8px 36px; }
    .footer-inner { margin-left: 0; }
    .zones-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-inner { padding: 0 18px; }
}

@media (max-width: 480px) {
    .logo-header-img { height: 38px; }
    .site-header { height: 90px; }
    .zones-grid { grid-template-columns: 1fr; }
}
