/* ==========================================================================
   에버그린 - 스타일시트 (style.css)
   ========================================================================== */

/* 1. 디자인 시스템 변수 정의 */
:root {
  /* 에버그린 - 그린 계열로 통일 */
  --primary-color: #047857;      /* 다크 에메랄드 그린 (메인) */
  --primary-medium: #059669;     /* 미디엄 에메랄드 그린 */
  --accent-color: #10b981;       /* 라이트 에메랄드 그린 (포인트) */
  --accent-light: rgba(16, 185, 129, 0.1);
  
  --bg-light: #f9f9f9;           /* 매우 연한 회색 (섹션 배경) */
  --bg-card: #ffffff;            /* 카드 배경 (순백색) */
  
  --text-dark: #111827;          /* 짙은 차콜 (헤딩 텍스트) */
  --text-main: #374151;          /* 일반 텍스트 */
  --text-muted: #6b7280;         /* 부설명 텍스트 */
  --white: #ffffff;              /* 텍스트/배경용 흰색 */
  
  --border-color: #e5e7eb;       /* 연한 테두리 */
  
  --font-main: 'Noto Sans KR', sans-serif;
  --font-decor: 'Outfit', 'Montserrat', sans-serif;
  
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.9);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
}

/* 2. 초기 리셋 및 공통 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

/* 스크롤바 디자인 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-medium);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 공통 컨테이너 및 섹션 */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.scroll-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 공통 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* 3. Header 스타일 (Glassmorphism & Fixed) */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  border-bottom: 1px solid rgba(4, 120, 87, 0.1); /* 약간의 그린 힌트 */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-decor);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff; /* 스크롤 전에는 화이트 */
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

#main-header.scrolled .logo-text {
  color: #047857; /* 스크롤 시 고급스러운 다크 그린 */
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  gap: 36px;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #10b981; /* 호버 시 나타나는 선은 에메랄드 그린 */
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

#main-header.scrolled .nav-item {
  color: var(--text-main); /* 스크롤 시 기본 텍스트 색상 */
}

#main-header.scrolled .nav-item:hover,
#main-header.scrolled .nav-item.active {
  color: #047857; /* 스크롤 시 호버 및 액티브 색상은 다크 그린 */
}

/* Header Call Button */
.cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.cta-button:hover {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
  transform: scale(1.03);
}

#main-header.scrolled .cta-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

#main-header.scrolled .cta-button:hover {
  background-color: var(--accent-color);
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  height: 95vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

/* --- Hero 배경 이미지 (img 태그 방식으로 재작성) --- */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: zoomBg 20s infinite alternate;
  display: block;
  /* 밝기 초기값 */
  filter: brightness(1);
}

/* --- Hero 배너 슬라이드 (2장 크로스페이드) --- */
.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  animation-play-state: paused;
}

.hero-bg-slide.is-active {
  opacity: 1;
  animation-play-state: running;
}

.hero-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 50%, #10b981 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 20, 0.65);
  transition: background 0.3s ease;
}

/* 이미지 편집 컨트롤 (Hero 섹션 호버시 노출) */
.hero-img-controls {
  position: absolute;
  top: 100px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-section:hover .hero-img-controls {
  opacity: 1;
  pointer-events: auto;
}

.img-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: var(--transition-fast);
  font-family: var(--font-main);
  text-decoration: none;
}

.img-ctrl-btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-1px);
}

@keyframes zoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  max-width: 680px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-decor);
  background-color: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--white);
  word-break: keep-all;
  word-wrap: break-word;
}

.hero-title .highlight {
  color: var(--accent-color);
  background: linear-gradient(to right, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mouse Scroll Prompt */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  cursor: pointer;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; top: 6px; }
  20% { opacity: 1; }
  80% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

/* 5. Section Header 스타일 */
.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .sub-title {
  display: block;
  font-family: var(--font-decor);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-medium);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header .main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.section-header .main-title strong {
  font-weight: 800;
  color: var(--primary-color);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* 6. About Section 스타일 */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-desc-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Strengths list */
.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strength-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.strength-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-medium);
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.strength-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.strength-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About Visual Decoration */
.about-visual-decor {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decor-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.decor-card {
  position: absolute;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 1px solid rgba(16, 185, 129, 0.08);
  transition: var(--transition-smooth);
}

.decor-card:hover {
  transform: translateY(-8px);
}

.main-decor-card {
  top: 50px;
  left: 20px;
  width: 260px;
  text-align: center;
}

.main-decor-card .card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.3);
}

.main-decor-card h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.main-decor-card .counter-num {
  font-family: var(--font-decor);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 12px;
}

