/*
Theme Name: ToiletFix
Description: 집수리팩토리 화장실수리 전문 사이트
Author: 집수리팩토리
Version: 3.0
Text Domain: toiletfix
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --color-bg-main: #FFF8F0;
  --color-bg-soft: #F4E1D2;
  --color-bg-accent: #E8C3A5;
  --color-primary: #B85C38;
  --color-primary-dark: #7A3E2A;
  --color-secondary: #7D8061;
  --color-secondary-light: #E4E1C8;
  --color-text-main: #2A1E18;
  --color-text-sub: #5C5650;
  --color-text-muted: #8A7D72;
  --color-border: #D8C7B8;
  --color-white: #FFFFFF;
  --shadow-soft: 0 12px 32px rgba(42, 30, 24, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 7px;
}

body {
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--color-text-sub);
  background: var(--color-bg-main);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  color: var(--color-text-main);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  background: rgba(125, 128, 97, 0.14);
  border: 1px solid rgba(125, 128, 97, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.section { padding-top: 72px; padding-bottom: 72px; }
.section--mist { background: var(--color-bg-main); }
.section--peach { background: var(--color-bg-soft); }
.section--clay { background: var(--color-bg-accent); }
.section--white { background: var(--color-white); }
.section--secondary-light { background: var(--color-secondary-light); }
.section--cta-dark { background: var(--color-primary-dark); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 14px; }
.section-head p { font-size: 16.5px; color: var(--color-text-sub); }

.emphasis-line {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
.emphasis-line b, .emphasis-line strong { color: var(--color-primary); }
.final-cta .emphasis-line { color: var(--color-white); }
.final-cta .emphasis-line b, .final-cta .emphasis-line strong { color: var(--color-bg-soft); }

/* ---------- Buttons ---------- */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
  border: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-call:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(125, 128, 97, 0.35);
}
.btn-call:active { transform: translateY(-1px) scale(0.99); }
.btn-call svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Content / FAQ links (kill default blue) ---------- */
.page-body a, .faq-a a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-body a:hover, .faq-a a:hover { color: var(--color-secondary); }

/* ---------- Fade animations ---------- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up-stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

.fade-in-dir { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-dir.is-visible { opacity: 1; transform: translate(0, 0) !important; }
.from-left { transform: translateX(-24px); }
.from-right { transform: translateX(24px); }
.from-top { transform: translateY(-24px); }
.from-bottom { transform: translateY(24px); }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--color-text-main); font-family: "Noto Sans KR", sans-serif; }
.brand svg { width: 28px; height: 28px; color: var(--color-primary); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 10px 15px; font-weight: 500; font-size: 15px;
  color: var(--color-text-sub); border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.main-nav .btn-call { padding: 10px 22px; font-size: 15px; margin-left: 4px; color: var(--color-white); }
.main-nav .btn-call:hover { color: var(--color-white); }

/* ================= MOBILE STICKY CTA ================= */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--color-bg-main); border-top: 1px solid var(--color-bg-accent);
  box-shadow: 0 -6px 20px rgba(42,30,24,0.12);
}
.mobile-cta .btn-call { width: 100%; justify-content: center; background: var(--color-primary-dark); }
.mobile-cta .btn-call:hover { background: var(--color-secondary); }

/* ================= 1. MOSAIC GALLERY ================= */
.mosaic-wrap { padding: 28px 0 44px; background: var(--color-bg-main); }
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
  height: 560px;
}
.mosaic-grid .m-big { grid-row: span 2; }
.mosaic-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 8px; }
.mosaic-side .m-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mosaic-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
}
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-tile:hover img { transform: scale(1.03); }
.mosaic-label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 13px; font-weight: 700; color: var(--color-white);
  background: rgba(184, 92, 56, 0.85);
  padding: 5px 14px; border-radius: 999px; letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.25s ease;
}
.mosaic-tile:hover .mosaic-label { background: var(--color-primary-dark); transform: translateY(-2px); }

/* 지역 페이지: 사진으로 보는 수리 항목 링크 */
.keyword-photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.keyword-photo-grid .mosaic-tile { aspect-ratio: 3/4; display: block; }

