/* ============================================================
   시설 미니 홈페이지 — Modern Premium (v3)
   Design language: shadcn/ui inspired · compact · minimalist · clean
   원칙: Simplicity · Consistency · Visual Hierarchy
   ============================================================ */

:root {
    /* Neutrals (zinc/slate) */
    --fh-bg: #ffffff;
    --fh-bg-alt: #f8fafc;
    --fh-bg-muted: #f1f5f9;
    --fh-fg: #0f172a;          /* 본문/제목 */
    --fh-fg-soft: #334155;
    --fh-muted: #64748b;       /* 보조 텍스트 */
    --fh-muted-2: #94a3b8;
    --fh-border: #e5e7eb;
    --fh-border-strong: #d4d8dd;

    /* Brand accent */
    --fh-primary: #2563eb;
    --fh-primary-dark: #1d4ed8;
    --fh-primary-light: #eff4ff;
    --fh-ring: rgba(37, 99, 235, 0.35);

    /* Semantic */
    --fh-success: #16a34a;
    --fh-warning: #d97706;
    --fh-danger: #dc2626;

    /* Elevation & shape (shadcn-style: thin border + faint shadow) */
    --fh-radius: 14px;
    --fh-radius-sm: 10px;
    --fh-radius-lg: 18px;
    --fh-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --fh-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --fh-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --fh-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

    --fh-header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    color: var(--fh-fg);
    background: var(--fh-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    letter-spacing: -0.011em;
    font-feature-settings: "tnum";
}

a { color: var(--fh-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--fh-primary); outline-offset: 2px; }

.fh-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 섹션 진입 애니메이션 (JS 실패해도 내용은 항상 보임) */
.fh-section { opacity: 1; transform: none; }
.fh-section.fh-animate { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1); }
.fh-section.fh-animate.fh-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .fh-section.fh-animate { opacity: 1; transform: none; }
}

/* ============================================================
   공식(특별) 홈페이지 리본 & 배지
   ============================================================ */
.fh-special-ribbon {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    color: #fff;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 101;
}
.fh-special-ribbon svg { flex: none; }
.fh-badge-special {
    background: rgba(255, 255, 255, 0.96);
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    box-shadow: 0 1px 8px rgba(13, 148, 136, 0.3);
    backdrop-filter: none;
}
.fh-nav.fh-nav-special { border-top: 2px solid #14b8a6; }

/* ============================================================
   네비게이션 (sticky, glass)
   ============================================================ */
.fh-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.fh-nav-scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--fh-border);
    box-shadow: var(--fh-shadow-xs);
}
.fh-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--fh-header-h);
    gap: 16px;
}
.fh-nav-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--fh-fg);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}
.fh-nav-brand:hover { text-decoration: none; }
.fh-nav-links { display: flex; align-items: center; gap: 4px; }
.fh-nav-links a {
    color: var(--fh-muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: color .18s ease, background .18s ease;
    white-space: nowrap;
}
.fh-nav-links a:hover { color: var(--fh-fg); background: var(--fh-bg-muted); text-decoration: none; }

/* ============================================================
   히어로
   ============================================================ */
.fh-hero {
    height: 440px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    position: relative;
}
.fh-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.35) 45%, rgba(2, 6, 23, 0.12) 100%);
    display: flex;
    align-items: flex-end;
}
.fh-hero-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 56px;
    width: 100%;
    color: #fff;
}
.fh-hero-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }

