:root {
  --brand: #c1440e;
  --brand-dark: #8f3209;
  --cream: #fff8f0;
  --ink: #2b241f;
  --gray: #6b625a;
  --line: #ece2d6;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.1rem; color: var(--brand-dark); white-space: nowrap; }
.main-nav { display: flex; gap: 14px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; color: var(--ink); font-size: 0.92rem; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); }
.btn-call { background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* hero */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 48px 0 40px; }
.hero h1 { font-size: 1.9rem; margin: 0 0 14px; color: var(--brand-dark); }
.hero .lede { font-size: 1.05rem; color: var(--ink); max-width: 760px; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border: 2px solid var(--brand); color: var(--brand-dark); }

/* section */
section { padding: 44px 0; }
section h2 { font-size: 1.5rem; margin: 0 0 8px; }
section .section-desc { color: var(--gray); margin: 0 0 24px; }
.alt-bg { background: var(--cream); }

/* portfolio split cards */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.split-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.split-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-card-body { padding: 20px; }
.split-card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.split-card-body p { margin: 0 0 14px; color: var(--gray); font-size: 0.95rem; }
.split-card-body .link { font-weight: 700; color: var(--brand); }

/* gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* case block (used on dosirak/catering pages) */
.case-block { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.case-block:last-child { border-bottom: none; }
.case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.case-head h3 { margin: 0; font-size: 1.25rem; }
.case-type { display: inline-block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 8px; }
.case-date { color: var(--gray); font-size: 0.85rem; }
.case-desc { color: var(--gray); margin: 6px 0 16px; }

/* pricing table */
table.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.price-table th, table.price-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 0.95rem; }
table.price-table th { background: var(--cream); font-weight: 700; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--gray); }

/* footer */
.site-footer { background: #23201c; color: #cfc7bd; padding: 36px 0; margin-top: 30px; }
.footer-nav { display: flex; gap: 18px; margin-bottom: 16px; }
.footer-nav a { color: #efe8de; font-weight: 600; }
.biz-info { font-size: 0.85rem; line-height: 1.8; margin: 0 0 10px; }
.biz-info a { color: #ffcf9e; }
.copyright { font-size: 0.78rem; color: #8a8178; margin: 0; }

.last-mod { color: var(--gray); font-size: 0.85rem; margin-top: 6px; }

/* 도시락/케이터링 시각적 구분 테마 */
body.theme-dosirak { --brand: #c98a1b; --brand-dark: #8f620f; }
body.theme-catering { --brand: #8f2d0e; --brand-dark: #661f09; }

/* 케이터링 허브 페이지 하이라이트 카드 */
.highlight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.highlight-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.highlight-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.highlight-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.highlight-card-body { padding: 18px; }
.highlight-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.highlight-card-body p { margin: 0 0 12px; color: var(--gray); font-size: 0.9rem; }
.highlight-card-body .link { font-weight: 700; color: var(--brand); font-size: 0.9rem; }

/* 메뉴 그룹 (menu.php) */
.menu-group { margin-bottom: 36px; }
.menu-group h3 { font-size: 1.15rem; margin: 0 0 4px; }
.menu-group .menu-desc { color: var(--gray); margin: 0 0 14px; }

/* 상담페이지 폼 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-info-box { background: var(--cream); border-radius: var(--radius); padding: 24px; }
.contact-info-box dt { font-weight: 700; color: var(--brand-dark); margin-top: 14px; }
.contact-info-box dt:first-child { margin-top: 0; }
.contact-info-box dd { margin: 2px 0 0; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; margin-top: 4px;
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.contact-form legend { font-weight: 700; padding: 0 6px; }
.contact-form .radio-row { display: flex; gap: 18px; font-weight: 500; }
.contact-form .radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.contact-form button[type="submit"] { margin-top: 4px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .split-cards { grid-template-columns: 1fr; }
  .highlight-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.5rem; }
}
