/*
Theme Name: AVALEUR
Theme URI: https://www.avaleur.co.kr/
Author: AVALEUR
Author URI: https://www.avaleur.co.kr/
Description: AVALEUR 브랜드 전용 테마. 미니멀 블랙/화이트 에디토리얼 디자인 기반의 싱글페이지 컨셉 테마입니다. 풀스크린 비디오 히어로, 넘버링 섹션, 포트폴리오·프레스 커스텀 포스트 타입을 지원합니다.
Version: 1.7.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avaleur
Tags: custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, portfolio
*/

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

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --line: rgba(255, 255, 255, 0.12);
    --accent: #ffffff;
    --maxw: 1440px;
    --pad-x: 48px;
}

html,
body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background .4s ease, padding .4s ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px var(--pad-x);
}

.site-branding {
    font-family: 'Libre Bodoni', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.24em;
    z-index: 10;
    position: relative;
}

.site-branding__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 2px;
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity .3s ease;
    cursor: pointer;
}

.site-branding__link:hover {
    opacity: 0.75;
}

.site-branding__name {
    display: inline-block;
    letter-spacing: inherit;
    color: #ffffff;
    font-family: 'Libre Bodoni', 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 500;
}

.site-branding__logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.primary-navigation li {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
}

.primary-navigation a {
    position: relative;
    padding-bottom: 6px;
}

.primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width .4s ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item a::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.5);
    transition: color .3s ease;
    cursor: pointer;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active {
    color: #fff;
}

.lang-switch .lang-divider {
    color: rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    transition: transform .3s ease;
}

/* 모바일 메뉴 닫기 버튼 */
.menu-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 10;
}
.menu-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: heroFadeUp 1.6s cubic-bezier(.2, .8, .2, 1) .4s forwards;
    padding: 0 24px;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__tagline {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
}

.hero__title {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(52px, 10vw, 148px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    display: none;
}

.hero__sub {
    margin: 36px auto 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.hero__cta {
    display: inline-block;
    margin-top: 48px;
    padding: 16px 42px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: all .4s ease;
}

.hero__cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    margin: 16px auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.2); transform-origin: top; }
    50%      { transform: scaleY(1); transform-origin: top; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 160px var(--pad-x);
    max-width: var(--maxw);
    margin: 0 auto;
}

.section--full {
    padding: 160px 0;
    max-width: 100%;
}

.section--full .section__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section__number {
    font-family: 'Libre Bodoni', serif;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 32px;
}

.section__title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 980px;
    margin-bottom: 48px;
}

.section__body {
    max-width: 780px;
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

/* ==========================================================================
   Client Grid
   ========================================================================== */
.client-grid {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.client-grid__cell {
    background: #000;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Libre Bodoni', serif;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    transition: all .4s ease;
    padding: 24px;
}

.client-grid__cell img {
    max-width: 70%;
    max-height: 60%;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity .4s ease;
}

.client-grid__cell:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.client-grid__cell:hover img {
    opacity: 1;
}

/* ==========================================================================
   Portfolio Grid
   ========================================================================== */
.portfolio-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-item {
    display: block;
    cursor: pointer;
}

.portfolio-item__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.portfolio-item__image-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.portfolio-item:hover .portfolio-item__image-inner {
    transform: scale(1.05);
}

.portfolio-item__caption {
    padding: 24px 0 0;
}

.portfolio-item__eng {
    font-family: 'Libre Bodoni', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.portfolio-item__kor {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Wide Grid (Section 03)
   ========================================================================== */
.wide-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--line);
    padding: 0 var(--pad-x);
}

.wide-item {
    background: #000;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
    display: block;
}

.wide-item__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.78;
    transition: all .8s ease;
}

.wide-item:hover .wide-item__bg {
    opacity: 1;
    transform: scale(1.04);
}

.wide-item__overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.wide-item__title {
    font-family: 'Libre Bodoni', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.wide-item__subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Press Section
   ========================================================================== */
.press-section {
    padding: 160px var(--pad-x);
    max-width: var(--maxw);
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.press-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.press-section__head h3 {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.press-section__label {
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
}

.press-list {
    list-style: none;
}

.press-list__item {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 40px;
    align-items: baseline;
    transition: padding-left .4s ease;
}

.press-list__item:last-child {
    border-bottom: 1px solid var(--line);
}

.press-list__item:hover {
    padding-left: 16px;
}

.press-list__date {
    font-family: 'Libre Bodoni', serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.press-list__title {
    font-family: 'Noto Serif KR', serif;
    font-size: 17px;
    font-weight: 400;
}

.press-list__source {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 100px var(--pad-x) 40px;
}

.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--line);
}

.footer-col h5 {
    font-family: 'Libre Bodoni', serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 400;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

.footer-col ul {
    list-style: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-brand {
    display: none;
}

.footer-base {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ==========================================================================
   Single / Page Templates
   ========================================================================== */
.page-wrapper {
    padding: 180px var(--pad-x) 120px;
    max-width: 960px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.page-header__eyebrow {
    font-family: 'Libre Bodoni', serif;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-header__title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.page-content {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
}

.page-content h2,
.page-content h3 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 500;
    margin: 56px 0 24px;
}

.page-content h2 { font-size: 28px; }
.page-content h3 { font-size: 22px; }

.page-content p {
    margin-bottom: 28px;
}

.page-content img {
    margin: 48px 0;
}

.page-content a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color .3s ease;
}

.page-content a:hover {
    border-color: #fff;
}

/* ==========================================================================
   Preloader / Page Transition Splash
   ========================================================================== */
.avaleur-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(.65,0,.35,1), visibility 1s;
    opacity: 1;
    visibility: visible;
}

.avaleur-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__text {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.18);
    animation: preloaderFadeIn 1.2s cubic-bezier(.2,.8,.2,1) forwards,
               preloaderPulse 2s ease-in-out 1s infinite;
    opacity: 0;
}

@keyframes preloaderFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.6; letter-spacing: 0.08em; }
    50%      { opacity: 1;   letter-spacing: 0.12em; }
}

/* 메뉴 토글 버튼 X 변형 */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Reveal Animation
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Utilities / Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #fff;
    color: #000;
    padding: 12px 20px;
    z-index: 999;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.skip-link:focus {
    left: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    :root {
        --pad-x: 24px;
    }

    .site-header {
        padding: 20px var(--pad-x);
    }

    .site-header.scrolled {
        padding: 14px var(--pad-x);
    }

    .primary-navigation {
        display: none;
    }

    .primary-navigation.active {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.40);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 9999;
        overflow: hidden;
    }

    .primary-navigation.active .menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1;
    }

    .primary-navigation.active ul {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        text-align: center;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
        list-style: none;
        margin: 0;
    }

    .primary-navigation.active li {
        font-size: 18px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .primary-navigation.active a {
        color: #ffffff !important;
        opacity: 1 !important;
        letter-spacing: 0.15em;
        font-size: 18px;
        text-transform: uppercase;
    }

    .menu-toggle {
        display: flex;
    }

    .section,
    .press-section {
        padding: 100px var(--pad-x);
    }

    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wide-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--pad-x);
    }

    .press-list__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-footer {
        padding: 60px var(--pad-x) 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 48px;
    }

    .footer-base {
        flex-direction: column;
        gap: 12px;
    }

    .page-wrapper {
        padding: 120px var(--pad-x) 80px;
    }
}
