/* --- SIDEBAR TEXT BANNER --- */
.vertical-text-banner {
    position: fixed;
    right: 2vw;
    top: 0;
    bottom: 0;
    width: 80px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 60px;
    color: var(--banner-text-color);
    opacity: 0.5;
    letter-spacing: 0.1em;
    mix-blend-mode: normal;
    height: max-content;
    /* Critical: height must be precisely the text height */

    /* Calculate precise 50% movement of its container height. */
    animation: marquee-vertical 240s linear infinite;
    /* Increased to 240s for an even gentler, more subtle movement */
}

.marquee-inner span {
    display: inline-block;
    padding-bottom: 30px;
    /* Space between the repeating strings */
}

@keyframes marquee-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 4px solid var(--text-color);
    background-color: var(--header-bg);
    font-family: var(--font-main);
    font-size: 1.067rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: var(--text-color);
    z-index: 151;
    pointer-events: none;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 30px;
    position: relative;
}

.nav-btn {
    padding: 0.467rem 1.333rem;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    margin-left: 0.667rem;
    transition: all 0.3s ease;
    background: transparent;
    font-style: italic;
}

.albert-btn {
    background-color: var(--albert-btn-bg) !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.albert-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.albert-btn:hover {
    background-color: var(--albert-btn-hover) !important;
    color: var(--text-color) !important;
}

.nav-btn.active,
.nav-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- BURGER MENU --- */
.header-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: relative;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Open State Animations */
.burger-btn.open .burger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-footer {
    display: none;
}

.burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


body.menu-open .nav-logo {
    opacity: 1;
    pointer-events: auto;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 39px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Responsive Visibility Helpers */
.nav-logo-mobile {
    display: none;
}

.nav-logo-mobile img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .nav-logo-mobile {
        display: flex;
        align-items: center;
        height: auto;
        margin: 0;
        padding: 0;
    }

    a.nav-logo-mobile.show-mobile {
        padding: 0px;
        height: 45px;
    }

    .header-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 20px;
    }

    .vertical-text-banner {
        position: absolute;
        top: 110px;
        /* Moved down 50px */
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        bottom: auto;
        overflow: hidden;
    }

    .marquee-inner {
        writing-mode: horizontal-tb;
        font-size: 2.5rem;
        height: auto;
        width: max-content;
        animation: marquee-horizontal 150s linear infinite;
        /* Much slower */
    }

    .marquee-inner span {
        padding-bottom: 0;
        padding-right: 30px;
    }
}

@keyframes marquee-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {

    /* Ensure header-inner keeps items aligned properly when date is hidden */
    .header-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.067rem 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        width: 100vw;
        height: auto;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        background-color: var(--header-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 150;
        padding: 40px;
        border-bottom: 4px solid var(--text-color);
    }

    .nav-links.open {
        display: flex !important;
    }

    /* Page-specific theming for mobile menu */
    .home-page .nav-links {
        background-color: rgba(192, 214, 237, 0.9) !important;
    }

    .nav-links .nav-btn {
        font-size: 1rem;
        padding: 10px 20px;
        width: 200px;
        /* Fixed width for uniform size */
        text-align: center;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: var(--text-color);
        border: 2px solid var(--text-color);
        border-radius: 50px;
        background: transparent;
        font-family: var(--font-main);
        text-transform: uppercase;
        font-weight: 600;
    }

    /* Standardize Albert button in mobile menu */
    .nav-links .nav-btn.albert-btn {
        background-color: transparent !important;
        gap: 10px;
    }

    .nav-links .nav-btn.albert-btn .albert-icon {
        width: 22px;
        height: 22px;
    }

    .burger-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* --- MOBILE MENU FOOTER --- */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 1.333rem;
        margin-top: 40px;
        font-family: var(--font-main);
        font-size: 14pt;
        font-weight: 300;
        text-align: center;
        text-transform: none;
    }

    .mobile-menu-footer .footer-group {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu-footer a {
        color: var(--text-color);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.3s;
    }

    .mobile-menu-footer a:hover {
        color: var(--accent-red);
    }
}

/* Contact Circle */
.contact-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: var(--font-main);
    font-size: 0.933rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    z-index: 100;
}

.contact-circle:hover {
    color: var(--bg-color);
    transform: translate(-50%, -50%) scale(1.05);
    background-color: var(--text-color);
}

