/* ═══════════════════════════════════════════════════════
   냉장고장리폼 — 프리미엄 올리브 디자인 시스템
   구조 참고: 사용자 제공 컴포넌트 마크업(sec/sec-marker/link-card 패턴, G-3)
   컬러: 참고 대상 컬러 미반영, 소프트 올리브 톤 자체 팔레트 신규 선정
   ═══════════════════════════════════════════════════════ */

:root {
  --olive: #7C8560;
  --olive-dark: #5B6244;
  --olive-light: #A7AE85;
  --olive-pale: #EFEDE0;
  --ivory: #F8F6EF;
  --ivory-alt: #F0EDE1;
  --ink: #2B2B24;
  --ink-soft: rgba(43, 43, 36, 0.68);
  --ink-faint: rgba(43, 43, 36, 0.48);
  --line: rgba(43, 43, 36, 0.12);
  --line-strong: rgba(43, 43, 36, 0.22);
  --white: #FFFFFF;
  --shadow-soft: 0 12px 32px -16px rgba(43, 43, 36, 0.22);
  --shadow-lift: 0 24px 48px -20px rgba(43, 43, 36, 0.32);
  --radius: 4px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }
body { background: var(--ivory); color: var(--ink); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ── Section rhythm ───────────────────────────── */
.sec { padding: 88px 0; }
.sec-alt { background: var(--ivory-alt); }
.sec-dark { background: var(--olive-dark); color: var(--ivory); }
.sec-dark .ink-soft, .sec-dark .sec-desc { color: rgba(248, 246, 239, 0.72); }
@media (max-width: 640px) { .sec { padding: 56px 0; } }

.sec-marker {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sec-marker-num {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 84px;
}
.sec-marker-num .num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--olive-light);
  letter-spacing: -0.02em;
}
.sec-marker-num .label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}
.sec-dark .sec-marker-num .num { color: rgba(248, 246, 239, 0.35); }
.sec-dark .sec-marker-num .label { color: var(--olive-light); }
.sec-marker-body { flex: 1 1 320px; }
.sec-title { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.sec-desc { margin-top: 10px; color: var(--ink-soft); line-height: 1.7; max-width: 640px; }
@media (max-width: 640px) {
  .sec-marker { gap: 20px; }
  .sec-title { font-size: 24px; }
}

/* ── Grid ─────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ── Link card ────────────────────────────────── */
.link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.link-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--olive-light); }
.link-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.link-card .lc-body { padding: 20px 22px; }
.link-card .lc-body h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.link-card .lc-body span { font-size: 13px; color: var(--ink-faint); line-height: 1.5; display: block; }
.link-card .lc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.link-card .lc-tags span { display: inline-block; background: var(--olive-pale); color: var(--olive-dark); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }

.lc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  background: var(--olive-dark);
  color: var(--white);
}
.lc-cta h4 { font-size: 16px; font-weight: 700; margin: 0; }
.lc-cta:hover { background: var(--olive); box-shadow: var(--shadow-lift); }
.lc-cta-full { grid-column: 1 / -1; min-height: 88px; }

.link-card .lc-icon { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--olive-pale); }
.link-card .lc-icon svg { width: 32px; height: 32px; color: var(--olive-dark); }

.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.info-card p { font-size: 13.5px; color: var(--ink-faint); line-height: 1.6; margin: 0; }