.main-decor-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sub-decor-card {
  bottom: 60px;
  right: 20px;
  width: 220px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sub-decor-card .card-icon {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.sub-decor-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.sub-decor-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 7. Service Section 스타일 */
.services-section {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  position: relative;
  background-color: var(--bg-card);
  padding: 48px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 185, 129, 0.05);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-medium);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.card-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 8rem;
  color: rgba(16, 185, 129, 0.03);
  line-height: 1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.service-card:hover .card-bg-icon {
  transform: scale(1.1) rotate(-5deg);
  color: rgba(16, 185, 129, 0.06);
}

.card-header-icon {
  width: 56px;
  height: 56px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-medium);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.service-card:hover .card-header-icon {
  background-color: var(--primary-medium);
  color: var(--white);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-tags li {
  font-size: 0.8rem;
  background-color: var(--bg-light);
  color: var(--primary-medium);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

/* 8. Location Section 스타일 */
/* 8. Contact Section 스타일 */
.contact-section {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px; /* row-gap, column-gap */
  align-items: stretch;
}

/* 왼쪽 정보 패널 */
.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 공통 info-row (주소/전화 등) */
.info-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16,185,129,0.1);
}

.info-content strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-medium);
  margin-bottom: 4px;
}

.info-content span,
.info-content a {
  font-size: 0.95rem;
  color: var(--text-main);
}

.phone-link {
  font-weight: 700;
  color: #047857 !important;
  font-size: 1.05rem !important;
}

.phone-link:hover {
  color: #10b981 !important;
  text-decoration: underline;
}

/* 지도 영역 */
.contact-map-wrapper {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(16, 185, 129, 0.1);
  height: 100%;
  min-height: 350px;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(10%) contrast(105%);
}

/* 오른쪽 폼 패널 (이제 하단 전체 차지) */
.contact-form-panel {
  grid-column: 1 / -1;
  margin-top: 50px; /* 텍스트/지도와 폼 사이 간격 넉넉하게 */
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(16, 185, 129, 0.07);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: #e53e3e;
  font-size: 0.9rem;
}

/* Input & Textarea 공통 */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b7c3;
  font-size: 0.9rem;
}

