/* 
 * 투석 환자 호텔 연계 서비스 웹사이트
 * 차분하고 고급스러운 바다 테마 디자인
 */

/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 색상 팔레트 - 바다와 치유를 연상시키는 차분한 색상 */
    --primary-blue: #2c5f7e;
    --secondary-blue: #4a90a4;
    --light-blue: #7eb3c7;
    --very-light-blue: #e8f4f8;
    --accent-gold: #c9a961;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dfe6e9;
    --shadow: rgba(44, 95, 126, 0.1);
    --success: #00b894;
}

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

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

/* 헤더 스타일 */
header {
    background-color: rgba(44, 95, 126, 0.85);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

/* 네비게이션 */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

nav a.active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 로그인 버튼 */
.login-btn {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
}

.login-btn:hover {
    background-color: #b59651 !important;
    transform: translateY(-2px);
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../images/hero-main.png') center/cover no-repeat;
    color: var(--white);
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.95;
    font-weight: 300;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #b59651;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--very-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* 섹션 스타일 */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

/* 카드 스타일 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 95, 126, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 정보 박스 */
.info-box {
    background: var(--very-light-blue);
    border-left: 4px solid var(--secondary-blue);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

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

select.form-control {
    cursor: pointer;
}

/* 체크박스 및 라디오 */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input,
.radio-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 푸터 */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

th,
td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--very-light-blue);
}

/* 배지 */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

.badge-gold {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* 알림 메시지 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: var(--very-light-blue);
    border-left: 4px solid var(--secondary-blue);
    color: var(--primary-blue);
}

.alert-success {
    background-color: #d5f4e6;
    border-left: 4px solid var(--success);
    color: #00875a;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 로딩 스피너 */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}