/* (주)새온디자인 — 반응형 홈페이지 */
:root {
  --ink: #1f2522;
  --ink-2: #4a524e;
  --muted: #7a827e;
  --forest: #2c3530;      /* 카탈로그 메인 다크 그린 */
  --forest-2: #39443e;
  --leaf: #3a5535;        /* 로고 배지 그린 */
  --sand: #a8957c;        /* 로고 '새온' 컬러 */
  --accent: #f08a24;      /* 카탈로그 오렌지 포인트 */
  --accent-dk: #d9731a;
  --paper: #ffffff;
  --mist: #f1f2f1;
  --line: #e1e4e2;
  --radius: 14px;
  --wrap: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  background: var(--leaf); color: #fff; border-radius: 6px;
  font-size: 11px; line-height: 1.25; font-weight: 600; padding: 6px 7px; text-align: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 10px; color: var(--muted); letter-spacing: -.01em; }
.logo-text strong { font-size: 22px; font-weight: 500; color: #404445; letter-spacing: -.03em; }
.logo-text strong em { font-style: normal; color: var(--sand); }
.logo-en { font-size: 9.5px; letter-spacing: .32em; color: #58605c; }

.gnb { display: flex; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 600; }
.gnb a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.gnb a:hover { color: var(--ink); }
.gnb a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.gnb a:not(.nav-cta):hover::after { transform: scaleX(1); }
.gnb .nav-cta { background: var(--forest); color: #fff; padding: 9px 18px; border-radius: 999px; }
.gnb .nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }
.btn-line { border: 1.5px solid var(--line); background: #fff; }
.btn-line:hover { border-color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--forest); color: #fff;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0 0 0 44%;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--forest) 0%, rgba(44,53,48,.85) 22%, rgba(44,53,48,.25) 60%, rgba(44,53,48,.05) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.eyebrow { font-size: 13px; letter-spacing: .22em; color: var(--accent); font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.85); }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tags li {
  font-size: 13.5px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.br-m { display: none; }
.dots {
  position: absolute; width: 18px; height: 110px;
  background-image: radial-gradient(circle, #fff 3px, transparent 3.5px);
  background-size: 18px 22px; opacity: .85;
}
.dots-hero { right: 28px; top: 36px; z-index: 1; }

/* ---------- Section common ---------- */
.section { padding: 110px 0; }
.sec-label { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin-bottom: 12px; }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; color: var(--forest); }
.sec-title b { font-weight: 800; }
.sec-label.light { color: var(--accent); }
.sec-title.light { color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.about-body { display: grid; gap: 16px; color: var(--ink-2); font-size: 16.5px; }
.about-body .lead { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.strengths { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strength {
  background: var(--mist); border-radius: var(--radius); padding: 30px 28px 32px;
  border-top: 4px solid var(--forest);
}
.strength .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.strength h3 { font-size: 19px; margin-bottom: 8px; }
.strength p { color: var(--ink-2); font-size: 15px; }
.note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Business ---------- */
.business { background: var(--forest); color: #fff; position: relative; }
.biz-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.biz-card {
  background: var(--forest-2); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.biz-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.biz-img--pattern {
  display: grid; place-items: center; text-align: center;
  background-color: var(--leaf);
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 2px, transparent 2.5px);
  background-size: 16px 16px;
}
.biz-img--pattern span { font-weight: 800; letter-spacing: .12em; font-size: 20px; line-height: 1.35; }
.biz-text { padding: 22px 22px 26px; }
.biz-en { font-size: 11.5px; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.biz-text h3 { font-size: 20px; margin: 6px 0 10px; }
.biz-text p { font-size: 14.5px; color: rgba(255,255,255,.75); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { position: relative; padding: 0 22px 0 0; }
.step-no {
  position: relative; display: flex; align-items: center; height: 46px; padding-left: 20px;
  background: var(--forest); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 12px 50%);
  margin-bottom: 20px;
}
.steps li:first-child .step-no { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.steps li:nth-child(even) .step-no { background: var(--accent); }
.steps h3 { font-size: 19px; margin-bottom: 8px; padding-left: 4px; }
.steps p { font-size: 15px; color: var(--ink-2); padding-left: 4px; }

/* ---------- Works ---------- */
.works { background: var(--mist); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .2s;
}
.filters button:hover { border-color: var(--forest); }
.filters button.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.works-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.work-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  text-align: left; background: #fff; border: 0; border-radius: var(--radius); overflow: hidden; padding: 0;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31,37,34,.12); }
.work-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.work-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--forest-2) center / cover no-repeat; overflow: hidden; }
.work-thumb .count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.work-thumb.no-photo {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
  background-color: var(--forest);
  background-image: radial-gradient(circle, rgba(255,255,255,.13) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.work-thumb.no-photo[data-cat="school"] { background-color: #3f4f47; }
.work-thumb.no-photo[data-cat="museum"] { background-color: #4b4136; }
.work-thumb.no-photo[data-cat="welfare"] { background-color: var(--leaf); }
.no-photo .np-en { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.no-photo .np-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.no-photo .np-sub { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 4px; }
.work-info { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-weight: 600; }
.chip.cat { background: #fdeedd; color: #a3530e; }
.chip.perf { background: #e9eee8; color: var(--leaf); }
.work-info h3 { font-size: 18.5px; }
.work-info p { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--forest); }
.work-more::after { content: " →"; color: var(--accent); }

/* ---------- Cert ---------- */
.cert { background: var(--forest); color: #fff; }
.cert-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
.cert-desc { margin-top: 18px; color: rgba(255,255,255,.8); font-size: 16px; }
.cert-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cert-docs figure { margin: 0; }
.cert-btn { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.3); transition: transform .25s; }
.cert-btn:hover { transform: translateY(-4px); }
.cert-docs figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 20px 60px; }
.contact-desc { margin-top: 16px; color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--forest); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.contact-list span { color: var(--muted); font-size: 14.5px; font-weight: 600; padding-top: 2px; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: var(--accent-dk); }
.contact-list address { font-style: normal; font-weight: 600; }
.contact-actions { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #1c221f; color: rgba(255,255,255,.65); padding: 40px 0 90px; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.f-logo { display: block; color: #fff; font-size: 17px; margin-bottom: 8px; }
.f-logo span { font-weight: 400; font-size: 11px; letter-spacing: .25em; color: var(--sand); margin-left: 6px; }

.quick-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(240,138,36,.45);
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,20,17,.7); }
.modal-panel {
  position: relative; width: min(920px, 100%); max-height: calc(100svh - 48px);
  background: #fff; border-radius: 18px; overflow: hidden; display: flex;
}
.modal-scroll { overflow-y: auto; padding: 40px 44px 44px; width: 100%; overscroll-behavior: contain; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--mist); font-size: 26px; line-height: 1;
}
.m-head .work-meta { margin-bottom: 10px; }
.m-head h2 { font-size: clamp(22px, 3vw, 30px); color: var(--forest); padding-right: 40px; }
.m-summary { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--ink); }
.m-gallery { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-gallery button { position: relative; border: 0; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.m-gallery button:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }
.m-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.m-gallery button:hover img { transform: scale(1.04); }
.m-gallery .lab { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.m-nophoto { margin-top: 22px; padding: 18px 20px; background: var(--mist); border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.m-body { margin-top: 28px; display: grid; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.m-body h4 { margin: 14px 0 0; font-size: 16px; color: var(--forest); }
.m-links { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,12,11,.94); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 82svh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 12px; font-size: 14px; }
.lb-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font-size: 38px; width: 48px; height: 48px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
  }
  .gnb.open { transform: none; opacity: 1; visibility: visible; }
  .gnb a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnb a::after { display: none; }
  .gnb .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 14px; }
  .logo-text strong { font-size: 19px; }
  .logo-text small { display: none; }
  .about-grid, .cert-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-actions { grid-column: auto; }
  .strengths { grid-template-columns: 1fr; margin-top: 44px; }
  .hero-bg { inset: 0; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(44,53,48,.55) 0%, rgba(44,53,48,.85) 60%, var(--forest) 100%); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { min-height: calc(100svh - var(--header-h)); align-items: flex-end; }
  .hero-inner { padding-top: 60px; padding-bottom: 48px; }
  .hero-actions .btn { flex: 1; }
  .br-m { display: inline; }
  .dots-hero { right: 14px; top: 20px; transform: scale(.8); }
  .biz-grid, .work-grid { grid-template-columns: 1fr; }
  .biz-card { flex-direction: row; }
  .biz-img { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
  .biz-img--pattern span { font-size: 13px; }
  .biz-text { padding: 16px; }
  .biz-text h3 { font-size: 17px; margin: 4px 0 6px; }
  .biz-text p { font-size: 13.5px; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .steps li { padding: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; width: calc(100% + 32px); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex-shrink: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; font-size: 16px; }
  .contact-actions .btn { flex: 1; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 18px 18px 0 0; max-height: 92svh; }
  .modal-scroll { padding: 28px 18px 32px; }
  .m-gallery { grid-template-columns: repeat(2, 1fr); }
  .m-gallery button:first-child { grid-column: span 2; }
  .lb-nav { width: 42px; height: 42px; font-size: 28px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
