/*
Theme Name: Magic Hands
Theme URI: https://magichands.kr
Author: Magic Hands
Description: A custom, conversion-optimized theme for Magic Hands (Eco-Clean & Warm Concept)
Version: 1.0
*/
:root {
  --primary-color: #2C5E43;
  --bg-color: #FAF9F6;
  --accent-color: #FF7A59;
  --text-dark: #2D3748;
  --text-light: #718096;
}
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}
.mh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 122, 89, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.6);
}
/* Header */
.mh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mh-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mh-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}
/* Hero */
.mh-hero {
  padding: 150px 0 80px;
  display: flex;
  align-items: center;
  gap: 50px;
}
.mh-hero-text { flex: 1; }
.mh-hero-image { flex: 1; }
.mh-hero-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(44, 94, 67, 0.15);
}
.mh-hero h1 {
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.mh-hero p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}
/* Features */
.mh-features {
  padding: 80px 0;
}
.mh-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.mh-feature-card {
  padding: 40px;
  text-align: center;
}
.mh-feature-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}
/* Bottom CTA */
.mh-bottom-cta {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mh-bottom-text h4 { margin: 0 0 5px 0; color: var(--primary-color); }
.mh-bottom-text p { margin: 0; font-size: 14px; color: var(--text-light); }

@media (max-width: 768px) {
  .mh-hero { flex-direction: column; padding-top: 120px; }
  .mh-hero h1 { font-size: 36px; }
  .mh-bottom-cta { flex-direction: column; text-align: center; gap: 15px; bottom: 15px; }
}

/* Long Form Enhancements */
.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
}
.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.6;
}
.mh-section {
  padding: 100px 0;
}
.mh-section:nth-child(even) {
  background-color: #f0ede6; /* slightly darker warm background */
}

/* Compare Slider */
.compare-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .compare-container {
        aspect-ratio: 16 / 9;
    }
}
.compare-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.img-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
}
.img-after {
  z-index: 1;
}
.compare-slider {
  position: absolute;
  top:0; left:0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  z-index: 10;
  cursor: ew-resize;
}
.compare-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px; height: 1000px;
  background: var(--accent-color);
  cursor: ew-resize;
}
.slider-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  display: flex; justify-content: center; align-items: center;
  color: white; font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 20px;
}
.slider-handle::after { content: '↔'; }
.compare-labels {
  position: absolute;
  top: 20px; width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 4;
  pointer-events: none;
}
.compare-labels span {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: bold;
  font-size: 14px;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.process-step {
  text-align: center;
  padding: 30px;
}
.step-num {
  width: 50px; height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 24px; font-weight: bold;
  margin: 0 auto 20px;
}
.process-step h4 { font-size: 20px; margin-bottom: 10px; color: var(--primary-color); }
.process-step p { color: var(--text-light); font-size: 15px; line-height: 1.5; }
