/* 신성스티커 — 로고 색을 바탕으로 한 깔끔한 스타일 */
:root {
  --blue: #1650a6;
  --blue-dark: #0e3a7d;
  --red: #8e1b1e;
  --yellow: #f2c230;
  --teal: #2a6e8a;
  --ink: #1b2330;
  --sub: #5b6474;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 80, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--sub); font-size: .92em; }
.eyebrow {
  color: var(--blue); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; margin-bottom: .6em;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.2em; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: .15s;
  white-space: nowrap;
}
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eef3fb; }

/* 머리글 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 900; color: var(--blue); }
.brand-text small { font-size: .72rem; color: var(--red); font-weight: 700; letter-spacing: .03em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* 첫 화면 */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(242,194,48,.12), transparent 40%),
    linear-gradient(180deg, #f3f6fc 0%, #fff 100%);
  padding: 48px 0 28px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; }
.accent { color: var(--blue); position: relative; }
.accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em;
  background: var(--yellow); opacity: .45; z-index: -1;
}
.lead { font-size: 1.1rem; color: var(--sub); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35em 1em; font-size: .92rem; color: var(--sub);
}
.hero-facts b { color: var(--ink); }
.hero-logo img { max-width: 320px; margin-left: auto; }

/* 공통 구역 */
.section { padding: 52px 0; }
.hero + .section { padding-top: 24px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; }
.section-head p:last-child { color: var(--sub); }

/* 제작 품목: 탭 + 사진 카드 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: none; font: inherit; font-weight: 500; font-size: .95rem; cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: .15s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.cat-desc { color: var(--sub); margin-bottom: 20px; min-height: 1.65em; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .15s;
}
.product[hidden] { display: none; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media {
  display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0;
  background: var(--bg-alt); cursor: pointer; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-media:hover img { transform: scale(1.04); }
.product-media:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font-size: .85rem; font-weight: 500;
}
.ph svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.product h3 { font-size: 1.08rem; margin-bottom: .35em; }
.product p { color: var(--sub); font-size: .92rem; margin: 0 0 14px; }
.product-ask {
  margin-top: auto; align-self: flex-start; font-weight: 700; font-size: .9rem;
  text-decoration: none; color: var(--red);
}
.product-ask::after { content: " →"; }
.c-blue { background: #e7eefa; color: var(--blue); }
.c-red { background: #f6e6e6; color: var(--red); }
.c-yellow { background: #fdf4d6; color: #a07800; }
.c-teal { background: #e2eff4; color: var(--teal); }

/* 주문 절차 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; }
.steps p { color: var(--sub); margin: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 900; margin-bottom: 14px;
}

/* 소개 */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; }
.about-copy > p { color: var(--sub); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.about-panel {
  background: var(--blue); color: #fff; border-radius: 20px; padding: 32px;
  display: grid; gap: 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.about-panel::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: var(--yellow); opacity: .18; transform: rotate(20deg); border-radius: 18px;
}
.stat { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 18px; }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat b { font-size: 1.45rem; font-weight: 900; }
.stat span { opacity: .8; }

/* 오시는 길 */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.info { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 8px 28px; }
.info > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info > div:last-child { border-bottom: 0; }
.info dt { font-weight: 700; color: var(--blue); }
.info dd { margin: 0; }
.info a { font-weight: 700; text-decoration: none; }
.map-card {
  background: linear-gradient(135deg, #e7eefa, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.map-pin { width: 52px; height: 52px; fill: var(--red); stroke: #fff; stroke-width: 1.2; margin-bottom: 12px; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* 마지막 안내 */
.cta { background: var(--blue); color: #fff; padding: 44px 0; text-align: center; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; }
.cta p { opacity: .85; margin-bottom: 24px; }

/* 바닥글 */
.site-footer { background: #121a26; color: #c9d0db; padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; gap: 18px; align-items: center; }
.footer-inner img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.site-footer p { margin: 0 0 4px; }
.site-footer strong { color: #fff; }
.site-footer .muted { color: #7f8899; }

/* 휴대폰 하단 버튼 */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .hero-inner, .about, .location { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .header-call { display: none; }
  .hero { padding: 28px 0 20px; }
  .hero-actions .btn { flex: 1; }
  .section { padding: 36px 0; }
  .hero + .section { padding-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .products { gap: 12px; }
  .product-body { padding: 14px 14px 16px; }
  .product p { font-size: .88rem; }
  .info { padding: 4px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .mobile-bar {
    display: grid; grid-template-columns: 2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; height: 60px;
    font-weight: 700; text-decoration: none; font-size: 1.05rem;
  }
  .mb-call { background: var(--blue); color: #fff; }
  .mb-map { background: #fff; color: var(--blue); }
}
