/*
Theme Name: ACCleanHub
Theme URI: https://accleanhub.zibsuri.com/
Author: MUN HO YOUNG
Author URI: https://munhoyoung.com/
Description: 에어컨 청소 업체 추천 정보 플랫폼 전용 테마. 사이트 빌드(html.php) 디자인 시스템을 상속하며 글·페이지·아카이브에 동일한 톤앤매너를 적용합니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: accleanhub
*/

:root {
  --navy: #123A63;
  --blue: #2C6FB0;
  --lightblue: #EAF4FF;
  --mint: #22B8A6;
  --mint-soft: #E3F7F3;
  --orange: #F08A24;
  --red: #D8452F;
  --ink: #1E2A38;
  --gray: #5A6B7C;
  --gray-light: #93A4B5;
  --line: #E3EAF2;
  --bg: #F7FAFD;
  --white: #FFFFFF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(18,58,99,.06);
  --shadow-md: 0 10px 30px rgba(18,58,99,.10);
  --shadow-lg: 0 24px 60px rgba(18,58,99,.14);
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", Georgia, serif;
  --content-w: 780px;
  --page-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--lightblue); color: var(--navy); }

/* ============ HEADER ============ */
.acch-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.acch-header-inner {
  max-width: var(--page-w); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.acch-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -.02em; }
.acch-brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.acch-brand-mark svg { width: 20px; height: 20px; }
.acch-nav { display: flex; align-items: center; gap: 4px; }
.acch-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 600; color: var(--ink); border-radius: var(--radius-sm);
}
.acch-nav a:hover { color: var(--blue); background: var(--lightblue); }
.acch-nav .current-menu-item > a { color: var(--blue); background: var(--lightblue); }
.acch-nav-cta {
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  background: var(--navy); color: #fff !important; font-weight: 700; font-size: 14px;
  border-radius: 999px; margin-left: 8px; transition: background .2s ease, transform .2s ease;
}
.acch-nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.acch-burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.acch-burger span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.acch-burger span::before, .acch-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); }
.acch-burger span::before { top: -6px; }
.acch-burger span::after { top: 6px; }

/* ============ LAYOUT ============ */
.acch-wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 24px; }
.acch-main { padding: 48px 0 96px; }
.acch-main-narrow { max-width: 760px; margin: 0 auto; }

/* ============ SINGLE / PAGE HERO ============ */
.acch-page-hero { padding: 64px 0 40px; }
.acch-breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.acch-breadcrumb a { color: var(--gray); }
.acch-breadcrumb a:hover { color: var(--blue); }
.acch-post-title {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.28; font-weight: 800;
  color: var(--navy); letter-spacing: -.03em; margin: 0 0 18px; word-break: keep-all;
}
.acch-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.acch-post-meta .cat a { color: var(--blue); font-weight: 700; }
.acch-post-thumb { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 40px; }
.acch-post-thumb img { width: 100%; display: block; }

/* ============ CONTENT ============ */
.acch-content { font-size: 17px; line-height: 1.85; }
.acch-content > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }
.acch-content h2 {
  max-width: var(--content-w); margin: 64px auto 20px; padding-top: 8px;
  font-size: 26px; line-height: 1.4; font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; border-bottom: 2px solid var(--lightblue); padding-bottom: 14px;
}
.acch-content h2:first-of-type { margin-top: 40px; }
.acch-content h3 { max-width: var(--content-w); margin: 40px auto 14px; font-size: 20px; font-weight: 800; color: var(--navy); }
.acch-content p { margin: 0 auto 20px; word-break: keep-all; }
.acch-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acch-content ul, .acch-content ol { max-width: var(--content-w); margin: 0 auto 24px; padding-left: 24px; }
.acch-content li { margin-bottom: 10px; word-break: keep-all; }
.acch-content li::marker { color: var(--blue); }

/* summary box */
.summary-box {
  max-width: var(--content-w); margin: 0 auto 32px; padding: 24px 26px;
  background: var(--lightblue); border: 1px solid #D5E6F8; border-radius: var(--radius-md);
  position: relative;
}
.summary-label {
  display: inline-block; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .02em;
}
.summary-box p { margin: 0; font-size: 15.5px; line-height: 1.8; color: #31465E; }

/* TOC */
.toc {
  max-width: var(--content-w); margin: 0 auto 36px; padding: 22px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); font-size: 15px;
}
.toc strong { display: block; margin-bottom: 10px; color: var(--navy); font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { color: var(--gray); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* tables */
.cmp-table {
  max-width: var(--content-w); margin: 0 auto 28px; width: 100%;
  border-collapse: collapse; font-size: 15px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cmp-table caption { caption-side: top; text-align: left; font-weight: 800; color: var(--navy); font-size: 15px; padding: 6px 2px 12px; }
.cmp-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.cmp-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; word-break: keep-all; }
.cmp-table tbody tr:nth-child(even) { background: #F8FBFE; }
.cmp-table tbody tr:hover { background: var(--lightblue); }
.acch-content .cmp-table { display: table; }

/* lists */
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  border-radius: 6px; background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.num-list { counter-reset: none; }
.num-list li { padding-left: 4px; }

/* step list */
.step-list { max-width: var(--content-w); margin: 0 auto 28px; }
.step-list ol { list-style: none; padding: 0; margin: 0; position: relative; }
.step-list ol::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--lightblue), var(--mint)); border-radius: 2px;
}
.step-list li { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.step-list li:last-child { padding-bottom: 0; }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  box-shadow: 0 4px 10px rgba(18,58,99,.25);
}
.step-list li div { padding-top: 6px; }
.step-list li div strong { color: var(--navy); }

