/* ==========================================
 * [components.css] 블록 단위 컴포넌트
 * ------------------------------------------
 * 명명 규칙: block / block__element / block--modifier
 * 각 컴포넌트의 반응형 규칙은 별도 파일로 분리하지 않고
 * 해당 컴포넌트 바로 아래에 붙여 둔다 (수정 시 한 곳만 보면 되도록).
 * ========================================== */

/* --- site-header : PC 전용 상단 헤더 ---------------- */

.site-header {
  display: none; /* 모바일에서는 하단 탭바가 대신함 */
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.site-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.site-header__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.site-header__nav a {
  margin-left: var(--space-5);
  color: var(--text);
  font-weight: 500;
  transition: color var(--ease);
}

.site-header__nav a:hover {
  color: var(--brand);
}

@media (min-width: 1024px) {
  .site-header {
    display: block;
  }
}

/* --- hero : 첫 화면 --------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 0 var(--space-5);
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),
    url("../images/hero/main-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 400;
  color: var(--border-soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- spec-table : 사업개요 표 ----------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.spec-table td {
  padding: var(--space-3);
  border: 1px solid var(--border);
  font-size: 15px;
}

.spec-table__label {
  background-color: #f1f3f5;
  font-weight: bold;
  width: 30%;
}

.spec-table__value--highlight {
  font-weight: 700;
  color: var(--brand);
}

/* --- gallery : 세로 적층 이미지 묶음 ---------------- */

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.gallery__item {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-img);
}

/* --- lead-form : 문의 접수 카드 (전환 핵심) --------- */

.lead {
  background-color: var(--surface-alt);
  padding: var(--space-10) 0;
}

.lead__card {
  background: var(--surface);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: var(--card-max);
  margin: 0 auto;
}

.lead__icon {
  font-size: 28px;
  text-align: center;
  margin-bottom: var(--space-2);
}

.lead__title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}

.lead__desc {
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  margin-top: 6px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--space-6);
}

.lead-form__input {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  /* 16px 미만이면 iOS Safari가 입력 시 화면을 확대함 — 절대 줄이지 말 것 */
  font-size: 16px;
  font-family: inherit;
  background-color: var(--surface-alt);
  outline: none;
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.lead-form__input:focus {
  border-color: var(--brand);
  background-color: var(--surface);
  box-shadow: var(--focus-ring);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.lead-form__consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.lead-form__submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--text), var(--ink));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: var(--space-1);
  box-shadow: var(--shadow-btn);
  transition: transform var(--ease), opacity var(--ease);
}

.lead-form__submit:active {
  transform: scale(0.98);
}

.lead-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* 전송 결과 안내 (alert 대체) */
.lead-form__status {
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}

.lead-form__status[hidden] {
  display: none;
}

.lead-form__status--ok {
  color: #0f5132;
  background-color: #d1e7dd;
}

.lead-form__status--error {
  color: #842029;
  background-color: #f8d7da;
}

/* --- quick-nav : 모바일 하단 고정 탭바 -------------- */

.quick-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--quick-nav-h);
  display: flex;
  background-color: var(--surface);
  box-shadow: var(--shadow-nav);
  z-index: var(--z-nav);
}

.quick-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
}

.quick-nav__label {
  margin-top: 2px;
}

@media (min-width: 1024px) {
  .quick-nav {
    display: none;
  }
}

/* --- float-menu : 상시 노출 문의 버튼 --------------- */

.float-menu {
  position: fixed;
  right: var(--space-5);
  bottom: 90px; /* 하단 탭바 위로 띄움 */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-float);
}

.float-menu__btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  transition: transform var(--ease), background-color var(--ease);
}

.float-menu__label {
  margin-top: 2px;
}

.float-menu__btn--call {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

.float-menu__btn--blog {
  background: linear-gradient(135deg, var(--naver-green), var(--naver-green-dark));
  color: #ffffff;
}

.float-menu__btn:hover {
  transform: translateY(-3px);
}

.float-menu__btn:active {
  transform: scale(0.95);
}

@media (min-width: 1024px) {
  .float-menu {
    top: 50%;
    bottom: auto;
    right: 40px;
    transform: translateY(-50%);
  }

  .float-menu__btn {
    width: 70px;
    height: 70px;
    font-size: 11px;
  }

  /* PC에서는 tel: 링크가 동작하지 않으므로 숨김 */
  .float-menu__btn--call {
    display: none;
  }
}

/* --- site-footer : 면책 푸터 ------------------------ */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px var(--space-5);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.site-footer__brand {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}

.site-footer__notice {
  max-width: 700px;
  margin: 0 auto var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--footer-line);
  font-size: 12px;
  color: var(--footer-muted);
}

.site-footer__notice p + p {
  margin-top: var(--space-1);
}

.site-footer__info {
  margin-bottom: var(--space-5);
}

.site-footer__info-sub {
  margin-top: var(--space-1);
  color: var(--footer-muted);
  font-size: 12px;
}

.site-footer__copyright {
  font-size: 11px;
  color: var(--footer-fine);
}
