:root {
  --green: #4b6f55;
  --green-dark: #35503e;
  --ivory: #f7f3ec;
  --ink: #22261f;
  --gray: #6b7268;
  --line: #e4e0d5;
  --gold: #b9924f;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", "Paperlogy", -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Paperlogy", "Pretendard Variable", sans-serif; line-height: 1.3; margin: 0 0 .5em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.main-nav { display: flex; gap: 20px; flex: 1; }
.main-nav a { font-size: .92rem; color: var(--gray); }
.main-nav a:hover { color: var(--green-dark); }
.header-cta { display: flex; gap: 8px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 4px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* hero */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 64px 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .85; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hero-lead { font-size: 1.05rem; opacity: .95; margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--green-dark); }
.hero-actions .btn-outline { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* section */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow { color: var(--green); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-desc { color: var(--gray); max-width: 640px; margin: 12px auto 0; }

/* portfolio */
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tab-btn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--gray); cursor: pointer; }
.tab-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .15s; }
.case-card:hover { transform: translateY(-3px); }
.case-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 16px 18px 20px; }
.case-card .tag { font-size: .78rem; color: var(--green); font-weight: 700; margin-bottom: 4px; display: block; }
.case-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.case-card .meta { font-size: .84rem; color: var(--gray); }
.case-card .more { font-size: .84rem; color: var(--green-dark); font-weight: 700; margin-top: 10px; display: inline-block; }

/* price table */
.price-table, .info-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td, .info-table th, .info-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; font-size: .94rem; }
.price-table th, .info-table th { background: var(--ivory); font-weight: 700; }
.price-table td:nth-child(2) { color: var(--green-dark); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap table { border: 0; }
.table-wrap th, .table-wrap td { border-left: 0; border-right: 0; }
.note-list { margin-top: 20px; padding-left: 20px; color: var(--gray); font-size: .92rem; }
.note-list li { margin-bottom: 6px; }

/* two-col grid for menu+info */
.menu-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process-step { background: var(--ivory); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.process-step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; }
.process-step h3 { font-size: .96rem; }

/* about */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; max-width: 320px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.about-facts li { padding-left: 22px; position: relative; color: var(--gray); font-size: .94rem; }
.about-facts li::before { content: "—"; position: absolute; left: 0; color: var(--green); }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px; font-size: 1rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; color: var(--ink); }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--green); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--gray); font-size: .94rem; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 20px; margin: 0; }

/* cta band */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { margin-top: 8px; }

/* footer */
.site-footer { background: var(--ivory); padding: 48px 0 20px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { color: var(--gray); font-size: .88rem; margin: 4px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; align-self: flex-start; }
.footer-nav a { font-size: .88rem; color: var(--gray); }
.footer-copy { text-align: center; color: var(--gray); font-size: .8rem; margin-top: 28px; }

/* floating cta */
.floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--green); color: #fff; border-radius: 999px; padding: 14px 20px; display: flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* case detail page */
.case-hero { background: var(--ivory); padding: 48px 0; }
.breadcrumb { text-align: center; font-size: .82rem; color: var(--gray); margin-bottom: 14px; }
.breadcrumb a { color: var(--gray); }
.case-hero h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.case-meta-table { margin-top: 20px; }
article { padding: 0 20px; }
article .wrap { padding: 0; }
.story-block { max-width: 760px; margin: 48px auto 0; padding: 44px 0 0; border-top: 1px solid var(--line); text-align: center; }
article > .story-block:first-child { margin-top: 0; border-top: 0; }
.story-block > ul, .story-block .table-wrap { text-align: left; }
.story-text { font-size: 1.02rem; color: var(--ink); margin-bottom: 22px; }
.story-photo { margin: 36px auto; }
.story-photo img { border-radius: var(--radius); width: 100%; height: auto; margin: 0 auto; }
.story-photo figcaption { font-size: .84rem; color: var(--gray); margin-top: 8px; text-align: center; }
.summary-box { max-width: 760px; margin: 56px auto; background: var(--ivory); border-radius: var(--radius); padding: 28px 32px; text-align: center; }
.summary-box ul { margin: 0; padding-left: 18px; text-align: left; display: inline-block; }
.quote-box { max-width: 760px; margin: 40px auto; border-left: 3px solid var(--green); padding-left: 20px; font-style: italic; color: var(--gray); text-align: center; }
.quote-box .sig { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--ink); }
article h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: 20px; }
.story-block h2::before, .summary-box h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto 14px; }
article h3 { font-size: 1.1rem; color: var(--green-dark); margin: 28px 0 10px; }
article h2, article h3, .case-hero h1, .case-hero .answer-lead { text-align: center; }

/* 다른 사례 카드 */
.related-title::before { content: ""; display: block; width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto 18px; }
.related-grid { max-width: 760px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.related-grid .case-card .body { text-align: center; }
.related-cta { max-width: 760px; margin: 0 auto; text-align: center; }

/* AEO answer intro */
.answer-lead { font-size: 1.05rem; color: var(--ink); background: var(--ivory); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0 0; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { margin-left: auto; }
  .header-inner.open .main-nav { display: flex; flex-direction: column; flex: none; width: 100%; order: 3; gap: 0; }
  .header-inner.open .main-nav a { padding: 13px 4px; border-top: 1px solid var(--line); }
  .header-inner.open .header-cta { display: flex; flex-direction: column; width: 100%; order: 4; }
  .header-inner.open .header-cta .btn { text-align: center; }
  .hero-inner, .about-grid, .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .price-table, .info-table { min-width: 480px; font-size: .86rem; }
  .price-table th, .price-table td, .info-table th, .info-table td { padding: 10px 12px; }
}
