/* (주)신성에프에이 — 로고 색: 먹색 #1D1D1F, 빨강 #D7263D. 모티프: 로고 S 그립의 빨강 짧은 막대 */
:root {
  --ink: #1D1D1F; --ink-2: #2B2C31; --ink-3: #3A3C42;
  --red: #D7263D; --red-d: #B41C30; --red-soft: #FBE9EC;
  --bg: #F4F4F2; --surface: #FFFFFF; --line: #E2E2DE;
  --text: #1D1D1F; --muted: #4A4D55; --on-dark: #E9E9EC; --on-dark-2: #B9BBC2;
  --radius: 14px; --wrap: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--surface); font-size: 17.5px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 16.5px; padding: 8px 14px; border-radius: 10px; color: var(--ink); }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .tel { margin-left: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.nav .tel:hover { background: var(--ink-3); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 800; font-size: 16.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }

/* hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,22,.94) 0%, rgba(20,20,22,.82) 40%, rgba(20,20,22,.35) 75%, rgba(20,20,22,.2) 100%); }
.hero .wrap { position: relative; z-index: 1; min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 6px; background: var(--red); }
.hero .eyebrow { color: #FF6B7D; }
.hero .eyebrow::before { background: #FF6B7D; }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.22; letter-spacing: -.025em; max-width: 700px; }
.hero p.lead { margin: 0 0 30px; font-size: 19px; color: var(--on-dark); max-width: 600px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 46px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.18); max-width: 700px; list-style: none; }
.hero .facts b { display: block; font-size: 26px; line-height: 1.2; }
.hero .facts span { font-size: 14.5px; color: var(--on-dark-2); }

/* page head (sub pages) */
.page-head { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head .wrap { position: relative; padding-top: 70px; padding-bottom: 60px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.25; }
.page-head p { margin: 0; color: var(--on-dark); font-size: 18px; max-width: 720px; }
.page-head .eyebrow { color: #FF6B7D; } .page-head .eyebrow::before { background: #FF6B7D; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--ink); color: #fff; }
.sec-head { max-width: 760px; margin: 0 0 44px; }
.sec-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 18px; }
.dark .sec-head p { color: var(--on-dark-2); }

/* solution cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.card h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 15.5px; }
.card .more::after { content: " →"; color: var(--red); }

/* one-stop steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--ink-2); border-radius: var(--radius); padding: 24px 20px; position: relative; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-size: 14px; font-weight: 800; color: #FF6B7D; margin-bottom: 10px; letter-spacing: .1em; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 5px; background: var(--red); }
.steps b { display: block; font-size: 20px; margin-bottom: 6px; }
.steps span { color: var(--on-dark-2); font-size: 15.5px; line-height: 1.6; display: block; }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .ph { border-radius: var(--radius); overflow: hidden; }
.split .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 5px; background: var(--red); }
.checks b { font-weight: 800; }

/* industries chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #ddd; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(29,29,31,.82); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }

/* product detail */
.product { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.product:nth-of-type(even) { background: var(--bg); }
.product .top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product h2 { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.25; }
.product .sub { margin: 0 0 18px; font-size: 19px; font-weight: 700; color: var(--ink-3); }
.product .desc { color: var(--muted); margin: 0 0 8px; }
.product .main-ph { border-radius: var(--radius); overflow: hidden; }
.product .main-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 28px; }
.facts3 > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.product:nth-of-type(odd) .facts3 > div { background: var(--bg); }
.facts3 h3 { margin: 0 0 10px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.facts3 h3::before { content: ""; width: 18px; height: 5px; background: var(--red); flex: none; }
.facts3 ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.facts3 li { margin: 4px 0; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sub-nav a { text-decoration: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15.5px; }
.sub-nav a:hover { background: rgba(255,255,255,.1); }

/* about */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--red); }
.timeline .y { font-size: 24px; font-weight: 800; line-height: 1.3; }
.timeline .t { font-weight: 800; color: var(--red); font-size: 15px; letter-spacing: .04em; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.org { display: grid; justify-items: center; gap: 0; }
.org .n { background: var(--ink); color: #fff; font-weight: 800; border-radius: 999px; padding: 14px 30px; font-size: 18px; text-align: center; min-width: 180px; }
.org .n.l2 { background: var(--ink-3); }
.org .n.l3 { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.org .v { width: 2px; height: 28px; background: #B5B6BA; }
.org .row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; position: relative; }
.org .row.l2row::before { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; background: #B5B6BA; z-index: -1; }
.org { position: relative; z-index: 0; }
.info-list { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px 20px; margin: 0; }
.info-list dt { font-weight: 800; }
.info-list dd { margin: 0; color: var(--muted); }
.map-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.map-btns a { text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 700; background: #fff; }
.map-btns a:hover { border-color: var(--ink); }

/* CTA */
.cta { background: var(--red); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.3; }
.cta p { margin: 0; color: #FFE3E7; font-size: 18px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-white { background: #fff; color: var(--red); }
.cta .btn-white:hover { background: #FFF0F2; }
.cta .btn-line { border-color: rgba(255,255,255,.7); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 800; font-size: 15.5px; }
.req { color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select { font: inherit; font-size: 16.5px; border: 1px solid #C9CAC6; border-radius: 10px; padding: 12px 14px; width: 100%; background: #fff; color: var(--text); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,29,31,.12); }
.field .err { color: var(--red-d); font-size: 14.5px; font-weight: 700; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opts label { font-weight: 600; font-size: 15.5px; border: 1px solid #C9CAC6; border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.opts input { width: auto; accent-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--red); flex: none; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 700; font-size: 15.5px; }
.form-status.is-ok { background: #E8F5EC; color: #1C6B37; }
.form-status.is-error { background: var(--red-soft); color: var(--red-d); }
.form-status a { font-weight: 800; }
.side-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.side-card h2 { margin: 0; font-size: 22px; }
.side-card .big { font-size: 30px; font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.side-card p, .side-card dd { margin: 0; color: var(--on-dark-2); font-size: 16px; }
.side-card dl { margin: 0; display: grid; gap: 12px; }
.side-card dt { font-weight: 800; font-size: 14.5px; color: #FF6B7D; letter-spacing: .06em; }
.side-card a { color: #fff; }

/* prose (privacy) */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 10px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }

/* footer */
.site-footer { background: #141416; color: var(--on-dark-2); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer img { height: 32px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 15px; margin: 0 0 12px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 4px; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid #2A2B30; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #8C8E96; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,10,12,.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 8px; }
.lb button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 24px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; display: none; box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 18px; }
  .nav .tel { margin: 8px 0 0; justify-content: center; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { flex-direction: row; }
  .card .ph { width: 40%; aspect-ratio: auto; flex: none; }
  .split, .product .top, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts3 { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .hero .wrap { min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(20,20,22,.72) 0%, rgba(20,20,22,.88) 60%, rgba(20,20,22,.95) 100%); }
}
@media (max-width: 600px) {
  body { font-size: 17px; overflow-wrap: anywhere; }
  .eyebrow { font-size: 12.5px; letter-spacing: .08em; }
  .eyebrow::before { width: 20px; flex: none; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 68px; }
  .nav { top: 68px; }
  .brand img { height: 32px; }
  .section, .product { padding: 64px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .card { flex-direction: column; }
  .card .ph { width: 100%; aspect-ratio: 16 / 10; }
  .form { padding: 22px; }
  .form .row2 { grid-template-columns: minmax(0, 1fr); }
  .info-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .info-list dd { margin-bottom: 12px; }
  .hero p.lead { font-size: 17.5px; }
  .hero .facts { gap: 14px 24px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .org .row { flex-direction: column; align-items: center; gap: 10px; }
  .btn { width: 100%; }
  .hero .actions, .cta .actions { width: 100%; }
}