/* figure */
.post-figure { max-width: var(--content-w); margin: 0 auto 32px; }
.post-figure img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: block; }
.post-figure figcaption { font-size: 13.5px; color: var(--gray); text-align: center; margin-top: 10px; line-height: 1.6; }

/* blockquote */
.acch-content blockquote {
  max-width: var(--content-w); margin: 0 auto 28px; padding: 20px 24px;
  border-left: 4px solid var(--mint); background: var(--mint-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15.5px; color: #23524C;
}
.acch-content blockquote p { margin: 0; }

/* notices */
.info-notice {
  max-width: var(--content-w); margin: 40px auto 0; padding: 16px 20px;
  background: #FFF8EF; border: 1px solid #FBE3C3; border-radius: var(--radius-sm);
  font-size: 14.5px; color: #6B4E26; line-height: 1.7;
}
.legal-notice { line-height: 1.65 !important; }
.ai-notice { text-align: center; }

/* EZ TOC plugin */
#ez-toc-container {
  max-width: var(--content-w) !important; margin: 0 auto 36px !important;
  background: #fff !important; border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important; padding: 20px 24px !important;
  box-shadow: var(--shadow-sm) !important; font-size: 15px !important;
}
#ez-toc-container .ez-toc-title { font-weight: 800 !important; color: var(--navy) !important; font-size: 15px !important; }
#ez-toc-container ul { padding-left: 20px !important; }
#ez-toc-container a { color: var(--gray) !important; text-decoration: none !important; }
#ez-toc-container a:hover { color: var(--blue) !important; }

/* ============ RELATED / CARDS ============ */
.acch-section-title { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 8px; letter-spacing: -.02em; }
.acch-section-sub { font-size: 15px; color: var(--gray); margin: 0 0 28px; }
.acch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.acch-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.acch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.acch-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--lightblue); }
.acch-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.acch-card:hover .acch-card-thumb img { transform: scale(1.04); }
.acch-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.acch-card-cat { font-size: 12.5px; font-weight: 700; color: var(--mint); letter-spacing: .02em; }
.acch-card h3 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.acch-card h3 a { color: var(--navy); }
.acch-card h3 a:hover { color: var(--blue); }
.acch-card-excerpt { font-size: 14.5px; color: var(--gray); line-height: 1.7; margin: 0; word-break: keep-all; }
.acch-card-more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--blue); }

/* ============ FOOTER ============ */
.acch-footer { background: var(--navy); color: #C9D7E6; margin-top: 0; }
.acch-footer-top { max-width: var(--page-w); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.acch-footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.acch-footer-brand { font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.acch-footer p { font-size: 14.5px; line-height: 1.8; margin: 0 0 10px; color: #AFC2D6; }
.acch-footer ul { list-style: none; margin: 0; padding: 0; }
.acch-footer li { margin-bottom: 10px; }
.acch-footer a { color: #C9D7E6; font-size: 14.5px; }
.acch-footer a:hover { color: #fff; }
.acch-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 24px; font-size: 13px; color: #93A8BF; text-align: center; }
.acch-footer-legal { max-width: var(--page-w); margin: 0 auto; padding: 28px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; line-height: 1.75; color: #8FA5BC; }
.acch-footer-legal p { margin: 6px 0; }

/* ============ PAGES ============ */
.acch-page-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 48px; box-shadow: var(--shadow-sm); }
.acch-page-body h2 { font-size: 22px; color: var(--navy); margin: 40px 0 14px; }
.acch-page-body h3 { font-size: 18px; color: var(--navy); margin: 28px 0 10px; }
.acch-page-body p, .acch-page-body li { line-height: 1.85; }

/* archive */
.acch-archive-head { padding: 48px 0 8px; }
.acch-archive-title { font-size: 32px; font-weight: 800; color: var(--navy); margin: 0 0 8px; letter-spacing: -.02em; }
.acch-archive-desc { color: var(--gray); margin: 0 0 32px; }

/* 404 */
.acch-404 { text-align: center; padding: 120px 0; }
.acch-404 h1 { font-size: 40px; color: var(--navy); margin: 0 0 16px; }
.acch-404 p { color: var(--gray); margin: 0 0 28px; }

/* pagination */
.acch-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.acch-pagination a, .acch-pagination span {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px;
}
.acch-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.acch-pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* prev/next */
.acch-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.acch-pn a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease;
}
.acch-pn a:hover { border-color: var(--mint); transform: translateY(-2px); }
.acch-pn .dir { display: block; font-size: 12.5px; color: var(--gray); margin-bottom: 6px; font-weight: 700; }
.acch-pn .ttl { font-weight: 800; color: var(--navy); font-size: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .acch-nav { display: none; position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .acch-nav.open { display: flex; }
  .acch-nav a { justify-content: flex-start; padding: 0 8px; }
  .acch-nav-cta { margin: 8px 0 0; justify-content: center; }
  .acch-burger { display: inline-flex; }
  .acch-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .acch-page-body { padding: 28px 22px; }
  .toc ol { columns: 1; }
  .acch-pn { grid-template-columns: 1fr; }
  .acch-main { padding: 32px 0 72px; }
  .cmp-table { display: block; overflow-x: auto; white-space: nowrap; }
  .acch-content .cmp-table { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { left: 0; }
