/* =============================================
   비데클린닥터 — style.css
   ============================================= */

:root {
  --teal: #006d77;
  --teal2: #00b4d8;
  --mint: #e8f8f5;
  --accent: #00b4d8;
  --accent2: #006d77;
  --off: #f0fbfc;
  --text: #0a2a2e;
  --mid: #4a7070;
  --light: #7a9a9a;
  --border: rgba(0, 180, 216, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }


/* ── 마퀴 띠 ─────────────────────────────── */
.marquee-band {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal2) 100%);
  overflow: hidden;
  padding: 11px 0;
  position: sticky;          /* nav 바로 아래 붙음 */
  top: 64px;
  z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.marquee-item .mi-icon { font-size: 14px; }
.marquee-item .mi-sep  {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 4px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── NAV ──────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,109,119,0.1);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 20px rgba(0,109,119,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 28px rgba(0,109,119,0.14); }

.nav-logo { font-family: 'Noto Serif KR', serif; font-size: 19px; font-weight: 700; color: var(--teal); letter-spacing: -0.5px; }
.nav-logo span { color: var(--teal2); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--mid); font-size: 13px; font-weight: 500; transition: color 0.2s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transition: transform 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { background: linear-gradient(135deg, var(--teal), var(--teal2)); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; transition: transform 0.2s, box-shadow 0.2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,109,119,0.25); }


/* ── HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #e8f8f5 0%, #d0f0f4 40%, #e0f7fa 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 148px 40px 60px;   /* nav(64) + marquee(44) + 여유 */
}
.hero-drops { position: absolute; inset: 0; overflow: hidden; }
.drop { position: absolute; border-radius: 50% 40% 60% 40% / 50% 60% 40% 50%; background: rgba(0,180,216,0.07); animation: drift 9s ease-in-out infinite; }
.drop:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -80px; animation-delay: 0s; }
.drop:nth-child(2) { width: 280px; height: 280px; bottom: -60px; left: -60px; animation-delay: 3s; }
.drop:nth-child(3) { width: 180px; height: 180px; top: 50%; left: 8%; animation-delay: 6s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33%  { transform: translate(12px,-16px) rotate(5deg); }
  66%  { transform: translate(-10px,10px) rotate(-3deg); }
}

.hero-wrap { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,109,119,0.1); border: 1px solid rgba(0,109,119,0.2); color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 7px 18px; border-radius: 50px; margin-bottom: 24px; }
.hero-tag::before { content: '💧'; font-size: 12px; }

.hero h1 { font-family: 'Noto Serif KR', serif; font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 700; color: var(--teal); line-height: 1.18; margin-bottom: 20px; }
.hero h1 span { color: var(--teal2); }
.hero-desc { font-size: 16px; color: var(--mid); line-height: 1.85; margin-bottom: 40px; font-weight: 300; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-p { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,var(--teal),var(--teal2)); color: #fff; padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 700; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 8px 28px rgba(0,109,119,0.25); }
.btn-p:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,109,119,0.35); }
.btn-s { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(0,109,119,0.2); color: var(--teal); padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 600; transition: border-color 0.25s, box-shadow 0.25s; }
.btn-s:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(0,109,119,0.12); }

