/* =========================================================
   Reset & base
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    color: #1f2933;
    background: #ffffff;
}

/* =========================================================
   Split hero (desktop: fullscreen, no page scroll)
   ========================================================= */

.split-hero.refined {
    display: grid;
    grid-template-columns: 58% 42%;
    height: 100vh;
    overflow: hidden;
}

/* =========================================================
   Image side
   ========================================================= */

.split-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.split-image .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.split-image .slide:first-child,
.split-image .slide.active {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.25) 70%,
        rgba(0,0,0,0.45) 100%
    );
    pointer-events: none;
}

/* =========================================================
   Content side
   ========================================================= */

.split-content {
    background: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
}

/* IMPORTANT:
   default behaviour for homepage (footer pushed down) */
.content-inner {
    max-height: 100%;
    overflow-y: auto;

    max-width: 420px;
    margin: 0 auto;
    padding: 4rem 0 3rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

/* =========================================================
   Legal pages: natural flow + scrolling
   ========================================================= */

.content-inner.legal-page {
    justify-content: flex-start;
}

/* =========================================================
   Language switcher
   ========================================================= */

.language-switcher {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1rem;
    letter-spacing: 0.3rem;
}

.language-switcher a {
    text-decoration: none;
    opacity: 0.5;
}

.language-switcher a:hover {
    opacity: 1;
}

/* =========================================================
   Typography
   ========================================================= */

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.tagline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    margin-bottom: 2.5rem;
}

.text-block {
    color: #374151;
}

.text-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: clamp(32ch, 100%, 42ch);
    margin: 0 auto 1.8rem;
}

.text-block p:first-child {
    font-size: 0.95rem;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.location {
    margin-top: 2rem;
    font-style: italic;
}

/* =========================================================
   Buttons & helper text
   ========================================================= */

.buttons {
    margin-top: clamp(3.5rem, 8vh, 6rem);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid #1f2933;
    margin: 0 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #1f2933;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border-color: #9ca3af;
}

.btn:hover {
    opacity: 0.85;
}

.helper-text {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #6b7280;
}

/* =========================================================
   Panel footer (legal + credits)
   ========================================================= */

.panel-footer {
    margin-top: clamp(2rem, 6vh, 4rem);
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.4;
}

.panel-footer a {
    color: inherit;
    text-decoration: underline;
}

.image-credits {
    margin-top: 0.4rem;
}


/* =========================================================
   Mobile (allow full page scroll)
   ========================================================= */

@media (max-width: 900px) {
    .split-hero.refined {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .split-image {
        min-height: 45vh;
    }

    .content-inner {
        max-height: none;
        overflow: visible;
        padding: 3rem 2rem;
    }

    .language-switcher {
        right: 1.5rem;
    }
}

/* =========================================================
   Accessibility: reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .split-image .slide {
        transition: none;
    }
}
