/* golf-fitting-landing v2 — dark reference-driven design
   refs: GLASSHAVEN (full-bleed hero, floating cards, spec table),
         GreenSpace (glass chips, big-number cards) */

/* Brand palette from actual shop signage: Forest Green + Wood Beige + Warm Cream */
:root {
  --bg: #F4EFE6;              /* warm wood cream (from shop wall) */
  --bg-deep: #EAE3D2;         /* warm wood beige (from shop floor/wood panel) */
  --card: #FFFFFF;
  --card-2: #FAF9F5;
  --line: rgba(28, 51, 37, 0.07);
  --line-strong: rgba(28, 51, 37, 0.14);
  --text: #2A241E;            /* deep charcoal wood text */
  --muted: #6B6259;           /* muted wood gray */
  --accent: #1C3325;          /* Forest Green (from sign) */
  --accent-deep: #122218;
  --sand: #C9A55F;            /* Gold emblem color */
  --cream: #DFD7C2;           /* darker wood cream */
  --cream-card: #FAF9F5;
  --green-on-cream: #1C3325;
  --glass: rgba(28, 51, 37, 0.03);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font: Pretendard, "Pretendard Variable", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body.no-scroll { overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- photo slots (positions for real photos) ---------- */

.photo-slot {
  position: relative;
  overflow: hidden;
  background: #EAEAE6;
  border: 1px dashed rgba(28, 51, 37, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slot .slot-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5A7063;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 51, 37, 0.1);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  line-height: 1.5;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- header (fixed site nav) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(28, 51, 37, 0.02);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap; /* 다시 한 줄로 고정 */
  overflow-x: auto; /* 한 줄 고정이지만 넘칠 때 스크롤 가능하게 처리 */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* 파이어폭스용 */
}

.site-nav::-webkit-scrollbar {
  display: none; /* 크롬, 사파리용 */
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
}

.site-nav a:hover { color: var(--text); }

section[id] { scroll-margin-top: 76px; }

/* ---------- scroll guide navigation (dot nav) ---------- */

.scroll-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scroll-nav a {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28, 51, 37, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.scroll-nav a:hover {
  background: rgba(28, 51, 37, 0.5);
}

.scroll-nav a.active {
  background: var(--accent);
  transform: scale(1.4);
}

.scroll-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-strong);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 10px rgba(28, 51, 37, 0.1);
}

.scroll-nav a:hover::after,
.scroll-nav a.active::after {
  opacity: 1;
}

@media (max-width: 960px) {
  .scroll-nav { display: none; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-mark {
  height: 52px;
  width: auto;
  display: block;
}

.logo small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-transform: uppercase;
}

.header-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  color: var(--text);
}

.header-cta:hover {
  background: var(--text);
  border-color: var(--text);
  color: #FAF9F5;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: #F2EFE6;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media .photo-slot {
  width: 100%;
  height: 100%;
  border: none;
}

/* extra height buffer so the slow parallax shift never reveals an edge */
.hero-media .photo-slot img {
  height: 130%;
  top: -15%;
  bottom: auto;
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 22, 18, 0.30) 0%, rgba(16, 22, 18, 0.20) 45%, rgba(16, 22, 18, 0.62) 100%);
}

.hero-media .slot-label { position: relative; z-index: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E0C98A; /* brighter gold for legibility on the dark hero photo */
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sand);
}

.hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 230, 0.88);
  margin-bottom: 32px;
}

.hero-cta {
  background: var(--sand);
  color: #1C1610;
  border: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.hero-cta:hover {
  background: #DDB766;
  transform: translateY(-3px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25), 0 14px 28px rgba(0, 0, 0, 0.3);
}

.hero-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--text);
  color: #FAF9F5;
  box-shadow: 0 4px 12px rgba(28, 51, 37, 0.12);
  border: none;
}

