/* ============================================================
   page-home.css — flagship home page: hero, comparison table,
   checklist, process timeline, carousel, stat row
   ============================================================ */

:root {
  --cta-primary: #1D4ED8;
  --cta-secondary: #F8FAFC;
  --home-radius-sm: 6px;
  --home-radius-md: 18px;
  --home-radius-lg: 32px;
  --home-divider: dashed 1px #CBD5E1;
}

body { font-family: 'Noto Sans KR', sans-serif; font-weight: 400; background: #F8FAFC; color: #0F172A; }
h1, h2, h3 { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -.02em; color: #0F172A; }

main section + section { border-top: var(--home-divider); }
main > .section:nth-of-type(even) { background: #EFF6FF; }
main > .section:nth-of-type(odd) { background: #FFFFFF; }

/* ---- hero ---- */
.hero {
  background: linear-gradient(155deg, rgba(15,23,42,0) 0%, rgba(29,78,216,0) 130%), url("/images/gallery/sirocco-07.jpg") center/cover no-repeat;
  color: #F8FAFC;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 64px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 18px; color: #FACC15; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero p { font-size: 1.08rem; color: #F1F5F9; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn-hero-consult, .btn-hero-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; min-height: 48px; transition: transform .15s ease, background .15s ease;
}
.btn-hero-consult { background: #F8FAFC; color: #0F172A; }
.btn-hero-consult:hover { background: #FFFFFF; transform: translateY(-2px); }
.btn-hero-call { background: #1D4ED8; color: #F8FAFC; }
.btn-hero-call:hover { background: #1E40AF; transform: translateY(-2px); }

/* ---- feature grid: 1:1 카드 4개 한 줄 + 더보기 버튼 ---- */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.1); transition: transform .15s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -14px rgba(15,23,42,.3); }
.feature-card a { display: block; }
.feature-thumb { display: block; position: relative; width: 100%; padding-bottom: 100%; overflow: hidden; }
.feature-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-label { display: block; padding: 12px 10px; font-weight: 700; font-size: .92rem; text-align: center; background: #1D4ED8; color: #fff; }
.feature-more { text-align: center; margin-top: 26px; }
.feature-more .btn-more { display: inline-flex; align-items: center; gap: 6px; padding: 13px 30px; border-radius: 999px; background: #0F172A; color: #fff; font-weight: 700; }
.feature-more .btn-more:hover { background: #1E293B; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---- generic section wrapper ---- */
.section { max-width: 1100px; margin: 0 auto; padding: 72px 20px; }
.section h2 {
  font-size: 1.55rem; margin-bottom: 14px; display: inline-block;
  padding-bottom: 10px; border-bottom: 3px solid var(--cta-primary);
}
.section > p.lead { color: #475569; margin-bottom: 28px; max-width: 780px; }
.section .summary-note { margin-top: 18px; color: #475569; font-size: .95rem; background: #EFF6FF; border-radius: var(--home-radius-sm); padding: 14px 18px; }

/* ---- comparison table ---- */
.fan-table-wrap { overflow-x: auto; border-radius: var(--home-radius-md); box-shadow: 0 1px 0 #E2E8F0; }
.fan-table { min-width: 640px; background: #fff; border-radius: var(--home-radius-md); overflow: hidden; }
.fan-table caption { text-align: left; font-weight: 700; padding: 12px 18px; color: #1D4ED8; font-size: .95rem; }
.fan-table th, .fan-table td { text-align: left; padding: 14px 18px; font-size: .93rem; border-bottom: 1px solid #E2E8F0; }
.fan-table thead th { background: #0F172A; color: #F8FAFC; font-weight: 700; }
.fan-table tbody tr:last-child td { border-bottom: none; }
.fan-table tbody tr:nth-child(even) { background: #F8FAFC; }

/* ---- checklist ---- */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.checklist li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: var(--home-radius-md); padding: 18px;
  border: 1px solid #E2E8F0; transition: transform .15s ease, box-shadow .15s ease;
}
.checklist li:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(15,23,42,.25); }
.checklist svg { flex: none; color: #1D4ED8; margin-top: 2px; }
.checklist h3 { font-size: 1rem; margin-bottom: 4px; }
.checklist p { font-size: .9rem; color: #475569; }

/* ---- process table (2-row, 4-column) ---- */
.proc-table-wrap { overflow-x: auto; border-radius: var(--home-radius-md); }
.proc-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 14px; }
.proc-table td {
  vertical-align: top; width: 25%; background: #fff; border: 1px solid #E2E8F0;
  border-radius: var(--home-radius-md); padding: 18px;
}
.proc-table .step-label { color: #1D4ED8; font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.proc-table h3 { font-size: .98rem; margin-bottom: 6px; }
.proc-table p { font-size: .85rem; color: #475569; }

/* ---- promo grid (3 cols x 2 rows, photo cards) ---- */
.promo-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
  border-radius: var(--home-radius-lg); overflow: hidden; background: #fff;
  border: 1px solid #E2E8F0; transition: transform .15s ease, box-shadow .15s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -14px rgba(15,23,42,.3); }
.promo-card a { display: block; }
/* 3:4 box via the padding-percentage trick (works even without CSS aspect-ratio support) */
.promo-thumb { display: block; position: relative; width: 100%; padding-bottom: 133.333%; overflow: hidden; }
.promo-thumb img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.promo-label {
  display: block; text-align: center; padding: 14px 10px; font-weight: 700; font-size: .95rem;
  background: #1D4ED8; color: #F8FAFC; transition: background .15s ease;
}
.promo-card a:hover .promo-label { background: #1E40AF; }

@media (max-width: 720px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .promo-grid { grid-template-columns: 1fr; }
}

/* ---- carousel ---- */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel__track { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__list { display: flex; gap: 20px; list-style: none; padding: 4px; }
.carousel__card { flex: none; width: 240px; }
.carousel__card a {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  height: 140px; background: #1D4ED8; color: #F8FAFC; border-radius: var(--home-radius-lg);
  padding: 20px; font-weight: 700; font-size: 1rem; transition: background .15s ease, transform .15s ease;
}
.carousel__card a:hover { background: #1E40AF; transform: translateY(-4px); }

/* ---- stat row ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.stat-card { background: #0F172A; color: #F8FAFC; border-radius: var(--home-radius-lg); padding: 28px 22px; }
.stat-card p { color: #CBD5E1; font-size: .92rem; margin-top: 8px; }
.stat-card .stat-title { font-weight: 900; font-size: 1.05rem; color: #38BDF8; }

/* ---- cta override (home section keeps default cta bg) ---- */
.cta { background: #fff; }

@media (max-width: 700px) {
  /* fan-table becomes a stacked card list so nothing scrolls off-screen */
  .fan-table-wrap { overflow-x: visible; }
  .fan-table { min-width: 0; width: 100%; display: block; }
  .fan-table thead { display: none; }
  .fan-table tbody, .fan-table tr { display: block; width: 100%; }
  .fan-table tr { margin-bottom: 14px; border: 1px solid #E2E8F0; border-radius: var(--home-radius-md); overflow: hidden; }
  .fan-table th, .fan-table td { display: block; border-bottom: 1px solid #F1F5F9; width: 100%; }
  .fan-table th[scope="row"] { background: #0F172A; color: #F8FAFC; }
  .fan-table td { position: relative; padding-left: 44%; min-height: 2.4em; }
  .fan-table td::before {
    content: attr(data-label); position: absolute; left: 14px; top: 14px; width: 38%;
    font-weight: 700; font-size: .82rem; color: #1D4ED8;
  }
  .fan-table tbody tr:nth-child(even) { background: transparent; }

  .hero { min-height: 46vh; padding: 80px 20px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 16px; }
}
