/*
 * sday-hero.css v6 — 완전 모바일 퍼스트
 * ✅ grid 절대 사용 안 함
 * ✅ position:absolute는 PC에서만, 모바일에서 완전 해제
 * ✅ 모바일: 단순 블록/flex 흐름, 가로 넘침 0
 * ✅ PC: position:relative + absolute 이미지 우측 배치
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,600&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* ────────────────────────────────────────
   0. 히어로 전체 박스 초기화
──────────────────────────────────────── */
#hero.sday-hero,
#hero.sday-hero * {
  box-sizing: border-box;
}

/* ────────────────────────────────────────
   1. 섹션 래퍼 — 모바일 기본 (블록 흐름)
──────────────────────────────────────── */
#hero.sday-hero {
  /* ⚠️ display:block — grid/flex 절대 없음 */
  display: block;
  position: relative;
  width: 100%;
  /* 가로 넘침 완전 차단 */
  overflow: hidden;
  max-width: 100%;
  background: #f8f4ee;
}

/* ────────────────────────────────────────
   2. PC 전용 이미지 div → 모바일에서 완전 숨김
──────────────────────────────────────── */
.sh-pc-img {
  /* 기본값: 완전 숨김 */
  display: none !important;
}

/* ────────────────────────────────────────
   3. 모바일 상단 이미지 띠
──────────────────────────────────────── */
.sh-mob-img {
  display: block;
  position: relative;
  width: 100%;
  height: 42vw;
  min-height: 150px;
  max-height: 210px;
  overflow: hidden;
  background: #1a1510;
}

.sh-mob-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.sh-mob-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, #f8f4ee 100%);
  pointer-events: none;
  z-index: 1;
}

/* 이미지 위 날짜 뱃지 */
.sh-mob-date {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #c9a96e, #b8935a);
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(184,147,90,.5);
}

/* ────────────────────────────────────────
   4. 콘텐츠 박스 — 모바일 기본
──────────────────────────────────────── */
.sh-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 모바일 전체폭, 고정 폭 없음 */
  width: 100%;
  max-width: 100%;
  padding: 18px 16px 90px;
  position: relative;
  z-index: 2;
}

/* ────────────────────────────────────────
   5. PC 전용 칩 — 모바일 숨김
──────────────────────────────────────── */
.sh-chip {
  display: none;
}

.sh-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D9A72;
  flex-shrink: 0;
  animation: shDotPulse 1.8s ease-in-out infinite;
}

@keyframes shDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(1.7); }
}

/* ────────────────────────────────────────
   6. 브랜드 + 타이틀
──────────────────────────────────────── */
.sh-titles {
  width: 100%;
  margin-bottom: 14px;
}

.sh-brand {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  color: #8a7a6a;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sh-h1 {
  margin: 0;
  padding: 0;
  line-height: 1.0;
}

/* "웨딩드레스" */
.sh-t1 {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(34px, 9.5vw, 50px);
  font-weight: 900;
  color: #1a1510;
  letter-spacing: -2px;
  line-height: 1.05;
  word-break: keep-all;
}

/* "피팅체험전" — 더 크고 녹색 강조 */
.sh-t2 {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(38px, 11vw, 54px);
  font-weight: 900;
  color: #0D6B52;
  letter-spacing: -2px;
  line-height: 1.05;
  word-break: keep-all;
}

/* 영문 캡션 — 모바일 숨김 */
.sh-en {
  display: none;
}

/* ────────────────────────────────────────
   7. PC 날짜 배지 — 모바일 숨김
──────────────────────────────────────── */
.sh-date-row {
  display: none;
}

.sh-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #c9a96e, #b8935a);
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(184,147,90,.38);
}

/* ────────────────────────────────────────
   8. PC 전용 혜택 태그 — 모바일 숨김
──────────────────────────────────────── */
.sh-tags {
  display: none;
}