.fh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}
.fh-badge-type {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}
.fh-badge-grade { color: #fff; }
.fh-badge-vacancy { background: var(--fh-success); color: #fff; }
.fh-grade-a { background: #16a34a; }
.fh-grade-b { background: #2563eb; }
.fh-grade-c { background: #d97706; }
.fh-grade-d { background: #dc2626; }
.fh-grade-e, .fh-grade-none { background: #64748b; }

.fh-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 10px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.fh-hero-address {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
}

/* 히어로 액션 */
.fh-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fh-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--fh-fg);
    font-size: 14.5px;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease;
    box-shadow: var(--fh-shadow-md);
}
.fh-hero-phone:hover { transform: translateY(-1px); box-shadow: var(--fh-shadow-lg); text-decoration: none; color: var(--fh-fg); }
.fh-hero-consult {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .18s ease, border-color .18s ease;
}
.fh-hero-consult:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   퀵 정보 카드 (히어로 위로 겹침)
   ============================================================ */
.fh-quick-info { margin-top: -36px; position: relative; z-index: 10; }
.fh-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.fh-quick-card {
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--fh-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.fh-quick-card:hover { transform: translateY(-2px); box-shadow: var(--fh-shadow-md); }
.fh-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--fh-bg-muted);
}
.fh-qi-grade { color: #fff; font-weight: 800; font-size: 19px; }
.fh-qi-bed { background: #eff6ff; }
.fh-qi-year { background: #fffbeb; }
.fh-qi-cost { background: #ecfdf5; }
.fh-quick-text strong {
    display: block;
    font-size: 12px;
    color: var(--fh-muted);
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.fh-quick-text span { font-size: 16px; font-weight: 700; color: var(--fh-fg); }

/* ============================================================
   섹션 · 제목
   ============================================================ */
.fh-section { padding: 56px 0; }
.fh-section-alt { background: var(--fh-bg-alt); border-top: 1px solid var(--fh-border); border-bottom: 1px solid var(--fh-border); }

.fh-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--fh-fg);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fh-count-badge {
    font-size: 12px;
    font-weight: 700;
    background: var(--fh-bg-muted);
    color: var(--fh-muted);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0;
}

/* ============================================================
   기본정보
   ============================================================ */
.fh-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}
.fh-info-item {
    padding: 14px 16px;
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm);
}
.fh-info-item strong {
    font-size: 11.5px;
    color: var(--fh-muted);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.fh-info-item p { font-size: 15px; font-weight: 600; margin: 0; color: var(--fh-fg); }
.fh-info-item a { font-weight: 600; }

/* 정원 현황 바 */
.fh-capacity-bar-wrap {
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--fh-shadow-xs);
}
.fh-capacity-bar-wrap h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--fh-fg); }
.fh-capacity-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--fh-muted); margin-bottom: 8px; }
.fh-capacity-info strong { color: var(--fh-fg); font-weight: 700; }
.fh-capacity-bar { height: 10px; background: var(--fh-bg-muted); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.fh-capacity-fill {
    height: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    transition: width 1s cubic-bezier(.22,.61,.36,1);
    min-width: 34px;
}
.fh-capacity-fill span { font-size: 10px; font-weight: 700; color: #fff; }
.fh-cap-low { background: #16a34a; }
.fh-cap-mid { background: #d97706; }
.fh-cap-full { background: #dc2626; }
.fh-vacancy-msg { font-size: 13.5px; color: var(--fh-success); font-weight: 600; }
.fh-vacancy-msg strong { font-weight: 800; }
.fh-vacancy-full { color: var(--fh-danger); }

/* 설명 */
.fh-description { max-width: 780px; }
.fh-description h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--fh-fg); }
.fh-description p { font-size: 15px; line-height: 1.85; color: var(--fh-fg-soft); }

/* ============================================================
   인력 현황
   ============================================================ */
.fh-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}
.fh-staff-card {
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    padding: 18px 14px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fh-staff-card:hover { transform: translateY(-2px); box-shadow: var(--fh-shadow-sm); border-color: var(--fh-border-strong); }
.fh-staff-count { font-size: 26px; font-weight: 800; color: var(--fh-fg); line-height: 1; margin-bottom: 6px; letter-spacing: -0.03em; }
.fh-staff-count small { font-size: 13px; font-weight: 600; color: var(--fh-muted); }
.fh-staff-type { font-size: 13px; font-weight: 600; color: var(--fh-fg-soft); margin-bottom: 4px; }
.fh-staff-pct { font-size: 11.5px; color: var(--fh-muted-2); font-weight: 600; }
.fh-staff-total { margin-top: 16px; font-size: 13.5px; color: var(--fh-muted); text-align: right; }
.fh-staff-total strong { color: var(--fh-fg); font-weight: 700; }

/* ============================================================
   프로그램
   ============================================================ */
.fh-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.fh-program-card {
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    padding: 18px 20px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fh-program-card:hover { transform: translateY(-2px); box-shadow: var(--fh-shadow-sm); border-color: var(--fh-border-strong); }
.fh-program-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fh-program-card h4 { font-size: 15px; font-weight: 700; flex: 1; color: var(--fh-fg); letter-spacing: -0.01em; }
.fh-program-type {
    font-size: 11px;
    background: var(--fh-primary-light);
    color: var(--fh-primary);
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
.fh-program-card p { font-size: 13px; color: var(--fh-muted); line-height: 1.65; }

/* ============================================================
   편의시설
   ============================================================ */
.fh-amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 8px;
}
.fh-amenity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 16px;
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .18s ease, background .18s ease;
}
.fh-amenity-item:hover { border-color: var(--fh-border-strong); background: var(--fh-bg-alt); }
.fh-amenity-name { flex: 1; color: var(--fh-fg); }
.fh-amenity-meta { display: flex; gap: 8px; font-size: 12px; }
.fh-amenity-count { color: var(--fh-primary); font-weight: 700; }
.fh-amenity-area { color: var(--fh-muted); }

/* ============================================================
   비용 테이블
   ============================================================ */
.fh-fee-table {
    overflow-x: auto;
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    max-width: 640px;
}
.fh-fee-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fh-fee-table th {
    background: var(--fh-bg-alt);
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--fh-muted);
    font-size: 12px;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--fh-border);
}
.fh-fee-table td { padding: 13px 18px; border-bottom: 1px solid var(--fh-border); color: var(--fh-fg-soft); }
.fh-fee-table tr:last-child td { border-bottom: none; }
.fh-fee-amount { font-weight: 700; color: var(--fh-fg); }

/* ============================================================
   교통 / 주차
   ============================================================ */
.fh-transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.fh-transport-card { background: var(--fh-bg); border: 1px solid var(--fh-border); border-radius: var(--fh-radius); padding: 18px 20px; box-shadow: var(--fh-shadow-xs); }
.fh-transport-card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; color: var(--fh-fg); }
.fh-transport-card p { font-size: 14px; color: var(--fh-muted); line-height: 1.7; }

/* ============================================================
   갤러리 + 라이트박스
   ============================================================ */
.fh-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.fh-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--fh-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--fh-bg-muted);
    position: relative;
}
.fh-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,.61,.36,1); }
.fh-gallery-item:hover img { transform: scale(1.06); }
.fh-gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background .2s ease;
}
.fh-gallery-item:hover::after { background: rgba(15, 23, 42, 0.06); }