.contact-circle.at-bottom {
    color: var(--bg-color);
    transform: translate(-50%, -50%) scale(1.05);
    background-color: var(--text-color);
    pointer-events: none;
}

/* Hero Bottom Information Grid */
.hero-bottom {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100vh;
    margin-top: 0 !important;
    font-size: 1rem;
    align-items: start;
    pointer-events: none;
    grid-template-rows: 1fr;
    box-sizing: border-box;
}

.hero-notice,
.hero-philosophy,
.hero-hello-image-container {
    pointer-events: auto;
}

.hero-hello-image-container {
    align-self: end;
    display: flex;
    justify-content: flex-end;
}

.hero-hello-image {
    height: 450px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease-in-out;
    margin-right: -20px;
    margin-bottom: 70px;
}

.hero-hello-image:hover {
    transform: translateY(-5px) scale(1.01);
}

.hero-notice {
    margin-top: 80px;
    /* Higher up in the hero */
}

.hero-philosophy {
    align-self: end;
    justify-self: end;
    margin-bottom: 50px;
    z-index: 10;
}

.notice-title {
    font-weight: 900;
    margin-bottom: 0.667rem;
    font-family: var(--font-heading);
    font-size: 1.333rem;
}

.notice-text {
    margin-bottom: 0.667rem;
    max-width: 250px;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.read-more {
    font-weight: 700;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    color: var(--text-color) !important;
    text-decoration: none;
    width: fit-content;
    transition: color 0.3s ease;
    /* Override inherited .albert-btn backgrounds */
    background-color: transparent !important;
}

.read-more:hover {
    color: var(--accent-red) !important;
    background-color: transparent !important;
}

.read-more .arrow {
    margin-left: 5px;
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 13.333rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.667rem;
    z-index: 100;
    font-size: 1.067rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-arrow::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 2px;
    position: absolute;
    top: 4px;
    animation: scroll-bounce 1.5s infinite;
}

@keyframes scroll-bounce {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-indicator {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator.at-bottom {
    cursor: pointer;
}

.scroll-indicator.at-bottom .scroll-arrow {
    animation: scroll-bounce-up 1.5s infinite;
}

@keyframes scroll-bounce-up {
    0% {
        transform: rotate(180deg) translateY(0);
        opacity: 1;
    }

    50% {
        transform: rotate(180deg) translateY(8px);
        opacity: 0.5;
    }

    100% {
        transform: rotate(180deg) translateY(0);
        opacity: 1;
    }
}

/* Fixed Controls & Footer */
.fixed-controls {
    position: fixed;
    bottom: 2.667rem;
    left: 30px;
    z-index: 100;
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (max-width: 1024px) {
    .fixed-controls {
        display: none !important;
    }
}

.fixed-footer {
    position: fixed;
    bottom: 2.333rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.333rem;
    font-family: var(--font-main);
    font-size: 14pt;
    font-weight: 300;
    text-align: center;
    color: var(--text-color);
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fixed-footer a {
    transition: color 0.3s;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--text-color);
}

.fixed-footer a:hover {
    color: var(--accent-red);
}

.lang-switch {
    display: flex;
    background: var(--text-color);
    border-radius: 12px;
    padding: 4px;
}

.lang-switch button {
    background: transparent;
    color: var(--bg-color);
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.933rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    font-family: var(--font-main);
    transition: background 0.3s, color 0.3s;
}

.lang-switch button.active {
    background: #d5e9ed;
    color: #111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.fixed-controls-actions {
    display: flex;
    background: transparent;
    padding: 0;
    gap: 6px;
}

.fixed-controls-actions button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: opacity 0.3s, background 0.3s;
}

.fixed-controls-actions button:hover {
    opacity: 0.7;
}


/* ── SITE FOOTER (GLOBAL COMPACT) ── */
.site-footer {
    background-color: var(--bg-color);
    border-top: 2px solid var(--text-color);
    padding: 40px 30px;
    font-family: 'Helvetica', Arial, sans-serif;
    color: var(--text-color);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links-row a {
    font-size: 1.067rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.2s ease;
    opacity: 0.7;
}

.footer-links-row a:hover {
    opacity: 1;
}

.footer-sep {
    opacity: 0.2;
    font-size: 1.067rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--service-inactive);
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-copyright {
    font-size: 0.867rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .footer-links-row {
        gap: 15px 10px;
    }

    .footer-sep {
        display: none;
    }
}