/* ================= 2. H1 ================= */
.hero-h1-row {
  text-align: center;
  padding: 56px 0 60px;
  background: var(--color-bg-soft);
}
.hero-h1-row h1 { font-size: clamp(42px, 7vw, 66px); color: var(--color-text-main); }
.hero-h1-row .sub {
  font-size: 19px; color: var(--color-text-sub); font-weight: 700; margin: 18px 0 10px;
}
.hero-h1-row .desc { max-width: 560px; margin: 0 auto 30px; font-size: 16.5px; color: var(--color-text-sub); }

/* ================= 3. SPACE MAP ================= */
.space-map { position: relative; max-width: 760px; margin: 0 auto; }
.space-map-img { position: relative; }
.space-map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.space-map-frame img { width: 100%; display: block; }
.map-pin-wrap { position: absolute; transform: translate(-50%, -50%); text-align: center; }
.map-pin {
  width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden;
  display: block;
  padding: 0; margin: 0;
  background: var(--color-bg-main);
  box-shadow: 0 4px 14px rgba(42,30,24,0.4);
  border: 3px solid var(--color-white);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.map-pin::before, .map-pin::after { content: none !important; }
.map-pin:focus, .map-pin:focus-visible { outline: none; }
.map-pin img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border: none; background: none;
}
.map-pin:hover, .map-pin-wrap.is-open .map-pin { border-color: var(--color-primary); transform: scale(1.12); }
.map-pin-label {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 700; color: var(--color-white);
  background: rgba(42, 30, 24, 0.72);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.map-pin-wrap:hover .map-pin-label, .map-pin-wrap.is-open .map-pin-label { background: var(--color-primary); }
.map-tooltip {
  position: absolute; z-index: 5; left: 50%; top: 100%; margin-top: 8px;
  min-width: 200px; max-width: 240px;
  background: var(--color-bg-main); color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.6; text-align: left;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.map-tooltip:hover { background: var(--color-bg-soft); }
.map-tooltip strong { display: block; color: var(--color-text-main); font-size: 14.5px; margin-bottom: 4px; }
.map-pin-wrap:hover .map-tooltip, .map-pin-wrap.is-open .map-tooltip { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.map-tooltip.tooltip-up { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 8px; transform: translate(-50%, -6px); }
.map-pin-wrap:hover .map-tooltip.tooltip-up, .map-pin-wrap.is-open .map-tooltip.tooltip-up { transform: translate(-50%, 0); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 30px; }
.map-legend span { font-size: 13.5px; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.map-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

/* ---------- 사진 확대 라이트박스 ---------- */
.map-zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 14, 10, 0.86);
  align-items: flex-start; justify-content: center;
  overflow-y: auto;
  padding: 60px 20px;
}
.map-zoom-overlay.is-open { display: flex; }
.map-zoom-box { max-width: 480px; width: 100%; margin: auto; }
.map-zoom-box img {
  width: 100%; height: auto; max-height: 55vh; object-fit: contain;
  border-radius: var(--radius-md); box-shadow: var(--shadow-soft); display: block;
  background: rgba(255,255,255,0.05);
}
.map-zoom-box figcaption { text-align: center; margin-top: 16px; color: var(--color-white); padding-bottom: 20px; }
.map-zoom-box figcaption strong { display: block; font-size: 18px; margin-bottom: 6px; }
.map-zoom-box figcaption span { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.map-zoom-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.map-zoom-close:hover { background: rgba(255,255,255,0.24); }

/* ================= 4. MENU BOARD ================= */
.menu-board { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.menu-board-lead {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  font-size: clamp(22px, 2.7vw, 30px); color: var(--color-white); line-height: 1.5;
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  border-left: 6px solid var(--color-secondary);
  box-shadow: var(--shadow-soft);
}
.menu-list { border-top: 2px solid var(--color-text-main); }
.menu-list li { border-bottom: 1px solid var(--color-border); background: var(--color-white); }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 18px;
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}
.menu-list a:hover { border-left-color: var(--color-primary); background: var(--color-bg-soft); padding-left: 24px; }
.menu-list .name { font-size: 20px; color: var(--color-primary); font-weight: 700; margin-bottom: 4px; display: block; }
.menu-list .desc { font-size: 14px; color: var(--color-text-sub); }
.menu-list .go { font-size: 13px; font-weight: 700; color: var(--color-secondary); white-space: nowrap; flex-shrink: 0; }

/* ================= 5. PHOTO GUIDE (phone frame) ================= */
.phone-scroll {
  display: grid; grid-template-columns: repeat(4, 210px); justify-content: center;
  gap: 26px 22px; padding: 10px 4px 20px;
}
.phone-card { width: 210px; margin: 0 auto; }
.phone-frame {
  position: relative; width: 210px; height: 420px; border-radius: 30px;
  background: var(--color-text-main); padding: 12px; box-shadow: var(--shadow-soft);
}
.phone-frame::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.25);
}
.phone-screen { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-num {
  position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.phone-caption { text-align: center; margin-top: 12px; font-size: 14px; color: var(--color-text-main); font-weight: 700; transition: color 0.2s ease; }
.phone-card:hover .phone-caption { color: var(--color-primary); }

/* ================= 6. BEFORE / AFTER ================= */
.ba-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.ba-wrap::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: rgba(255,248,240,0.7); transform: translateX(-1px);
}
.ba-pane { position: relative; aspect-ratio: 4/3.4; overflow: hidden; }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; }
.ba-pane .label {
  position: absolute; top: 16px; left: 16px;
  color: var(--color-white); font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; letter-spacing: 0.05em;
  transition: transform 0.2s ease;
  background: var(--color-primary-dark);
}
.ba-pane:last-child .label { background: var(--color-secondary); }
.ba-pane:hover .label { transform: translateY(-2px); }
.ba-caption { text-align: center; margin-top: 16px; font-size: 13px; color: var(--color-text-muted); }

/* ================= 7. TABS (부위별 설명) ================= */
.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab-btn {
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--color-white); border: 1.5px solid var(--color-border); color: var(--color-text-sub);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tab-panel h3 { font-size: 24px; margin-bottom: 14px; color: var(--color-primary-dark); }
.tab-panel .col p { margin-bottom: 12px; font-size: 15.5px; color: var(--color-text-sub); }
.tab-panel .col strong { color: var(--color-text-main); }
.tab-note { margin-top: 10px; font-size: 13.5px; color: var(--color-secondary); }

/* ================= 8. REGION BAR ================= */
.region-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.region-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--color-white); border: 1px solid var(--color-border);
  font-weight: 700; font-size: 15px; color: var(--color-text-main);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.region-pill:hover { border-color: var(--color-primary); background: var(--color-bg-accent); transform: translateY(-2px); }
