/* =========================================================
   행복 대출 중개 - 스타일
   ========================================================= */

:root {
  --nav-h: 72px;

  --c-primary: #1f4e8c;        /* 신뢰감 있는 블루 */
  --c-primary-dark: #163a69;
  --c-accent: #f2a541;         /* 따뜻한 '행복' 포인트 컬러 */
  --c-text: #1d2433;
  --c-text-sub: #5b6475;
  --c-border: #e3e7ee;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fb;
  --c-footer: #1a2130;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);   /* 고정 네비 높이만큼 여백 */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 네비게이션 바 ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color .25s, box-shadow .25s;
}
.navbar.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 2px 12px rgba(20, 40, 80, 0.06);
}
.navbar__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.navbar__logo {
  height: 34px;
  width: auto;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--c-text-sub);
  transition: color .2s, background-color .2s;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.navbar__link:hover { color: var(--c-primary); background: var(--c-bg-alt); }
.navbar__link.is-active { color: var(--c-primary); }
.navbar__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
  transform: translateX(-50%);
}
.navbar__link--cta {
  margin-left: 8px;
  color: #fff;
  background: var(--c-primary);
}
.navbar__link--cta:hover,
.navbar__link--cta.is-active { color: #fff; background: var(--c-primary-dark); }
.navbar__link--cta.is-active::after { display: none; }

/* 햄버거 (모바일) */
.navbar__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 공통 섹션 ---------- */
.section { padding: 100px 0; }
.section--about { padding-top: var(--nav-h); }
.section--alt { background: var(--c-bg-alt); }

.section__head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin-top: 12px;
  font-size: 1.08rem;
  color: var(--c-text-sub);
}

.placeholder {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  color: var(--c-text-sub);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  background: #fff;
}

/* ---------- Q&A ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.faq__item[open] { border-color: #c9d6ea; box-shadow: var(--shadow); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 700;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { flex: 1; }
.faq__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}
.faq__mark--a { background: var(--c-accent); }
.faq__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-text-sub);
  border-bottom: 2px solid var(--c-text-sub);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq__item[open] .faq__chevron { transform: rotate(-135deg) translateY(-3px); }
.faq__a {
  display: flex;
  gap: 14px;
  padding: 0 24px 24px;
  color: var(--c-text-sub);
}
.faq__a p { padding-top: 3px; }
.faq__a strong { color: var(--c-text); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--ghost { border: 2px solid var(--c-primary); color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }

/* ---------- 히어로 (업체 소개 상단) ---------- */
.hero {
  background: linear-gradient(135deg, #eef3fb 0%, #fdf6ec 100%);
  padding: 80px 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: normal;
  color: var(--c-primary);
  background: linear-gradient(transparent 62%, rgba(242, 165, 65, 0.35) 62%);
}
.hero__desc {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 500;
}
.hero__note {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--c-text-sub);
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe6f1;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-placeholder { display: none; }
.hero__photo.is-empty .hero__photo-placeholder {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #7a869a;
  font-weight: 600;
  border: 2px dashed #b9c4d6;
  border-radius: 20px;
}

/* ---------- 업체 소개 본문 ---------- */
.about__intro {
  max-width: 820px;
  margin: 88px auto 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-text-sub);
}
.about__intro strong { color: var(--c-primary); }

.sub-title {
  margin: 72px 0 28px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* 픽토그램 배지 (약속 / 상품 공통) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eaf0f9;
  color: var(--c-primary);
}
.icon-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.promise-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.promise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promise-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.promise-card p { font-size: 0.95rem; color: var(--c-text-sub); }

.about__closing {
  max-width: 760px;
  margin: 80px auto 100px;
  padding: 40px;
  text-align: center;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  color: var(--c-text-sub);
}
.about__sign {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--c-text);
}
.about__sign strong { color: var(--c-primary); }

/* ---------- 대출 상품 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9d6ea;
}
.product-card .icon-badge { background: #fdf1e0; color: #d98a1f; }
.product-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.product-card__head .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.product-card__name {
  font-size: 1.25rem;
  font-weight: 800;
}
.product-card__spec {
  padding: 14px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.product-card__spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.product-card__spec div + div { margin-top: 6px; }
.product-card__spec dt { font-size: 0.9rem; color: var(--c-text-sub); }
.product-card__spec dd { font-weight: 700; color: var(--c-primary); }
.product-card__cond { margin-top: 16px; }
.product-card__cond li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--c-text-sub);
}
.product-card__cond li + li { margin-top: 4px; }
.product-card__cond li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ---------- 푸터 ---------- */
.footer {
  background: var(--c-footer);
  color: #a9b2c3;
  padding: 48px 0 36px;
  font-size: 0.88rem;
}
.footer__warning {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer__legal + .footer__legal { margin-top: 8px; }
.footer__copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #6f7a8e;
}

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .navbar__toggle { display: flex; }
  .navbar__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 10px 20px rgba(20, 40, 80, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .navbar__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .navbar__link { padding: 12px 16px; border-radius: 10px; }
  .navbar__link.is-active::after { display: none; }
  .navbar__link.is-active { background: var(--c-bg-alt); }
  .navbar__link--cta { margin: 6px 0 0; text-align: center; }
  .navbar__link--cta { justify-content: center; }
}

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

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 72px; }
  .pc-br { display: none; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }

  .section { padding: 72px 0; }
  .about__intro { margin-top: 56px; font-size: 1.05rem; }
  .product-grid { grid-template-columns: 1fr; }
  .about__closing { padding: 28px 20px; }
}
