/* 쌍용더플래티넘 온수역 - 스타일시트 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #00a8cc;
    --accent-color: #ff6b35;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #ddd;
    --success-color: #28a745;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 */
.navbar {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand h1 {
    font-size: 20px;
    font-weight: 700;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--secondary-color);
}

/* 메인 콘텐츠 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 섹션 */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('../images/hero.webp') center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0088aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,168,204,0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
}

/* 그리드 레이아웃 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.grid-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.grid-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.grid-item h3 {
    color: var(--secondary-color);
}

/* 이미지 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-container {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--light-bg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(0,168,204,0.3);
}

/* 푸터 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .navbar-brand h1 {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .navbar-menu {
        width: 100%;
        gap: 8px;
        justify-content: space-between;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .navbar-menu li {
        flex: 0 0 auto;
    }
    
    .navbar-menu a {
        font-size: 11px;
        padding: 5px 8px;
        display: block;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    /* Keep the first floor-plan table inside viewport on mobile */
    .floor-plan-details table:first-of-type {
        table-layout: fixed;
        width: 100%;
    }

    .floor-plan-details table:first-of-type th,
    .floor-plan-details table:first-of-type td {
        font-size: 11px;
        padding: 8px 4px;
        text-align: center;
        white-space: normal;
        word-break: break-all;
    }
    
    section {
        padding: 40px 0;
    }
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 접근성 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* 제작사 링크 스타일 */
.asweb-credit a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.asweb-credit a:hover {
    opacity: 0.7;
}
