/* =========================================
   1. 기본 설정 및 변수
   ========================================= */
:root {
    --primary: #FD58A7;       /* 에이스 핫핑크 */
    --primary-dark: #e04890;
    --secondary: #F5E6D3;     /* 웜 베이지 */
    --navy: #2C3E50;          /* 신뢰 네이비 */
    --text: #333333;          /* 기본 텍스트 */
    --gray: #666666;
    --white: #ffffff;
    --light-bg: #FFFAF5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { color: var(--text); line-height: 1.6; word-break: keep-all; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. 공통 요소
   ========================================= */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; transition: 0.3s; text-align: center; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: white; border: 2px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-navy { background-color: var(--navy); color: white; }
.btn-white { background-color: white; color: var(--primary); border: 2px solid white; font-weight: 800; }

/* 배경 심볼 데코 */
.bg-pattern {
    position: relative;
    overflow: hidden;
}

.bg-pattern::before,
.bg-pattern::after {
    content: '';
    position: absolute;
    width: 420px;                /* 섹션용 심볼 크기 */
    height: 420px;
    background-image: url('images/symbol.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.06;               /* 은은한 가독성 */
    pointer-events: none;
    z-index: 0;
}

/* 좌상단 심볼 */
.bg-pattern::before {
    top: -120px;
    left: -120px;
    transform: rotate(-8deg);
}

/* 우하단 심볼 */
.bg-pattern::after {
    bottom: -120px;
    right: -120px;
    transform: rotate(12deg);
}

/* 실제 콘텐츠 */
.bg-pattern > * {
    position: relative;
    z-index: 1;
}

/* 섹션 배경색 */
.bg-beige {
    background-color: var(--light-bg);
}

@media (max-width: 768px) {
    .bg-pattern::before,
    .bg-pattern::after {
        width: 200px;
        height: 200px;
        opacity: 0.04;
    }
}


/* =========================================
   3. 헤더 & 네비게이션
   ========================================= */
header { height: 90px; display: flex; align-items: center; position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; z-index: 1000; }
.header-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; width: auto; object-fit: contain; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 17px; transition: 0.3s; color: var(--navy); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.header-contact { text-align: right; }
.header-contact .tel-main { font-weight: 800; color: var(--primary); font-size: 18px; display: block; }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--navy); }

/* =========================================
   4. 히어로 섹션 (박스 좌측 위치 + 내부 중앙 정렬)
   ========================================= */
.hero { position: relative; height: 750px; background-color: #eee; display: flex; align-items: center; margin-top: 90px; overflow: hidden; }
.hero-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.95); }