.fh-lightbox {
    position: fixed; inset: 0;
    background: rgba(2, 6, 23, 0.94);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
}
.fh-lightbox.active { opacity: 1; pointer-events: all; }
.fh-lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.fh-lightbox-close, .fh-lightbox-prev, .fh-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff; border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: background .2s ease;
    line-height: 1;
}
.fh-lightbox-close:hover, .fh-lightbox-prev:hover, .fh-lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.fh-lightbox-close { top: 20px; right: 20px; font-size: 24px; padding: 8px 16px; }
.fh-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 34px; padding: 8px 18px; }
.fh-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 34px; padding: 8px 18px; }
.fh-lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 600; }

/* ============================================================
   공지사항 (아코디언)
   ============================================================ */
.fh-notice-list {
    max-width: 820px;
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    overflow: hidden;
}
.fh-notice-item { border-bottom: 1px solid var(--fh-border); }
.fh-notice-item:last-child { border-bottom: none; }
.fh-notice-item.fh-notice-pinned { background: #fffbeb; box-shadow: inset 3px 0 0 var(--fh-warning); }
.fh-notice-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; cursor: pointer; gap: 16px; user-select: none;
    transition: background .18s ease;
}
.fh-notice-header:hover { background: var(--fh-bg-alt); }
.fh-notice-title { font-size: 14.5px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 7px; color: var(--fh-fg); }
.fh-notice-pin { font-size: 13px; }
.fh-notice-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fh-notice-date { font-size: 12.5px; color: var(--fh-muted); white-space: nowrap; }
.fh-notice-arrow { font-size: 10px; color: var(--fh-muted-2); transition: transform .3s ease; }
.fh-notice-arrow.fh-arrow-open { color: var(--fh-primary); }
.fh-notice-body { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 20px; }
.fh-notice-body.fh-notice-open { max-height: 800px; padding: 0 20px 20px; }
.fh-notice-content {
    font-size: 14px; line-height: 1.8; color: var(--fh-fg-soft);
    background: var(--fh-bg-alt); border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm); padding: 16px 18px;
    white-space: pre-wrap; word-break: break-word;
}

