:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #172033;
    --muted: #667085;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f2f5;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-logo {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-logo:hover {
    color: var(--text);
}

.site-nav {
    position: relative;
    gap: 1rem;
}

.nav-link-custom {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu-toggle:hover {
    background: #f8fafc;
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 3px;
}

.mobile-menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #172033;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .mobile-menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: #ffffff;
}

.hero-box {
    max-width: 1180px;
}

.eyebrow-text {
    color: #5b6b88;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.image-card-clean {
    background: transparent;
    will-change: opacity, transform;
    padding: 0;
    border: none;
    box-shadow: none;
}

.content-card {
    max-width: 860px;
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.image-stage {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-figure {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.image-clickable {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    will-change: opacity, transform;
    cursor: zoom-in;
    border-radius: var(--radius-md);
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.image-clickable:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 4px;
}

.main-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: min(68vh, 760px);
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: transparent;
    will-change: opacity, transform;
}

.image-clickable:hover .main-image,
.image-clickable:focus-visible .main-image {
    transform: scale(1.01);
}

.image-stage.is-loading .main-image {
    opacity: 0.35;
}

.main-image.is-fading-out {
    opacity: 0;
}

.image-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.image-clickable:hover .image-hover-overlay,
.image-clickable:focus-visible .image-hover-overlay {
    opacity: 1;
}

.zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.zoom-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.zoom-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.image-caption {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.image-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    z-index: 3;
}

.image-loader.active {
    display: flex;
}

.hero-button {
    min-width: 220px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.18);
}

.message-box {
    width: 100%;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}

.contact-list p:last-child {
    margin-bottom: 0;
}

.contact-page-intro {
    margin-bottom: 1.75rem;
}

.contact-page-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.contact-field {
    margin-bottom: 1.25rem;
}

.contact-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-input,
.contact-textarea {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 0.95rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-input {
    min-height: 54px;
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.contact-file-input {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}

.contact-file-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.contact-file-help {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-form-actions {
    margin-top: 0.25rem;
}

.contact-submit-button {
    min-width: 220px;
}

.contact-helper-text {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-helper-text a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.contact-helper-text a:hover {
    text-decoration: underline;
}

.contact-alert {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.contact-alert-success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #166534;
}

.contact-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.contact-alert-list {
    margin-top: 0.6rem;
    padding-left: 1.15rem;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer {
    border-top: 1px solid #f0f2f5;
    background: #ffffff;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text);
    text-decoration: none;
}

.footer-language {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-language-label {
    display: none;
}

.footer-language-switcher {
    position: relative;
}

.footer-language-button {
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    will-change: opacity, transform;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease;
}

.footer-language-button:hover {
    color: var(--text);
    border: none;
    box-shadow: none;
    background: transparent;
    will-change: opacity, transform;
}

.footer-language-button:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.22);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-language-current {
    white-space: nowrap;
}

.footer-language-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.footer-language.is-open .footer-language-chevron {
    transform: rotate(-135deg) translateY(-1px);
}

.footer-language-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(420px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.footer-language.is-open .footer-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-language-option:hover {
    background: #f8fafc;
    color: var(--text);
}

.footer-language-option.is-active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 700;
}

.footer-language-check {
    min-width: 16px;
    text-align: right;
}

.footer-language {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-language-label {
    display: none;
}

.footer-language-switcher {
    position: relative;
}

.footer-language-button {
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    will-change: opacity, transform;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.footer-language-button:hover {
    color: var(--text);
    border: none;
    box-shadow: none;
    background: transparent;
    will-change: opacity, transform;
}

.footer-language-button:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.22);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-language-current {
    white-space: nowrap;
}

.footer-language-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.footer-language.is-open .footer-language-chevron {
    transform: rotate(-135deg) translateY(-1px);
}

.footer-language-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(420px, calc(100vw - 32px));
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    z-index: 30;
}

.footer-language.is-open .footer-language-menu {
    display: grid;
}

.footer-language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    will-change: opacity, transform;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-language-option:hover {
    background: #f8fafc;
    color: var(--text);
    text-decoration: none;
}

.footer-language-option.is-active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 700;
}

.footer-language-check {
    min-width: 16px;
    text-align: right;
}

@media (max-width: 767.98px) {
    .site-footer .container > .d-flex {
        align-items: stretch !important;
    }

    .site-footer .container > .d-flex > .d-flex {
        width: 100%;
        align-items: center !important;
    }

    .footer-language {
        width: 100%;
        justify-content: center;
    }

    .footer-language-switcher {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-language-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: auto;
        max-width: 100%;
        text-align: center;
    }

    .footer-language-menu {
        left: 50%;
        right: auto;
        bottom: calc(100% + 12px);
        width: min(360px, calc(100vw - 24px));
        grid-template-columns: 1fr;
        transform: translateX(-50%);
    }
}

/* Modal */
.image-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
}

.image-modal.is-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.88);
}

.image-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-modal-img {
    max-width: min(96vw, 1600px);
    max-height: min(92vh, 92dvh);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.image-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.image-modal-close:hover {
    background: #ffffff;
}


.image-modal-loader {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35);
    z-index: 4;
}

.image-modal-next {
    position: fixed;
    top: 50%;
    left: auto;
    right: auto;
    z-index: 4;
    width: 170px;
    height: 96px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    will-change: opacity, transform;
    color: rgba(255, 255, 255, 0.52);
    font-size: 88px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transform: none;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.image-modal-next:hover,
.image-modal-next:focus-visible {
    color: rgba(255, 255, 255, 0.78);
    outline: none;
}

.image-modal-next:active {
    transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
    .image-modal.is-open .image-modal-next {
        display: flex;
    }
}

body.modal-open-state {
    overflow: hidden;
    touch-action: none;
}

@media (hover: none) and (pointer: coarse) {
    .image-hover-overlay {
        opacity: 1;
        padding: 0.75rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0));
    }

    .zoom-badge {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .zoom-icon,
    .zoom-icon svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

@media (max-width: 767.98px) {
    .site-nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        width: 100%;
        display: none !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-top: 0.9rem;
        padding: 0.5rem 0;
        border-top: 1px solid #f0f2f5;
    }

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

    .nav-links .nav-link-custom {
        width: 100%;
        display: block;
        padding: 0.85rem 0;
    }

    .content-card {
        padding: 1.5rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .image-stage {
        min-height: 280px;
    }

    .main-image {
        height: min(52vh, 460px);
    }

    .hero-text {
        font-size: 1rem;
    }

    .image-modal-dialog {
        padding: 0.75rem;
    }

    .image-modal-content {
        width: 100%;
        height: 100%;
    }

    .image-modal-img {
        max-width: calc(100vw - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        border-radius: 8px;
    }

    .image-modal-close {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }

    .contact-submit-button {
        width: 100%;
    }
}

@media (min-width: 768px) {
}
.contact-file-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}

.contact-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border: 1px solid #b9c5d4;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.contact-file-button:hover {
    background: #eef3f8;
}

.contact-file-input:focus + .contact-file-button {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.contact-file-name {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}