.cta-band { margin-top: 56px; border-radius: var(--radius-lg); background: var(--olive-dark); color: var(--white); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band p { font-weight: 700; margin: 0; color: var(--white); }

.sitemap-link { display: block; border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.sitemap-link:hover { border-color: var(--olive); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 14.5px;
  background: var(--olive-dark); color: var(--white); border: 1px solid var(--olive-dark);
  text-decoration: none; transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn:hover { background: var(--olive); border-color: var(--olive); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--olive-dark); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--olive-dark); color: var(--white); border-color: var(--olive-dark); }
.btn-light { background: var(--white); color: var(--olive-dark); border: 1px solid var(--white); }
.btn-light:hover { background: var(--olive-pale); }
.btn-ghost-light { background: transparent; color: var(--ivory); border: 1px solid rgba(248,246,239,.4); }
.btn-ghost-light:hover { background: rgba(248,246,239,.12); }

/* ── Badges / pills ───────────────────────────── */
.badge { display: inline-block; background: var(--olive-pale); color: var(--olive-dark); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.badge-outline { display: inline-block; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; padding: 8px 16px; border-radius: 20px; }

/* ── Tables ───────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tbl th { text-align: left; background: var(--olive-pale); color: var(--olive-dark); font-weight: 700; padding: 14px 16px; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.sec-dark .tbl { color: var(--ink); }

/* ── FAQ accordion ────────────────────────────── */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); margin-bottom: 8px; }
.faq-q { width: 100%; text-align: left; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; font-size: 15px; color: var(--ink); font-family: inherit; }
.faq-q .icon { color: var(--olive-dark); transition: transform .25s ease; font-weight: 400; }
.faq-a { padding: 0 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 18px; margin: 0; }

/* ── Header / nav ─────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 246, 239, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand .brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand .brand-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin-top: 2px; }
.nav-main { display: flex; align-items: center; gap: 36px; }
.nav-main a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; letter-spacing: 0.01em; position: relative; padding-bottom: 4px; }
.nav-main a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--olive-dark); transition: right .25s ease; }
.nav-main a:hover { color: var(--ink); }
.nav-main a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) {
  .nav-main { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--ivory); }
.mobile-menu.open { display: block; }
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; }
.mobile-menu a { padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-btn { display: none; background: none; border: none; padding: 8px; color: var(--ink); }
@media (max-width: 860px) { .mobile-btn { display: inline-flex; } }

/* ── Footer ───────────────────────────────────── */
.site-footer { background: var(--olive-dark); color: rgba(248, 246, 239, 0.86); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 64px 0 48px; font-size: 14px; }
.footer-grid h3 { color: var(--ivory); font-size: 14px; font-weight: 700; margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: rgba(248, 246, 239, 0.7); text-decoration: none; }
.footer-grid a:hover { color: var(--ivory); }
.footer-bottom { border-top: 1px solid rgba(248, 246, 239, 0.16); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 0; font-size: 12px; color: rgba(248, 246, 239, 0.55); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--ivory); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; padding: 48px 0 32px; } }

/* ── Floating CTA ─────────────────────────────── */
.floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.floating-panel { display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: 8px; }
.floating-panel a { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 700; text-decoration: none; }
.floating-panel a.call { background: var(--olive-dark); color: var(--white); }
.floating-panel a.call:hover { background: var(--olive); }
.floating-panel a.sms { background: var(--olive-pale); color: var(--olive-dark); }
.floating-panel a.sms:hover { background: #E4E0CC; }
.scroll-top { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--olive-dark); box-shadow: var(--shadow-soft); }
.scroll-top.show { display: flex; }

/* ── Reveal-on-scroll ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Hero / intro ─────────────────────────────── */
.hero-eyebrow { color: var(--olive); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 14px 0 18px; }
.hero-lead { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 620px; }
@media (max-width: 640px) { .hero-title { font-size: 30px; } .hero-lead { font-size: 15.5px; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); display: block; }
.hero-media-badge { position: absolute; left: -18px; bottom: -18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-soft); }
.hero-media-badge .b-label { font-size: 11px; color: var(--ink-faint); }
.hero-media-badge .b-value { font-size: 15px; font-weight: 700; color: var(--olive-dark); margin-top: 3px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) { .hero-media-badge { left: 12px; bottom: 12px; } }

/* ── Prose (case detail / nseo pages) ─────────── */
.prose h2 { font-size: 21px; font-weight: 700; margin: 48px 0 14px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 32px 0 8px; padding-left: 12px; border-left: 3px solid var(--olive-light); }
.prose p { line-height: 1.8; color: var(--ink-soft); margin: 0 0 16px; }
.prose ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink-soft); line-height: 1.8; }
.prose a { color: var(--olive-dark); font-weight: 700; text-decoration: underline; }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); display: block; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }

/* ── Gallery ──────────────────────────────────── */
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); }