/* 텍스트 박스 */
.hero-content {
    position: relative; z-index: 1;
    max-width: 750px; /* 박스 너비 */
    margin-left: 5%;  /* 좌측 위치 고정 */
    padding: 50px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    
    /* ▼ 내부 콘텐츠 중앙 정렬 ▼ */
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.sub-title { color: var(--primary); font-weight: 800; font-size: 22px; margin-bottom: 0; display: block; }

.hero h1 {
    font-size: 48px; line-height: 1.3; margin-bottom: 25px; color: #111; font-weight: 800;
    white-space: normal; word-break: keep-all;
}
.hero .desc { font-size: 18px; color: #444; margin-bottom: 35px; line-height: 1.6; }

/* 전화번호 박스 */
.hero-phone { margin: 25px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 25px 0; width: 100%; }
.hero-phone p { font-size: 16px; color: #555; margin-bottom: 5px; font-weight: 600; }
.hero-phone a { font-size: 48px; font-weight: 900; color: var(--primary); letter-spacing: -1px; line-height: 1; }

.hero-btns { display: flex; gap: 15px; justify-content: center; } /* 버튼 중앙 정렬 */

/* 서브 페이지 히어로 */
.sub-hero { height: 250px; background-color: var(--navy); display: flex; align-items: center; justify-content: center; color: white; text-align: center; margin-top: 90px; position: relative; }
.sub-hero h1 { font-size: 40px; margin-bottom: 15px; font-weight: 800; }
.sub-hero p { font-size: 18px; opacity: 0.95; font-weight: 500; }

/* =========================================
   5. 레이아웃 & 카드
   ========================================= */
section { padding: 90px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 70px; font-weight: 800; color: var(--navy); }
.section-title span { color: var(--primary); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }

.card-icon { text-align: center; padding: 40px 25px; background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #f0f0f0; }
.card-icon:hover { transform: translateY(-10px); border-color: var(--primary); }
.card-icon i { font-size: 50px; color: var(--primary); margin-bottom: 25px; }
.card-icon h3 { font-size: 22px; margin-bottom: 15px; font-weight: 700; color: var(--navy); }
.card-icon p { font-size: 16px; color: var(--gray); line-height: 1.6; }

.card-image { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; transition: 0.3s; }
.card-image:hover { transform: translateY(-5px); }
.img-box { height: 240px; overflow: hidden; background: #f0f0f0; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card-image:hover .img-box img { transform: scale(1.1); }
.txt-box { padding: 35px; }
.txt-box h3 { font-size: 24px; margin-bottom: 15px; color: var(--navy); font-weight: 700; }
.txt-box p { color: var(--gray); margin-bottom: 25px; font-size: 16px; height: 50px; }
.link-more { color: var(--primary); font-weight: 700; font-size: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.badge-a { position: absolute; top: 20px; left: 20px; background: #FFD700; color: #333; padding: 8px 16px; border-radius: 30px; font-weight: 800; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10; }

/* USP & 센터장 */
.usp-grid { text-align: center; }
.usp-item .icon-circle { width: 100px; height: 100px; background: var(--white); border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; font-size: 40px; color: var(--primary); transition: 0.3s; }
.usp-item:hover .icon-circle { background: var(--primary); color: white; }
.director-wrap { display: flex; align-items: center; gap: 60px; background: white; padding: 60px; border-radius: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }
.director-img { width: 350px; flex-shrink: 0; border-radius: 20px; overflow: hidden; height: 420px; background: #eee; box-shadow: 15px 15px 0 var(--secondary); }
.director-img img { width: 100%; height: 100%; object-fit: cover; }
.history { background: var(--light-bg); padding: 30px; border-radius: 20px; margin-bottom: 30px; font-size: 16px; border-left: 6px solid var(--primary); }

/* 비용 안내 배너 */
.cta-banner { background: var(--navy); color: white; text-align: center; }
.cta-banner h2 { font-size: 38px; margin-bottom: 20px; color: white !important; font-weight: 800; }
.cta-banner p { font-size: 20px; margin-bottom: 40px; color: rgba(255,255,255,0.9) !important; font-weight: 400; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* 비용 카드 (빨간색 강제 적용) */
.cost-card { background: white; padding: 30px 20px; border-radius: 15px; color: var(--navy); }
.cost-card h4 { font-size: 18px; margin-bottom: 10px; color: #555; }
.cost-card p { font-size: 32px; font-weight: 900; color: #E91E63 !important; margin: 0; }
.cost-card .free { color: #E91E63 !important; }

/* 테이블 */
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: 30px; -webkit-overflow-scrolling: touch; }
.common-table { width: 100%; border-collapse: collapse; min-width: 600px; background: white; }
.common-table th { background: #f4f4f4; padding: 18px; border-bottom: 2px solid #ddd; font-weight: 700; color: var(--navy); white-space: nowrap; }
.common-table td { padding: 18px; border-bottom: 1px solid #eee; text-align: center; color: #444; font-size: 16px; }

/* 복지용구 상세 */
.category-title { font-size: 26px; font-weight: 800; color: var(--navy); margin: 70px 0 30px; padding-bottom: 20px; border-bottom: 2px solid #eee; display: flex; justify-content: space-between; align-items: flex-end; }
.eq-item { background: white; border: 1px solid #eee; border-radius: 15px; overflow: hidden; text-align: center; transition: 0.3s; position: relative; }
.eq-item:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-5px); border-color: var(--primary); }
.eq-img { height: 180px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; border-bottom: 1px solid #f9f9f9; }
.eq-img img { max-height: 90%; max-width: 90%; object-fit: contain; }
.eq-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 800; position: absolute; top: 15px; left: 15px; }
.eq-tag.buy { background: #e6f7ff; color: #0050b3; border: 1px solid #91d5ff; }
.eq-tag.rent { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

/* 푸터 & 플로팅 */
footer { background: var(--navy); color: #ccc; padding: 70px 0; font-size: 15px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-logo { font-size: 24px; font-weight: 800; color: white; margin-bottom: 25px; display: block;}
.footer-info p { margin-bottom: 12px; font-size: 15px; opacity: 0.9; }
.copyright { margin-top: 50px; border-top: 1px solid #3d5166; padding-top: 25px; text-align: center; width: 100%; font-size: 14px; opacity: 0.7; }

.floating-btns { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.float-btn { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: 0.3s; border: 3px solid white; }
.float-btn:hover { transform: scale(1.1); }
.float-btn.kakao { background: #FEE500; color: #3C1E1E; }
.float-btn.phone { background: var(--primary); }

/* =========================================
   10. 모바일 반응형
   ========================================= */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-menu.active {
        display: flex; flex-direction: column;
        position: absolute; top: 90px; left: 0; width: 100%;
        background: white; padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 1px solid #eee; z-index: 999;
    }
    .nav-menu.active li { width: 100%; text-align: center; }
    .nav-menu.active a { display: block; padding: 18px; border-bottom: 1px solid #f9f9f9; font-size: 18px; }
    
    .hero { height: auto; padding: 120px 0 80px; text-align: center; }
    .hero-content { margin-left: 0; max-width: 100%; padding: 30px 20px; }
    .hero h1 { font-size: 30px; line-height: 1.4; }
    .hero-phone a { font-size: 36px; }
    .hero-btns { justify-content: center; flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    
    .grid-4, .grid-3 { grid-template-columns: repeat(1, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .director-wrap { flex-direction: column; padding: 30px; }
    .director-img { width: 100%; height: 350px; margin-bottom: 30px; }
    .footer-content { flex-direction: column; }
    .header-contact { display: none; }
}