/*
Theme Name: ACE Massage
Theme URI: https://www.acehomethai.com/
Author: ACE WordPress Project
Description: 에이스출장안마 WordPress 이전용 단일 커스텀 테마. 에이스 기존 Wix의 따뜻한 색감과 여백을 살리고, 지역별 실제 본문은 각 WordPress 페이지에 독립 저장합니다.
Version: 0.1.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ace-massage
*/

:root {
  --ace-bg: #f7f2ec;
  --ace-surface: #fffdfb;
  --ace-surface-2: #eee6df;
  --ace-ink: #2b211d;
  --ace-muted: #776a63;
  --ace-line: #ded4cc;
  --ace-taupe: #b9a39a;
  --ace-rose: #cf8f86;
  --ace-red: #ef2b24;
  --ace-deep: #241b18;
  --ace-shadow: 0 16px 40px rgba(56, 39, 31, .09);
  --ace-radius: 3px;
  --ace-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ace-ink);
  background: var(--ace-bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.ace-container { width: min(calc(100% - 40px), var(--ace-max)); margin-inline: auto; }
.ace-section { padding: 92px 0; }
.ace-section--white { background: var(--ace-surface); }
.ace-section--soft { background: var(--ace-surface-2); }
.ace-section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.ace-section-head h2,
.ace-serif-title {
  margin: 0 0 15px;
  font-family: Georgia, "Noto Serif KR", "Batang", serif;
  font-weight: 500;
  font-size: clamp(31px, 4.6vw, 48px);
  line-height: 1.27;
  letter-spacing: -.035em;
}
.ace-section-head p { margin: 0; color: var(--ace-muted); font-size: 16px; }
.ace-small-label { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #9b786f; }

/* 상단 */
.ace-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 253, 251, .97);
  border-bottom: 1px solid var(--ace-line);
  backdrop-filter: blur(12px);
}
.ace-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.ace-brand { display: inline-flex; align-items: center; gap: 11px; }
.ace-brand-mark { color: var(--ace-red); font-family: Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1; }
.ace-brand-name { font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.ace-main-nav { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 700; }
.ace-main-nav a { position: relative; padding: 25px 0 22px; }
.ace-main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 16px; height: 1px; background: var(--ace-ink); transition: right .2s ease; }
.ace-main-nav a:hover::after, .ace-main-nav a:focus::after { right: 0; }
.ace-header-call { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 17px; background: var(--ace-deep); color: #fff; font-weight: 800; font-size: 13px; }
.ace-menu-toggle { display: none; padding: 7px; border: 0; background: transparent; color: var(--ace-ink); font-size: 24px; cursor: pointer; }

/* 브레드크럼 */
.ace-breadcrumb-wrap { background: var(--ace-surface); border-bottom: 1px solid var(--ace-line); }
.ace-breadcrumb { min-height: 43px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: #8b7d75; }
.ace-breadcrumb [aria-current="page"] { color: var(--ace-ink); font-weight: 750; }

/* 메인 PAGE는 WordPress 코드편집기 본문 안의 .ace-wix 스타일이 담당합니다.
   이전 메인 시안의 히어로·퀵 안내·소개·지역카드·코스·예약·공지·FAQ 스타일은
   실제 메인 PAGE와 충돌하지 않도록 제거했습니다. */

.ace-master-page.ace-home-page {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}
.page-template-template-home .ace-independent-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.page-template-template-home .ace-independent-content > :first-child {
  margin-top: 0;
}
.page-template-template-home .ace-independent-content > :last-child {
  margin-bottom: 0;
}

/* 지역 페이지 공통 본문 */
.ace-master-page .wp-block-heading:first-child { margin-top: 0; }
.ace-independent-content > :first-child { margin-top: 0; }
.ace-independent-content > :last-child { margin-bottom: 0; }
.ace-page-hero, .ace-detail-hero { background: var(--ace-bg); }
.ace-page-hero-inner, .ace-detail-hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.ace-page-hero-copy, .ace-detail-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 74px); }
.ace-page-hero h1, .ace-detail-hero h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(39px, 5.7vw, 64px); font-weight: 500; line-height: 1.15; letter-spacing: -.05em; }
.ace-page-hero-media img, .ace-detail-hero-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.ace-page-hero-lead, .ace-detail-hero-lead { margin: 21px 0 0; color: var(--ace-muted); font-size: 17px; }
.ace-page-hero-note, .ace-detail-hero-note { margin: 10px 0 0; color: #94877f; font-size: 13px; }

.ace-final-cta { padding: 56px; text-align: center; background: #e9dfd7; }
.ace-final-cta h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(30px,4.5vw,48px); font-weight: 500; line-height: 1.25; }
.ace-final-cta p { max-width: 700px; margin: 15px auto 0; color: var(--ace-muted); }
.ace-final-cta .ace-actions { justify-content: center; }

/* 하단 */
.ace-site-footer { padding: 58px 0 86px; background: #211916; color: #fff; }
.ace-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.ace-footer-brand { font-family: Georgia, serif; font-size: 26px; color: #fff; }
.ace-site-footer h2 { margin: 0 0 13px; font-size: 14px; }
.ace-site-footer p, .ace-footer-links { margin: 10px 0 0; color: rgba(255,255,255,.64); font-size: 13px; }
.ace-footer-links { display: grid; gap: 7px; }
.ace-copyright { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.45); font-size: 11px; }
.ace-mobile-bar { display: none; }
.ace-generic-page { min-height: 60vh; }

@media (max-width: 980px) {
  .ace-main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; padding: 18px 20px 24px; background: var(--ace-surface); border-bottom: 1px solid var(--ace-line); box-shadow: var(--ace-shadow); }
  .ace-main-nav.is-open { display: grid; gap: 0; }
  .ace-main-nav a { padding: 11px 0; }
  .ace-main-nav a::after { display: none; }
  .ace-menu-toggle { display: block; }
  .ace-header-call { display: none; }
  .ace-page-hero-media, .ace-detail-hero-media { order: -1; }
  .ace-page-hero-media img, .ace-detail-hero-media img { min-height: 400px; max-height: 520px; }
  .ace-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 59px; }
  .ace-container { width: min(calc(100% - 28px), var(--ace-max)); }
  .ace-section { padding: 66px 0; }
  .ace-header-inner { min-height: 64px; }
  .ace-brand-mark { font-size: 23px; }
  .ace-brand-name { font-size: 13px; }
  .ace-main-nav { top: 64px; }
  .ace-coverage-row { grid-template-columns: 1fr; gap: 8px; }
  .ace-page-hero-copy, .ace-detail-hero-copy { padding: 37px 25px 43px; }
  .ace-page-hero-media img, .ace-detail-hero-media img { min-height: 340px; }
  .ace-final-cta { padding: 42px 23px; }
  .ace-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ace-mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 8px 10px; background: rgba(255,253,251,.97); border-top: 1px solid var(--ace-line); }
  .ace-mobile-bar a { display: flex; min-height: 43px; align-items: center; justify-content: center; background: var(--ace-red); color: #fff; font-size: 14px; font-weight: 850; }
}
