/* 홈페이지 전용: 기존 공통 테마와 상세 페이지를 유지합니다. */
.home-page { --home-content-width: 1240px; }
#hero.home-hero {
  min-height: auto;
  padding: 128px 5% 38px;
  background: #f5f3ed;
  text-align: left;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: 100%;
  max-width: var(--home-content-width);
}
.home-eyebrow { color: var(--blue-700); font-size: .9rem; font-weight: 700; margin-bottom: 1.4rem; }
.home-hero .hero-title { font-size: clamp(2.35rem, 4.05vw, 3.6rem); line-height: 1.28; letter-spacing: -.045em; margin-bottom: 1.35rem; }
.home-hero .hero-sub { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.15rem; }
.home-service-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.8rem; }
.home-service-links a { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem; border: 1px solid #cdd9d2; border-radius: 6px; color: var(--blue-800); font-size: .85rem; font-weight: 700; text-decoration: none; background: #ffffff80; }
.home-service-links a:hover { background: var(--blue-100); border-color: var(--blue-600); }
.home-hero .hero-btns { justify-content: flex-start; gap: .6rem; }
.home-hero .hero-btns .btn-primary { justify-content: center; padding: 1rem 1.15rem; font-family: inherit; font-size: .96rem; border-radius: 8px; box-shadow: none; }
.home-hero-note { color: var(--gray-600); font-size: .82rem; line-height: 1.7; margin: .9rem 0 1.3rem; max-width: 460px; }
.home-hero .hero-badge { padding: .5rem .75rem; margin: 0 0 .6rem; font-size: .79rem; box-shadow: none; border-radius: 6px; }
.home-event-link { display: block; width: fit-content; color: #9a3412; font-size: .8rem; font-weight: 600; line-height: 1.5; padding: .6rem 0; text-underline-offset: 4px; }
.home-hero-visual { min-width: 0; display: grid; gap: 14px; }
.home-living-photo { position: relative; overflow: hidden; border-radius: 16px; background: var(--blue-100); }
.home-living-photo > img { display: block; width: 100%; height: clamp(220px, 22vw, 310px); object-fit: cover; object-position: center; }
.home-living-photo > figcaption { position: absolute; inset: auto 0 0; padding: 42px 24px 20px; background: linear-gradient(transparent, #122b24eb); color: #fff; }
.home-living-photo figcaption span { display: block; font-size: .65rem; letter-spacing: .16em; margin-bottom: .3rem; }
.home-living-photo figcaption strong { display: block; font-size: 1.5rem; letter-spacing: -.035em; }
.home-living-photo figcaption small { display: block; font-size: .68rem; color: #e1e9e4; margin-top: .4rem; }
.home-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-visual-tile { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #dfe7df; color: #fff; text-decoration: none; }
.home-visual-tile img { display: block; width: 100%; height: clamp(140px, 13vw, 175px); object-fit: cover; }
.home-visual-tile > span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 32px 14px 14px; font-size: .85rem; font-weight: 700; background: linear-gradient(transparent, #142e26ed); }
.home-visual-tile:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.home-hero .hero-stats { width: 100%; max-width: var(--home-content-width); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 36px; padding-top: 26px; border-top: 1px solid #d7ddd4; }
.home-hero .stat-num { font-size: 1.55rem; color: var(--blue-800); }
.home-hero .stat-label { display: block; font-size: .8rem; }
#services-detail.home-services { background: #fff; padding-top: 64px; padding-bottom: 64px; scroll-margin-top: 74px; }
.home-services-inner { max-width: var(--home-content-width); margin: 0 auto; }
.home-services-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.home-services-heading .section-sub { max-width: 550px; }
.home-text-link { color: var(--blue-700); font-weight: 700; font-size: .9rem; padding: .7rem 0; text-underline-offset: 4px; }
.home-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-service-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dfe5df; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: transform .2s, border-color .2s; }
.home-service-card:hover { transform: translateY(-4px); border-color: var(--blue-600); }
.home-service-card > img { display: block; width: 100%; height: 172px; object-fit: cover; background: var(--blue-100); }
.home-service-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 20px; }
.home-service-kicker { color: var(--blue-700); font-size: .74rem; font-weight: 700; margin-bottom: .65rem; }
.home-service-card h3 { color: var(--blue-900); font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: .65rem; }
.home-service-card p { font-size: .9rem; line-height: 1.8; color: var(--gray-600); margin-bottom: 1.15rem; }
.home-service-card ul { list-style: none; color: var(--blue-800); font-size: .78rem; line-height: 1.8; margin-bottom: 1.3rem; }
.home-service-card li + li { margin-top: .2rem; }
.home-service-card-link { display: flex; justify-content: space-between; gap: .4rem; padding-top: .85rem; margin-top: auto; border-top: 1px solid #e5e9e3; color: var(--blue-700); font-size: .84rem; font-weight: 700; }
.home-more-services { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1.5rem; padding: 1rem 0; border-bottom: 1px solid #e5e9e3; color: var(--gray-600); font-size: .88rem; }
.home-more-services a { color: var(--blue-800); padding: .45rem 0; text-underline-offset: 4px; }
.home-new-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.home-new-service { padding: 30px; border: 1px solid #cfded5; border-radius: 12px; background: #f4f6f3; color: #1b3c35; text-decoration: none; }
.home-new-service--premium { background: #1b3c35; border-color: #1b3c35; color: #fff; }
.home-new-kicker { display: block; font-size: .73rem; letter-spacing: .1em; font-weight: 700; opacity: .8; margin-bottom: 15px; }
.home-new-service h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 12px; letter-spacing: -.035em; }
.home-new-service p { font-size: .93rem; line-height: 1.8; opacity: .9; }
.home-new-link { display: block; font-size: .9rem; font-weight: 700; margin-top: 24px; text-underline-offset: 4px; }
.home-new-service:hover .home-new-link { text-decoration: underline; }
@media (max-width: 600px) {
  .home-new-services { grid-template-columns: minmax(0, 1fr); }
  .home-new-service { padding: 24px; }
}
.home-consult-strip { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; background: var(--blue-50); border-radius: 10px; padding: 1.6rem; margin-top: 1.5rem; }
.home-consult-strip strong { display: block; color: var(--blue-900); margin-bottom: .5rem; }
.home-consult-strip p { color: var(--gray-600); font-size: .9rem; line-height: 1.7; }
.home-consult-strip .btn-primary { flex-shrink: 0; border-radius: 8px; box-shadow: none; font-family: inherit; font-size: .95rem; padding: .9rem 1.3rem; }
.home-pricing-scope { margin: 1.75rem auto 24px; padding: 28px 32px 22px; background: #edf3e9; border: 1px solid #bbcfb5; border-top: 4px solid #3e7862; border-radius: 12px; color: #244734; line-height: 1.75; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.home-pricing-basis { margin: 0 0 12px; font-size: 1rem; color: #425b46; }
.home-pricing-scope h3 { margin: 0; color: #1b3c35; font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
.home-pricing-scope h3 span { color: #26544a; text-decoration: underline; text-decoration-color: #a6c59b; text-decoration-thickness: 4px; text-underline-offset: 5px; }
.home-pricing-services { margin: 16px 0 8px; font-size: 1.05rem; color: #425b46; }
.home-pricing-scope a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 0; color: #26544a; font-size: 1rem; font-weight: 700; text-underline-offset: 4px; }
.home-pricing-scope a:focus-visible { outline: 3px solid #3e7862; outline-offset: 4px; }
@media (max-width: 600px) {
  .home-pricing-scope { padding: 22px 18px 16px; text-align: left; }
  .home-pricing-services { font-size: 1rem; }
  .pricing-scope-break { display: none; }
}
#gallery.home-portfolio { background: #f5f3ed; scroll-margin-top: 74px; }
.portfolio-help { color: var(--gray-600); font-size: .8rem; line-height: 1.6; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portfolio-case { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dfe5db; border-radius: 12px; background: #fff; scroll-margin-top: 90px; }
.portfolio-case-head { padding: 22px 22px 18px; min-height: 112px; }
.portfolio-case-head > span { display: block; color: var(--blue-700); font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-case-head h3 { color: var(--blue-900); font-size: 1.13rem; line-height: 1.5; }
.portfolio-case .proof-pair { padding: 0 16px; gap: 10px; }
.portfolio-case .proof-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eceee7; }
.portfolio-case-foot { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 18px 22px 20px; }
.portfolio-case-foot p { color: var(--gray-600); font-size: .86rem; line-height: 1.8; margin-bottom: 12px; }
.portfolio-case-foot > a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; margin-top: auto; color: var(--blue-700); font-size: .85rem; font-weight: 700; text-underline-offset: 4px; }
.portfolio-case-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; margin-top: auto; }
.portfolio-case-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #26544a; font-size: .85rem; font-weight: 700; text-underline-offset: 4px; }
.portfolio-case-actions [data-consult-service] { padding: 8px 12px; background: #edf3e9; border-radius: 6px; text-decoration: none; }
.portfolio-note { color: var(--gray-600); font-size: .76rem; line-height: 1.8; margin-top: 22px; }
.home-portfolio a:focus-visible, .home-portfolio button:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 4px; }
.home-reviews .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 2.5rem; }
.home-reviews .review-card { display: flex; flex-direction: column; min-width: 0; border-radius: 12px; }
.home-reviews .review-text { font-size: 1rem; overflow-wrap: anywhere; }
.home-reviews .reviewer { margin-top: auto; }
.home-reviews .avatar { flex-shrink: 0; }
.home-reviews .reviewer-info { min-width: 0; }
.home-reviews .reviewer-info .region { line-height: 1.6; }
.home-hero a:focus-visible, .home-hero button:focus-visible, .home-services a:focus-visible, .home-services button:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 4px; }
@media (max-width: 1100px) {
  .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-service-card > img { height: 210px; }
  .home-reviews .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #hero.home-hero { padding: 108px 5% 30px; }
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-hero .hero-title { font-size: clamp(2.2rem, 7vw, 3.3rem); }
  .home-hero .hero-sub { font-size: 1rem; }
  .home-living-photo > img { height: 270px; }
  .home-consult-strip { align-items: flex-start; flex-direction: column; }
  .home-hero .hero-stats { gap: 1.5rem .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .home-hero .hero-btns { max-width: none; margin: 0; }
  .home-reviews .review-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 2rem; }
  .home-reviews .review-card { padding: 1.5rem; }
  .home-service-links { gap: .4rem; }
  .home-service-links a { font-size: .78rem; padding: .4rem .6rem; }
  .home-hero .hero-badge { font-size: .74rem; padding: .5rem .65rem; line-height: 1.5; }
  .home-living-photo > img { height: 230px; }
  .home-service-grid { grid-template-columns: minmax(0, 1fr); }
  .home-service-card > img { height: 200px; }
  #services-detail.home-services { padding-top: 42px; padding-bottom: 42px; }
  .home-consult-strip { padding: 1.2rem; }
  .home-consult-strip .btn-primary { width: 100%; justify-content: center; }
  .home-visual-grid { gap: 10px; }
  .home-visual-tile > span { padding: 28px 10px 12px; font-size: .76rem; }
  .portfolio-case-head { padding: 18px 16px 14px; }
  .portfolio-case .proof-pair { padding: 0 10px; gap: 8px; }
  .portfolio-case-foot { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-title, .home-hero .hero-sub, .home-hero .hero-btns, .home-hero .hero-badge, .home-hero .hero-stats { animation: none; }
  .home-service-card { transition: none; }
}

/* 모든 홈 섹션의 본문을 작업 사례와 같은 좌우 기준선에 맞춥니다.
   배경은 화면 전체를 채우고, 본문은 1240px 및 모바일 5% 여백을 공유합니다.
   개별 섹션과 모바일 규칙의 padding 단축 속성보다 우선 적용합니다. */
body.home-page > :is(section, #trust) {
  padding-inline: max(5%, calc((100% - var(--home-content-width)) / 2));
}
.home-page #home-assurance > .story-inner,
.home-page #quote > .quote-box,
.home-page #promo-banner > .pb-box {
  width: 100%;
  max-width: var(--home-content-width);
}

/* 2026-10 홈 맨 위: 히어로 → 서비스 타일(요금) → 실적 숫자·신뢰 문구.
   입주·이사 평수별 요금표와 견적 계산기는 입주·이사청소 페이지(movein_cleaning.html)로 옮겼습니다.
   휴대폰 순서: 큰 문구·평점 → 서비스 타일 → 실적 숫자·신뢰 문구 → 소개 문장·서비스 바로가기·상담 버튼
   (상담 버튼은 화면 아래 고정 버튼 줄에도 있어서 아래로 내려도 됩니다. 히어로 사진은 휴대폰에서 숨깁니다)
   #hero, .home-hero-inner, .home-hero-copy를 display: contents로 풀어 .home-top 안에서 순서만 바꿉니다. */
body.home-page > .home-top > :is(section, #trust) { padding-inline: max(5%, calc((100% - var(--home-content-width)) / 2)); }
.home-stats-band { padding-top: 30px; padding-bottom: 22px; background: #fff; }
.home-hero.home-stats-band .hero-stats { margin: 0 auto; padding-top: 0; border-top: 0; }
.home-top > #trust { padding-top: 6px; }
@media (max-width: 800px) {
  .home-top { display: flex; flex-direction: column; padding-top: 100px; background: #f5f3ed; }
  .home-top > #hero.home-hero, .home-top .home-hero-inner, .home-top .home-hero-copy { display: contents; }
  .home-top .home-hero-copy > * { order: 3; margin-left: 5%; margin-right: 5%; }
  .home-top .home-hero-copy > :is(.home-eyebrow, .hero-title, .hero-badge) { order: 1; }
  .home-top .home-hero-copy > .hero-title { margin-bottom: 18px; }
  .home-top .home-hero-copy > .hero-badge { align-self: flex-start; margin-bottom: 26px; }
  .home-top > :is(#service-prices, .home-stats-band, #trust) { order: 2; }
  .home-top .home-hero-copy > .hero-sub { margin-top: 28px; }
  .home-top .home-hero-copy > .hero-btns { width: auto; }
  .home-top .home-hero-visual { display: none; }
}
/* 현장 사진은 4개만 먼저 보여 주고 '더 보기' 버튼으로 펼칩니다 (PC·휴대폰 공통) */
.m-fold:not(.is-open) .m-more { display: none; }
.m-more-btn { display: block; width: 100%; max-width: 420px; margin: 16px auto 0; padding: 13px 16px; border: 1px solid #b9cdbf; border-radius: 10px; background: #fff; color: var(--blue-800); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; }
.m-more-btn[hidden] { display: none; }
.m-more-btn:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; }
.home-hero .hero-btns .btn-kakao { background: #FEE500; color: #3C1E1E; }
.home-hero .hero-btns .btn-kakao:hover { background: #f5dc00; }
.kakao-quote { max-width: var(--home-content-width, 1240px); margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border: 1px solid #f0dc6e; border-radius: 12px; background: #fffbe3; word-break: keep-all; }
.kakao-quote p { margin: 0; }
.kakao-quote strong { display: block; color: #3C1E1E; font-size: 1.08rem; font-weight: 900; }
.kakao-quote span { display: block; margin-top: 4px; color: #5d5130; font-size: .9rem; line-height: 1.6; }
.kakao-quote-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; background: #FEE500; color: #3C1E1E; font-weight: 900; text-decoration: none; }
.kakao-quote-btn:hover { background: #f5dc00; }
.kakao-quote-btn:focus-visible { outline: 3px solid #3C1E1E; outline-offset: 3px; }
@media (max-width: 600px) {
  .kakao-quote { flex-direction: column; align-items: stretch; padding: 16px; }
  .kakao-quote-btn { width: 100%; }
}
/* 2026-10 서비스 타일: 홈 맨 위 '필요한 청소를 골라 보세요' 8칸 (서비스 7개 + 전화·카톡).
   실제 현장 사진 + 가격 한 줄 + 자세히 보기. PC 4칸, 태블릿·휴대폰 2칸 */
.svc-tiles { max-width: var(--home-content-width, 1240px); margin: 1.6rem auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #d3dfcf; border-radius: 12px; background: #fff; color: #244734; text-decoration: none; word-break: keep-all; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.svc-tile:hover { border-color: #3e7862; box-shadow: 0 10px 28px #1b3c3514; transform: translateY(-2px); }
a.svc-tile:focus-visible { outline: 3px solid #3e7862; outline-offset: 3px; }
.svc-tile-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 14px; }
.svc-tile-name { color: #2d6a3f; font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.3; }
.svc-tile-desc { color: #5c695d; font-size: .84rem; line-height: 1.55; }
.svc-tile-price { margin-top: 6px; color: #1b3c35; font-size: 1.12rem; font-weight: 900; letter-spacing: -.02em; }
.svc-tile-price small { font-size: .8em; font-weight: 700; }
.svc-tile-more { margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: #26544a; color: #fff; font-size: .8rem; font-weight: 800; }
.svc-tile img { display: block; width: 100%; height: 150px; margin-top: auto; object-fit: cover; }
.svc-tile--contact { justify-content: center; background: #fff6ee; border-color: #f3d2b3; }
.svc-tile-phone { color: #d9480f; font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.svc-tile-btn { margin-top: 8px; padding: 8px 16px; border-radius: 999px; background: #2d6a3f; color: #fff; font-size: .88rem; font-weight: 800; text-decoration: none; }
.svc-tile-btn--kakao { background: #FEE500; color: #3C1E1E; }
.svc-tile-btn:focus-visible { outline: 3px solid #26544a; outline-offset: 3px; }
@media (max-width: 960px) {
  .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .svc-tiles { gap: 10px; margin-top: 1.2rem; }
  .svc-tile-text { gap: 3px; padding: 12px 12px 10px; }
  .svc-tile-name { font-size: 1.05rem; }
  .svc-tile-desc { font-size: .74rem; line-height: 1.45; }
  .svc-tile-price { margin-top: 4px; font-size: .95rem; }
  .svc-tile-more { margin-top: 6px; padding: 4px 10px; font-size: .72rem; }
  .svc-tile img { height: 90px; }
  .svc-tile-phone { font-size: 1.22rem; }
  .svc-tile-btn { margin-top: 6px; padding: 7px 12px; font-size: .78rem; }
}
/* 2026-10 평점·운영 기간 강조: 큰 문구 바로 밑, 노란 바탕에 큰 글씨 */
.home-hero .hero-badge.hero-badge--big { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 0; margin-bottom: 1.4rem; padding: 12px 18px; border: 1px solid #f1cf6b; border-radius: 12px; background: #fff8dc; color: #3d3415; font-size: 1.05rem; font-weight: 800; line-height: 1.5; box-shadow: none; }
.hero-badge--big strong { color: #b4470d; font-size: 1.15em; font-weight: 900; }
.hero-badge--big > span + span { padding-left: 14px; border-left: 1px solid #e3c766; }
@media (max-width: 600px) {
  .home-hero .hero-badge.hero-badge--big { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; font-size: .98rem; }
  .hero-badge--big > span + span { padding-left: 0; border-left: 0; }
}
/* 2026-10 휴대폰 첫 화면: 큰 문구와 평점을 가운데 정렬 (아래 섹션 제목들과 맞춤) */
@media (max-width: 800px) {
  .home-top .home-hero-copy > :is(.home-eyebrow, .hero-title) { text-align: center; }
  .home-top .home-hero-copy > .hero-badge { align-self: center; }
}
@media (max-width: 600px) {
  .home-hero .hero-badge.hero-badge--big { align-items: center; text-align: center; }
}
