/* ========================================
   마르다누수탐지 — styles.css
   T15 모노크롬 블루 + C2 일렉트릭블루 + C8 앰버
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700;800&family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* T15 모노크롬 블루 5단계 */
  --navy-900: #0A1628;
  --navy-700: #122A4E;
  --navy-600: #1E3A5F;
  --blue-500: #2563EB;
  --blue-300: #60A5FA;

  /* 액센트 */
  --accent: #0066FF;
  --amber: #FF8F00;

  /* 중립 */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;

  /* 폰트 */
  --font-heading: 'Bricolage Grotesque', 'IBM Plex Sans KR', sans-serif;
  --font-body: 'IBM Plex Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 그리드 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, svg, a, button {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
img {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--gray-700);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* --- Navigation (N7 미니멀) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: auto;
}

.nav__logo span {
  color: var(--blue-300);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-1);
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--navy-900);
  padding: var(--space-12) var(--space-6);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 999;
}

.nav__menu.active {
  right: 0;
}

.nav__menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav__menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav__menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav__menu-list a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: block;
  padding: var(--space-1) 0;
}

.nav__menu-list a:hover {
  opacity: 1;
  color: var(--blue-300);
}

/* --- Buttons (B5 필 애니메이션) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  min-height: 48px;
  min-width: 48px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn--primary::before {
  background: var(--navy-700);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary::before {
  background: var(--accent);
}

.btn--amber {
  background: var(--amber);
  color: var(--white);
  border: 2px solid var(--amber);
}

.btn--amber::before {
  background: #E67E00;
}

.btn--large {
  padding: var(--space-2) var(--space-6);
  font-size: 1.125rem;
  border-radius: 12px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100svh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  overflow: hidden;
  padding-bottom: 72px;
  padding-top: 72px;
  box-sizing: border-box;
}

/* Fix #1: 히어로 오버레이 그라데이션 강화 — rgba 0.6 이상 전체 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.85) 50%, rgba(10,22,40,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content,
.hero__particles,
.hero__scroll {
  position: relative;
  z-index: 2;
}

.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero__content {
  text-align: center;
  z-index: 2;
  padding: 0 var(--space-3);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-number .accent {
  color: var(--white);
}

/* Fix 7: 히어로 텍스트 그림자 — 가독성 강화 */
.hero__title,
.hero__subtitle,
.hero__stat-number,
.hero__stat-label {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-3);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.hero__subtitle {
  color: var(--gray-300);
  font-size: clamp(0.85rem, 1.8vw, 1.125rem);
  margin-bottom: var(--space-5);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}

.hero__scroll svg {
  width: 32px;
  height: 32px;
  stroke: var(--gray-300);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* --- Text Scrub Section (I8) --- */
.text-scrub {
  padding: var(--space-10) 0;
  background: var(--white);
  min-height: auto;
  position: relative;
}

.text-scrub__sticky {
  position: relative;
  top: auto;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
}

.text-scrub__text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(to right, var(--accent) var(--scrub-progress, 0%), var(--gray-200) var(--scrub-progress, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
  max-width: 800px;
}

.text-scrub__sub {
  margin-top: var(--space-4);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-500);
  opacity: 1;
  transform: none;
}

/* --- Wave SVG Divider (S2 / I22) --- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-divider--top { margin-bottom: -1px; }
.wave-divider--bottom { margin-top: -1px; }

.wave-animate path {
  animation: wave-flow 8s ease-in-out infinite alternate;
}

@keyframes wave-flow {
  0% { d: path("M0,64 C320,100,640,20,960,64 C1280,108,1600,28,1920,64 L1920,200 L0,200 Z"); }
  100% { d: path("M0,80 C320,30,640,110,960,80 C1280,50,1600,100,1920,80 L1920,200 L0,200 Z"); }
}

/* --- Services Section (L4 Split) --- */
.services {
  padding: var(--space-12) 0;
  background: var(--gray-50);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.services__header h2 {
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

.services__header p {
  max-width: 600px;
  margin: 0 auto;
}

.services__split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.services__nav {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-3));
}

.services__nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  margin-bottom: var(--space-1);
  font-weight: 500;
  font-size: 1.05rem;
  min-height: 48px;
}

.services__nav-item:hover {
  background: var(--gray-100);
}

.services__nav-item.active {
  background: var(--accent);
  color: var(--white);
}

.services__nav-item.active svg {
  stroke: var(--white);
}

.services__nav-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services__nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  transition: stroke 0.3s ease;
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.services__card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  opacity: 1;
  transform: none;
}

.services__card-img {
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 250px;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
}

.services__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: filter 0.5s ease;
}

.services__card:hover .services__card-img img {
  filter: brightness(1.05);
}

.services__card-body {
  padding: var(--space-4) 32px;
}