.btn-solid:hover {
  background: #122218;
  box-shadow: 0 6px 18px rgba(28, 51, 37, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover { 
  background: rgba(28, 51, 37, 0.05);
  transform: translateY(-2px);
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(242, 239, 230, 0.03);
  border: 1px solid rgba(242, 239, 230, 0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 132px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.chip:hover {
  border-color: rgba(201, 165, 95, 0.3);
  background-color: rgba(242, 239, 230, 0.06);
}

.chip b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- section scaffolding ---------- */

section { padding: 96px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title .title-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 800;
  color: #B58A30;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.section-note {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 380px;
}

/* ---------- about: 피팅이란 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.about-body .about-lead {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.about-body p:not(.about-lead) {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ---------- services (signage cream panel) ---------- */

.services {
  background: var(--cream);
  color: var(--text);
}

.services .section-label { color: var(--sand); }
.services .section-note { color: var(--muted); }

.section-note b { color: var(--accent); font-weight: 700; }

.service-more-btn {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  background: none;
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  font-family: inherit;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
}

.service-more-btn:hover {
  background: rgba(28, 51, 37, 0.06);
  transform: translateY(-2px);
}

.service-more-btn:active {
  transform: translateY(0);
}

.service-more-btn .plus {
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  line-height: 1;
}

.service-detail-content { display: none; }

.service-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 51, 37, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.service-detail-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.service-detail-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 34px 32px 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s ease;
}

.service-detail-overlay.is-open .service-detail-modal {
  transform: translateY(0) scale(1);
}

.service-detail-slot .service-detail-content { display: block; }

.service-detail-number {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.service-detail-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28, 51, 37, 0.14);
}

.service-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(28, 51, 37, 0.15);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-content dl { margin-top: 0; }

.service-detail-content .more-lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.service-detail-content dt {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 5px;
}

.service-detail-content dd {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.service-detail-content dd:last-child { margin-bottom: 0; }

.service-detail-content dd a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 165, 95, 0.45);
  padding-bottom: 1px;
}

/* 확인 후 기입 marker — 실제 정보 확정 전 임시 표시 */
.tbd {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sand);
  border: 1px dashed rgba(217, 199, 167, 0.45);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px calc(50% - 160px) 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  flex: 1;
}

.service-carousel::-webkit-scrollbar { display: none; }

.service-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.service-carousel .service-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: center;
  opacity: 0.45;
  transform: scale(0.86);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-carousel .service-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28, 51, 37, 0.15);
  background: var(--cream-card);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.service-carousel .service-card.no-transition { transition: none !important; }

.carousel-arrow:hover { background: var(--bg-deep); }
.carousel-arrow:active { transform: scale(0.92); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(28, 51, 37, 0.22);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.service-card {
  position: relative;
  background: var(--cream-card);
  border: 1px solid rgba(28, 51, 37, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(28, 51, 37, 0.24), 0 6px 14px rgba(28, 51, 37, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 109, 51, 0.45);
  box-shadow: 0 20px 40px rgba(28, 51, 37, 0.08), 0 2px 8px rgba(138, 109, 51, 0.03);
}

.service-card .photo-slot {
  aspect-ratio: 4 / 3;
  border: none;
  border-bottom: 1px solid rgba(28, 51, 37, 0.12);
}

.service-body { padding: 22px 24px 26px; }

.service-number {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.service-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* service detail on cream cards */
.service-more-btn { color: var(--accent-deep); }
.service-more-btn .plus { background: var(--accent-deep); }
.service-detail-content dd a {
  color: var(--accent);
  border-bottom-color: rgba(138, 109, 51, 0.45);
}
.service-detail-content .tbd {
  color: var(--accent-deep);
  border-color: rgba(138, 109, 51, 0.5);
}

/* ---------- price table (GLASSHAVEN spec-table style) ---------- */

/* gold double-frame like the shop sign */
.pricing .price-panel {
  background: var(--bg-deep);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
}

.price-intro .section-label { margin-bottom: 14px; }

.price-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.price-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-intro.photo-bg {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}

.price-intro.photo-bg .photo-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.price-intro.photo-bg .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-intro.photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 51, 37, 0.05) 0%, rgba(28, 51, 37, 0.35) 55%, rgba(28, 51, 37, 0.72) 100%);
}

.price-intro-content {
  position: relative;
  z-index: 2;
}

.price-intro.photo-bg .section-label { color: var(--sand); }
.price-intro.photo-bg h2 { color: #FAF9F5; }
.price-intro.photo-bg .price-notes li { color: rgba(250, 249, 245, 0.88); }
.price-intro.photo-bg .price-notes li::before { background: var(--sand); }

.price-notes li {
  position: relative;
  padding-left: 14px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.price-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
}

.price-table { width: 100%; }

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "service value" "note note";
  align-items: baseline;
  column-gap: 16px;
  padding: 13px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-sm, 8px);
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  transition: background-color 0.2s ease;
}

.price-row:hover {
  background-color: rgba(28, 51, 37, 0.035);
}

.price-row:first-child { padding-top: 4px; }

.price-row .price-service { grid-area: service; font-weight: 600; }

.price-row .price-value {
  grid-area: value;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.price-row .price-note {
  grid-area: note;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.price-row .price-value.is-muted {
  color: var(--muted);
  font-weight: 600;
}

.price-row .price-value a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 165, 95, 0.45);
  padding-bottom: 1px;
}

/* ---------- full-width photo band ---------- */