.sh-tag-gold,
.sh-tag-mint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.sh-tag-gold {
  background: rgba(201,169,110,.11);
  border: 1px solid rgba(201,169,110,.38);
  color: #8b6b3d;
}

.sh-tag-mint {
  background: rgba(13,154,114,.09);
  border: 1px solid rgba(13,154,114,.28);
  color: #0D6B52;
}

/* ────────────────────────────────────────
   9. 모바일 혜택 리스트 (4줄)
──────────────────────────────────────── */
.sh-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  width: 100%;
}

.sh-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(13,107,82,.15);
  border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  color: #2a2218;
  line-height: 1.45;
  word-break: keep-all;
  width: 100%;
  max-width: 100%;
}

.sh-list li:first-child {
  background: rgba(13,107,82,.07);
  border-color: rgba(13,107,82,.28);
}

.sh-li-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.sh-li-ic.green { background: rgba(13,107,82,.12); color: #0D6B52; }
.sh-li-ic.gold  { background: rgba(201,169,110,.15); color: #8b6b3d; }

.sh-list li strong { color: #0D6B52; font-weight: 800; }

/* ────────────────────────────────────────
   10. 정보 박스 2×2 그리드
──────────────────────────────────────── */
.sh-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 100%;
  border: 2px solid #0d6b52;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 3px 16px rgba(13,107,82,.14);
}

.sh-ii {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 11px;
  background: #fff;
  border-right: 2px solid #0d6b52;
  border-bottom: 2px solid #0d6b52;
}

/* 짝수(우측 열): 우측 border 제거 */
.sh-ii:nth-child(2),
.sh-ii:nth-child(4) {
  border-right: none;
}

/* 3·4번(하단 행): 하단 border 제거 */
.sh-ii:nth-child(3),
.sh-ii:nth-child(4) {
  border-bottom: none;
}

.sh-ii i {
  font-size: 15px;
  color: #0D9A72;
  flex-shrink: 0;
}

.sh-ii div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.sh-ii small {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #8a7a6a;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.sh-ii strong {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #1a1510;
  word-break: keep-all;
  white-space: normal;
}

/* ────────────────────────────────────────
   11. CTA 버튼 영역
──────────────────────────────────────── */
.sh-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

/* 메인 CTA */
.sh-btn-p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #0D9A72, #0D6B52);
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(13,107,82,.32);
  letter-spacing: .1px;
  white-space: nowrap;
  word-break: keep-all;
}

.sh-btn-p:hover {
  opacity: .92;
  transform: translateY(-2px);
}

/* 보조 버튼 행 */
.sh-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* 아웃라인 버튼 */
.sh-btn-o {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #2a2218;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 6px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(58,53,48,.28);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.sh-btn-o:hover {
  background: rgba(13,107,82,.07);
  border-color: #0D6B52;
  color: #0D6B52;
}

/* ────────────────────────────────────────
   12. 드로어 열릴 때 float 버튼 숨김
──────────────────────────────────────── */
body.drawer-open .float-consult {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

body:not(.drawer-open) .float-consult {
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════════════════════
   ██  PC (min-width: 769px) — 완전히 다른 레이아웃  ██
   ✅ display:block 유지 (섹션 자체는 relative 블록)
   ✅ 이미지는 position:absolute 우측
   ✅ .sh-box는 왼쪽 55% 폭만 차지
════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

  /* 섹션 최소 높이 */
  #hero.sday-hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #f8f4ee 0%, #ede8df 50%, #e8f4ef 100%);
  }

  /* ── PC 이미지: absolute 우측 고정 ── */
  .sh-pc-img {
    display: block !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    z-index: 1;
    overflow: hidden;
  }

  .sh-pc-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  .sh-pc-img-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      #f0ebe2 0%,
      rgba(240,235,226,.35) 22%,
      transparent 58%
    );
    pointer-events: none;
  }

  /* ── 모바일 전용 요소 숨김 ── */
  .sh-mob-img {
    display: none !important;
  }

  /* ── 콘텐츠 박스: 왼쪽 55% ── */
  .sh-box {
    width: 55%;
    max-width: 55%;
    min-height: 100vh;
    padding: 100px 48px 80px 60px;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 2;
  }

  /* ── PC 전용 칩 표시 ── */
  .sh-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13,107,82,.09);
    border: 1px solid rgba(13,107,82,.22);
    border-radius: 50px;
    padding: 7px 18px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #0D6B52;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
  }

  /* ── 타이틀 크기 ── */
  .sh-brand {
    font-size: clamp(11px, 1.1vw, 14px);
    letter-spacing: 6px;
    margin-bottom: 10px;
  }

  .sh-t1 {
    font-size: clamp(30px, 3.5vw, 54px);
    letter-spacing: -1.5px;
  }

  .sh-t2 {
    font-size: clamp(34px, 4.1vw, 62px);
    letter-spacing: -1.5px;
  }

  /* ── 영문 캡션 ── */
  .sh-en {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 300;
    color: #9a8a7a;
    letter-spacing: 1.5px;
    margin: 6px 0 0;
  }

  /* ── 날짜 배지 ── */
  .sh-date-row {
    display: block;
    margin-bottom: 16px;
  }

  /* ── 혜택 태그 ── */
  .sh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  /* ── 모바일 리스트 숨김 ── */
  .sh-list {
    display: none !important;
  }

  /* ── 정보바: 가로 4칸 (flex) ── */
  .sh-info {
    display: flex !important;
    grid-template-columns: unset;
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
  }

  .sh-ii {
    flex: 1;
    padding: 18px 14px;
    border-right: 2px solid rgba(13,107,82,.35);
    border-bottom: none;
  }

  /* PC에서 nth-child 재정의 */
  .sh-ii:nth-child(1),
  .sh-ii:nth-child(2),
  .sh-ii:nth-child(3) {
    border-right: 2px solid rgba(13,107,82,.35);
    border-bottom: none;
  }

  .sh-ii:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }

  .sh-ii i { font-size: 18px; }

  .sh-ii strong {
    font-size: 13px;
    white-space: nowrap;
  }

  /* ── 버튼 가로 배치 ── */
  .sh-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: auto;
  }

  .sh-btn-p {
    width: auto;
    font-size: 15px;
    padding: 15px 28px;
  }

  .sh-btn-row {
    width: auto;
    flex-shrink: 0;
  }

  .sh-btn-o {
    flex: none;
    font-size: 13px;
    padding: 13px 18px;
  }
}

