/* ===================================
   프리미엄 아파트 분양 랜딩페이지 스타일
   모던 프리미엄 · 화이트 + 네이비/브론즈 테마
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Playfair+Display:wght@400;700&display=swap');

@font-face {
    font-family: 'AtoZ';
    src: url('../font/에이투지체-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --color-bg: #ffffff;
    --color-bg-section: #f8f9fb;
    --color-bg-card: #ffffff;
    --color-gold: #1a365d;
    --color-gold-light: #2a4a7f;
    --color-gold-dark: #0f2440;
    --color-white: #ffffff;
    --color-text: #2d3436;
    --color-text-secondary: #636e72;
    --color-border: #e2e8f0;
    --color-accent: #8b7355;
    --color-cta: #1a365d;
    --color-cta-hover: #2a4a7f;
    --color-danger: #e74c3c;
    --font-heading: 'AtoZ', 'Playfair Display', 'Noto Sans KR', serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --nav-height: 32px;
    --bottom-bar-height: 60px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: calc(var(--header-height) + var(--nav-height));
}

a {
    text-decoration: none;
    color: inherit;
}



img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 웹용 이미지 가로 1000px 제한 */
@media (min-width: 769px) {

    .overview-image img,
    .location-card img,
    .floor-plan-image img,
    .gallery-item img,
    .map-container img {
        max-width: 1000px;
        margin: 0 auto;
    }
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Sticky Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 36, 64, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}


.site-header.scrolled {
    background: rgba(15, 36, 64, 0.8);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: grid;
    /* 좌우 너비를 1fr로 동일하게 주어 가운데 요소가 정중앙에 위치하도록 설정 */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: var(--header-height);
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 데스크톱: 네비를 2단 행으로 표시 */
@media (min-width: 769px) {
    .header-logo .logo-text {
        font-size: 39px;
    }

    .menu-toggle {
        display: none !important;
    }

    .header-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 32px;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--admin-nav-bg, rgba(255, 255, 255, 0.8));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 4px 0;
    }

    .header-nav a {
        color: var(--admin-nav-color, rgba(51, 51, 51, 0.8));
    }

    .site-header.scrolled+.header-nav,
    .header-nav {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
}

/* 기본(모바일): 네비 숨김 */
.header-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

/* 네비 링크 기본 스타일 */
.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.8);
    /* 진한 회색 */
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.5px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--color-cta);
    /* 네이비(활성) 포인트 색상 */
}

@media (min-width: 769px) {
    .header-nav a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-cta);
        transition: width 0.3s;
    }

    .header-nav a:hover::after {
        width: 100%;
    }
}

/* 기본(데스크톱): 알약형 버튼 + 전화번호 표시 */
.header-phone-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--color-white);
    color: var(--color-cta);
    border-radius: 50px;
    transition: all 0.3s;
    cursor: default;
    text-decoration: none;
}

.header-phone-pill .phone-number-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.header-phone-pill:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-phone-pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 모바일: 원형 아이콘 버튼 + 반짝임 */
@media (max-width: 768px) {
    .header-phone-pill {
        width: 33px;
        height: 33px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        cursor: pointer;
        background: #ffffff !important;
        animation: phoneBlink 1.2s ease-in-out infinite;
    }

    .header-phone-pill .phone-number-text {
        display: none;
    }

    .header-phone-pill svg {
        width: 21px;
        height: 21px;
    }

    .header-phone-pill:hover {
        animation: none;
        opacity: 1;
    }
}

@keyframes phoneBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.03;
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 60%,
            rgba(248, 249, 251, 0.8) 90%,
            rgba(248, 249, 251, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(26, 54, 93, 0.85);
    border: 1px solid rgba(26, 54, 93, 0.9);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.hero-title .gold {
    color: var(--color-cta);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--color-cta), var(--color-gold-dark));
    color: var(--color-white);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, var(--color-cta-hover), var(--color-cta));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.25);
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-cta);
    border: 1px solid var(--color-cta);
}

