/* ==========================================================================
   힐스템건강 강북우이점 — 공통 스타일
   차분하고 따뜻한 웰니스 톤
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --cream-2: #f2ece2;
  --sage: #4a5d4e;
  --sage-dark: #35443a;
  --sage-light: #6f8571;
  --clay: #b08968;
  --clay-dark: #9a7255;
  --ink: #2c2a26;
  --ink-soft: #5a564e;
  --line: #e4ddd1;
  --white: #ffffff;

  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(53, 68, 58, 0.12);
  --shadow-sm: 0 8px 24px rgba(53, 68, 58, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 18px;
}

.section { padding: 110px 0; }
.section--tint { background: var(--cream-2); }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); color: var(--sage-dark); }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage); color: #fff; box-shadow: 0 10px 24px rgba(74, 93, 78, 0.28); }
.btn--primary:hover { background: var(--sage-dark); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--clay { background: var(--clay); color: #fff; box-shadow: 0 10px 24px rgba(176, 137, 104, 0.3); }
.btn--clay:hover { background: var(--clay-dark); }
.btn--outline { border-color: var(--sage); color: var(--sage); }
.btn--outline:hover { background: var(--sage); color: #fff; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled { background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 14px 0; }
.site-header.solid { background: var(--cream); box-shadow: 0 1px 0 var(--line); position: sticky; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--sage-dark); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--clay); font-weight: 600; }
.site-header:not(.scrolled):not(.solid) .brand__name { color: #fff; }
.site-header:not(.scrolled):not(.solid) .brand__sub { color: rgba(255,255,255,0.85); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--ink); position: relative; transition: color 0.25s; }
.site-header:not(.scrolled):not(.solid) .nav-links a { color: rgba(255,255,255,0.92); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--clay); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-weight: 700; color: var(--sage-dark); font-size: 0.98rem; }
.site-header:not(.scrolled):not(.solid) .nav-tel { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }
.site-header:not(.scrolled):not(.solid) .nav-toggle span { background: #fff; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--sage-dark); color: rgba(255,255,255,0.82); padding: 72px 0 36px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand__name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--clay); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* Reveal animation --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Page hero (inner pages) -------------------------------------------------- */
.page-hero { padding: 150px 0 80px; background: var(--cream-2); text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); color: var(--sage-dark); }
.page-hero p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--clay); letter-spacing: 0.06em; margin-bottom: 18px; }

/* ---- HOME: Hero ---------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(41, 54, 45, 0.62), rgba(41, 54, 45, 0.72)),
    linear-gradient(120deg, #3c5044, #23302a);
  background-size: cover; background-position: center;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding-top: 60px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.25; }
.hero h1 em { font-style: normal; color: #e8d3bd; }
.hero p { margin: 26px 0 40px; font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }

/* ---- Intro / About ------------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.intro__media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #6f8571, #4a5d4e); }
.intro__media .badge { position: absolute; bottom: 26px; left: 26px; right: 26px; background: rgba(255,255,255,0.94); border-radius: 12px; padding: 20px 24px; }
.intro__media .badge strong { font-family: var(--serif); color: var(--sage-dark); font-size: 1.1rem; }
.intro__media .badge span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
.intro__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--sage-dark); margin-bottom: 22px; }
.intro__body p { color: var(--ink-soft); margin-bottom: 18px; }
.intro-stats { display: flex; gap: 40px; margin-top: 34px; }
.intro-stats .num { font-family: var(--serif); font-size: 2rem; color: var(--clay); font-weight: 700; }
.intro-stats .lbl { font-size: 0.88rem; color: var(--ink-soft); }

/* ---- Feature cards ------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 1.5rem; }
.feature h3 { font-size: 1.25rem; color: var(--sage-dark); margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Service preview cards ------------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card__img { height: 210px; background-size: cover; background-position: center; position: relative; }
.svc-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.28)); }
.svc-card__body { padding: 26px 26px 30px; }
.svc-card__body h3 { font-size: 1.25rem; color: var(--sage-dark); margin-bottom: 10px; }
.svc-card__body p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; }
.svc-card__meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.svc-card__price { font-family: var(--serif); font-weight: 700; color: var(--clay); font-size: 1.1rem; }
.svc-card__time { font-size: 0.85rem; color: var(--ink-soft); }

.center { text-align: center; }
.mt-48 { margin-top: 48px; }

/* ---- Gallery ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease); }
.gallery img:hover { transform: scale(1.02); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--2 img { height: 300px; }
@media (max-width: 700px) { .gallery, .gallery--2 { grid-template-columns: 1fr; } }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--sage), var(--sage-dark)); color: #fff; text-align: center; padding: 90px 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.86); margin-bottom: 34px; font-size: 1.05rem; }
.cta-band .btn--primary { background: #fff; color: var(--sage-dark); }
.cta-band .btn--primary:hover { background: var(--cream); }

/* ---- Services page: menu list ------------------------------------------- */
.menu-block { margin-bottom: 72px; }
.menu-block__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.menu-block__head h2 { font-size: 1.7rem; color: var(--sage-dark); }
.menu-block__head span { color: var(--clay); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.menu-item__info h3 { font-size: 1.18rem; color: var(--ink); margin-bottom: 6px; }
.menu-item__info p { color: var(--ink-soft); font-size: 0.94rem; }
.menu-item__price { text-align: right; white-space: nowrap; }
.menu-item__price .p { font-family: var(--serif); font-weight: 700; color: var(--sage-dark); font-size: 1.2rem; }
.menu-item__price .t { display: block; font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; }
.note { background: var(--cream-2); border-left: 3px solid var(--clay); padding: 20px 24px; border-radius: 8px; color: var(--ink-soft); font-size: 0.92rem; margin-top: 20px; }

/* ---- Location page ------------------------------------------------------- */
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 420px; background: linear-gradient(135deg, #dfe6dd, #c7d3c6); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--sage-dark); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list .k { min-width: 84px; font-weight: 700; color: var(--sage-dark); }
.info-list .v { color: var(--ink-soft); }
.info-list .v strong { color: var(--ink); font-weight: 600; }
.hours-open { color: #4a5d4e; font-weight: 700; }

/* ---- Contact form -------------------------------------------------------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--sage-dark); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 0.96rem; color: var(--ink); background: var(--cream); transition: border 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-light); box-shadow: 0 0 0 3px rgba(111,133,113,0.18); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }
.form-success { display: none; background: #eaf1e8; border: 1px solid #c3d6bf; color: var(--sage-dark); padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; }
.form-success.show { display: block; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .intro, .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .features, .svc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }

  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--cream);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px;
    transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.12); z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; font-size: 1.15rem; }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-tel { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .intro-stats { gap: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .menu-item { grid-template-columns: 1fr; gap: 8px; }
  .menu-item__price { text-align: left; }
}