.region-pill svg { width: 16px; height: 16px; color: var(--color-primary); }
.region-pill.is-current { opacity: 0.5; pointer-events: none; border-style: dashed; }

/* ================= 9. FAQ ================= */
.faq-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; text-align: left; font-size: 16.5px; font-weight: 700; color: var(--color-text-main);
}
.faq-q .plus { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--color-primary); border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item.is-open .faq-q { border-left: 3px solid var(--color-primary); padding-left: 10px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; font-size: 15px; color: var(--color-text-sub); }
.faq-a-inner { padding: 0 4px 22px; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ================= FINAL CTA ================= */
.final-cta { text-align: center; }
.final-cta .emphasis-line { margin-bottom: 30px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--color-text-main); color: var(--color-bg-soft); padding: 46px 0 96px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .biz dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.site-footer .biz dt { color: rgba(244, 225, 210, 0.55); }
.site-footer .biz dd { color: var(--color-bg-soft); }
.site-footer a.sitemap-link { color: var(--color-bg-accent); font-weight: 700; font-size: 14px; }
.site-footer a.sitemap-link:hover { color: var(--color-primary); }
.site-footer .brand-line { font-family: "Noto Sans KR", sans-serif; font-weight: 800; font-size: 18px; color: var(--color-white); margin-bottom: 12px; }

/* ================= INNER PAGE (keyword/region/contact/sitemap) ================= */
.page-hero { text-align: center; padding: 44px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 52px); color: var(--color-text-main); }
.page-hero p { max-width: 560px; margin: 16px auto 0; font-size: 17px; color: var(--color-text-sub); }
.hero-photo-single { max-width: 640px; margin: 0 auto 46px; }
.hero-photo-single figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 16/9; }
.hero-photo-single img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-single figcaption { text-align: center; margin-top: 8px; font-size: 12.5px; color: var(--color-text-muted); }

