/* ══════════════════════════════════════════════
   MODERN MACHINE PARTS & SUPPLIES — Industrial Design System
══════════════════════════════════════════════ */

:root {
  --primary:   #0F1A31;
  --primary-d: #0A1326;
  --accent:    #FF675B;
  --accent-d:  #E8503F;
  --accent-2:  #103893;
  --ink-soft:  #EBF2F6;
  --mute:      #B5B5B5;
  --yellow:    #F4B400;
  --bg:        #F7F7F7;
  --dark:      #0A1326;
  --success:   #2FB37C;
  --border:    #EDEDED;
  --text:      #0F1A31;
  --text-sub:  #5A6478;
  --shadow-sm: 0 2px 6px rgba(15,26,49,.05);
  --shadow:    0 6px 24px rgba(15,26,49,.09);
  --shadow-lg: 0 12px 40px rgba(15,26,49,.15);
  --radius:    10px;
  --max:       1240px;

  --font-head: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-body: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand:'Syne', 'Bricolage Grotesque', sans-serif;
  --font-form: 'Inter', -apple-system, sans-serif;
  --font-hand: 'Bricolage Grotesque', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;   /* iOS 가로 모드에서 글자 자동 확대 막기 */
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  /* iOS Safari 탭 시 파란 하이라이트 제거 */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
@media (max-width: 540px) {
  html, body { font-size: 16px; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;   /* iOS Safari 기본 둥근 모서리 제거 */
  appearance: none;
}
input, textarea, select {
  font-family: inherit;
  font-size: 16px;            /* iOS Safari 입력 포커스 시 자동 줌인 방지 */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;           /* iOS 기본 둥근 모서리 제거 */
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
  position: -webkit-sticky;  /* iOS Safari ≤12 */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: white;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-head);
  font-size: 28px;
  letter-spacing: 1px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .15s;
}
.nav a:hover { color: var(--yellow); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 9px 16px; font-size: 13px; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.menu-toggle span {
  height: 2px;
  background: white;
  width: 100%;
}

/* Mobile-only CTA links inside nav dropdown */
.nav-cta { display: none; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  transition: transform .12s, box-shadow .12s, background .12s;
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--primary);
}
.btn-yellow:hover {
  background: #e0a500;
}
.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}
.btn-block { width: 100%; }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(26,26,26,.85) 0%, rgba(30,42,56,.9) 100%),
    radial-gradient(circle at 20% 30%, rgba(194,62,42,.3), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244,180,0,.15), transparent 50%),
    #1A1A1A;
  background-blend-mode: normal;
  color: white;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 80px);
  pointer-events: none;
  z-index: 1;
}
/* Hero video layer (below content) */
.hero-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;  /* fallback for iOS < 14.5 */
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  z-index: 0;
  /* Safari가 loadeddata 이벤트 미발생 시에도 영상 보이도록 — opacity 트랜지션 제거 */
  opacity: 1;
}
.hero-video.loaded { opacity: 1; }
/* Dark overlay above video for text readability */
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,.55) 0%, rgba(30,42,56,.75) 100%),
    radial-gradient(circle at 20% 30%, rgba(194,62,42,.18), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* Desktop/Mobile video switching */
.hero-video-desktop { display: block; }
.hero-video-mobile  { display: none; }
@media (max-width: 767px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile  { display: block; }
}
.hero-inner {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-radius: 3px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 84px);
  line-height: .95;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero h1 .accent { color: var(--accent); }
.hero p.sub {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── TRUST BAR ──────────────────────────────── */
.trust-bar {
  background: var(--primary);
  color: white;
  padding: 36px 24px;
  overflow: hidden;
}
.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  /* auto-fit으로 폭 좁아지면 자동 줄바꿈 — 미디어쿼리 없어도 안정적 */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.trust-item .icon {
  font-size: 48px;
  color: var(--yellow);
  line-height: 1;
}
.trust-item .label {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: .3px;
  white-space: nowrap;
}
.trust-item .sub {
  font-size: 15px;
  color: rgba(255,255,255,.65);
}

/* ── SECTION COMMON ─────────────────────────── */
.section {
  padding: 80px 24px;
  /* 가로 스크롤 안전망 — clip이 더 안전하지만 Safari ≤15는 hidden으로 fallback */
  overflow-x: hidden;
  overflow-x: clip;
}
.section-dark {
  background: var(--primary);
  color: white;
}
.section-alt {
  background: white;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-dark .section-head .eyebrow {
  color: var(--yellow);
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-sub);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* ── WHY CARDS ──────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.why-card .icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.why-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.6;
}

/* ── SERVICE CARDS ──────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(var(--services-cols, 5), 1fr);
  gap: 16px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card .icon {
  font-size: 44px;
  margin-bottom: 14px;
  color: var(--accent);
}
.service-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  min-height: 52px;
  line-height: 1.25;
}
.service-card .price {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--accent);
  letter-spacing: .5px;
}
.service-card .time {
  font-size: 16px;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ── REVIEWS ────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--yellow);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-text {
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 1.4;
  color: var(--primary);
  flex: 1;
  margin-bottom: 18px;
}
.review-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.review-author small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ── DUAL CTA ───────────────────────────────── */
.dual-cta {
  background: var(--dark);
  background-image:
    linear-gradient(135deg, rgba(30,42,56,.95), rgba(26,26,26,.98)),
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(244,180,0,.03) 30px, rgba(244,180,0,.03) 60px);
  color: white;
  padding: 100px 24px;
}
.dual-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dual-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 50px 36px;
  text-align: center;
}
.dual-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(194,62,42,.12), rgba(194,62,42,.02));
}
.dual-card h3 {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.dual-card p {
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.6;
}

/* ── LOCATION ───────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}
.location-grid > * { min-width: 0; }
.location-info {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.location-info h3 {
  font-family: var(--font-head);
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--primary);
}
.info-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border: none; }
.info-row .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.info-row .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.info-row .value {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
.map-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}
.hand-map {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  min-width: 0;
}
.hand-map-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.hand-map-title {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.hand-map-sub {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-sub);
  display: block;
  margin-top: 4px;
}
.hand-map-svg,
.hand-map-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.hand-map-foot {
  padding: 16px 18px;
  font-size: 15px;
  background: rgba(244,180,0,.08);
  border-top: 1px solid var(--border);
  line-height: 1.55;
}
.hand-map-foot strong { color: var(--primary); }
.hand-map-foot em {
  font-style: normal;
  color: var(--text-sub);
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
}
.map-wrap iframe {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 360px;
  flex: 1;
  border: none;
  display: block;
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #0E1620;
  color: rgba(255,255,255,.7);
  padding: 56px 24px 24px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  font-family: var(--font-head);
  font-size: 28px;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

/* ══════════════════════════════════════════════
   FORM PAGES (Book / Quote)
══════════════════════════════════════════════ */
.page-hero {
  background: var(--primary);
  color: white;
  padding: 80px 24px 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto;
}

.form-wrap {
  max-width: 720px;
  margin: -40px auto 60px;
  background: white;
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

/* Progress bar (book.html) */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}
.progress-step {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}
.progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
}
.progress-step.active .progress-circle {
  background: var(--accent);
  color: white;
}
.progress-step.done .progress-circle {
  background: var(--success);
  color: white;
}
.progress-line {
  width: 60px;
  height: 3px;
  background: var(--border);
  margin: 0 8px;
}
.progress-step.done + .progress-line,
.progress-step.active + .progress-line {
  background: var(--accent);
}
.progress-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 28px;
  font-weight: 500;
}

