/*
Theme Name: Interi Child
Template: astra
Version: 1.0
Description: interi.kr 누수 인테리어 전문 사이트 커스텀 테마
*/

/* ===== 기본 변수 ===== */
:root {
  --navy: #1a2f5e;
  --orange: #e85d04;
  --navy-light: #2a4080;
  --bg-light: #f0f4ff;
  --bg-grey: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-mid: #444;
  --border-radius: 8px;
}

/* ===== 기본 타이포 ===== */
body { color: var(--text-dark); font-family: -apple-system, 'Noto Sans KR', sans-serif; }
.entry-title { color: var(--navy); border-bottom: 3px solid var(--orange); padding-bottom: 12px; }

/* ===== H2 스타일 ===== */
.entry-content h2 {
  color: var(--navy);
  border-bottom: 3px solid var(--navy);
  padding-bottom: 8px;
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 1.4em;
}
.entry-content h3 {
  color: var(--navy-light);
  margin-top: 28px;
  font-size: 1.15em;
}

/* ===== Quick Answer / Summary Box ===== */
.quick-answer, .summary-box, .hu-quick {
  background: var(--bg-light);
  border-left: 5px solid var(--navy);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.quick-answer h3, .summary-box h3 {
  color: var(--navy);
  margin-top: 0;
  font-size: 1.1em;
}

/* ===== Stat Grid ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: #fff;
  border: 1px solid #dce4f0;
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(26,47,94,0.06);
}
.stat-number {
  font-size: 2em;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.82em;
  color: #666;
  margin-top: 4px;
  display: block;
}

/* ===== Warning Box ===== */
.warning-box {
  background: #fff4e0;
  border-left: 5px solid var(--orange);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-box p { margin: 4px 0; }

/* ===== 테이블 ===== */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
}
.entry-content th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid #e0e6f0;
}
.entry-content tr:nth-child(even) td { background: var(--bg-grey); }

/* ===== 인용/출처 박스 ===== */
.source-box {
  background: #f0f4ff;
  border: 1px solid #c8d6f0;
  border-radius: var(--border-radius);
  padding: 14px 18px;
  font-size: 0.88em;
  color: #555;
  margin: 16px 0;
}

/* ===== 홈페이지 Hero ===== */
.interi-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.interi-hero h1 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
  color: #fff !important;
  border: none !important;
}
.interi-hero p { font-size: 1.1em; opacity: 0.9; margin-bottom: 28px; }
.interi-hero .hero-btn {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  display: inline-block;
  transition: background 0.2s;
}
.interi-hero .hero-btn:hover { background: #c44d00; }

/* ===== 서비스 카드 ===== */
.interi-services {
  padding: 56px 24px;
  background: #fff;
  text-align: center;
}
.interi-services h2 { color: var(--navy); font-size: 1.5em; margin-bottom: 32px; border: none; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 28px 20px;
  border-top: 4px solid var(--navy);
}
.service-card .icon { font-size: 2.4em; margin-bottom: 12px; display: block; }
.service-card h3 { color: var(--navy); font-size: 1.1em; margin: 8px 0; }
.service-card p { font-size: 0.9em; color: var(--text-mid); margin: 0; }

/* ===== 신뢰 뱃지 ===== */
.interi-trust {
  background: var(--bg-grey);
  padding: 40px 24px;
  text-align: center;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  background: #fff;
  border-radius: 8px;
  padding: 18px 12px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.trust-item .t-icon { font-size: 1.6em; display: block; margin-bottom: 6px; }

/* ===== 최근 글 섹션 ===== */
.interi-posts {
  padding: 56px 24px;
  background: #fff;
}
.interi-posts h2 { color: var(--navy); text-align: center; font-size: 1.5em; margin-bottom: 32px; border: none; }

/* ===== CTA 섹션 ===== */
.interi-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.interi-cta h2 { color: #fff; font-size: 1.4em; border: none; margin-bottom: 12px; }
.interi-cta p { opacity: 0.9; margin-bottom: 24px; }
.interi-cta a {
  background: var(--orange);
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

/* 홈(프론트페이지) 제목 숨기기 */
.home .entry-title,
.home .page-title,
.front-page .entry-title,
body.home h1.entry-title,
body.home .ast-page-title { display: none !important; }
