/*
Theme Name: Jibsuri Homefixcare
Description: 집수리팩토리 방문수리 - 출장 방문형 문 수리/보수 상담 사이트
Author: Jibsuri Factory
Version: 1.0
Text Domain: jibsuri-homefixcare
*/

/* ===== Design tokens ===== */
:root {
  --yellow: #FFC72C;
  --yellow-deep: #F5A623;
  --yellow-tint: #FFF6DE;
  --ink: #232323;
  --ink-soft: #4a4a4a;
  --gray-light: #F5F5F3;
  --white: #FFFFFF;
  --line: rgba(35,35,35,0.08);
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow-soft: 0 10px 30px rgba(35,35,35,0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.hfc-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hfc-section { padding: 64px 0; }
.hfc-section--tint { background: var(--yellow-tint); }
.hfc-section--gray { background: var(--gray-light); }
.hfc-section--ink { background: var(--ink); color: var(--white); }

.hfc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.hfc-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hfc-title mark { background: none; color: inherit; box-shadow: inset 0 -0.4em 0 var(--yellow); padding: 0 2px; }

.hfc-lede { font-size: 16.5px; color: var(--ink-soft); max-width: 620px; margin: 0 0 32px; }

.hfc-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.hfc-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Buttons ===== */
.hfc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hfc-btn:hover { transform: translateY(-2px); }
.hfc-btn--yellow { background: var(--yellow); color: var(--ink); }
.hfc-btn--ink { background: var(--ink); color: var(--white); }
.hfc-btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.hfc-btn--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }

/* ===== Header ===== */
.hfc-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hfc-header-inner { max-width: var(--container); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.hfc-logo { font-size: 20px; font-weight: 800; color: var(--ink); }
.hfc-logo span { color: var(--yellow-deep); }
.hfc-nav-desktop { display: flex; align-items: center; gap: 32px; }
.hfc-nav-desktop ul { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.hfc-nav-desktop a:hover { color: var(--yellow-deep); }
.hfc-header-cta { margin-left: 8px; }
.hfc-menu-toggle { display: none; width: 44px; height: 44px; border: none; background: var(--gray-light); border-radius: 12px; position: relative; }
.hfc-menu-toggle span, .hfc-menu-toggle::before, .hfc-menu-toggle::after { content: ''; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); }
.hfc-menu-toggle::before { top: 15px; }
.hfc-menu-toggle span { top: 21px; }
.hfc-menu-toggle::after { top: 27px; }

.hfc-mobile-nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--white); z-index: 200; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(0,0,0,0.08); padding: 24px; }
.hfc-mobile-nav.is-open { display: block; transform: translateX(0); }
.hfc-mobile-nav ul { display: flex; flex-direction: column; gap: 20px; font-weight: 700; font-size: 17px; margin-top: 48px; }

.hfc-mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.hfc-mobile-bar a { flex: 1; text-align: center; padding: 13px 10px; border-radius: 14px; font-weight: 700; font-size: 14px; background: var(--yellow); color: var(--ink); }

@media (max-width: 880px) {
  .hfc-nav-desktop { display: none; }
  .hfc-menu-toggle { display: block; }
  .hfc-mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
}

/* ===== Hero ===== */
.hfc-hero { padding: 48px 0 64px; }
.hfc-hero-head { max-width: 680px; margin: 0 auto 12px; }
.hfc-hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ===== Door-shaped NSEO card grid ===== */
.hfc-door-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.hfc-door-card {
  position: relative; border-radius: 120px 120px var(--radius-md) var(--radius-md);
  overflow: hidden; background: var(--gray-light); box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 5.1; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s ease;
}
.hfc-door-card:hover { transform: translateY(-4px); }
.hfc-door-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .3s ease; }
.hfc-door-card:hover img { transform: scale(1.05); }
.hfc-door-card-label { position: relative; z-index: 1; padding: 16px 12px; color: var(--white); font-weight: 700; font-size: 14.5px; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,0.62), transparent 70%); }

@media (max-width: 980px) {
  .hfc-door-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .hfc-door-grid { grid-template-columns: repeat(2, 1fr); }
  .hfc-door-card { aspect-ratio: 3 / 4.7; border-radius: 90px 90px var(--radius-md) var(--radius-md); }
  .hfc-door-card:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; border-radius: var(--radius-md); }
}