/* Form elements */
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 17px;
  background: white;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,62,42,.12);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.field-help {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 6px;
}

.form-step { display: none; }
.form-step.active { display: block; }

/* Service select cards */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.service-pick {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  background: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .15s;
}
.service-pick:hover { border-color: var(--accent); }
.service-pick.selected {
  border-color: var(--accent);
  background: rgba(194,62,42,.06);
  box-shadow: 0 0 0 2px rgba(194,62,42,.15);
}
.service-pick .name {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  line-height: 1.25;
}
.service-pick .meta {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 2px;
}
.service-pick .price-tag {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: .5px;
}

/* 날짜 input — 크고 누르기 좋게, 캘린더 아이콘 강조 */
.field input[type="date"] {
  font-size: 17px !important;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 16px 14px;
  cursor: pointer;
  color: var(--primary);
}
.field input[type="date"]:hover {
  border-color: var(--accent);
}
/* Webkit (Chrome/Safari) — 캘린더 아이콘 빨갛게 */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(28%) sepia(89%) saturate(1100%) hue-rotate(345deg) brightness(.95);
  transform: scale(1.3);
  opacity: .85;
  margin-left: 8px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Time slot grid — 더 크게, 누르기 좋게 */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.slot {
  padding: 16px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--primary);
  text-align: center;
  cursor: pointer;
  transition: all .12s;
}
.slot:hover:not(:disabled) { border-color: var(--accent); }
.slot.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.slot:disabled {
  background: #f3f3f3;
  color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Summary box */
.summary-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}
.summary-box h4 {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .key {
  color: var(--text-sub);
  font-weight: 500;
}
.summary-row .val {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.step-nav .btn { flex: 1; }
.step-nav .btn-back {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

/* Notice / payment note */
.notice {
  background: rgba(244,180,0,.12);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.45;
}
.notice .icon { font-size: 22px; }

/* Photo upload (quote.html) */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(194,62,42,.04);
}
.upload-zone .icon { font-size: 48px; margin-bottom: 10px; color: var(--accent); }
.upload-zone .label { font-weight: 700; font-size: 18px; color: var(--primary); }
.upload-zone .help { font-size: 14px; color: var(--text-sub); margin-top: 6px; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.upload-preview .thumb {
  position: relative;
  aspect-ratio: 1;
  /* Safari < 15 fallback — padding-bottom 100% 트릭 */
  padding-bottom: 100%;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
@supports (aspect-ratio: 1) {
  .upload-preview .thumb { padding-bottom: 0; }
}
.upload-preview .thumb img,
.upload-preview .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,.7);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 10px;
}
.radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  background: white;
  transition: all .15s;
}
.radio-group label:hover { border-color: var(--accent); }
.radio-group input { display: none; }
.radio-group input:checked + span,
.radio-group label.checked {
  border-color: var(--accent);
  background: rgba(194,62,42,.08);
  color: var(--accent);
}

/* Confirmed page */
.confirmed-wrap {
  max-width: 600px;
  margin: -40px auto 60px;
  background: white;
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  z-index: 2;
}
.check-circle {
  width: 88px;
  height: 88px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(91,146,121,.35);
}
.confirmed-wrap h1 {
  font-family: var(--font-head);
  font-size: 44px;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}
.confirmed-wrap .ref {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 28px;
  font-weight: 500;
}
.confirmed-wrap .ref strong {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 1px;
}
.confirmed-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.confirmed-actions .btn { flex: 1; min-width: 140px; }
.reminder-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-sub);
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
}