.hero-visual { display: flex; justify-content: center; }
.hero-card { background: #fff; border: 1px solid rgba(0,180,216,0.2); border-radius: 28px; padding: 40px; box-shadow: 0 20px 60px rgba(0,109,119,0.12); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.h-stat { background: #fff; border: 1px solid rgba(0,180,216,0.15); border-radius: 14px; padding: 24px 18px; text-align: center; box-shadow: 0 4px 16px rgba(0,109,119,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.h-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,109,119,0.1); }
.h-stat-n { font-family: 'DM Sans', sans-serif; font-size: 30px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.h-stat-n span { color: var(--teal2); font-size: 18px; }
.h-stat-l { font-size: 12px; color: var(--light); }


/* ── 공통 섹션 ────────────────────────────── */
.sec { padding: 100px 40px; }
.sec-in { max-width: 1100px; margin: 0 auto; }
.sec-hd { text-align: center; margin-bottom: 64px; }
.lbl { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal2); margin-bottom: 12px; }
.sec-ttl { font-family: 'Noto Serif KR', serif; font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 14px; }
.sec-ttl span { color: var(--teal); }
.dvd { width: 48px; height: 3px; background: linear-gradient(90deg,var(--teal),var(--teal2)); border-radius: 2px; margin: 0 auto; }
.sec-desc { font-size: 15px; color: var(--mid); margin-top: 16px; line-height: 1.8; }


/* ── 서비스 ───────────────────────────────── */
.srv-bg { background: var(--off); }
.srv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.srv-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px; transition: transform 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(24px); }
.srv-card.visible { opacity: 1 !important; transform: translateY(0) !important; }
.srv-card:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 50px rgba(0,109,119,0.12); }
.srv-icon { width: 56px; height: 56px; background: linear-gradient(135deg,var(--teal),var(--teal2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.srv-card h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.srv-card p { font-size: 14px; color: var(--mid); line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { background: rgba(0,109,119,0.07); border: 1px solid rgba(0,109,119,0.15); color: var(--teal); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }


/* ── 이용방법 ─────────────────────────────── */
.proc-bg { background: linear-gradient(135deg,var(--teal) 0%,#004e58 100%); }
.proc-steps { display: grid; grid-template-columns: repeat(5,1fr); position: relative; }
.proc-steps::before { content: ''; position: absolute; top: 38px; left: 10%; right: 10%; height: 1px; background: rgba(255,255,255,0.2); z-index: 0; }
.proc-step { text-align: center; padding: 0 10px; position: relative; z-index: 1; opacity: 0; transform: translateY(20px); }
.proc-step.visible { opacity: 1 !important; transform: translateY(0) !important; }
.step-n { width: 76px; height: 76px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 800; color: #fff; transition: background 0.3s; }
.proc-step:hover .step-n { background: rgba(255,255,255,0.2); }
.proc-step h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.proc-step p { font-size: 12px; color: rgba(255,255,255,0.52); line-height: 1.65; }


/* ── 시공사례 ─────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.case-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 16px rgba(0,109,119,0.06); opacity: 0; transform: translateY(24px); }
.case-card.visible { opacity: 1 !important; transform: translateY(0) !important; }
.case-card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px rgba(0,109,119,0.14); }
.case-img { aspect-ratio: 4/3; background: linear-gradient(135deg,#e0f7fa,#b2ebf2); display: flex; align-items: center; justify-content: center; }
.case-body { padding: 20px; background: #fff; }
.c-badge { display: inline-block; background: rgba(0,109,119,0.08); color: var(--teal); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }
.case-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.case-body p { font-size: 13px; color: var(--light); }


/* ── 고객후기 ─────────────────────────────── */
.rv-bg { background: var(--off); }
.rv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rv-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 16px rgba(0,109,119,0.05); opacity: 0; transform: translateY(24px); }
.rv-card.visible { opacity: 1 !important; transform: translateY(0) !important; }
.rv-card:hover { transform: translateY(-6px) !important; box-shadow: 0 14px 36px rgba(0,109,119,0.1); }
.rv-stars { color: #ffa726; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.rv-text { font-size: 14px; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.rv-auth { display: flex; align-items: center; gap: 12px; }
.rv-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal2)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.rv-name { font-size: 14px; font-weight: 700; color: var(--text); }
.rv-date { font-size: 12px; color: var(--light); }


/* ── CTA ──────────────────────────────────── */
.cta-sec { background: linear-gradient(135deg,#e8f8f5 0%,#d0f0f4 100%); padding: 100px 40px; text-align: center; }
.cta-in { max-width: 680px; margin: 0 auto; }
.cta-desc { font-size: 16px; color: var(--mid); line-height: 1.8; margin: 20px 0 44px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn-call { background: linear-gradient(135deg,var(--teal),var(--teal2)); color: #fff; padding: 14px 30px; border-radius: 50px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.25s, box-shadow 0.25s; }
.btn-kakao { background: linear-gradient(135deg,#fee500,#ffd000); color: #3b1e08; padding: 14px 30px; border-radius: 50px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.25s, box-shadow 0.25s; }
.btn-call:hover, .btn-kakao:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }


/* ── 푸터 ─────────────────────────────────── */
footer { background: var(--teal); padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ft-logo { font-family: 'Noto Serif KR', serif; font-size: 18px; font-weight: 700; color: #fff; }
.ft-info { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.ft-back { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.ft-back:hover { color: #fff; }


/* ── 반응형 ───────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .srv-grid { grid-template-columns: repeat(2,1fr); }
  .proc-steps { grid-template-columns: repeat(3,1fr); gap: 28px; }
  .proc-steps::before { display: none; }
  .case-grid, .rv-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .sec { padding: 72px 24px; }
  .hero { padding: 120px 24px 60px; }
  .srv-grid, .case-grid, .rv-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-call, .btn-kakao { width: 100%; max-width: 300px; justify-content: center; }
  footer { flex-direction: column; text-align: center; padding: 28px 24px; }
}
