/*
Theme Name: 우리집 비용연구소 Direct
Theme URI: https://woorihomecost.com
Author: 우리집 비용연구소
Description: 생활비 계산, 설치 조건, 수리와 교체 판단을 위한 경량 전용 테마입니다.
Version: 0.3.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: woorihomecost-direct
*/

:root {
  --ink: #17201a;
  --muted: #5f6a63;
  --paper: #ffffff;
  --canvas: #f4f7f4;
  --green: #126b4b;
  --green-dark: #0c4934;
  --blue: #225ea8;
  --yellow: #f2c94c;
  --line: #d8dfda;
  --danger: #a54032;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); border-radius: 4px; background: #fff; color: var(--ink); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { font-size: 21px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; font-size: 15px; font-weight: 650; }
.primary-nav a { text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--green); }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 630px;
  display: flex;
  align-items: center;
  background: #101712 url("https://woorihomecost.com/wp-content/uploads/2026/07/home-hero.jpg") center/cover no-repeat;
  color: #fff;
}
.home-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgba(5,11,7,.54); }
.hero-inner { padding-top: 72px; padding-bottom: 72px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--green); font-size: 14px; font-weight: 800; }
.home-hero .eyebrow { color: #fff1a8; font-size: 15px; }
.hero-title { max-width: 760px; margin: 0; font-size: 64px; line-height: 1.08; }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: #f1f4f1; font-size: 20px; line-height: 1.75; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; font-size: 14px; font-weight: 650; }
.hero-trust span { position: relative; padding-left: 15px; }
.hero-trust span::before { position: absolute; left: 0; top: .56em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); content: ""; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; background: var(--yellow); color: #1b211d; font-weight: 750; text-decoration: none; }
.button:hover, .button:focus-visible { background: #ffdc67; }
.button-outline { border-color: #fff; background: transparent; color: #fff; }
.button-outline:hover, .button-outline:focus-visible { background: #fff; color: var(--ink); }

.section { padding: 88px 0; }
.section-white { background: var(--paper); }
.section-soft { background: var(--canvas); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-kicker { color: #87d4ad; }
.section-heading { max-width: 780px; margin: 0 0 18px; font-size: 38px; line-height: 1.24; }
.section-intro { max-width: 730px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.section-dark .section-intro { color: #c9d2cc; }

.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.answer-card { min-height: 214px; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 6px; background: var(--paper); }
.answer-card:nth-child(2) { border-top-color: var(--blue); }
.answer-card:nth-child(3) { border-top-color: var(--yellow); }
.answer-card:nth-child(4) { border-top-color: #6d5142; }
.answer-card:nth-child(5) { border-top-color: var(--danger); }
.answer-number { margin: 0 0 28px; color: var(--muted); font-size: 13px; font-weight: 800; }
.answer-card h3 { margin: 0 0 12px; font-size: 21px; }
.answer-card h3 a { text-decoration: none; }
.answer-card p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.calculation-panel { padding: 30px; border: 1px solid #31513f; border-radius: 6px; background: #202b24; }
.calculation-label { margin: 0 0 22px; color: #87d4ad; font-size: 13px; font-weight: 800; }
.calculation-formula { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.45; }
.calculation-result { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #415348; color: #fff1a8; font-size: 18px; font-weight: 750; }

.method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 46px; }
.method-item { padding-top: 22px; border-top: 3px solid var(--ink); }
.method-item h3 { margin: 0 0 10px; font-size: 20px; }
.method-item p { margin: 0; color: var(--muted); line-height: 1.72; }

.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.post-card { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.post-card .category { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 800; }
.post-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; }
.post-card h3 a { text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: 15px; line-height: 1.65; }
.post-card time { color: var(--muted); font-size: 13px; }
.empty-state { margin-top: 42px; padding: 34px; border-left: 5px solid var(--yellow); background: #fffbe8; }
.empty-state h3 { margin-top: 0; }

.content-shell { padding: 64px 0 88px; }
.content-header { margin-bottom: 36px; }
.content-header .category { color: var(--green); font-size: 14px; font-weight: 800; }
.content-title { margin: 12px 0 16px; font-size: 46px; line-height: 1.22; }
.content-meta { color: var(--muted); font-size: 14px; }
.content-meta a { font-weight: 700; }
.article-content { font-size: 18px; line-height: 1.86; }
.article-content a { color: var(--green-dark); font-weight: 650; }
.article-content h2 { margin-top: 2.4em; font-size: 31px; line-height: 1.35; }
.article-content h3 { margin-top: 2em; font-size: 24px; }
.article-content figure { margin: 2.2em 0; }
.article-content li + li { margin-top: .55em; }
.article-content blockquote { margin: 2em 0; padding: 22px 24px; border-left: 5px solid var(--green); background: #edf5f0; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-content th, .article-content td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: #e7efea; }
.trust-strip { margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 14px; line-height: 1.7; }

.site-footer { padding: 56px 0 38px; background: #101712; color: #dbe4de; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; }
.footer-brand { margin: 0; color: #fff; font-size: 22px; font-weight: 800; }
.footer-copy { max-width: 540px; color: #b9c5be; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.footer-nav a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #314038; color: #8fa096; font-size: 13px; }

@media (max-width: 960px) {
  .home-hero { min-height: 570px; }
  .hero-title { font-size: 48px; }
  .answer-grid, .method-grid, .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid { gap: 36px; }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 0; padding-top: 16px; padding-bottom: 16px; align-items: flex-start; flex-direction: column; }
  .site-brand { font-size: 19px; }
  .primary-nav { justify-content: flex-start; gap: 9px 17px; font-size: 14px; }
  .home-hero { min-height: 540px; background-position: 57% center; }
  .home-hero::before { background: rgba(5,11,7,.62); }
  .hero-inner { padding-top: 52px; padding-bottom: 52px; }
  .hero-title { font-size: 38px; line-height: 1.15; }
  .hero-copy { font-size: 17px; line-height: 1.7; }
  .hero-actions { display: grid; }
  .section { padding: 62px 0; }
  .section-heading { font-size: 30px; }
  .section-intro { font-size: 16px; }
  .answer-grid, .method-grid, .post-grid, .feature-grid { grid-template-columns: 1fr; }
  .answer-card { min-height: 0; }
  .calculation-panel { margin-top: 8px; }
  .calculation-formula { font-size: 23px; }
  .content-shell { padding-top: 42px; padding-bottom: 64px; }
  .content-title { font-size: 34px; }
  .article-content { font-size: 17px; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
  .footer-top, .footer-bottom { display: block; }
  .footer-nav { margin-top: 28px; }
}