.services__card-body h3 {
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

.services__card-body p {
  line-height: 1.8;
}

.services__card-features {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.services__card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.services__card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Process Section (타임라인) --- */
.process {
  padding: var(--space-12) 0;
  background: var(--navy-900);
  color: var(--white);
}

.process__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.process__header h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.process__header p {
  color: var(--gray-300);
  max-width: 500px;
  margin: 0 auto;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--navy-600);
}

.process__step {
  text-align: center;
  opacity: 1;
  transform: none;
}

.process__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  background: var(--navy-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 3px solid var(--accent);
  transition: background 0.3s ease;
}

.process__step.visible .process__step-icon {
  background: var(--accent);
}

.process__step-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
}

.process__step-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: var(--space-1);
  letter-spacing: 0.1em;
}

.process__step h4 {
  color: var(--white);
  margin-bottom: var(--space-1);
  font-size: 1.1rem;
}

.process__step p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Before/After Section (I29) --- */
.before-after {
  padding: var(--space-12) 0;
  background: var(--white);
}

.before-after__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.before-after__header h2 {
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

.before-after__slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--gray-100);
}

.before-after__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-after__img--before {
  background: var(--navy-600);
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.before-after__img--after {
  background: var(--blue-300);
  z-index: 0;
}

.before-after__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.before-after__handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.before-after__handle-circle svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy-900);
}

.before-after__label {
  position: absolute;
  top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: rgba(10, 22, 40, 0.7);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  z-index: 4;
}

.before-after__label--before { left: var(--space-2); }
.before-after__label--after { right: var(--space-2); }

/* --- Trust Section --- */
.trust {
  padding: var(--space-12) 0;
  background: var(--gray-50);
}

.trust__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.trust__header h2 {
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1080px;
  margin: 0 auto;
}

