/* ============================================
   대구 법인 부동산 - 랜딩페이지 스타일
   네이비/블루 & 화이트 톤, 신뢰감·전문성
   ============================================ */

:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --blue: #2b6cb0;
  --blue-soft: #4299e1;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-500: #718096;
  --gray-700: #4a5568;
  --shadow: 0 4px 6px -1px rgba(26, 54, 93, 0.1), 0 2px 4px -1px rgba(26, 54, 93, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(26, 54, 93, 0.1), 0 4px 6px -2px rgba(26, 54, 93, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------
   1. 헤더
   -------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-cta-header:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------
   2. 히어로 섹션 (배경 영상)
   -------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 영상이 없을 때만 보이는 배경 (로딩 시) */
.hero {
  background: #1a1a1a;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 영상이 잘 보이도록 최소한의 어두운 그라데이션만 (푸른색 제거) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  opacity: 0.95;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  display: inline-block;
  padding: 16px 32px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.2);
  background: var(--gray-50);
}

/* --------------------------------------------
   3. 우리의 서비스
   -------------------------------------------- */
.services {
  padding: 80px 0;
  background: var(--gray-50);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: 12px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --------------------------------------------
   3-2. 창업 상담 갤러리 (좌→우 스크롤, 26장 전체 표시)
   -------------------------------------------- */
.gallery {
  padding: 80px 0;
  background: var(--white);
}

.gallery-desc {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-scroll-wrap {
  overflow: hidden;
  margin: 0 -24px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll 60s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

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

.gallery-item {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gray-100);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(26, 54, 93, 0.92) 0%, rgba(26, 54, 93, 0.75) 100%);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* --------------------------------------------
   4. 상담 신청 폼
   -------------------------------------------- */
.contact {
  padding: 80px 0 100px;
  background: var(--white);
}

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
}

.form-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.consult-form .form-group {
  margin-bottom: 20px;
}

.consult-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.consult-form input[type="text"],
.consult-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.consult-form input[type="text"]:focus,
.consult-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.consult-form input::placeholder {
  color: var(--gray-500);
}

.form-group-checkbox {
  margin-bottom: 28px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-box {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.checkbox-box input {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  transition: background var(--transition), border-color var(--transition);
  pointer-events: none;
}

.checkbox-box input:checked + .checkmark {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-box input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-box .checkmark {
  position: relative;
}

.checkbox-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.4;
}

/* 체크박스 포커스 링 */
.checkbox-box input:focus-visible + .checkmark {
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:active {
  transform: translateY(0);
}

/* --------------------------------------------
   5. 푸터
   -------------------------------------------- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-trust {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
  opacity: 0.95;
}

.footer-info {
  text-align: center;
  margin-bottom: 28px;
  font-size: 0.875rem;
  line-height: 1.9;
  opacity: 0.9;
}

.footer-info p {
  margin: 0;
}

.footer-info strong {
  margin-right: 6px;
  font-weight: 600;
}

.footer-copy {
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* --------------------------------------------
   반응형
   -------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1rem;
  }

  .btn-cta-header {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .hero {
    padding: 56px 20px 72px;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-sub {
    margin-bottom: 28px;
  }

  .btn-hero {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .services {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 36px;
    font-size: 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .gallery {
    padding: 56px 0;
  }

  .gallery-item {
    width: 220px;
    height: 155px;
  }

  .gallery-caption {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .gallery-desc {
    margin-bottom: 32px;
  }

  .contact {
    padding: 56px 0 72px;
  }

  .form-wrapper {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .form-title {
    font-size: 1.125rem;
  }

  .form-desc {
    margin-bottom: 24px;
  }

  .footer {
    padding: 36px 24px 24px;
  }

  .footer-info {
    font-size: 0.8125rem;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .btn-cta-header span:not(.emoji) {
    display: none;
  }

  .btn-cta-header {
    padding: 12px 14px;
  }

  .hero {
    min-height: 360px;
    padding: 48px 16px 64px;
  }

  .gallery-scroll-wrap {
    margin: 0 -16px;
  }

  .gallery-item {
    width: 180px;
    height: 128px;
  }

  .gallery-caption {
    font-size: 0.6875rem;
    padding: 6px 8px;
  }

  .gallery-track {
    gap: 12px;
  }
}