.btn-cta-outline:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-cta), transparent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== Ticker ===== */
.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #000000;
    padding: 0;
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ticker-text {
    text-align: center;
    font-size: 14.3px;
    font-weight: 600;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.5s;
    line-height: 1;
}

.ticker-text.ticker-show {
    opacity: 1;
}

/* ===== Section Common ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--color-bg);
}

.section-darker {
    background: var(--color-bg-section);
}

.section-dark .section-title,
.section-darker .section-title {
    color: var(--color-text);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 20px auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Overview (사업개요) ===== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.overview-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
}

.overview-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.overview-image:hover img {
    transform: scale(1.03);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table tr {
    border-bottom: 1px solid var(--color-border);
}

.overview-table th {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-cta);
    text-align: left;
    width: 120px;
    white-space: nowrap;
    vertical-align: top;
}

.overview-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-text);
}

/* ===== Premium Points ===== */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.premium-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-cta), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.premium-card:hover {
    border-color: var(--color-cta);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.08);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(26, 54, 93, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.premium-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.premium-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Location ===== */
.location-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.location-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.location-card img {
    width: 100%;
    transition: transform 0.6s;
}

.location-card:hover img {
    transform: scale(1.05);
}

.location-card .card-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: rgba(26, 54, 93, 0.9);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
}

/* ===== Floor Plans (세대안내) ===== */
.floor-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.floor-tab {
    padding: 10px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.floor-tab.active,
.floor-tab:hover {
    background: var(--color-cta);
    border-color: var(--color-cta);
    color: var(--color-white);
}

.floor-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.floor-panel.active {
    display: block;
}

.floor-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.floor-plan-image {
    background: var(--color-bg-section);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--color-border);
}

.floor-plan-image img {
    width: 100%;
    margin: 0 auto;
}

.floor-plan-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.floor-plan-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    padding: 12px 16px;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.spec-item .spec-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.spec-item .spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-cta);
}

/* ===== Interior Gallery ===== */
.gallery-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 400px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 16px;
    background: rgba(26, 54, 93, 0.85);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
}

/* ===== Registration Form ===== */
.register-section {
    background: linear-gradient(180deg, var(--color-bg-section), var(--color-bg));
    padding-top: 0;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

#admin-body-gallery {
    position: relative;
    z-index: 2;
}

#directions {
    padding-top: 0;
    position: relative;
    z-index: 1;
}

#admin-mid-image {
    position: relative;
    z-index: 2;
}

.register-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid #b0b8c4;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-field label .required {
    color: var(--color-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 16px;
    background: var(--color-bg-section);
    border: 1px solid #b0b8c4;
    border-radius: 10px;
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.08);
}

.form-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.privacy-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.privacy-agree input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-cta);
}

.privacy-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.privacy-text a {
    color: var(--color-cta);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-cta), var(--color-gold-dark));
    border: none;
    border-radius: 12px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-cta-hover), var(--color-cta));
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.25);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Map / Directions ===== */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #b0b8c4;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.map-container img {
    width: 100%;
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

.btn-naver-map:hover {
    background: #02b34f;
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

.btn-kakao-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    background: #fee500;
    color: #3c1e1e;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s;
    border: 1px solid #e6cf00;
    justify-content: center;
    flex: 1;
}

.btn-kakao-map:hover {
    background: #fdd800;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}

.btn-naver-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    background: #03c75a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s;
    border: 1px solid #02b34f;
    justify-content: center;
    flex: 1;
}

.map-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.map-info-card {
    background: var(--color-bg-card);
    border: 1px solid #b0b8c4;
    border-radius: 12px;
    padding: 24px;
}

.map-info-card h4 {
    font-size: 14px;
    color: var(--color-cta);
    margin-bottom: 8px;
}

.map-info-card p {
    font-size: 14px;
    color: var(--color-text);
}

