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

html, body {
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    color: #505050;
    font-family: 'Montserrat', Arial, Verdana, sans-serif;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; display: block; }

/* ===== HEADER ===== */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #fff;
    padding: clamp(12px, 1.6vw, 22px) clamp(16px, 4vw, 50px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.site-name a {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 1.3vw, 20px);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #2a2a2a;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-name .separator { color: #c0392b; margin: 0 8px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 40px);
}

.main-nav ul { display: flex; gap: clamp(12px, 2.2vw, 34px); }

.main-nav ul li a {
    font-size: clamp(9px, 0.8vw, 12px);
    letter-spacing: 0.18em;
    color: #505050;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active { color: #c0392b; }

.lang-switch {
    font-size: clamp(9px, 0.75vw, 11px);
    letter-spacing: 0.1em;
    color: #888;
    white-space: nowrap;
}
.lang-switch a { color: #888; transition: color 0.2s; }
.lang-switch a:hover, .lang-switch a.active { color: #505050; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #505050;
    padding: 4px;
    z-index: 300;
    position: relative;
}

/* ===== HOME PAGE ===== */
.home-page { overflow: hidden; background: #1a1a2e; }

.home-main { position: fixed; inset: 0; }

.hero-slider {
    width: 100%; height: 100%;
    position: relative;
    background: #1a1a2e;
}

.hero-slider .slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide:nth-child(1) { background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.hero-slider .slide:nth-child(2) { background-image: linear-gradient(135deg, #2d1b69 0%, #11998e 100%); }
.hero-slider .slide:nth-child(3) { background-image: linear-gradient(135deg, #373b44 0%, #4286f4 100%); }

.slider-nav {
    position: fixed;
    bottom: clamp(40px, 5vh, 60px);
    right: clamp(18px, 3vw, 50px);
    display: flex; gap: 10px; z-index: 50;
}
.slider-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: clamp(28px, 2.8vw, 40px);
    height: clamp(28px, 2.8vw, 40px);
    cursor: pointer; font-size: 14px;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.slider-nav button:hover { background: rgba(255,255,255,0.35); }

/* Home transparent header */
.home-page #site-header { background: transparent; }
.home-page .site-name a { color: #fff; }
.home-page .main-nav ul li a { color: rgba(255,255,255,0.85); }
.home-page .main-nav ul li a:hover,
.home-page .main-nav ul li a.active { color: #fff; }
.home-page .lang-switch, .home-page .lang-switch a { color: rgba(255,255,255,0.6); }
.home-page .lang-switch a:hover, .home-page .lang-switch a.active { color: rgba(255,255,255,0.9); }
.home-page .menu-toggle { color: #fff; }

/* Home footer */
.home-page .site-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 50; text-align: center;
    padding: 12px 20px; background: transparent;
}
.home-page .site-footer .footer-links a,
.home-page .site-footer .copyright { color: rgba(255,255,255,0.5); }
.home-page .site-footer .footer-links .divider { color: rgba(255,255,255,0.25); }

/* ===== INNER PAGES ===== */
.inner-page {
    padding-top: clamp(50px, 6vh, 72px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.legal-layout {
    overflow-y: auto;
}

/* ===== MOTION PAGE ===== */
.motion-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 5vw, 60px);
    gap: clamp(24px, 4vw, 50px);
}

.motion-video-wrap { width: 100%; max-width: 960px; }
.motion-video-wrap iframe { width: 100%; aspect-ratio: 16/9; display: block; }
.motion-video-title {
    font-size: clamp(9px, 0.8vw, 11px);
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #888; text-align: center; margin-top: 14px;
}

/* ===== BIO PAGE ===== */
.bio-layout {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 6vw, 80px);
}

.bio-content { max-width: 860px; width: 100%; }

.bio-content p {
    font-size: clamp(10px, 0.95vw, 12px);
    letter-spacing: 0.08em;
    line-height: 1.9;
    text-transform: uppercase;
    color: #505050;
    text-align: justify;
    margin-bottom: clamp(16px, 2.5vw, 30px);
}

.bio-portrait {
    float: right;
    margin: 0 0 clamp(14px, 2vw, 30px) clamp(18px, 3vw, 44px);
    width: clamp(110px, 18vw, 280px);
}
.bio-portrait img { width: 100%; }

/* ===== CONTACT PAGE ===== */
.contact-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 2.5vh, 40px) clamp(16px, 5vw, 60px);
    gap: clamp(16px, 2.5vh, 36px);
    overflow: hidden;
}

.contact-info { text-align: center; }
.contact-info h2 {
    font-size: clamp(9px, 0.8vw, 11px);
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #888; margin-bottom: 20px; font-weight: 400;
}
.contact-info p {
    font-size: clamp(11px, 1vw, 14px);
    letter-spacing: 0.05em; line-height: 2; color: #505050;
}
.contact-info a { color: #505050; transition: color 0.2s; }
.contact-info a:hover { color: #c0392b; }

.contact-map { width: 100%; max-width: 960px; }
.contact-map iframe {
    width: 100%;
    height: clamp(180px, 28vh, 360px);
    display: block; border: none;
}

/* ===== LEGAL PAGES ===== */
.legal-layout {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 6vw, 80px);
}

.legal-content { max-width: 840px; width: 100%; }

.legal-content h1 {
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.2em; text-transform: uppercase;
    font-weight: 400; color: #2a2a2a; margin-bottom: 36px;
}
.legal-content h2 {
    font-size: clamp(10px, 0.9vw, 12px);
    letter-spacing: 0.15em; text-transform: uppercase;
    font-weight: 500; color: #2a2a2a; margin: 28px 0 12px;
}
.legal-content p {
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1.9; color: #505050; margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.inner-page .site-footer {
    text-align: center;
    padding: clamp(12px, 2vw, 24px) clamp(16px, 4vw, 40px);
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}

.footer-links {
    display: none;
    gap: clamp(6px, 1vw, 12px); flex-wrap: wrap; margin-bottom: 8px;
}
.footer-links a {
    font-size: clamp(8px, 0.7vw, 10px);
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #444; transition: color 0.2s;
}
.footer-links a:hover { color: #111; }
.footer-links .divider { color: #777; font-size: 10px; }

.copyright {
    font-size: clamp(8px, 0.7vw, 10px);
    letter-spacing: 0.08em; color: #555;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 860px) {
    .main-nav {
        display: none;
        position: fixed; inset: 0;
        background: rgba(255,255,255,0.96);
        flex-direction: column;
        align-items: flex-start; justify-content: flex-start;
        padding: clamp(70px,12vh,100px) clamp(28px,8vw,50px) 40px;
        gap: 0; z-index: 200;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: clamp(18px,3vh,28px); }
    .main-nav ul li a { font-size: clamp(10px,2.8vw,13px); letter-spacing: 0.22em; }
    .lang-switch { font-size: 11px; margin-top: clamp(24px,4vh,40px); }
    .menu-toggle { display: block; }
}

@media (max-width: 480px) {
    .bio-portrait { float: none; margin: 0 auto 20px; width: clamp(100px, 50vw, 180px); }
    .slider-nav { bottom: 60px; right: 14px; }
}