.field-error {
  display: block;
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Select 커스텀 화살표 */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* 글자수 카운터 */
.char-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* 개인정보 동의 체크박스 */
.privacy-check {
  margin-top: -6px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;  /* 수직 중앙 정렬 */
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;          /* 크기 축소 */
  height: 18px;
  flex-shrink: 0;
  border: 2px solid #047857;  /* 다크 그린 테두리 */
  border-radius: 4px;
  margin-top: 0;        /* 중앙 정렬이므로 margin-top 제거 */
  cursor: pointer;
  position: relative;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

/* 체크되었을 때의 배경색과 테두리 */
.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: #047857;  /* 다크 그린 */
  border-color: #047857;
}

/* 체크되었을 때 나타나는 흰색 V 마크 */
.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper label {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.privacy-text {
  color: #047857;  /* 다크 그린으로 통일 */
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-text:hover {
  color: #10b981;
}

/* 제출 버튼 */
.btn-submit {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, #047857, #10b981);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #065f46, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.4);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 전송 상태 메시지 */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: transparent;
  color: #065f46;
  border: none;
  font-weight: 600;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}



/* 9. Footer 스타일 */
#main-footer {
  background-color: #031c15; /* 극단적으로 어두운 그린 */
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px 0;
  border-top: 3px solid var(--accent-color);
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 38px;
  border-radius: 4px;
}

.footer-logo span {
  font-family: var(--font-decor);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-slogan {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-quick-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-quick-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-quick-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-quick-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-divider {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.company-details p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.company-details span {
  margin-right: 24px;
  display: inline-block;
}

.company-details span strong {
  color: var(--white);
  font-weight: 500;
  margin-right: 6px;
}

.company-details a {
  color: rgba(255, 255, 255, 0.8);
}

.company-details a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 10. Scroll to Top 버튼 */
#btn-back-to-top {
  display: none;
  position: fixed;
  bottom: 148px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
  font-size: 1.2rem;
  line-height: 48px;
  text-align: center;
}

#btn-back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* 11. 모바일 우측 하단 플로팅 전화하기 버튼 (모바일 전용) */
.mobile-sticky-action {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  z-index: 999;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.mobile-sticky-action:active {
  transform: scale(0.95);
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
}

/* 텍스트 숨김 */
.mobile-cta-btn span {
  display: none;
}

.mobile-cta-btn i {
  font-size: 1.3rem;
  animation: phoneShake 2s infinite;
}

@keyframes phoneShake {
  0% { transform: rotate(0); }
  10% { transform: rotate(-15deg); }
  20% { transform: rotate(15deg); }
  30% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* 12. 애니메이션 클래스 */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 13. 반응형 미디어 쿼리 (Responsive Styles) */

/* 태블릿 구간 (최대 1024px) */
@media (max-width: 1024px) {
  .section-container {
    padding: 80px 24px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual-decor {
    height: auto;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }

  .decor-circle {
    display: none;
  }

  .decor-card {
    position: static;
    width: 100% !important;
    max-width: 340px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

  .main-decor-card,
  .sub-decor-card {
    top: auto; left: auto; right: auto; bottom: auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  /* 패드/모바일 화면 겹침 방지 (스크롤 유도 아이콘 숨김) */
  .scroll-indicator {
    display: none;
  }
}


/* 모바일 구간 (768px 이하) */
@media (max-width: 768px) {

  /* 모바일 헤더: 메뉴 숨김 (하단 플로팅바로 대체) */
  .desktop-nav {
    display: none;
  }
  
  /* 헤더 높이 조정 */
  #main-header {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  }
  
  .logo-text {
    color: var(--primary-color);
  }
  
  /* Hero 섹션 모바일 */
  .hero-section {
    height: 90vh;
  }
  
  .hero-content {
    padding-top: 120px !important;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  /* 모바일 화면 겹침 방지 (스크롤 유도 아이콘 숨김) */
  .scroll-indicator {
    display: none;
  }
  
  /* 서비스 그리드 모바일 1열 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 30px;
  }
  
  /* Contact Form 모바일 대응 */
  .contact-form-panel {
    padding: 28px 20px;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 하단 푸터 모바일 */
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .company-details span {
    display: block;
    margin-bottom: 6px;
    margin-right: 0;
  }
  
  /* 모바일 플로팅 예약 버튼 활성화 */
  .mobile-sticky-action {
    display: block;
  }
  
  /* 모바일 우측 스크롤바 숨김 (가로/세로 모두 보이지 않게 처리) */
  ::-webkit-scrollbar {
    display: none;
  }
  body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }
}

/* ===== 이미지 크롭 & 편집 모달 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: min(90vw, 860px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #ffe0e0;
  color: #e53e3e;
}

.modal-body {
  padding: 24px 30px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 크롭 영역 */
.crop-area-wrapper {
  position: relative;
  width: 100%;
  max-height: 380px;
  background: #111;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.crop-area-wrapper img {
  max-width: 100%;
  max-height: 380px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* 크롭 선택 영역 */
.crop-selection {
  position: absolute;
  border: 2px dashed var(--accent-color);
  background: rgba(16, 185, 129, 0.1);
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 3px;
  cursor: nwse-resize;
}

.crop-handle.nw { top: -7px; left: -7px; cursor: nw-resize; }
.crop-handle.ne { top: -7px; right: -7px; cursor: ne-resize; }
.crop-handle.sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.crop-handle.se { bottom: -7px; right: -7px; cursor: se-resize; }

/* 이미지 조절 슬라이더 */
.img-adjustments {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adjust-row {
  display: grid;
  grid-template-columns: 120px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.adjust-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.adjust-row label i {
  color: var(--primary-medium);
}

.adjust-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-light) 100%);
  outline: none;
  cursor: pointer;
}

.adjust-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}

.adjust-row input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.adjust-row span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-medium);
  text-align: right;
}

/* 모달 하단 버튼 */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 30px;
  border-top: 1px solid #f0f0f0;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: var(--text-muted);
}

.modal-btn.cancel:hover {
  background: #e8e8e8;
  color: var(--text-dark);
}

.modal-btn.apply {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.3);
}

.modal-btn.apply:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* 모바일 크롭 모달 대응 */
@media (max-width: 768px) {
  .modal-box {
    width: 95vw;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .adjust-row {
    grid-template-columns: 90px 1fr 48px;
    gap: 8px;
  }

  .adjust-row label {
    font-size: 0.8rem;
  }

  .hero-img-controls {
    top: 90px;
    right: 16px;
  }
}



/* ====================================================
   Real Work Slider — 모던 라이트 스타일
==================================================== */
.realwork-section {
  background: linear-gradient(160deg, #f0fdf8 0%, #ffffff 50%, #f0fdf8 100%);
  padding: 90px 0 80px;
}

.realwork-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.realwork-header h2 { color: #1a2e2a; }
.realwork-header h2 strong { color: #10b981; }
.realwork-header .section-desc { color: #6b7280; }

.realwork-slider-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.realwork-main-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.12), 0 4px 20px rgba(0,0,0,0.08);
}

#real-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16/9;
  background: #e5e7eb;
}

#real-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.realwork-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #10b981;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: all 0.2s;
}
.realwork-arrow:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
  transform: translateY(-50%) scale(1.08);
}
.realwork-arrow--prev { left: -24px; }
.realwork-arrow--next { right: -24px; }

.realwork-counter {
  position: absolute;
  bottom: 14px;
  right: 18px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.realwork-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.realwork-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
}
.realwork-dot.active {
  background: #10b981;
  width: 24px;
  border-radius: 100px;
}

.realwork-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 18px;
  overflow-x: auto;
}

.realwork-thumb {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2.5px solid transparent;
  transition: all 0.25s;
  flex-shrink: 0;
}
.realwork-thumb:hover { opacity: 0.8; }
.realwork-thumb.active {
  opacity: 1;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

@media (max-width: 768px) {
  .realwork-arrow--prev { left: 8px; }
  .realwork-arrow--next { right: 8px; }
  .realwork-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .realwork-thumbs { display: none; }
}