/* ════════════════════════
   태블릿 (769~1100px)
════════════════════════ */
@media (min-width: 769px) and (max-width: 1100px) {

  .sh-box {
    width: 58%;
    max-width: 58%;
    padding: 80px 32px 64px 40px;
  }

  .sh-pc-img { width: 42%; }

  .sh-t1 { font-size: clamp(26px, 3.2vw, 42px); }
  .sh-t2 { font-size: clamp(30px, 3.8vw, 48px); }

  .sh-ii { padding: 14px 10px; }
  .sh-ii strong { font-size: 11px; white-space: normal; }
}

/* ════════════════════════
   소형 모바일 (≤390px)
════════════════════════ */
@media (max-width: 390px) {

  .sh-mob-img {
    height: 44vw;
    max-height: 190px;
  }

  .sh-box {
    padding: 14px 13px 86px;
  }

  .sh-t1 { font-size: clamp(30px, 9vw, 42px); }
  .sh-t2 { font-size: clamp(34px, 10.5vw, 46px); }

  .sh-mob-date { font-size: 11px; padding: 6px 14px; }

  .sh-list li { font-size: 12px; padding: 9px 10px; }

  .sh-ii { padding: 12px 9px; }
  .sh-ii strong { font-size: 10px; }

  .sh-btn-p { font-size: 14px; padding: 14px 16px; }
}