.page-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-photos figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.page-photos img { width: 100%; height: 100%; object-fit: cover; }
.page-photos figcaption { margin-top: 8px; font-size: 12.5px; color: var(--color-text-muted); text-align: center; }
.page-body { max-width: 720px; margin: 0 auto; }
.page-body h2 { font-size: 25px; margin: 42px 0 14px; color: var(--color-primary-dark); }
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin-bottom: 16px; font-size: 16px; color: var(--color-text-sub); }
.page-body p:last-child { margin-bottom: 0; }
.page-cta { text-align: center; padding-top: 8px; }

/* mini part grid (bathroom-repair keyword page) */
.mini-part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-part-grid .item {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 16px 14px;
}
.mini-part-grid .item:nth-child(4n+2) { background: var(--color-bg-soft); border-color: var(--color-bg-accent); }
.mini-part-grid .item:nth-child(4n+3) { background: var(--color-secondary-light); border-color: var(--color-secondary); }
.mini-part-grid .item strong { display: block; color: var(--color-primary); font-size: 15px; margin-bottom: 4px; }
.mini-part-grid .item span { font-size: 13px; color: var(--color-text-muted); }
.mini-guide-row { display: grid; grid-template-columns: repeat(4, 160px); justify-content: center; gap: 18px; padding: 6px 2px 10px; }
.mini-guide-row .phone-frame { width: 160px; height: 320px; }
.mini-guide-row .phone-card { width: 160px; margin: 0 auto; }

/* type breakdown (keyword pages) — Card B / C / D rotation */
.type-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
  background: var(--color-bg-main); border: 1px solid var(--color-bg-accent); border-radius: var(--radius-md);
  padding: 26px 22px;
}
.type-card .n { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-size: 30px; color: var(--color-bg-accent); -webkit-text-stroke: 1.5px var(--color-primary); margin-bottom: 8px; }
.type-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--color-primary); }
.type-card p { font-size: 14.5px; color: var(--color-text-sub); }
.type-card:nth-child(2) { background: var(--color-bg-soft); border: none; }
.type-card:nth-child(2) h3 { color: var(--color-primary-dark); }
.type-card:nth-child(2) .n { -webkit-text-stroke: 1.5px var(--color-primary-dark); }
.type-card:nth-child(3) { background: var(--color-secondary-light); border-color: var(--color-secondary); }
.type-card:nth-child(3) h3 { color: var(--color-text-main); }
.type-card:nth-child(3) .n { -webkit-text-stroke: 1.5px var(--color-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-cta { display: block; }
  .map-pin { width: 56px; height: 56px; border-width: 2px; }
  .keyword-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-part-grid { grid-template-columns: repeat(2, 1fr); }
  .map-pin-label { font-size: 10.5px; padding: 2px 7px; }
  .mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .mosaic-grid .m-big { grid-row: auto; aspect-ratio: 4/3; }
  .mosaic-side .m-pair .mosaic-tile { aspect-ratio: 1/1; }
  .menu-board { grid-template-columns: 1fr; gap: 26px; }
  .ba-wrap { grid-template-columns: 1fr; }
  .ba-wrap::after { display: none; }
  .tab-panel-inner { grid-template-columns: 1fr; gap: 16px; }
  .page-photos { grid-template-columns: 1fr; }
  .type-breakdown { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .phone-scroll { grid-template-columns: repeat(2, 42vw); }
  .phone-scroll .phone-card, .phone-scroll .phone-frame { width: 42vw; }
  .phone-scroll .phone-frame { height: calc(42vw * 2); max-height: 360px; }
  .mini-guide-row { grid-template-columns: repeat(2, 42vw); }
  .mini-guide-row .phone-card, .mini-guide-row .phone-frame { width: 42vw; }
  .mini-guide-row .phone-frame { height: calc(42vw * 2); max-height: 280px; }
}