/* ===== Symptom list ===== */
.hfc-symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hfc-symptom-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); }
.hfc-symptom-item b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.hfc-symptom-item span { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 880px) { .hfc-symptom-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Before/After compare (legacy slider — still used by detail pages) ===== */
.hfc-compare { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3/4; }
.hfc-compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hfc-compare-after { position: absolute; inset: 0; }
.hfc-compare-tag { position: absolute; top: 12px; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; color: var(--white); z-index: 2; }
.hfc-compare-tag--before { left: 12px; background: var(--ink); }
.hfc-compare-tag--after { right: 12px; background: var(--yellow-deep); color: var(--ink); }
.hfc-compare input[type="range"] { position: absolute; bottom: 12px; left: 12px; right: 12px; width: calc(100% - 24px); z-index: 3; }
.hfc-case { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.hfc-case-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; padding: 14px 16px; background: var(--gray-light); border-radius: 14px; }
@media (max-width: 880px) {
  .hfc-case { grid-template-columns: 1fr; }
  .hfc-compare { aspect-ratio: 4/3; }
}

/* ===== Before/After — two-photo diagonal layout (main page) ===== */
.hfc-case-diag { display: flex; flex-direction: column; gap: 56px; }
.hfc-case-diag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hfc-case-diag-row--after { margin-left: clamp(0px, 10vw, 110px); }
.hfc-case-diag-row--after .hfc-case-diag-photo { order: 2; }
.hfc-case-diag-row--after .hfc-case-diag-text { order: 1; text-align: right; }
.hfc-case-diag-photo { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.hfc-case-diag-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hfc-case-diag-tag { position: absolute; top: 12px; left: 12px; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; color: var(--white); background: var(--ink); z-index: 2; }
.hfc-case-diag-tag--after { background: var(--yellow-deep); color: var(--ink); }
.hfc-case-diag-text h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.hfc-case-diag-text p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.hfc-case-diag-row--after .hfc-case-diag-text .hfc-case-note { text-align: left; }

@media (max-width: 880px) {
  .hfc-case-diag-row, .hfc-case-diag-row--after { grid-template-columns: 1fr; margin-left: 0; gap: 16px; }
  .hfc-case-diag-row--after .hfc-case-diag-photo { order: 1; }
  .hfc-case-diag-row--after .hfc-case-diag-text { order: 2; text-align: left; }
  .hfc-case-diag-row--after .hfc-case-diag-text .hfc-case-note { text-align: left; }
  .hfc-case-diag-photo { aspect-ratio: 4/3; }
}

/* ===== Related services (single section, photo cards) ===== */
.hfc-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.hfc-service-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.hfc-service-card img { width: 100%; height: 323px; object-fit: cover; }
@media (max-width: 880px) { .hfc-service-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.hfc-faq-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.hfc-faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.hfc-faq-list summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.hfc-faq-list summary::-webkit-details-marker { display: none; }
.hfc-faq-list summary::after { content: '+'; float: right; font-weight: 400; color: var(--yellow-deep); }
.hfc-faq-list details[open] summary::after { content: '\2212'; }
.hfc-faq-list p { margin: 14px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.hfc-faq-side { background: var(--yellow-tint); border-radius: var(--radius-md); padding: 24px; text-align: center; position: sticky; top: 96px; }
.hfc-faq-side h3 { font-size: 17px; margin: 0 0 10px; }
.hfc-faq-side p { font-size: 13.5px; margin: 0 0 16px; color: var(--ink-soft); }
@media (max-width: 880px) { .hfc-faq-layout { grid-template-columns: 1fr; } .hfc-faq-side { position: static; } }

/* ===== CTA — styled as a door (molding frame + handle) ===== */
.hfc-cta-outer { padding: 32px 24px 12px; }
.hfc-cta-frame {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  border: 14px solid #2b2b2b;
  border-radius: 20px 20px 6px 6px;
  padding: 72px 44px;
  text-align: center;
  box-shadow:
    inset 0 0 0 4px var(--yellow),
    inset 0 0 0 6px rgba(0, 0, 0, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.3);
}
.hfc-cta-frame::before {
  content: '';
  position: absolute;
  inset: 26px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  pointer-events: none;
}
.hfc-cta-frame::after {
  content: '';
  position: absolute;
  top: 46%;
  right: -17px;
  width: 16px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.hfc-cta-frame h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; margin: 0 0 14px; color: var(--white); }
.hfc-cta-frame p { font-size: 15px; color: rgba(255,255,255,0.75); margin: 0 0 28px; }
.hfc-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hfc-cta-frame { padding: 52px 26px; border-width: 10px; }
  .hfc-cta-frame::before { inset: 18px; }
  .hfc-cta-frame::after { right: -11px; width: 12px; height: 46px; }
}

/* ===== Footer ===== */
.hfc-footer { background: var(--gray-light); padding: 44px 0 26px; border-top: 4px solid var(--yellow); }
.hfc-footer-brand { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.hfc-footer-info { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; font-size: 14px; color: var(--ink-soft); }
.hfc-footer-info b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.hfc-footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .hfc-footer-info { grid-template-columns: 1fr; } .hfc-footer-bottom { flex-direction: column; } }

/* ===== Page hero (NSEO / detail pages) ===== */
.hfc-page-hero { padding: 44px 0 8px; }
.hfc-breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.hfc-breadcrumb a:hover { color: var(--yellow-deep); }
.hfc-related-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hfc-related-links a { padding: 10px 18px; border-radius: 999px; background: var(--gray-light); font-weight: 700; font-size: 14px; }
.hfc-related-links a:hover { background: var(--yellow-tint); }

.hfc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hfc-two-col img { border-radius: var(--radius-md); width: 100%; box-shadow: var(--shadow-soft); }
@media (max-width: 880px) { .hfc-two-col { grid-template-columns: 1fr; } .hfc-two-col img { height: 320px; object-fit: cover; } }

.hfc-note-box { background: var(--yellow-tint); border-radius: 16px; padding: 18px 22px; font-size: 14px; margin: 24px 0; }
.hfc-cost-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); font-size: 14.5px; }
.hfc-cost-table th, .hfc-cost-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.hfc-cost-table th { background: var(--gray-light); font-weight: 700; }
.hfc-cost-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .hfc-cost-table { font-size: 13px; } .hfc-cost-table th, .hfc-cost-table td { padding: 10px 10px; } }
.hfc-checklist li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.hfc-checklist li::before { content: '\2713'; color: var(--yellow-deep); font-weight: 800; }

