/*
Theme Name: Petitra Medical
Theme URI: https://example.com
Author: Your Name
Version: 1.0.0
Text Domain: petitra
*/

/* -------------------------------------------
   [1] 기초 설정 (원본 100% 유지)
------------------------------------------- */
:root {
    --navy: #0F1C2E;
    --gold: #A68966;
    --white: #FFFFFF;
    --border: #E5E5E5;
    --font-main: 'Inter', -apple-system, sans-serif;
    --pink: #de2068;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font-main); background: var(--white); color: var(--navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden !important; position: fixed !important; width: 100% !important; height: 100% !important; }

/* -------------------------------------------
   [2] 상단 네비게이션 (원본 유지)
------------------------------------------- */
.nav-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100px; background: var(--white); z-index: 2000; border-bottom: 1px solid var(--border); }
.nav-container { width: 100%; max-width: 1800px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 50px; }
.logo { font-size: 1.3rem; letter-spacing: 5px; text-decoration: none; color: var(--navy); font-weight: 200; text-transform: uppercase; white-space: nowrap; margin-right: 40px; }
.logo b { font-weight: 800; color: var(--gold); }

.main-menu { display: flex; list-style: none; gap: 20px; margin: 0; height: 100%; padding: 0; flex: 1; }
.main-menu > li { height: 100%; display: flex; align-items: center; position: static; }
.main-menu > li > a { text-decoration: none; color: var(--navy); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 10px 0; cursor: pointer; }

.mega-menu { position: absolute; top: 100px; left: 0; width: 100%; background: var(--white); border-bottom: 4px solid var(--gold); display: none; grid-template-columns: repeat(5, 1fr); box-shadow: 0 40px 80px rgba(0,0,0,0.1); z-index: 1900; }
.main-menu > li:hover .mega-menu { display: grid; animation: fadeInMenu 0.3s forwards; }
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.mega-col { padding: 35px 25px; border-right: 1px solid #f2f2f2; }
.mega-col:last-child { border-right: none; }
.bg-sub { background-color: #fafafa; }
.mega-label { font-size: 0.68rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.mega-list { list-style: none; padding: 0; margin: 0; }
.mega-list li { margin-bottom: 7px; }
.mega-list a { text-decoration: none; color: #333; font-size: 0.8rem; transition: 0.2s; }
.mega-list a:hover { color: var(--gold); padding-left: 5px; font-weight: 600; }

.utility { display: flex; align-items: center; gap: 20px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--navy); font-size: 1.1rem; transition: 0.3s; text-decoration: none; }
.social-icons a:hover { color: var(--gold); }
.big-search-input { border: 1px solid var(--border); padding: 12px 20px; font-size: 0.85rem; width: 250px; border-radius: 30px; background: var(--off-white); outline: none; transition: 0.4s; }
.big-search-input:focus { width: 320px; border-color: var(--gold); background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.all-menu-btn { cursor: pointer !important; font-size: 0.65rem; font-weight: 800; color: var(--navy); border: 1px solid var(--navy); padding: 8px 12px; text-transform: uppercase; }

/* 📱 모바일 토글 버튼 (수정: 표시되도록 보강) */
.mobile-toggle { display: none; font-size: 2rem; cursor: pointer !important; color: var(--navy); line-height: 1; z-index: 2500; }

#sitemap-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); z-index: 9999; display: none; padding: 80px 5% 80px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sitemap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: start; }

/* -------------------------------------------
   [3] 메인 본문 레이아웃 (원본 유지)
------------------------------------------- */
.main-skin {  width: 100%; }
.slider-section { width: 100%; height: 75vh; position: relative; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: 1s; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; z-index: 10; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.4; }
.slide-content { position: relative; z-index: 20; color: #fff; max-width: 900px; padding: 0 20px; }
.btn-fusion { padding: 18px 50px; border: 1px solid #fff; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; display: inline-block; margin-top: 20px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 12px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--gold); width: 30px; border-radius: 10px; }

.fusion-grid-section { padding: 120px 8% 100px; background: var(--white); }
.expert-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.expert-intro h2 { font-size: 2.2rem; color: var(--gold); text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.expert-intro .divider { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 20px; }
.expert-intro p { font-size: 1.1rem; line-height: 1.8; color: #555; }
.fusion-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.fusion-card { position: relative; height: 500px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 50px; text-decoration: none; color: #fff; }
.fusion-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.fusion-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 40%, rgba(15,28,46,0.9)); }
.card-inner { position: relative; z-index: 10; }

.pro-commitment { padding: 100px 8%; background: #FAFAFA; text-align: center; }
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.pro-box { background: #fff; padding: 50px 30px; border: 1px solid #eee; transition: 0.4s; text-align: center; }
.pro-box i { font-size: 2.5rem; color: var(--gold); margin-bottom: 25px; }

.extended-skin-section { padding: 100px 8%; background: var(--white); }
.grid-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.grid-row.reverse { grid-template-columns: 1fr 1.5fr; }
.grid-box { position: relative; height: 400px; overflow: hidden; background: var(--navy); }
.grid-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.grid-box-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; z-index: 10; }

/* -------------------------------------------
   [4] 하단 푸터 (원본 100% 유지)
------------------------------------------- */
footer { background: #000; color: #fff; padding: 100px 8% 50px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; max-width: 1800px; margin: 0 auto; text-align: left; }
.footer-brand b { color: var(--gold); }
.footer-info { font-size: 0.85rem; line-height: 2.2; opacity: 0.6; font-weight: 300; }
.footer-col h4 { font-size: 1rem; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 2px; color: var(--gold); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 15px; }
.footer-list a { color: #fff; text-decoration: none; opacity: 0.5; font-size: 0.85rem; transition: 0.3s; }
.footer-list a:hover { opacity: 1; color: var(--gold); padding-left: 5px; }

/* ✨ [지적사항 수정: 모바일 반응형 및 햄버거 버튼 노출] */
@media (max-width: 1200px) {
    .nav-wrapper { height: 80px; } /* 모바일 헤더 높이 조정 */
    .nav-container { padding: 0 20px; justify-content: space-between; }
    .main-menu, .mega-menu, .all-menu-btn, .big-search-input, .social-icons { display: none !important; }
    .mobile-toggle { display: block !important; } /* 햄버거 버튼 강제 노출 */
    .logo { font-size: 1.1rem; margin-right: 0; }

    /* 그리드 레이아웃 1열 조정 */
    .fusion-cards, .pro-grid, .grid-row, .footer-container, .sitemap-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .grid-row.reverse { display: flex; flex-direction: column-reverse; }
    .main-skin { margin-top: 80px; }
    .slider-section { height: 60vh; }
    .slide-content h1 { font-size: 2rem; }
}