.trust__card {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.trust__card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
  background: rgba(0, 102, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust__card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
}

.trust__card h4 {
  color: var(--navy-900);
  margin-bottom: var(--space-1);
}

.trust__card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.trust__regions {
  margin-top: var(--space-8);
  text-align: center;
}

.trust__regions h3 {
  margin-bottom: var(--space-3);
  color: var(--navy-900);
}

.trust__region-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.trust__region-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  font-size: 0.9rem;
  color: var(--navy-700);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cta-section > .container > p {
  color: var(--gray-300);
  margin-bottom: var(--space-5);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__phone {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  display: inline-block;
  margin-bottom: var(--space-4);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.cta__phone:hover {
  color: var(--blue-300);
}

.cta__buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.cta__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.cta__info-item h4 {
  color: var(--blue-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  letter-spacing: 0.05em;
}

.cta__info-item p {
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  padding: var(--space-6) 0;
  background: #060E1A;
  color: var(--gray-500);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__info {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__info strong {
  color: var(--gray-300);
  font-weight: 600;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- Floating Buttons --- */
.floating-btns {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 950;
}
.floating-btns a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.floating-btns a:hover {
  transform: scale(1.1);
}
.floating-btns svg {
  width: 28px;
  height: 28px;
}
.floating-kakao { background: #FEE500; }
.floating-youtube { background: #FF0000; }
.floating-blog { background: #03C75A; }

/* Mobile bottom bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy-900);
  z-index: 900;
  padding: var(--space-1) 0;
  padding-bottom: calc(var(--space-1) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}

.mobile-bar__inner {
  display: flex;
}

.mobile-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-1);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 56px;
}

.mobile-bar__btn svg {
  width: 24px;
  height: 24px;
}

.mobile-bar__btn--kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.mobile-bar__btn--call {
  background: var(--accent);
}

/* --- FAQ Accordion --- */
.faq-item summary {
  -webkit-tap-highlight-color: transparent;
}

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

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

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item summary:hover {
  background: rgba(0, 102, 255, 0.03);
}

/* --- Section fade-in (CSS 클래스 기반 scroll reveal) --- */
/* 기본: 항상 보임 (JS 없거나 playwright 등 스크롤 없는 환경) */
.fade-in,
.services__card,
.process__step {
  opacity: 1;
  transform: none;
}

/* 스크롤 애니메이션 비활성화 — 모든 콘텐츠 항상 보임 */
.js-scroll-reveal .fade-in,
.js-scroll-reveal .services__card,
.js-scroll-reveal .process__step {
  opacity: 1 !important;
  transform: none !important;
}

/* --- Leak Type Cards --- */
.leak-type-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--gray-200);
}
@supports not (aspect-ratio: 16/9) {
  .leak-type-img { padding-top: 56.25%; }
  .leak-type-img img { position: absolute; top: 0; left: 0; }
}

.leak-type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.leak-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

/* --- Equipment Cards Compact --- */
.equip-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.equip-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-200);
  position: relative;
}
/* IE/Edge 구버전 aspect-ratio 폴백 */
@supports not (aspect-ratio: 16/9) {
  .equip-card-img { padding-top: 56.25%; }
  .equip-card-img img { position: absolute; top: 0; left: 0; }
}

.equip-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.equip-card-body {
  padding: 20px;
}

.equip-card-body h4 {
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.equip-card-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Service Accordion Image --- */
.svc-accordion-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--gray-200);
}

.svc-accordion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========================================
   Responsive
   ======================================== */

/* 1024px */
@media (max-width: 1024px) {
  .services__split {
    grid-template-columns: 1fr;
  }

  .services__nav {
    position: relative;
    top: auto;
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .services__nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .process__timeline::before {
    display: none;
  }
}

/* 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .hero {
    min-height: 100vh;
    height: auto;
  }

  .hero__stats {
    gap: var(--space-3);
  }

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

  .text-scrub {
    padding: var(--space-6) 0;
  }

  .text-scrub__sticky {
    min-height: auto;
    padding: var(--space-4) var(--space-2);
  }

  section {
    padding: 48px 16px !important;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .trust__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta__info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .before-after__slider {
    aspect-ratio: 4/3;
  }

  /* Fix #2: 갤러리 이미지 태블릿 비율 보정 + min-height */
  .leak-type-img {
    aspect-ratio: 3/2;
    min-height: 200px;
  }

  /* Fix #3: 카드 내부 최소 패딩 (태블릿) */
  .services__card-body,
  .equip-card-body {
    padding: 24px 16px;
  }

  /* Fix #4: 섹션 간 여백 통일 (모바일/태블릿) */
  .leak-signs,
  .why-us,
  .leak-types,
  .text-scrub,
  .before-after,
  .trust,
  .faq {
    padding-block: 48px !important;
  }

  /* Fix #9: 푸터 텍스트 최소 0.8rem */
  .footer__info,
  .footer__copyright,
  .footer__info a,
  .footer__info span {
    font-size: max(0.8rem, 0.85rem);
  }
}

/* 480px */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
  }

  .hero__subtitle {
    font-size: 0.85rem;
    max-width: 90%;
    margin-bottom: var(--space-3);
  }

  .hero__stats {
    flex-direction: row;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: 0.7rem;
  }

  .nav__logo {
    font-size: 1.1rem;
  }
  .nav__logo-img {
    width: 30px;
    height: 30px;
  }

  section {
    padding: 32px 12px !important;
  }

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

  .services__card-body {
    padding: var(--space-3) 20px;
  }

  .btn--large {
    width: 100%;
  }

  /* Fix 4: 스크롤 인디케이터 모바일 숨김 */
  .hero__scroll {
    display: none;
  }

  /* Fix #10: 플로팅 버튼 위치 — bottom bar와 겹침 방지 */
  .floating-btns {
    bottom: 110px;
    right: 8px;
  }
  .floating-btns a {
    width: 44px;
    height: 44px;
  }
  .floating-btns svg {
    width: 22px;
    height: 22px;
  }

  .leak-signs p {
    font-size: 0.85rem;
  }

  .leak-signs h4 {
    font-size: 0.95rem;
  }

  body {
    padding-bottom: 88px;
  }

  .mobile-bar {
    display: block;
  }

  /* Fix #2: 갤러리/장비 이미지 모바일 비율 + min-height */
  .leak-type-img,
  .equip-card-img {
    aspect-ratio: 4/3;
    min-height: 180px;
  }

  /* Fix #3: 카드 내부 최소 패딩 확보 (16px 이상) */
  .services__card-body {
    padding: 20px 16px;
  }

  .equip-card-body {
    padding: 16px;
  }

  .trust__card {
    padding: 32px 16px;
  }

  /* Fix #4: 섹션 패딩 통일 (모바일 padding-block 일관) */
  .leak-signs,
  .why-us,
  .leak-types,
  .before-after,
  .trust,
  .faq {
    padding-block: 32px !important;
  }

  /* Fix #9: 푸터 텍스트 최소 0.8rem */
  .footer__info {
    font-size: 0.8rem;
  }
  .footer__copyright {
    font-size: 0.8rem;
  }

  /* Fix #12: 사업자번호/전화번호 줄바꿈 방지 */
  .footer__info span,
  .footer__info a,
  .cta__phone,
  .cta__info-item p {
    white-space: nowrap;
  }
}

/* ========================================
   Fix #14: 모바일 터치타겟 — 버튼/링크 min-height: 48px (전역)
   ======================================== */
button, a, [role="button"], summary, .btn, .trust__region-tag {
  min-height: 48px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 375px */
@media (max-width: 375px) {
  .container {
    padding: 0 var(--space-2);
  }

  .hero__stat-number {
    font-size: 1.35rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
  }

  .text-scrub__text {
    font-size: 1.75rem;
  }

  /* Fix #8: CTA 전화번호 모바일 font-size 1.2rem 이상 */
  .cta__phone {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta__buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}