/* Inline status (quote success) */
.success-state {
  text-align: center;
  padding: 30px 0;
}
.success-state .check-circle {
  width: 70px;
  height: 70px;
  font-size: 34px;
}

/* ══════════════════════════════════════════════
   BEHIND THE WORKSHOP — Photo gallery
══════════════════════════════════════════════ */
.workshop-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 520px;
}
.workshop-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s;
  min-height: 240px;
}
.workshop-photo:hover { transform: scale(1.02); }
.workshop-photo.feature {
  grid-row: span 2;
  grid-column: span 1;
}
.workshop-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75) 100%);
}
.workshop-photo .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  color: white;
  z-index: 2;
}
.workshop-photo .caption .label {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.workshop-photo .caption .sub {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.workshop-photo .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}
@media (max-width: 920px) {
  .workshop-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .workshop-photo.feature { grid-row: span 1; grid-column: span 1; min-height: 260px; }
  .workshop-photo { min-height: 220px; }
  .workshop-photo .caption .label { font-size: 24px; }
}

/* ══════════════════════════════════════════════
   SMS / iMessage PREVIEW (Confirmed + Quote)
══════════════════════════════════════════════ */
.sms-preview {
  max-width: 340px;
  margin: 28px auto 8px;
  background: #1c1c1e;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  position: relative;
}
.sms-preview::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.sms-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.sms-statusbar {
  background: #f4f4f6;
  padding: 36px 16px 8px;
  text-align: center;
}
.sms-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.sms-from {
  font-size: 13px;
  font-weight: 600;
  color: #000;
}
.sms-sub {
  font-size: 10px;
  color: #888;
}
.sms-body {
  padding: 14px 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.sms-time {
  text-align: center;
  font-size: 10px;
  color: #999;
  margin: 8px 0;
  letter-spacing: .5px;
}
.bubble-row {
  display: flex;
  width: 100%;
}
.bubble-row.them { justify-content: flex-start; }
.bubble-row.me   { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-line;
}
.bubble.them {
  background: #E5E5EA;
  color: #000;
  border-bottom-left-radius: 4px;
}
.bubble.me {
  background: #007AFF;
  color: white;
  border-bottom-right-radius: 4px;
}
.sms-caption {
  text-align: center;
  font-size: 16px;
  color: var(--text-sub);
  margin: 14px 0 8px;
  line-height: 1.4;
}
.sms-caption strong { color: var(--primary); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 920px) {
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .reviews-grid { grid-template-columns: 1fr; }
  .dual-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .trust-item { min-width: 0; gap: 4px !important; }
  .trust-item .icon { font-size: 32px !important; }
  .trust-item .label { font-size: 14px !important; line-height: 1.2; white-space: normal !important; }
  .trust-item .sub { font-size: 11px !important; line-height: 1.25; }
  .trust-bar { padding: 22px 14px !important; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 18px 24px 22px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav .nav-cta {
    display: block;
    margin-top: 6px;
    padding: 13px 18px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
  }
  .nav .nav-cta-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,.3);
  }
  .nav .nav-cta-primary {
    background: var(--accent);
    color: white;
  }
  .nav .nav-cta-yellow {
    background: var(--yellow);
    color: var(--primary);
  }
  .nav-divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 6px 0;
    display: none;
  }
  .nav.open .nav-divider { display: block; }
  .section { padding: 56px 20px; }
  .hero { min-height: 78vh; padding: 60px 20px 50px; }
  .hero-tag { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; letter-spacing: 1.5px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); line-height: .98; margin-bottom: 12px; }
  .hero p.sub { font-size: 15px; margin-bottom: 22px; line-height: 1.45; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-large { padding: 14px 20px; font-size: 15px; }
  .form-wrap { padding: 28px 20px; margin-left: 16px; margin-right: 16px; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .upload-preview { grid-template-columns: repeat(3, 1fr); }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-line { width: 30px; }
  /* Hero 더 컴팩트 (작은 폰) */
  .hero { min-height: 75vh; padding: 50px 18px 40px; }
  .hero-tag { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(32px, 10.5vw, 44px); margin-bottom: 10px; }
  .hero p.sub { font-size: 14px; margin-bottom: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-large { padding: 12px 18px; font-size: 14px; width: 100%; }
}

/* ══════════════════════════════════════════════
   GALLERY 페이지
══════════════════════════════════════════════ */
.nav a.active { color: var(--accent); font-weight: 700; }

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: 0 0 32px;
}
.gf-btn {
  padding: 10px 18px; border: 1.5px solid var(--primary);
  background: #fff; color: var(--primary);
  border-radius: 30px; font-family: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.gf-btn:hover { background: var(--bg); }
.gf-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gf-btn span { opacity: .6; font-size: 13px; margin-left: 2px; }
.gf-btn.active span { opacity: .85; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--primary);
}
.gallery-item.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gi-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 16px; opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-cat { color: var(--yellow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.gi-cap { color: #fff; font-size: 15px; margin-top: 3px; }
.ba-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; z-index: 2;
}

/* CTA */
.gallery-cta {
  text-align: center; margin-top: 48px; padding: 40px 20px;
  background: var(--primary); border-radius: var(--radius); color: #fff;
}
.gallery-cta h3 { font-family: 'Bebas Neue'; font-size: 30px; letter-spacing: .5px; margin-bottom: 8px; }
.gallery-cta p { color: rgba(255,255,255,.8); margin-bottom: 20px; }
.gallery-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Lightbox */
.lb {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close {
  position: absolute; top: 18px; right: 24px; z-index: 2;
  background: none; border: none; color: #fff; font-size: 40px;
  cursor: pointer; line-height: 1; width: 48px; height: 48px;
}
.lb-cap {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

/* 모바일 */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item.featured { grid-column: span 2; aspect-ratio: 16/10; }
  .gf-btn { padding: 8px 14px; font-size: 14px; }
}

/* mm-pref: Call/Text/Email 선택 버튼 */
.mm-pref{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mm-pref > span{font-size:14px;font-weight:600;color:var(--text-muted,#666);margin-right:2px;white-space:nowrap}
.mm-pref label{flex:1;min-width:72px;display:flex;align-items:center;justify-content:center;padding:12px 8px;border:1.5px solid var(--border);border-radius:var(--radius);cursor:pointer;font-weight:700;font-size:15px;background:#fff;transition:all .15s;user-select:none}
.mm-pref label:hover{border-color:var(--accent)}
.mm-pref input[type=radio]{display:none}
.mm-pref label.checked{border-color:var(--accent);background:rgba(194,62,42,.1);color:var(--accent)}
