/* ============================================================
   home.css — 랜딩(홈) 전용
   모바일=세로 스택(기존 모습) · PC(≥1024)=히어로 2단·4열 그리드
   ============================================================ */

/* ---------- 히어로 밴드: 옅은 틴트 배경으로 상단 구획 ---------- */
.hero-band {
  background: linear-gradient(180deg, #eef3f9 0%, rgba(238, 243, 249, 0.35) 78%, var(--background) 100%);
  border-bottom: 1px solid rgba(27, 58, 92, 0.06);
  width: 100%;
}

/* 모바일·태블릿: 세로 스택 — DOM 순서 그대로(사진 → 소개 → CTA) */
.hero {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 0 26px;
}

.hero-message {
  width: 100%;   /* flex 자식이 내용 폭으로 줄지 않게 — CTA 버튼이 전체 폭을 쓴다 */
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero h1 {
  font-size: 26px;
  color: var(--navy);
  font-weight: 900;
}

.hero-promise {
  margin-top: 10px;
  font-size: 16px;
}

.hero-promise strong {
  color: var(--green);
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hero-meta-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ---------- 대표 사진: 모바일=원형 아바타, PC=대형 카드 ---------- */
.portrait-frame {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.15);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* 비율 유지하며 프레임을 꽉 채움 */
  object-position: center 20%;  /* 증명사진 특성상 얼굴이 위쪽 — 위를 기준으로 */
}

.portrait-caption {
  font-size: 12px;
  color: var(--muted);
}

.portrait-caption strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- 전화·카톡 CTA ---------- */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  text-align: center;
}

.call-button {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 58, 92, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.call-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 58, 92, 0.35);
}

.call-number {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.call-button small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

.kakao-button {
  display: block;
  padding: 13px;
  border-radius: 14px;
  background: #fee500;
  color: #3c1e1e;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s;
}

.kakao-button:hover {
  transform: translateY(-2px);
}


/* ---------- 섹션 헤더: 제목 + 우측 링크 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.section-link {
  display: none;   /* 모바일은 하단 전체 폭 버튼이 담당 — PC에서만 노출 */
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.section-link:hover {
  text-decoration: underline;
}

.all-listings-button {
  display: block;
  margin: 12px 0;
  padding: 13px;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
}

/* ---------- 신뢰 블록: 아이콘 카드 3종 ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--line);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3f9;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
}

.trust-card strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.trust-card div span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 오시는 길: 모바일=세로, PC=정보｜지도 2단 카드 ---------- */
/* 오시는 길 — 전 계층 카드 인클로저 (랜딩의 다른 섹션들과 동일한 감싸기 — 맨살 텍스트는 미완성처럼 보인다).
   내부 텍스트는 좌정렬 유지: 주소·전화 같은 정보성 텍스트는 좌정렬이 가독 표준 */
.visit-card {
  margin: 8px 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}

.visit-info .section-title {
  margin: 0 0 6px;
}

.visit-address {
  font-size: 14px;
  margin: 6px 0 4px;
}

.visit-contact {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* 모바일·태블릿 = 전폭 버튼(탭 타깃 관행) — PC는 미디어 블록이 우측 열 카드형으로 재정의 */
.map-button {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.15s;
}

.map-button:hover {
  transform: translateY(-2px);
}

/* ============================================================
   PC 계층(≥1024): 프로토타입 레이아웃 — 히어로 2단·4열 그리드·카드형 섹션
   ============================================================ */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: center;
    text-align: left;
    padding: 40px 0 52px;
  }

  .hero-eyebrow {
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--green);
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.2;
  }

  .hero-promise {
    font-size: 21px;
    margin-top: 14px;
  }

  .hero-meta {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .hero-meta-chip {
    font-size: 12.5px;
  }

  .hero-cta-row {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
    text-align: left;
  }

  .call-button {
    padding: 14px 26px;
    border-radius: 14px;
  }

  /* 헤더에 전화가 상시 노출되므로 히어로의 대형 전화 버튼은 PC에서 중복 → 숨김 */
  .call-button {
    display: none;
  }

  .kakao-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    border-radius: 14px;
  }

  /* PC: 좌 메시지 / 우 사진 — DOM은 사진이 먼저라 order로 자리를 바꾼다 */
  .hero-message {
    order: 1;
  }

  /* 사진: 원형 아바타 → 340×380 대형 카드 + 캡션 칩 */
  .hero-portrait {
    order: 2;
    position: relative;
  }

  .portrait-frame {
    width: 340px;
    height: 380px;
    margin: 0;
    border: none;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(27, 58, 92, 0.18), 0 4px 12px rgba(27, 58, 92, 0.1);
  }

  .portrait-caption {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 13.5px;
    box-shadow: 0 8px 20px rgba(27, 58, 92, 0.12);
  }

  .section-head {
    margin: 40px 0 6px;
  }

  .section-head .section-title {
    font-size: 20px;
  }

  .section-link {
    display: inline;
  }

  .all-listings-button {
    display: none;   /* PC는 섹션 헤더의 링크가 담당 */
  }

  /* 카드 규격 통일: 목록 전체 매물(3열)과 동일한 카드 폭 — 섹션마다 크기가 다르면 안 된다 */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .trust-grid {
    gap: 14px;
    margin: 36px 0 0;
  }

  .trust-card {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
  }

  .trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .trust-icon svg {
    width: 24px;
    height: 24px;
  }

  .trust-card strong {
    font-size: 15.5px;
    font-weight: 800;
  }

  .trust-card div span {
    font-size: 12.5px;
  }

  .visit-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 30px;
    margin: 36px 0 56px;
  }

  .visit-info .section-title {
    margin: 0 0 6px;
  }

  .visit-contact {
    margin-bottom: 0;
  }

  .map-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--green), #226a4b);
    border-radius: 14px;
    padding: 24px 0;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(46, 125, 91, 0.25);
  }
}
