@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

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

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Colors */
:root {
    --navy: rgb(21, 47, 71);
    --brown: rgb(178, 137, 112);
    --gold: rgb(178, 137, 112);
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navy);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--gold);
}

/* GNB */
.gnb {
    display: flex;
    align-items: center;
    height: 100%;
}

.gnb > ul {
    display: flex;
    height: 100%;
}

.gnb > ul > li {
    position: relative;
    height: 100%;
}

.gnb > ul > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.gnb > ul > li > a:hover,
.gnb > ul > li > a.active {
    color: var(--gold);
}

/* Dropdown */
.gnb > ul > li > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.gnb > ul > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--navy);
    color: var(--white);
}

/* Submenu (2depth) */
.dropdown .has-submenu {
    position: relative;
}

.dropdown .has-submenu > a::after {
    content: '>';
    float: right;
    margin-left: 10px;
}

.dropdown .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 120px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
}

.dropdown .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--navy);
    color: var(--white);
}

/* Register Button */
.gnb > ul > li:last-child {
    display: flex;
    align-items: center;
}

.btn-register {
    background: var(--brown);
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 3px;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-left: 10px;
    transition: all 0.3s;
    height: auto !important;
}

.btn-register:hover {
    background: rgb(158, 117, 92);
    color: var(--white) !important;
}

/* Header Phone */
.header-phone {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone::before {
    content: '\260E';
    font-size: 20px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* Sub Header - Hidden */
.sub-header {
    display: none;
}

.breadcrumb {
    display: none;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--dark-gray);
    font-size: 16px;
}

/* Image Placeholder */
.img-placeholder {
    background: var(--light-gray);
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    min-height: 300px;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 50px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-info p {
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 47, 71, 0.5);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.slide-content h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 20px;
    opacity: 0.9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--white);
}

/* Info Section */
.info-section {
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--dark-gray);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--navy);
    font-weight: 600;
}

.info-phone {
    font-size: 24px;
    color: var(--brown);
    font-weight: 700;
}

.info-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
}

/* Hero Button */
.hero-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: rgb(158, 117, 92);
    transform: translateY(-3px);
}

/* Main Sections */
.main-section {
    padding: 100px 20px;
}

.main-section:nth-child(even) {
    background: var(--light-gray);
}

.main-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.card-body {
    padding: 25px;
}

.card-body h4 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: rgb(158, 117, 92);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-modal {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.popup-modal img {
    width: 100%;
    display: block;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
}

.popup-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.popup-close {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgb(41, 67, 91);
}

/* Multi Popup */
.popup-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Unit Page */
.unit-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.unit-specs {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.unit-specs h4 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.unit-specs table {
    width: 100%;
}

.unit-specs table th,
.unit-specs table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.unit-specs table th {
    color: var(--navy);
    font-weight: 500;
    width: 20%;
}

/* Admin Page */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 10px;
}

.admin-header p {
    color: var(--dark-gray);
}

.popup-editor {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.popup-editor h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--gold);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.btn-download {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-download:hover {
    background: rgb(41, 67, 91);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message h3 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gnb {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .gnb.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgb(21, 47, 71);
        padding: 20px;
        z-index: 9999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .gnb.active > ul {
        flex-direction: column;
        height: auto;
    }

    .gnb.active > ul > li {
        height: auto;
    }

    .gnb.active > ul > li > a {
        padding: 15px;
        height: auto;
    }

    .gnb.active > ul > li > .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.15);
    }

    .gnb.active .dropdown li a {
        color: var(--white);
        border-bottom-color: rgba(255,255,255,0.15);
    }

    .gnb.active .dropdown li a:hover {
        background: rgba(255,255,255,0.15);
    }

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

    .unit-info {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header-inner {
        height: 70px;
    }

    .gnb.active {
        top: 70px;
        max-height: calc(100vh - 70px);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sub-header {
        padding: 40px 20px;
    }

    .sub-header h2 {
        font-size: 28px;
    }

    .content-section {
        padding: 50px 20px;
    }

    .main-section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .popup-container {
        flex-direction: column;
    }

    .popup-modal {
        max-width: 100%;
    }

    /* Slider Mobile */
    .hero-slider {
        height: 60vh;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Info Section Mobile */
    .info-container {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }

    .info-divider {
        width: 80%;
        height: 1px;
    }

    .info-item {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .floating-banner {
        top: auto !important;
        bottom: 20px !important;
        right: 15px !important;
        left: auto !important;
    }

    .floating-banner img {
        width: 120px !important;
    }
}