/* ===== Detail-page editorial hero (stamp + polaroid) — distinct from sibling-site layout ===== */
.hfc-detail-hero { padding: 52px 0 20px; }
.hfc-detail-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.hfc-stamp {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 6px; margin-bottom: 14px;
  transform: rotate(-2deg); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}
.hfc-polaroid {
  position: relative; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  padding: 14px 14px 40px; border-radius: 4px; transform: rotate(2deg);
}
.hfc-polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; display: block; }
.hfc-polaroid-cap { display: block; text-align: center; margin-top: 12px; font-size: 13px; font-style: italic; color: var(--ink-soft); }
@media (max-width: 880px) {
  .hfc-detail-hero-grid { grid-template-columns: 1fr; }
  .hfc-polaroid { transform: none; max-width: 320px; margin: 0 auto; }
}

/* ===== Polaroid before/after pair (detail-page hero variant, diagonal) ===== */
.hfc-polaroid-pair { position: relative; max-width: 340px; margin-left: auto; }
.hfc-polaroid-pair .hfc-polaroid { width: 78%; transform: rotate(-3deg); }
.hfc-polaroid-pair .hfc-polaroid--after { margin-top: -18px; margin-left: 22%; transform: rotate(3deg); position: relative; z-index: 2; }
@media (max-width: 880px) {
  .hfc-polaroid-pair { max-width: 320px; margin: 0 auto; }
  .hfc-polaroid-pair .hfc-polaroid { width: 100%; transform: none; }
  .hfc-polaroid-pair .hfc-polaroid--after { margin-top: 16px; margin-left: 0; }
}

/* ===== Single polaroid below CTA (detail/NSEO pages without a real before/after pair) ===== */
.hfc-polaroid-solo { margin-top: 36px; max-width: 320px; }
.hfc-polaroid-solo .hfc-polaroid { transform: rotate(-2deg); }
.hfc-polaroid-solo--left { margin-left: 0; margin-right: auto; }
.hfc-polaroid-solo--right { margin-left: auto; margin-right: 0; }
.hfc-polaroid-solo--right .hfc-polaroid { transform: rotate(2deg); }
.hfc-polaroid-solo--center { margin-left: auto; margin-right: auto; max-width: 380px; }
@media (max-width: 640px) { .hfc-polaroid-solo { max-width: 280px; margin-left: auto; margin-right: auto; } .hfc-polaroid-solo .hfc-polaroid { transform: none; } }

/* ===== Polaroid before/after row (wide/short photos, side by side below CTA) ===== */
.hfc-polaroid-row { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hfc-polaroid-row .hfc-polaroid { flex: 1 1 300px; transform: none; }
.hfc-polaroid-row .hfc-polaroid img { aspect-ratio: 11 / 10; height: auto; object-fit: contain; background: var(--gray-light); }
@media (max-width: 640px) {
  .hfc-polaroid-row { gap: 18px; }
  .hfc-polaroid-row .hfc-polaroid img { aspect-ratio: 3 / 5; height: auto; object-fit: contain; background: var(--gray-light); }
}

/* ===== 5-card service navigation grid (detail pages) ===== */
.hfc-nav5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.hfc-nav5-card { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3/4; background: var(--gray-light); }
.hfc-nav5-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hfc-nav5-card:hover img { transform: scale(1.05); }
.hfc-nav5-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 8px; color: var(--white); font-weight: 700; font-size: 13.5px; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent 75%); }
.hfc-nav5-card.is-current { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hfc-nav5-badge { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 10.5px; text-align: center; padding: 4px 6px; border-radius: 6px; }
@media (max-width: 980px) { .hfc-nav5-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .hfc-nav5-grid { grid-template-columns: repeat(2, 1fr); }
  .hfc-nav5-card:last-child { grid-column: 1 / -1; aspect-ratio: 3/2; }
}

/* ===== Sitemap page ===== */
.hfc-sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hfc-sitemap-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.hfc-sitemap-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--yellow-deep); }
.hfc-sitemap-card li { margin-bottom: 8px; }
.hfc-sitemap-card a:hover { color: var(--yellow-deep); }
@media (max-width: 880px) { .hfc-sitemap-grid { grid-template-columns: 1fr; } }