/* ============================================================
   위치 / 연락처
   ============================================================ */
.fh-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.fh-map-wrap { border: 1px solid var(--fh-border); border-radius: var(--fh-radius); overflow: hidden; box-shadow: var(--fh-shadow-xs); }
.fh-map-container { background: var(--fh-bg-alt); }
.fh-map { width: 100%; height: 360px; background: var(--fh-bg-muted); }
.fh-map-empty { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--fh-bg-alt); color: var(--fh-muted); font-size: 14px; }
.fh-map-info { padding: 16px 20px; background: var(--fh-bg); border-top: 1px solid var(--fh-border); }
.fh-map-addr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--fh-fg); line-height: 1.5; }
.fh-map-addr-row svg { flex-shrink: 0; color: var(--fh-muted); }
.fh-map-actions { display: flex; gap: 8px; }
.fh-map-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 16px;
    background: var(--fh-bg); border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm);
    font-size: 13px; font-weight: 600; color: var(--fh-fg);
    transition: background .18s ease, border-color .18s ease;
}
.fh-map-btn:hover { background: var(--fh-bg-alt); border-color: var(--fh-border-strong); text-decoration: none; }
.fh-map-btn-primary { background: var(--fh-primary); color: #fff; border-color: var(--fh-primary); }
.fh-map-btn-primary:hover { background: var(--fh-primary-dark); border-color: var(--fh-primary-dark); color: #fff; }

@media (min-width: 768px) { .fh-map { height: 420px; } }
@media (min-width: 1024px) { .fh-map { height: 460px; } }

.fh-contact-info { display: flex; flex-direction: column; gap: 8px; }
.fh-contact-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    background: var(--fh-bg); border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm);
}
.fh-ci-icon {
    font-size: 16px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--fh-bg-muted); border-radius: 9px; flex-shrink: 0;
}
.fh-contact-item strong { font-size: 11.5px; color: var(--fh-muted); display: block; margin-bottom: 3px; font-weight: 600; }
.fh-contact-item p { font-size: 14px; color: var(--fh-fg); margin: 0; line-height: 1.5; font-weight: 500; }

/* ============================================================
   인사말 (특별 홈페이지)
   ============================================================ */