/* ===== Footer ===== */
.site-footer {
    background: #f1f3f5;
    border-top: 1px solid var(--color-border);
    padding: 48px 0 calc(var(--bottom-bar-height) + 34px + 24px);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-logos {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-logo-item {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.footer-logo-item strong {
    color: var(--color-cta);
    margin-right: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: #555;
}

/* ===== Bottom Fixed Bar (전화/방문예약) ===== */
.bottom-bar {
    position: fixed;
    bottom: 34px;
    /* Ticker 높이만큼 위로 이동 */
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    border-top: none;
    padding: 0;
    display: flex;
    height: var(--bottom-bar-height);
    box-shadow: none;
    overflow: visible;
}

.bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 21.8px;
    font-weight: 600;
    transition: all 0.3s;
}

.bottom-bar .bar-call {
    color: var(--color-cta);
    background: #ffffff;
    border-top-left-radius: 20px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
}

.bottom-bar .bar-call:hover {
    background: var(--color-bg-section);
}

.bottom-bar .bar-reserve {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-cta), var(--color-gold-dark));
    border-top-right-radius: 20px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
}

.bottom-bar .bar-reserve:hover {
    background: linear-gradient(135deg, var(--color-cta-hover), var(--color-cta));
}

.bottom-bar svg {
    width: 20px;
    height: 20px;
}

@keyframes blink {
    0%, 49.9% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.bar-call .phone-blink {
    animation: blink 1s step-end infinite;
}

/* ===== Popup Overlay ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-box img {
    width: 100%;
}

.popup-actions {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.popup-actions button {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-body);
}

.popup-actions button:first-child {
    border-right: 1px solid var(--color-border);
}

.popup-actions button:hover {
    color: var(--color-cta);
    background: rgba(26, 54, 93, 0.05);
}

/* ===== Quick Modal Form ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    animation: popIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--color-bg-section);
    color: var(--color-text);
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
    text-align: center;
}

/* ===== AOS Animations ===== */
.aos-init {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-init {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"].aos-init {
    transform: translateX(-40px);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"].aos-init {
    transform: translateX(40px);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"].aos-init {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-grid,
    .floor-plan-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 54px;
        --nav-height: 36px;
    }

    .menu-toggle {
        display: none !important;
    }

    .header-nav {
        display: flex !important;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: var(--nav-height);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        align-items: center;
        padding: 0;
        gap: 0;
        border-bottom: 1px solid #e2e8f0;
        transition: top 0.3s ease, transform 0.3s ease;
    }

    .header-nav.header-hidden {
        top: 0 !important;
    }

    .header-nav a {
        flex: 1 1 0 !important;
        min-width: 0;
        width: 0;
        font-size: 14.4px;
        padding: 0;
        margin: 0;
        border-radius: 0;
        background: transparent;
        color: #333;
        white-space: nowrap;
        text-decoration: none;
        font-weight: 500;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        transition: all 0.2s;
        border-right: 1px solid #ddd;
        position: static;
        letter-spacing: 0;
    }

    .header-nav a:last-child {
        border-right: none;
    }

    .header-nav a::after {
        content: none !important;
        display: none !important;
    }

    .header-nav a:hover::after {
        content: none !important;
        display: none !important;
    }

    .header-nav a:hover {
        background: transparent;
        color: #333;
    }

    .header-nav a.nav-tap {
        background: #1a365d !important;
        color: #fff !important;
    }

    .hero {
        min-height: 600px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .register-section {
        padding-top: 0;
    }

    #directions {
        padding-top: 0;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .location-images {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 280px;
    }

    .register-box {
        padding: 32px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .floor-plan-specs {
        grid-template-columns: 1fr;
    }

    .footer-logos {
        flex-direction: column;
        gap: 4px;
    }

    #admin-body-gallery {
        padding: 0 !important;
    }

    #admin-body-gallery .container {
        padding: 0;
    }

    #admin-body-gallery .container > div {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .bottom-bar a {
        font-size: 17.2px;
    }
}