/* =============================================================
   common.css  ─  모든 페이지 공통 스타일
   사이트 전체에서 반복 사용되는 변수·레이아웃·헤더·푸터
   ============================================================= */

/* ── Pretendard 폰트 ────────────────────────────────────────── */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* ── CSS 변수 (디자인 토큰) ─────────────────────────────────── */
:root {
    /* 브랜드 컬러 */
    --color-red: #D32F2F;
    --color-olive: #8B9E3A;
    --color-olive-lt: #C0CA33;
    --color-beige: #F5EDD8;
    --color-beige-lt: #FDFAF2;
    --color-brown: #8D6E63;

    /* 텍스트 */
    --color-dark: #333333;
    --color-mid: #666666;
    --color-light: #999999;

    /* 배경 */
    --color-bg: #f4f4f0;
    --color-white: #ffffff;

    /* 푸터 */
    --color-footer-bg: #6b6b4e;
    --color-footer-text: #ccccaa;

    /* 공통 수치 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: 0.3s ease;

    /* 레이아웃 */
    --max-width: 1180px;
}

/* ── 리셋 ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Pretendard Variable", Pretendard,
        "Noto Sans KR", "Apple SD Gothic Neo",
        sans-serif;
    background: var(--color-bg);
    color: var(--color-dark);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ── 공통 컨테이너 ───────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 공통 섹션 타이틀 ─────────────────────────────────────── */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-olive);
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-desc {
    font-size: 15px;
    color: var(--color-mid);
    line-height: 1.75;
}

/* ── 스크롤 애니메이션 ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.d1 {
    transition-delay: 0.05s;
}

.d2 {
    transition-delay: 0.12s;
}

.d3 {
    transition-delay: 0.19s;
}

.d4 {
    transition-delay: 0.26s;
}

.d5 {
    transition-delay: 0.33s;
}

.d6 {
    transition-delay: 0.40s;
}

/* =============================================================
   HEADER
   ============================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* 로고 행 */
header .h-logo-row {
    border-bottom: 1px solid #eee;
}

header .h-logo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

header .logo-symbol {
    height: 44px;
    width: auto;
}

header .logo-text {
    height: 28px;
    width: auto;
    display: block;
}

header .logo-subtext {
    font-size: 11px;
    color: #888;
    letter-spacing: 2px;
    margin-top: 2px;
}

header .h-admin-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

header .h-admin-link:hover {
    color: #D32F2F;
}

/* 네비 행 */
header .h-nav-row {
    background: #fff;
}

header .h-nav-row ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0 8px;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
}

header .h-nav-row ul li {
    flex: none;
    position: relative;
}

header .h-nav-row ul li>a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

header .h-nav-row ul li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D32F2F;
    transition: width 0.3s ease;
}

header .h-nav-row ul li>a:hover,
header .h-nav-row ul li>a.active {
    color: #D32F2F;
}

header .h-nav-row ul li>a:hover::after,
header .h-nav-row ul li>a.active::after {
    width: 100%;
}

/* 드롭다운 (심리상담 메뉴 등) */
.has-drop>.drop-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-drop:hover>.drop-arrow {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    min-width: 150px;
    overflow: hidden;
    z-index: 500;
}

.dropdown a {
    display: block;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

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

.dropdown a:hover {
    background: #F5EDD8;
    color: #D32F2F;
}

.has-drop:hover .dropdown {
    display: block;
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: #fff;
    border-top: none;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 36px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

/* 푸터 링크 */
.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-footer-text);
    transition: color var(--transition);
}

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

.footer-links a.bold {
    font-weight: 700;
    color: #ddd;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.25);
}

/* SNS 아이콘 */
.footer-sns {
    display: flex;
    gap: 10px;
}

.footer-sns a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-footer-text);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition), color var(--transition);
}

.footer-sns a:hover {
    background: var(--color-olive);
    color: var(--color-white);
}

/* 푸터 정보 */
.footer-info {
    font-size: 12px;
    line-height: 2;
    color: rgba(200, 200, 170, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.footer-copy {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(200, 200, 170, 0.5);
}

/* =============================================================
   반응형 기본
   ============================================================= */
@media (max-width: 768px) {
    nav ul {
        gap: 18px;
    }

    nav ul li a {
        font-size: 13px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}