/* ===== FONT ===== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/montserrat-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --header-h: 98px; }
html, body { height: 100%; background-color: #ffffff; }
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #0a1c3b;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.75;
    min-height: 110vh;
}

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; background-color: #ffffff;
}
.top-bar {
    padding: 27px 50px 0;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.social-logos { display: flex; align-items: center; gap: 22px; }
.social-logo { height: 22px; width: auto; display: block; }
.linkedin-logo { filter: brightness(0); }
.company-logo img { height: 33px; width: auto; }

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    align-self: center;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #0a1c3b;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #ffffff;
    z-index: 1500;
    flex-direction: column;
    padding: 72px 30px 40px;
    overflow-y: auto;
    border-top: 3px solid #C39C47;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
    position: absolute;
    top: 18px; right: 22px;
    background: none; border: none;
    color: #0a1c3b; font-size: 26px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}
.mobile-nav-section {
    color: #C39C47;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 28px;
    margin-bottom: 6px;
}
.mobile-nav a {
    color: #0a1c3b;
    text-decoration: none;
    font-size: 17px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(195, 156, 71, 0.15);
    display: block;
    transition: color 0.2s ease;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: #C39C47; }

/* ===== DESKTOP NAV ===== */
.main-nav {
    padding: 9px 0 18px;
    position: relative;
}
.nav-container {
    width: 60%; margin-left: 15%; margin-right: 25%;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-main {
    color: #0a1c3b;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-main:hover, .nav-main.active { color: #C39C47; }

/* ===== DROPDOWN ===== */
.dropdown {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background-color: #ffffff;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.28s ease, visibility 0s linear 0.28s;
    padding: 9px 50px 18px;
    border-bottom: 3px solid #C39C47;
    z-index: 999;
}
.dropdown.show {
    clip-path: inset(0 0 0% 0);
    visibility: visible;
    transition: clip-path 0.28s ease, visibility 0s linear;
}
.dropdown:not(.show) { pointer-events: none; }
.dropdown-content {
    width: 60%; margin: 0 auto 0 15%;
    display: flex; flex-direction: column; gap: 14px;
}
#invest-dropdown .dropdown-content { margin-left: 35%; }
.dropdown a {
    color: #0a1c3b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 16px;
}
.dropdown a:hover, .dropdown a.active { color: #C39C47; }

/* ===== DIVIDER ===== */
.nav-divider { width: 100%; height: 3px; background-color: #C39C47; margin: 0; }

/* ===== MAIN ===== */
main { flex: 1; padding-top: var(--header-h); }

/* ===== HERO ===== */
.hero { width: 100%; position: relative; }
.hero-img { width: 100%; height: auto; display: block; }

/* Home: photo fills the screen under the header and runs 32px past the fold. */
body.home { min-height: 0; height: auto; }
body.home main { flex: none; }
body.home .hero {
    height: calc(100vh - var(--header-h) + 32px);
    height: calc(100dvh - var(--header-h) + 32px);
    overflow: hidden;
}
body.home .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== PAGE TITLE ===== */
.page-title {
    color: #C39C47;
    margin-left: 15%;
    margin-top: 50px;
    margin-bottom: 0;
}
.vision-text h3 {
    color: #C39C47;
    margin: 0 0 14px;
    font-size: 20px;
}

/* ===== CONTENT ===== */
.vision-section { padding: 60px 0 80px; }
.vision-text { margin-left: 15%; margin-right: 25%; }
.vision-text p {
    text-align: justify;
    font-size: 17px;
    color: #0a1c3b;
    margin-bottom: 32px;
}
.vision-text p:last-child { margin-bottom: 0; }

/* ===== MANAGEMENT ROWS ===== */
.management-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 32px;
}
.management-row img { flex-shrink: 0; }

/* ===== IMPACT ROWS ===== */
.impact-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}
.impact-row .text-block { flex: 1; }
.impact-row .text-block p { margin-bottom: 0; }
.impact-row img { width: 190px; height: auto; flex-shrink: 0; }

/* ===== IMPRINT LAYOUT ===== */
.imprint-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.imprint-split .right-col { text-align: right; }

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; margin: 20px 0; color: #0a1c3b; }
th, td { padding: 7px; text-align: left; vertical-align: top; }
th { background-color: #0a1c3b; color: #C39C47; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== FOOTER ===== */
footer {
    background-color: #ffffff;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
    width: 100%;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 55px 0;
    width: 100%;
    box-sizing: border-box;
}
.footer-address {
    color: rgba(10, 28, 59, 0.55);
    font-size: 14px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.imprint-link {
    color: #0a1c3b;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}
.imprint-link:hover { color: #C39C47; }

/* ===== ANIMATIONS ===== */
@keyframes revealLeftToRight {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
.slide-in-left { clip-path: inset(0 100% 0 0); }

/* slide-block is the general-purpose class for any new content block that
   should animate left-to-right on scroll. Add it to any new element that
   needs the reveal animation (e.g. toggle bars, feature blocks, banners). */
.page-title.in-view,
.vision-text p.in-view,
.vision-text h3.in-view,
.vision-text ul.in-view,
.table-scroll.in-view,
.imprint-split.in-view,
.slide-block.in-view {
    animation: revealLeftToRight 0.5s ease-out var(--reveal-delay, 0ms) both;
}
/* Titles reveal more slowly for visual weight */
.page-title.in-view {
    animation-duration: 1.5s;
}
/* Images fade in rather than clip-reveal */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.slide-in-photo.in-view {
    animation: fadeIn 0.8s ease-out var(--reveal-delay, 0ms) both;
}


/* ===== NUMBERED SECTIONS ===== */
.numbered-section {
    margin-bottom: 48px;
}
.numbered-section:last-child {
    margin-bottom: 0;
}

/* ===================================================
   RESPONSIVE: TABLET  769px – 1200px
   =================================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .top-bar { padding: 22px 30px 0; }
    .nav-container { width: 75%; margin-left: 12%; margin-right: 13%; }
    .dropdown-content { margin-left: 12%; }
    #invest-dropdown .dropdown-content { margin-left: 30%; }
    .vision-text { margin-left: 12%; margin-right: 12%; }
    .page-title { margin-left: 12%; }
    .vision-section { padding: 20px 0 70px; }
    .imprint-link { margin-right: 30px; }
}

/* ===================================================
   RESPONSIVE: MOBILE  ≤ 768px
   =================================================== */
@media (max-width: 768px) {
    /* Header */
    .top-bar { padding: 16px 20px 0; align-items: center; }
    .social-logos { gap: 16px; }
    .social-logo { height: 18px; }
    .company-logo img { height: 23px; }

    /* Menu button stays in the logo row. Hide the empty desktop link row. */
    .hamburger { display: flex; }
    .main-nav { display: none; }
    :root { --header-h: 48px; }

    /* Content layout */
    .vision-section { padding: 14px 20px 50px; }
    .vision-text { margin-left: 0; margin-right: 0; }
    .vision-text p { font-size: 15px; }

    /* Page titles — override inline font-size too */
    .page-title {
        margin-left: 0 !important;
        font-size: 26px !important;
        margin-top: 28px;
        padding: 0 20px;
    }

    /* Management: stack photo + text */
    .management-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .management-row img { width: 120px !important; }

    /* Impact: stack rows */
    .impact-row { flex-direction: column; gap: 16px; align-items: flex-start; }
    .impact-row img { width: 120px; align-self: center; }

    /* Imprint: stack side-by-side */
    .imprint-split { flex-direction: column; gap: 16px; }
    .imprint-split .right-col { text-align: left; }

    /* Other tables can scroll. The criteria table stacks instead. */
    table { min-width: 460px; }
    table.criteria-table { min-width: 0; }

    /* Footer */
    .footer-bottom { padding: 10px 20px 0; flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Scroll arrow */
    #scroll-arrow { right: 5%; font-size: 24px; }

}

/* ===================================================
   RESPONSIVE: SMALL MOBILE  ≤ 480px
   =================================================== */
@media (max-width: 480px) {
    .top-bar { padding: 12px 16px 0; }
    .company-logo img { height: 20px; }
    .social-logo { height: 16px; }
    .social-logos { gap: 12px; }
    .vision-text p { font-size: 14px; }
    .page-title { font-size: 22px !important; }
    .vision-section { padding: 12px 16px 40px; }
    .footer-address { font-size: 14px; }
    .imprint-link { font-size: 14px; }
    :root { --header-h: 44px; }
}

