/*
Theme Name: H-Yeoun
Theme URI: https://new.h-yeoun.com
Description: 여운 - 이사/청소/인터넷 생활 서비스 전용 테마
Author: 여운 (H-Yeoun)
Author URI: https://new.h-yeoun.com
Version: 1.0.0
Text Domain: h-yeoun
License: Private
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* === Base Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --teal-deep: #006D5B;
    --teal-dark: #005244;
    --teal-darker: #002D26;
    --teal-light: #EBF5F3;
    --teal-medium: #00856F;
    --cool-mint: #F4F6F6;
    --text-primary: #006D5B;
    --text-body: #333333;
    --text-slate: #4A5A58;
    --text-muted: #7A8A88;
    --bg-white: #FFFFFF;
    --bg-section: #F4F6F6;
    --bg-emphasis: #006D5B;
    --bg-form: #F9F9F9;
    --border: #D0E0DE;
    --border-light: #E8F0EE;
    --border-focus: #006D5B;
    --shadow-sm: 0 2px 8px rgba(0,109,91,0.08);
    --shadow-md: 0 4px 16px rgba(0,109,91,0.12);
    --shadow-lg: 0 8px 32px rgba(0,109,91,0.16);
    --shadow-card: 0 2px 12px rgba(0,109,91,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, system-ui, sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-deep); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1.3rem; font-size: 0.88rem; font-weight: 600; font-family: inherit;
    border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: all 0.2s; white-space: nowrap;
}
.btn-fill { background: var(--teal-deep); color: #fff; }
.btn-fill:hover { background: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,109,91,0.3); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-body); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--teal-light); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }

/* === Header === */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 64px;
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--teal-deep); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; gap: 0.5rem; }
.logo img { height: 32px; width: auto; }
.gnb { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.gnb a { display: block; padding: 0.5rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: var(--text-body); text-decoration: none; border-radius: 8px; transition: all 0.15s; }
.gnb a:hover { color: var(--teal-deep); background: var(--teal-light); }
.gnb .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 0.5rem 0; min-width: 160px; box-shadow: var(--shadow-md); z-index: 100; }
.gnb li { position: relative; }
.gnb li:hover .dropdown { display: block; }
.gnb .dropdown a { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 0; }
.gnb .dropdown a:hover { background: var(--teal-light); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: #1A1E2A; border-radius: 1px; }

/* === Footer === */
.site-footer { background: #1A1E2A; color: #9BA3B2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.8rem; }
.footer-info { font-size: 0.82rem; line-height: 1.8; }
.footer-info strong { color: #D1D5DB; font-weight: 500; }
.site-footer h5 { font-size: 0.82rem; font-weight: 700; color: #D1D5DB; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #9BA3B2; text-decoration: none; font-size: 0.82rem; transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.78rem; color: #6B7280; }

/* === Page Hero === */
.page-hero {
    padding: 7rem 0 5rem;
    margin-top: 64px;
    background: linear-gradient(135deg, var(--teal-darker), var(--teal-deep));
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}
.page-hero-bg {
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: 0;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: 0; right: -10%;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.82rem; font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.page-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.4);
}
.page-hero-title em { color: #7DDFCA; font-style: normal; }
.page-hero-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
}
.page-hero-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.page-hero .btn-fill:hover { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(0,0,0,0.25); transform: translateY(-1px); }
.page-hero .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(4px); background: rgba(0,0,0,0.15); }
.page-hero .btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Hero Highlight Badges */
.hero-highlight {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.13);
    color: #fff;
    font-size: 0.88rem; font-weight: 600;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
}
.hero-highlight .material-symbols-outlined { font-size: 18px; }
.hero-highlight--big {
    font-size: 1.05rem; padding: 0.65rem 1.4rem;
}
.hero-highlight--big strong {
    font-size: 1.3rem; color: #FFD54F;
}

/* Page Accent Colors (applied via CSS custom properties) */
.page-content h2 { color: var(--page-accent, var(--text-primary)); }
.page-content table th { background: var(--page-accent, var(--teal-deep)); }

/* Service-specific hero em colors */
.page-hero--move .page-hero-title em { color: #90CAF9; }
.page-hero--clean .page-hero-title em { color: #80DEEA; }
.page-hero--special-clean .page-hero-title em { color: #FFAB91; }
.page-hero--internet .page-hero-title em { color: #CE93D8; }

/* === Page Content === */
.page-content {
    padding: 5rem 0 3rem;
    margin-top: 64px;
    min-height: 60vh;
}
.page-content.has-hero {
    margin-top: -3rem;
    padding: 0 0 3rem;
    position: relative;
    z-index: 2;
}
.page-content.has-hero > .container {
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2.5rem 2rem;
}
/* 콘텐츠 첫 번째 요소 여백 제거 */
.page-content.has-hero .entry-content > *:first-child { margin-top: 0; }
.page-content.has-hero .entry-content > h2:first-child { margin-top: 0; font-size: 1.6rem; }
/* 콘텐츠 섹션 구분선 */
.page-content.has-hero .entry-content > h2 {
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
}
.page-content.has-hero .entry-content > h2:first-child {
    padding-top: 0;
    border-top: none;
}
.page-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.page-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 2rem 0 1rem; }
.page-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.8rem; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.5rem; line-height: 1.8; }
.page-content img { border-radius: var(--radius); margin: 1rem 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-content table th, .page-content table td { padding: 0.8rem 1rem; border: 1px solid var(--border-light); text-align: left; }
.page-content table th { background: var(--teal-deep); color: #fff; font-weight: 600; }
.page-content table tr:nth-child(even) td { background: var(--cool-mint); }

/* === WordPress Classes === */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* === WP Admin Bar === */
#wpadminbar ~ .site-header { top: 32px; }
@media (max-width: 782px) { #wpadminbar ~ .site-header { top: 46px; } }

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .gnb, .header-actions { display: none; }
    .mobile-toggle { display: flex; }
    .site-header.menu-open .gnb {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-light);
        padding: 0.5rem 1rem 1rem; gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .site-header.menu-open .gnb a { padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.95rem; display: block; }
    .site-header.menu-open .gnb .dropdown { display: block; position: static; border: none; box-shadow: none; padding: 0 0 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .page-content { padding: 3.5rem 0 2rem; }
    .page-content.has-hero > .container { padding: 2rem 1.5rem 1.5rem; border-radius: 12px 12px 0 0; }
    .page-hero { padding: 6.5rem 0 4.5rem; min-height: 280px; }
    .page-hero-btns { flex-direction: column; }
    .page-hero-btns .btn { width: 100%; }
}
@media (max-width: 480px) {
    .page-content h1 { font-size: 1.5rem; }
    .page-content.has-hero > .container { padding: 1.5rem 1.2rem 1rem; }
    .page-hero { padding: 5.5rem 0 4rem; min-height: 260px; }
    .page-hero-title { font-size: 1.6rem; }
    .page-hero-desc { font-size: 0.9rem; }
}
