/* ========================================
   PREED 테마 메인 스타일시트
   ======================================== */

/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   메인 컨테이너
   ======================================== */
#preed-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ========================================
   헤더
   ======================================== */
#preed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #ffffff;
  z-index: 1000;
}

.header-inner {
  width: 100%;
  height: 100px;
  padding: 0;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: 40px;
}

/* 로고 */
.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 100px;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.header-logo img {
  width: 320px !important;
  height: 90px !important;
  min-width: 320px;
  min-height: 90px;
  max-width: 320px;
  max-height: 90px;
  object-fit: fill;
  display: block;
}

/* 이미지가 없을 때 숨김 */
.header-logo img[style*="display: none"] {
  display: none !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-size: 42px;
  font-weight: 700;
  color: #0066cc;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-sub {
  font-size: 13px;
  color: #666;
  letter-spacing: -0.3px;
  margin-top: 2px;
  line-height: 1;
}

.header-tel {
  font-size: 14px;
  color: #666;
}

.header-tel strong {
  font-size: 20px;
  color: #e74c3c;
  font-weight: 700;
  margin-left: 5px;
}

/* 네비게이션 */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  padding-bottom: 5px;
  display: inline-block;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #00b9ff;
  transition: width 0.4s ease;
}

.nav-list a:hover {
  color: #00b9ff;
}

.nav-list a:hover::after {
  width: 100%;
}

/* 전화번호 버튼 */
.header-contact {
  display: flex;
  justify-content: flex-end;
  padding-right: 100px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #00b9ff;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.contact-btn:hover {
  background: #0099dd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 185, 255, 0.3);
}

.contact-btn i {
  font-size: 18px;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* 모바일 메뉴 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.is-active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.mobile-logo {
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
}

.mobile-menu-close {
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
  display: block;
  padding: 18px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background: #f8f9fa;
  color: #0066cc;
}

.mobile-contact {
  padding: 20px;
}

.mobile-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #00b9ff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   히어로 슬라이더
   ======================================== */
.preed-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px); /* 화면 전체 - 헤더 높이 */
  overflow: hidden;
  background: #000;
  margin-top: 100px; /* 헤더 바로 아래 */
}

.preed-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 슬라이드 */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s 1s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out, visibility 0s;
  z-index: 1;
}

.slide-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* 슬라이드 콘텐츠 */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.slide-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 18px;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 유튜브 플레이어 */
.yt-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#ytPlayer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  pointer-events: none;
}

/* 음소거 토글 버튼 */
.yt-mute-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.yt-mute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.yt-mute-btn:active {
  transform: scale(0.95);
}

.yt-mute-btn i {
  font-size: 20px;
  transition: all 0.3s ease;
}

.yt-mute-btn:hover i {
  transform: scale(1.1);
}

.yt-open {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  transition: background 0.3s;
}

.yt-open:hover {
  background: #fff;
}

/* 도트 인디케이터 */
.preed-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.is-active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}

/* ========================================
   빠른 상담 섹션
   ======================================== */
.preed-consult {
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========================================
   하단 고정 상담신청 버튼
   ======================================== */
.floating-consult {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-consult.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.floating-btn:active {
  transform: translateY(-1px);
}

.floating-btn i {
  font-size: 20px;
  animation: ring 1s ease infinite;
}

@keyframes ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
}

.consult-inner {
  max-width: 800px;
  margin: 0 auto;
}

.consult-title {
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.consult-title strong {
  font-weight: 700;
  font-size: 32px;
  display: inline-block;
  margin-left: 10px;
}

/* 상담 폼 */
.consult-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.c-input,
.c-select {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s;
}

.c-input:focus,
.c-select:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.c-input::placeholder {
  color: #999;
}

.c-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.c-phone {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 10px;
}

.c-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 0;
}

.c-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.c-btn {
  padding: 18px;
  background: #fff;
  color: #667eea;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
  margin-top: 10px;
}

.c-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* ========================================
   반응형 디자인
   ======================================== */

/* 태블릿 */
@media (max-width: 768px) {
  .preed-hero {
    height: calc(100vh - 80px);
    margin-top: 80px;
  }

  /* 헤더 */
  #preed-header {
    height: 80px;
  }

  .header-inner {
    height: 80px;
    padding: 0;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
  }

  .header-logo {
    padding-left: 20px;
  }

  .header-logo img {
    width: 200px !important;
    height: 56px !important;
    min-width: 200px;
    min-height: 56px;
    max-width: 200px;
    max-height: 56px;
    object-fit: fill;
  }

  .logo-main {
    font-size: 32px;
  }

  .logo-sub {
    font-size: 11px;
  }

  .header-tel {
    display: none;
  }

  .header-nav,
  .header-contact {
    display: none;
  }

  .header-contact {
    padding-right: 20px;
  }

  .mobile-menu-btn {
    display: flex;
    padding-right: 20px;
  }

  /* 플로팅 버튼 */
  .floating-consult {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    padding: 15px 24px;
    font-size: 15px;
  }

  /* 유튜브 음소거 버튼 */
  .yt-mute-btn {
    width: 45px;
    height: 45px;
    top: 15px;
    left: 15px;
  }

  .yt-mute-btn i {
    font-size: 18px;
  }

  .yt-open {
    padding: 8px 16px;
    font-size: 13px;
  }

  .slide-content h2 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .consult-title {
    font-size: 22px;
  }

  .consult-title strong {
    font-size: 26px;
    display: block;
    margin: 10px 0 0 0;
  }

  .c-phone {
    grid-template-columns: 1fr;
  }

  .preed-dots {
    bottom: 20px;
  }

  #ytPlayer {
    width: 100vw;
    height: 56.25vw;
  }
}

/* 모바일 */
@media (max-width: 480px) {
  .preed-hero {
    height: calc(100vh - 70px);
    margin-top: 70px;
  }

  /* 헤더 */
  #preed-header {
    height: 70px;
  }

  .header-inner {
    height: 70px;
    padding: 0;
  }

  .header-logo {
    padding-left: 15px;
  }

  .header-logo img {
    width: 160px !important;
    height: 45px !important;
    min-width: 160px;
    min-height: 45px;
    max-width: 160px;
    max-height: 45px;
    object-fit: fill;
  }

  .logo-main {
    font-size: 28px;
  }

  .logo-sub {
    font-size: 10px;
  }

  .mobile-menu-btn {
    padding-right: 15px;
  }

  /* 플로팅 버튼 */
  .floating-consult {
    bottom: 15px;
    right: 15px;
  }

  .floating-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  .floating-btn span {
    display: none;
  }

  .floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .floating-btn i {
    font-size: 24px;
    margin: 0;
  }

  /* 유튜브 음소거 버튼 */
  .yt-mute-btn {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
  }

  .yt-mute-btn i {
    font-size: 16px;
  }

  .yt-open {
    padding: 6px 12px;
    font-size: 12px;
    bottom: 10px;
    right: 10px;
  }

  .slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .preed-consult {
    padding: 40px 15px;
  }

  .consult-title {
    font-size: 18px;
  }

  .consult-title strong {
    font-size: 22px;
  }

  .c-input,
  .c-select {
    padding: 12px 15px;
    font-size: 14px;
  }

  .c-btn {
    padding: 15px;
    font-size: 16px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.is-active {
    width: 24px;
  }

  .preed-dots {
    gap: 8px;
  }

  .mobile-menu {
    width: 100%;
    right: -100%;
  }
}

/* ========================================
   접근성 개선
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 포커스 스타일 */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ========================================
   로딩 애니메이션 (선택사항)
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* ========================================
   유틸리티 클래스
   ======================================== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}
