/* --- Shared header / footer for inner pages --- */
/* Exclude banner blocks that reuse <header class="hero"> */
header:not(.hero) {
    padding: 20px 5%;
    background-color: var(--bg-color, #fdfbf7);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.top {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    /* Match PC homepage (style.css): .logo img { width: 80%; } */
    width: 80%;
    height: auto;
}

.logo svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--text-main, #4a3f35);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    font-size: 18px;
    text-decoration: none;
    color: #9f7c46;
}

.lang-btn {
    background-color: #bb8434;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Hamburger: hidden on desktop */
.hamburger {
    display: none;
    width: 26px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.hamburger .line {
    width: 100%;
    height: 2.5px;
    background-color: #4a3f35;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
    display: block;
}

.hamburger .line:nth-child(3) {
    width: 60%;
    height: 2px;
    opacity: 0.8;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg);
    width: 100%;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
    position: relative;
    top: -6px;
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color, #fdfbf7);
    border-bottom: 1px solid #bfa06d;
    padding: 16px 0 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 14px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #bb8334;
    font-size: 1.1rem;
}

.mobile-menu a:hover {
    color: #bfa06d;
}

.mobile-menu .mobile-lang .lang-btn {
    display: inline-block;
    margin-top: 4px;
    color: #eee;
}

footer {
    background-color: #d4c4a8;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #555;
}

/* --- Mobile: shared nav + support page layout helpers --- */
@media (max-width: 768px) {
    header:not(.hero) {
        padding: 12px 4%;
    }

    .top {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    /* Match mobile homepage (mobile.html / index_sj): .logo img { width: 80%; } */
    .logo img {
        width: 80%;
        max-width: none; /* override desktop max-width: 180px */
        height: auto;
    }

    .nav-links {
        display: none;
    }

    .top > .lang-btn {
        margin-left: 0;
        padding: 6px 12px;
        font-size: 11px;
    }

    .mobile-menu {
        top: 56px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-methods {
        margin-top: 30px;
        grid-template-columns: 1fr;
    }

    .main-container {
        flex-direction: column;
        gap: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}