.fh-intro { background: #f0fdfa; }
.fh-intro .fh-container { max-width: 840px; }
.fh-intro-card {
    background: #fff;
    border: 1px solid #ccfbf1;
    border-radius: var(--fh-radius-lg);
    padding: 30px 28px;
    box-shadow: 0 4px 24px rgba(13, 148, 136, 0.07);
}
.fh-intro-label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: #0f766e;
    background: #ccfbf1; padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.fh-intro-card h2 { font-size: 20px; font-weight: 800; color: #134e4a; margin: 0 0 12px; line-height: 1.35; letter-spacing: -0.02em; }
.fh-intro-card p { font-size: 15px; line-height: 1.9; color: var(--fh-fg-soft); margin: 0; }

/* ============================================================
   푸터
   ============================================================ */
.fh-footer { padding: 36px 0; text-align: center; border-top: 1px solid var(--fh-border); background: var(--fh-bg-alt); }
.fh-footer-links { margin-bottom: 12px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.fh-footer-links a { color: var(--fh-fg-soft); padding: 4px 8px; border-radius: 6px; transition: background .18s ease, color .18s ease; }
.fh-footer-links a:hover { color: var(--fh-primary); background: var(--fh-bg-muted); text-decoration: none; }
.fh-footer-sep { color: var(--fh-border-strong); }
.fh-footer-copy { font-size: 12.5px; color: var(--fh-muted); }
.fh-footer-copy a { color: var(--fh-primary); font-weight: 600; }

/* ============================================================
   플로팅 버튼
   ============================================================ */
.fh-floating-group { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.fh-floating-btn {
    background: var(--fh-primary);
    color: #fff; border: none;
    border-radius: 999px;
    height: 48px; padding: 0 20px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
    cursor: pointer;
    font-size: 14px; font-weight: 700; font-family: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.fh-floating-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42); text-decoration: none; color: #fff; }
.fh-floating-btn svg { flex-shrink: 0; }
.fh-float-phone { background: var(--fh-success); box-shadow: 0 6px 20px rgba(22, 163, 74, 0.32); }
.fh-float-phone:hover { box-shadow: 0 10px 28px rgba(22, 163, 74, 0.42); color: #fff; }

/* ============================================================
   상담문의 모달
   ============================================================ */
.fh-consult-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(3px);
    z-index: 200;
    justify-content: center; align-items: center; padding: 20px;
}
.fh-consult-overlay.active { display: flex; }
.fh-consult-modal {
    background: var(--fh-bg);
    border-radius: var(--fh-radius-lg);
    width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--fh-shadow-lg);
    animation: fhModalIn .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes fhModalIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.fh-consult-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; border-bottom: 1px solid var(--fh-border); }
.fh-consult-header h3 { font-size: 16px; font-weight: 700; color: var(--fh-fg); letter-spacing: -0.02em; }
.fh-consult-close { background: none; border: none; font-size: 26px; color: var(--fh-muted); cursor: pointer; padding: 0; line-height: 1; }
.fh-consult-close:hover { color: var(--fh-fg); }
.fh-consult-body { padding: 20px 24px; }
.fh-form-group { margin-bottom: 16px; }
.fh-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--fh-fg); margin-bottom: 6px; }
.fh-req { color: var(--fh-danger); }
.fh-form-input, .fh-form-textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-sm);
    font-size: 14.5px; font-family: inherit; color: var(--fh-fg);
    background: var(--fh-bg);
    transition: border-color .16s ease, box-shadow .16s ease;
    outline: none;
}
.fh-form-input::placeholder, .fh-form-textarea::placeholder { color: var(--fh-muted-2); }
.fh-form-input:focus, .fh-form-textarea:focus { border-color: var(--fh-primary); box-shadow: 0 0 0 3px var(--fh-ring); }
.fh-form-textarea { resize: vertical; min-height: 100px; }
.fh-consult-error { display: none; color: var(--fh-danger); font-size: 13px; text-align: center; margin-top: 4px; }
.fh-consult-footer { padding: 0 24px 24px; }
.fh-consult-submit {
    width: 100%; height: 46px;
    background: var(--fh-primary); color: #fff;
    border: none; border-radius: var(--fh-radius-sm);
    font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background .18s ease;
}
.fh-consult-submit:hover { background: var(--fh-primary-dark); }
.fh-consult-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   토스트
   ============================================================ */
.fh-toast {
    position: fixed; bottom: 96px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--fh-fg); color: #fff;
    padding: 13px 22px; border-radius: 999px;
    font-size: 13.5px; font-weight: 500;
    z-index: 300; opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    max-width: 90%; text-align: center;
    box-shadow: var(--fh-shadow-lg);
}
.fh-toast.fh-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 900px) {
    .fh-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .fh-container { padding: 0 18px; }
    .fh-nav-links { gap: 0; }
    .fh-nav-links a { font-size: 12.5px; padding: 6px 8px; }
    .fh-hero { height: 360px; }
    .fh-hero h1 { font-size: 28px; }
    .fh-hero-content { padding-bottom: 40px; }
    .fh-section { padding: 44px 0; }
    .fh-section-title { font-size: 19px; margin-bottom: 20px; }
    .fh-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .fh-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .fh-program-grid { grid-template-columns: 1fr; }
    .fh-floating-btn span { display: none; }
    .fh-floating-btn { width: 48px; padding: 0; justify-content: center; }
    .fh-consult-overlay { padding: 0; align-items: flex-end; }
    .fh-consult-modal { border-radius: var(--fh-radius-lg) var(--fh-radius-lg) 0 0; max-height: 88vh; }
}
@media (max-width: 480px) {
    .fh-nav-links { display: none; }
    .fh-nav-brand { max-width: 70%; }
    .fh-hero { height: 300px; }
    .fh-hero h1 { font-size: 23px; }
    .fh-hero-actions { gap: 8px; width: 100%; }
    .fh-hero-phone, .fh-hero-consult { flex: 1; justify-content: center; }
    .fh-info-grid { grid-template-columns: 1fr; }
    .fh-quick-grid { grid-template-columns: 1fr; }
    .fh-quick-info { margin-top: -28px; }
    .fh-staff-grid { grid-template-columns: repeat(2, 1fr); }
    .fh-amenity-grid { grid-template-columns: 1fr; }
}
