/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #F5F5F0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    will-change: transform;
}
.site-header.scrolled {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.13);
}
.site-header.hide {
    transform: translateY(-100%);
}

/* ── Column layout: logo centered on top, nav centered below ── */
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 6vw 0.9rem;
    position: relative;
}

/* Brand name line with art deco styling */
.header-brand {
    text-align: center;
    margin-bottom: 0.9rem;
    width: 100%;
}

.header-logo {
    font-family: 'Italianno', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #E2B07E;
    margin: 0;
    letter-spacing: 0.08em;
    line-height: 1;
    position: relative;
    padding: 0.3rem 0;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.85;
}

.site-nav { width: 100%; }
.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3.5vw, 4.5rem);
    padding: 0.3rem 0;
    list-style: none;
    margin: 0;
}
.nav-list a {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.6875rem, 1.1vw, 1rem);
    font-weight: 400;
    color: #E2B07E;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, font-weight 0.2s ease;
}

/* Hover: show gold underline temporarily */
.nav-list a:hover {
    border-bottom: 2px solid #E2B07E;
}

/* Active: hide underline, increase font-weight only */
.nav-list a.active {
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 0.3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #004B49;
    transition: all 0.3s;
}

/* =============================================
   LAYOUT — PAGE OFFSET FOR FIXED HEADER
   ============================================= */
/* 首页：main 整体下移，banner 从页眉底部开始 */

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #004B49;
    color: #F5F5F0;
    padding: 3.5rem 4vw 0;
}
.footer-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(2rem, 4vw, 5rem);
    padding-bottom: 3.5rem;
}

.footer-col {
    flex: 0 0 auto;
}

/* Logo column */
.footer-brand {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    /* 列宽放大，为 logo 留出更多空间 */
    flex: 0 0 clamp(8rem, 14vw, 13rem);
    /* 向左移动：负向左偏移，让 logo 视觉上更靠近容器边缘 */
    margin-left: clamp(-1.5rem, -3vw, -0.5rem);
    padding-left: clamp(0.25rem, 1vw, 0.75rem);
}

.footer-logo-img {
    width: 100%;
    /* 放大 logo 尺寸 */
    max-width: clamp(7rem, 11vw, 11rem);
    height: auto;
    display: block;
    object-fit: contain;
}
.footer-heading {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #F5F5F0;
    margin-bottom: 0.4rem;
    padding-bottom: 0;
    border-bottom: none;
}
.footer-heading--socials,
.footer-heading--legal {
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

/* Menu column */
.footer-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav ul li {
    border-bottom: none;
}
.footer-nav a {
    display: block;
    color: #F5F5F0;
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    font-family: 'Poppins', sans-serif;
    padding: 0.2rem 0;
    margin-bottom: 0.1rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    letter-spacing: 0.03em;
    font-weight: 300;
}
.footer-nav a:hover {
    color: #E2B07E;
}

/* Contacts column */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact p {
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    margin-bottom: 0.25rem;
    color: #F5F5F0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    font-weight: 300;
}
.footer-contact a {
    color: #F5F5F0;
    transition: color 0.2s;
}
.footer-contact a:hover { color: #E2B07E; }

/* Social icons — circles */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.footer-socials a:hover {
    opacity: 0.65;
}
.footer-socials svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: #F5F5F0;
    display: block;
}

/* Legal column */
.footer-legal-col {
    display: flex;
    flex-direction: column;
}

/* Legal links */
.footer-legal {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-legal li {
    border-bottom: none;
}
.footer-legal a {
    display: block;
    color: #F5F5F0;
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    font-family: 'Poppins', sans-serif;
    padding: 0.2rem 0;
    margin-bottom: 0.1rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    font-weight: 300;
}
.footer-legal a:hover {
    color: #E2B07E;
}

/* Newsletter form */
.footer-newsletter {
    flex: 0 0 clamp(160px, 14vw, 200px);
}
.footer-newsletter .footer-heading {
    margin-bottom: 0.8rem;
    white-space: nowrap;
}
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-form label {
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    color: #F5F5F0;
    font-weight: 400;
}
.footer-form input[type="email"] {
    background: #fff;
    border: none;
    border-radius: 0.4rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    color: #004B49;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.footer-form input[type="email"]::placeholder { color: rgba(0,75,73,0.5); }
.footer-submit {
    background: #E2B07E;
    color: #004B49;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
    border-radius: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-submit:hover { background: #d4a070; }

.footer-bottom {
    border-top: 1px solid rgba(245,245,240,0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245,245,240,0.38);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 1024px) {
    .footer-inner {
        flex-wrap: wrap;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    .footer-brand {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
        /* 平板/移动端全宽时取消负偏移，靠左对齐即可 */
        margin-left: 0;
        padding-left: 0;
        justify-content: flex-start;
    }
    .footer-logo-img {
        max-width: clamp(6rem, 18vw, 8rem);
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: #F5F5F0;
        padding: 1.25rem;
        border-top: 1px solid rgba(0,75,73,0.1);
        box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    }
    .site-nav.open { display: block; }
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-list a { font-size: 1rem; }

    .footer-inner {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .footer-col {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .footer-brand {
        flex: 0 0 100%;
    }
    .footer-newsletter {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-col,
    .footer-brand,
    .footer-newsletter {
        flex: 0 0 100%;
    }
}
