/* ===== 변수 & 초기화 ===== */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #f59e0b;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --header-height: 56px;
  --footer-height: 60px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: calc(var(--footer-height) + var(--safe-bottom));
}

/* ===== Sticky Header ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.7) 50%, rgba(15,23,42,0.9) 100%);
  z-index: 1;
}

/* 시원하게 뚫리는 그래픽 오버레이 */
.unclog-graphic {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(13,148,136,0.15) 30%, rgba(13,148,136,0.3) 100%);
  z-index: 2;
  animation: flowPulse 3s ease-in-out infinite;
}

@keyframes flowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px 20px;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta-button {
  display: inline-block;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(13,148,136,0.5);
  transition: transform 0.2s;
}

.cta-button:active {
  transform: scale(0.98);
}

/* 깜빡이는 애니메이션 */
.cta-button.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(13,148,136,0.5); }
  50% { box-shadow: 0 4px 30px rgba(245,158,11,0.6), 0 0 0 4px rgba(245,158,11,0.2); }
}

/* ===== Section 공통 ===== */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--bg-dark);
}

/* ===== Trust Section ===== */
.trust {
  padding: 40px 16px;
  background: #f8fafc;
}

.kakao-slider {
  margin-bottom: 32px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.slider-track::-webkit-scrollbar {
  height: 4px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.slider-track img {
  flex: 0 0 280px;
  width: 280px;
  height: auto;
  border-radius: 12px;
  scroll-snap-align: start;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 3px;
}

.video-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.video-card video {
  width: 100%;
  display: block;
}

.video-card p {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Services Section ===== */
.services {
  padding: 40px 16px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s;
}

.service-card:active {
  border-color: var(--primary);
  background: rgba(13,148,136,0.05);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== Contact Form ===== */
.contact {
  padding: 40px 16px;
  background: #f8fafc;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
}

/* 키패드 올라와도 레이아웃 유지 */
.contact-form {
  margin-bottom: 20px;
}

.submit-btn {
  padding: 18px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ===== Sticky Footer (7:3 비율) ===== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--footer-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-btn:active {
  opacity: 0.9;
}

.kakao-btn {
  flex: 0 0 30%;
  background: #fee500;
  color: #191919;
}

.phone-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.footer-icon {
  font-size: 1.1rem;
}

/* ===== Company Info Footer ===== */
.company-info {
  padding: 24px 16px 32px;
  background: var(--bg-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.8;
}

.company-info-content {
  max-width: 400px;
  margin: 0 auto;
}

.company-info-content .company-name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.company-info-content p {
  margin: 0;
}

.company-info-content a {
  color: #38bdf8;
  text-decoration: none;
}

.company-info-content a:hover {
  text-decoration: underline;
}