.photo-band { padding: 0; }

.photo-band .photo-slot {
  height: 380px;
  border-left: none;
  border-right: none;
}

/* ---------- Photo overlay sections (stage fitting / approach) ---------- */

.photo-overlay {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.photo-overlay .photo-slot {
  position: absolute;
  inset: 0;
  height: 100%;
  border: none;
}

.photo-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.35) 0%, rgba(244, 239, 230, 0.82) 45%, rgba(244, 239, 230, 0.95) 100%);
}

.photo-overlay .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 72px 24px;
}

.overlay-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.overlay-cards.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
}

.overlay-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 51, 37, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  box-shadow: 0 10px 24px rgba(28, 51, 37, 0.07);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.overlay-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 109, 51, 0.45);
  box-shadow: 0 18px 34px rgba(28, 51, 37, 0.1);
}

.overlay-card b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.overlay-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.85;
}

/* solid-background variant (no photo behind, so no glass/blur needed) */
.overlay-cards.solid .overlay-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  backdrop-filter: none;
  box-shadow: none;
}

/* ---------- Approach: single flowing piece, revealed paragraph by paragraph ---------- */

.approach-flow {
  background: var(--bg-deep);
  padding: 88px 0;
}

.approach-prose {
  max-width: 640px;
}

.approach-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-top: 22px;
}

.approach-prose > .section-label + .approach-heading {
  margin-top: 28px;
}

.approach-prose p.approach-define {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.5;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.approach-heading {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--accent);
  margin: 72px 0 4px;
}

.approach-heading::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--sand);
  margin-bottom: 14px;
}

.approach-prose > .section-label + .approach-heading::before {
  display: none;
}

.approach-graph {
  margin: 64px 0 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  box-shadow: 0 18px 40px rgba(28, 51, 37, 0.08), 0 4px 12px rgba(28, 51, 37, 0.05);
  scroll-margin-top: 92px;
}

.approach-graph .section-title {
  font-size: clamp(21px, 2.4vw, 26px);
}

.graph-source {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

@keyframes graph-filter-hint {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(28, 51, 37, 0.14); }
}

.graph-filters.hint-pulse .graph-filter {
  animation: graph-filter-hint 0.85s ease;
}
.graph-filters.hint-pulse .graph-filter:nth-child(2) { animation-delay: 0.08s; }
.graph-filters.hint-pulse .graph-filter:nth-child(3) { animation-delay: 0.16s; }
.graph-filters.hint-pulse .graph-filter:nth-child(4) { animation-delay: 0.24s; }
.graph-filters.hint-pulse .graph-filter:nth-child(5) { animation-delay: 0.32s; }

.graph-filters {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.graph-filters::-webkit-scrollbar { display: none; }

/* mirrors .btn-ghost (idle) / .btn-solid (active) so the section
   uses the same button language as the rest of the site */
.graph-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-pill);
  background: var(--cream-card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 13px 22px;
  box-shadow: 0 3px 0 rgba(28, 51, 37, 0.22), 0 5px 12px rgba(28, 51, 37, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.graph-filter:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(28, 51, 37, 0.22), 0 12px 20px rgba(28, 51, 37, 0.14);
}
.graph-filter:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(28, 51, 37, 0.22), 0 2px 6px rgba(28, 51, 37, 0.1);
}
.graph-filter:focus-visible { outline: 3px solid rgba(201, 165, 95, 0.5); outline-offset: 2px; }
.graph-filter.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #FAF9F5;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 8px 16px rgba(28, 51, 37, 0.2);
}
.graph-filter.is-active:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 14px 22px rgba(28, 51, 37, 0.24);
}
.graph-filter.is-active:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 3px 8px rgba(28, 51, 37, 0.16);
}

.fit-graph {
  margin-top: 16px;
  height: min(66vh, 600px);
  border-radius: var(--radius-md);
  background-color: var(--bg-deep);
  overflow: hidden;
  touch-action: pan-y;
}

.factor-source {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 4px 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ---------- contact ---------- */

.contact { background: var(--bg-deep); padding-bottom: 72px; }

.contact-panel {
  background: var(--bg-deep);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: 0 22px 45px rgba(28, 51, 37, 0.14), 0 6px 14px rgba(28, 51, 37, 0.08);
}

.contact-actions .btn {
  box-shadow: 0 3px 0 rgba(28, 51, 37, 0.22), 0 6px 14px rgba(28, 51, 37, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-actions .btn-solid {
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), 0 8px 16px rgba(28, 51, 37, 0.18);
}

.contact-actions .btn:hover { transform: translateY(-3px); }

.contact-actions .btn-solid:hover {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3), 0 12px 20px rgba(28, 51, 37, 0.22);
}

.contact-actions .btn-ghost:hover {
  box-shadow: 0 5px 0 rgba(28, 51, 37, 0.22), 0 10px 18px rgba(28, 51, 37, 0.14);
}

.contact-actions .btn:active { transform: translateY(2px); }

.contact-actions .btn-solid:active {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 6px rgba(28, 51, 37, 0.14);
}

.contact-actions .btn-ghost:active {
  box-shadow: 0 1px 0 rgba(28, 51, 37, 0.22), 0 2px 6px rgba(28, 51, 37, 0.1);
}

.contact-body { padding: 52px 52px 56px; }

.contact-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.contact-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  font-size: 14px;
}

