/* style.css - Sejong Village de Reve 47 Premium Townhouse */

:root {
    --primary-color: #1a2a22; /* Dark Green */
    --secondary-color: #cda434; /* Elegant Gold */
    --accent-color: #f5f5f0; /* Off-white for background */
    --text-color: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --font-main: 'Pretendard', 'Malgun Gothic', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--accent-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 42, 34, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    background: none;
    border: none;
}

/* Hero Section with Slider */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05); /* Slight zoom effect */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 10s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--secondary-color);
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Common Section */
section {
    padding: 100px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

/* Flex Layouts for Sections */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.split-reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h3 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.split-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Horizontal Gallery (Scroll Snap) */
.gallery-wrapper {
    margin-top: 40px;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--secondary-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.gallery-item {
    width: 100%;
}

.gallery-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: block;
}

/* Multi-image layout grid */
.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.image-grid-2 img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Premium Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.premium-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.premium-card:hover {
    transform: translateY(-10px);
}

.premium-card-img {
    width: 100%;
    height: auto;
    display: block;
}

.premium-card-text {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.premium-card h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.premium-card p {
    color: #666;
    font-size: 15px;
}

/* Registration Form */
.register-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.register-section .section-title {
    color: var(--secondary-color);
}

.register-section .section-subtitle {
    color: #ccc;
}

.form-box {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer-phone {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 10px 0;
    font-weight: bold;
}

/* Floating Action Button (Mobile & PC) */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-call a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.floating-call a:hover {
    transform: scale(1.05);
}

/* Subpage Header Offset */
.subpage-hero {
    height: 40vh;
    min-height: 300px;
    background-image: url('images/전면페이지용2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
    margin-top: 70px;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 42, 34, 0.25);
    z-index: 1;
}

.subpage-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 42, 34, 0.98);
        display: none;
        padding: 20px 0;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .split-section,
    .split-reverse {
        flex-direction: column;
    }

    .image-grid-2 {
        grid-template-columns: 1fr;
    }

    .gallery-item {
    width: 100%;
}

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .floating-call {
        bottom: 0;
        right: 0;
        width: 100%;
    }

    .floating-call a {
        border-radius: 0;
        width: 100%;
        padding: 20px;
        font-size: 20px;
    }
}

/* --- SEO & Mobile Optimization (CSS Safety Net) --- */
body {
    word-break: keep-all;
    overflow-wrap: break-word;
}
img {
    max-width: 100%;
    height: auto;
}
/* Kakao Yellow Floating Button */
.floating-call a {
    background-color: #FEE500 !important;
    color: #000000 !important;
    border: 1px solid #FEE500;
}
.floating-call a:hover {
    background-color: #f4dc00 !important;
}


/* Location Cards */
.location-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.loc-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
}
.loc-card:hover {
    transform: translateY(-5px);
}
.loc-card-num {
    font-size: 50px;
    font-weight: 800;
    color: #f4f4f4;
    line-height: 1;
    margin-bottom: 10px;
}
.loc-card-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.loc-card h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.loc-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}
@media (max-width: 992px) {
    .location-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .location-cards {
        grid-template-columns: 1fr;
    }
}


/* New Registration Form Styles */
.register-section {
    background-color: #f7f8f9 !important; /* Light grey background */
    color: var(--text-color) !important;
}
.register-section .section-title {
    color: #111 !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
}
.register-section .section-subtitle {
    color: #666 !important;
    margin-bottom: 40px !important;
    font-size: 16px !important;
}
.form-box {
    background: #fff;
    padding: 50px 40px !important;
    border-radius: 10px;
    max-width: 650px !important;
    margin: 0 auto;
    color: var(--text-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05) !important;
    border-top: 5px solid #ff4d4d;
    text-align: left;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
    font-size: 15px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #111 !important;
    outline: none;
}
.form-row-2 {
    display: flex;
    gap: 20px;
}
.form-row-2 .form-group {
    flex: 1;
    margin-bottom: 25px;
}
.form-agreement {
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.form-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #1a233a;
}
.form-agreement label {
    margin-bottom: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
}
.form-agreement p {
    margin: 0;
    line-height: 1.5;
}
.submit-btn {
    width: 100%;
    padding: 20px !important;
    background-color: #1b263b !important; /* Dark navy */
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #0d1423 !important;
}

@media (max-width: 600px) {
    .form-row-2 {
        flex-direction: column;
        gap: 0;
    }
    .form-box {
        padding: 30px 20px !important;
    }
}
