/* ═══════════════════════════════════════════════════
   NUHA PRO THEME v2 – Layout
   Glass nav, simple footer
   ═══════════════════════════════════════════════════ */

/* ─── Site Header (Glass Nav) ────────────────────── */
.nuha-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--nuha-z-header);
    background: var(--nuha-glass-bg);
    backdrop-filter: blur(var(--nuha-glass-blur));
    -webkit-backdrop-filter: blur(var(--nuha-glass-blur));
    border-bottom: 1px solid var(--nuha-glass-border);
    transition: all var(--nuha-duration) var(--nuha-ease);
}

.nuha-header__inner {
    max-width: var(--nuha-container);
    margin: 0 auto;
    padding: var(--nuha-sp-4) var(--nuha-sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nuha-logo {
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-3);
    text-decoration: none;
}
.nuha-logo__mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--nuha-navy), var(--nuha-primary));
    border-radius: var(--nuha-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: var(--nuha-text-base);
    box-shadow: 0 4px 12px rgba(30,58,138,0.2);
}
.nuha-logo__text {
    font-weight: 700;
    font-size: var(--nuha-text-lg);
    color: var(--nuha-navy);
    letter-spacing: -0.01em;
}

/* Desktop Nav */
.nuha-nav {
    display: none;
    align-items: center;
    gap: var(--nuha-sp-8);
}
@media (min-width: 768px) {
    .nuha-nav { display: flex; }
}

.nuha-nav__link {
    position: relative;
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-muted);
    transition: color var(--nuha-duration) var(--nuha-ease);
    padding: 4px 0;
}
.nuha-nav__link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nuha-primary);
    transition: width var(--nuha-duration) var(--nuha-ease);
}
.nuha-nav__link:hover,
.nuha-nav__link.is-active {
    color: var(--nuha-primary);
}
.nuha-nav__link:hover::after,
.nuha-nav__link.is-active::after {
    width: 100%;
}

/* Header Actions */
.nuha-header__actions {
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-4);
}

/* Mobile Toggle */
.nuha-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}
@media (min-width: 768px) {
    .nuha-nav-toggle { display: none; }
}
.nuha-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--nuha-navy);
    border-radius: 2px;
    transition: all var(--nuha-duration) var(--nuha-ease);
}
.nuha-nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nuha-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nuha-nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Panel */
.nuha-mobile-nav {
    position: fixed;
    top: var(--nuha-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nuha-bg);
    z-index: var(--nuha-z-mobile);
    padding: var(--nuha-sp-8) var(--nuha-sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--nuha-sp-4);
    transform: translateX(100%);
    transition: transform var(--nuha-duration) var(--nuha-ease);
}
.nuha-mobile-nav.is-open {
    transform: translateX(0);
}
@media (min-width: 768px) {
    .nuha-mobile-nav { display: none !important; }
}
.nuha-mobile-nav .nuha-nav__link {
    font-size: var(--nuha-text-lg);
    padding: var(--nuha-sp-3) 0;
    border-bottom: 1px solid var(--nuha-border-light);
}

/* ─── Page Hero ──────────────────────────────────── */
.nuha-page-hero {
    padding: var(--nuha-sp-8) 0 var(--nuha-sp-12);
    border-bottom: 1px solid var(--nuha-border);
    background: #fff;
}
.nuha-page-hero h1 {
    font-size: var(--nuha-text-3xl);
    margin-bottom: var(--nuha-sp-2);
}
@media (min-width: 768px) {
    .nuha-page-hero h1 { font-size: var(--nuha-text-4xl); }
}

/* ─── Main Content ───────────────────────────────── */
.nuha-main {
    padding-top: var(--nuha-header-h);
    min-height: 100vh;
}

/* ─── Site Footer (Simple) ───────────────────────── */
.nuha-footer {
    background: var(--nuha-bg-off);
    border-top: 1px solid var(--nuha-border);
    padding: var(--nuha-sp-12) 0;
}
.nuha-footer__inner {
    max-width: var(--nuha-container);
    margin: 0 auto;
    padding: 0 var(--nuha-sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nuha-sp-6);
}
@media (min-width: 768px) {
    .nuha-footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.nuha-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-2);
}
.nuha-footer__logo-mark {
    width: 32px;
    height: 32px;
    background: var(--nuha-navy);
    border-radius: var(--nuha-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: var(--nuha-text-sm);
}
.nuha-footer__logo-text {
    font-weight: 700;
    font-size: var(--nuha-text-lg);
    color: var(--nuha-navy);
}

.nuha-footer__copy {
    font-size: var(--nuha-text-sm);
    color: var(--nuha-text-muted);
    font-weight: 500;
}

.nuha-footer__social {
    display: flex;
    gap: var(--nuha-sp-4);
}
.nuha-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--nuha-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nuha-text-light);
    transition: all var(--nuha-duration) var(--nuha-ease);
}
.nuha-footer__social a:hover {
    border-color: var(--nuha-primary);
    color: var(--nuha-primary);
    box-shadow: var(--nuha-shadow-md);
}