.contact-info div b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 4px;
}

.contact-info div span { color: var(--muted); }

.contact-media .photo-slot {
  height: 100%;
  min-height: 380px;
  border: none;
  border-left: 1px solid var(--line);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  max-width: 640px;
  padding-bottom: 44px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span { color: var(--muted); }

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}

/* ---------- sticky mobile call ---------- */

.sticky-call { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }

  .site-header .wrap {
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start; /* 모바일 가로 스크롤은 왼쪽부터 시작 */
    flex-wrap: nowrap; /* 줄바꿈 금지 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 0;
    flex: 0 0 auto; /* 글자 크기 찌그러짐 방지 */
  }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .service-carousel { padding: 6px calc(50% - 130px) 28px; }
  .service-carousel .service-card { width: 260px; }

  .overlay-cards { grid-template-columns: repeat(2, 1fr); }
  .photo-overlay { min-height: 420px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing .price-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }

  .contact-panel { grid-template-columns: 1fr; }
  .contact-media .photo-slot { min-height: 260px; border-left: none; border-top: 1px solid var(--line); }
  .contact-body { padding: 36px 28px 40px; }
}

@media (max-width: 600px) {
  .hero {
    min-height: 72vh; /* 모바일에서 사진이 과하게 세로로 늘어나는 것 방지 */
  }
  .hero-media img {
    object-position: center 25%; /* 사진 속 장비들이 잘 보이는 위치로 초점 고정 */
  }
  .hero-content { padding-bottom: 40px; }
  .hero-chips { width: 100%; }
  .chip { flex: 1; min-width: 0; padding: 10px 12px; }
  .chip b { font-size: 13.5px; }

  .service-grid { grid-template-columns: 1fr; }

  .service-carousel { padding: 6px calc(50% - 118px) 24px; gap: 14px; }
  .service-carousel .service-card { width: 236px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 18px; }

  .service-detail-overlay { padding: 16px; }
  .service-detail-modal { max-width: none; max-height: 78vh; padding: 28px 22px 32px; }

  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }

  .photo-band .photo-slot { height: 240px; }

  .overlay-cards, .overlay-cards.cols-2 { grid-template-columns: 1fr; }
  .photo-overlay .wrap { padding: 56px 20px; }

  .approach-graph {
    padding: 24px 18px 20px;
    margin: 48px 0 20px;
  }

  .graph-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .graph-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
  }

  .fit-graph { height: 440px; }

  .contact-info { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  body { padding-bottom: 62px; }

  .sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    background: var(--accent);
    color: #FAF9F5;
    font-weight: 800;
    font-size: 15.5px;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .btn, .service-card, .header-cta, .faq-item summary::after,
  .overlay-card, .price-row, .reveal,
  .factor-chips, .factor-name::after { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .service-grid .reveal:nth-child(odd),
  .service-grid .reveal:nth-child(even),
  .service-grid .reveal:nth-child(odd).in-view,
  .service-grid .reveal:nth-child(even).in-view { transform: none; }
  .factor-chip { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- scroll reveal (fade + rise on enter) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cascading children within a revealed grid */
.service-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.service-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.service-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* service cards slide in from alternating sides, on top of the base fade-up */
.service-grid .reveal {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}
.service-grid .reveal:nth-child(odd) { transform: translateY(22px) translateX(-32px); }
.service-grid .reveal:nth-child(even) { transform: translateY(22px) translateX(32px); }
.service-grid .reveal:nth-child(odd).in-view,
.service-grid .reveal:nth-child(even).in-view { transform: translateY(0) translateX(0); }

.overlay-cards .reveal:nth-child(2) { transition-delay: 0.06s; }
.overlay-cards .reveal:nth-child(3) { transition-delay: 0.12s; }
.overlay-cards .reveal:nth-child(4) { transition-delay: 0.18s; }


/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 50;
  transition: width 0.1s linear;
}

/* ---------- details & faq transition animations ---------- */
.faq-answer {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}
