/* (주)코스 — design system */
:root {
  --ink: #1a2220;
  --mute: #5c6b66;
  --paper: #f3f1ec;
  --white: #ffffff;
  --line: rgba(26, 34, 32, 0.1);
  --green: #1f6b4a;
  --green-mid: #2d8a62;
  --sand: #c4a574;
  --sand-soft: #e8dcc8;
  --slate: #2c3532;
  --hero-shade: linear-gradient(180deg, rgba(18,28,24,.45) 0%, rgba(18,28,24,.25) 40%, rgba(18,28,24,.72) 100%);
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --max: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul { list-style: none; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

/* NAV */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background .2s ease, padding .2s ease, border-color .2s ease;
}
.site-header.is-solid {
  position: sticky; top: 0;
  background: rgba(243,241,236,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.site-header.is-solid .logo,
.site-header.is-solid .nav-links > a,
.site-header.is-solid .nav-links .nav-drop > a,
.site-header.is-solid .nav-toggle span { color: var(--ink); text-shadow: none; }
.site-header.is-solid .nav-toggle span { background: var(--ink); box-shadow: none; }
.site-header.is-solid .nav-cta {
  background: var(--ink); color: #fff;
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -.03em;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.logo em {
  font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; margin-left: 10px; opacity: .85;
}
.nav-links {
  display: flex; gap: 26px; align-items: center;
  font-size: 14px; font-weight: 500;
}
.nav-links > a,
.nav-links .nav-drop > a { color: rgba(255,255,255,.88); }
.nav-links > a:hover,
.nav-links .nav-drop > a:hover { color: #fff; }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(26,34,32,.1);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(26,34,32,.14);
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-drop-menu a:hover {
  background: var(--paper);
  color: var(--green) !important;
}
.nav-drawer a.nav-sub {
  padding: 8px 12px 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
}
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700;
}
.nav-toggle {
  display: none; width: 28px; height: 20px; flex-direction: column;
  justify-content: space-between; background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.nav-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26,34,32,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer-panel {
  width: min(300px, 84vw); height: 100%;
  background: var(--white); padding: 24px;
  transform: translateX(-105%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.nav-drawer.open .nav-drawer-panel { transform: none; }
.nav-drawer a {
  padding: 14px 12px; border-radius: 8px; font-weight: 700; font-size: 16px;
}
.nav-drawer a:hover { background: var(--paper); }
.nav-drawer .close-x {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--paper); cursor: pointer; margin-bottom: 16px; font-size: 18px;
}

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: #2c3532 center/cover no-repeat;
  overflow: hidden;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--hero-shade);
  pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-video.is-playing {
  opacity: 1;
}
.hero-video-el,
.hero-video video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  object-fit: cover;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 0 0 clamp(72px, 12vh, 110px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(56px, 9vw, 110px);
  z-index: 3;
  pointer-events: none;
  background: url("../peanut/bg_main_slide_paper.png") center bottom / 100% 100% no-repeat;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(48px, 9vw, 96px);
  letter-spacing: -.04em; line-height: .95;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500; max-width: 22ch; line-height: 1.4;
  margin-bottom: 10px;
}
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.78);
  max-width: 36ch; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); }
.btn-ghost {
  background: transparent; color: #fff;
  outline: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line {
  background: transparent; color: var(--ink);
  outline: 1.5px solid rgba(26,34,32,.22);
}
.page-hero .btn-ghost { color: var(--ink); outline-color: rgba(26,34,32,.22); }

/* SECTIONS */
section { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { max-width: 560px; margin-bottom: 36px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.sec-head h2, .page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.sec-head p { color: var(--mute); font-size: 15px; }

.band-dark {
  background: var(--slate); color: #fff;
}
.band-dark .eyebrow { color: var(--sand); }
.band-dark .sec-head p { color: rgba(255,255,255,.7); }
.band-sand { background: var(--sand-soft); }

/* CONCEPT GRID */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.concept-tile {
  position: relative; display: block; overflow: hidden;
  min-height: 220px; background: #dfe6e2;
}
.concept-tile img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; min-height: 220px;
  transition: transform .45s ease;
}
.concept-tile:hover img { transform: scale(1.04); }
.concept-tile .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(transparent, rgba(18,28,24,.85));
  color: #fff;
}
.concept-tile .label strong {
  display: block; font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
}
.concept-tile .label span {
  font-size: 12px; opacity: .8;
}

/* PRODUCT CATS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-link {
  display: grid; gap: 10px;
  padding: 22px 20px;
  background: var(--white);
  border-top: 3px solid var(--green);
  transition: transform .2s ease;
}
.product-link:hover { transform: translateY(-2px); }
.product-link h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
}
.product-link p { font-size: 13px; color: var(--mute); }

/* PROJECT STRIP */
.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.project-strip a {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: #d0d8d4;
}
.project-strip img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-strip span {
  position: absolute; left: 12px; bottom: 12px;
  color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--white); padding: 22px 18px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px; color: var(--green);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--mute); }

/* PAGE HERO (inner) */
.page-hero {
  padding: 120px 0 48px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px;
}
.page-hero p { color: var(--mute); max-width: 42ch; font-size: 16px; }

/* DETAIL LAYOUT */
.detail-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
}
.detail-visual {
  background: #dfe6e2; overflow: hidden; min-height: 360px;
}
.detail-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.spec-list {
  display: grid; gap: 0; margin: 20px 0;
}
.spec-list div {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 12px; padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.spec-list small { color: var(--green); font-weight: 700; font-size: 12px; }

/* FILTER / GALLERY */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.filter-row button {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: var(--white); font-size: 13px; font-weight: 600; color: var(--mute);
}
.filter-row button.on { background: var(--ink); color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery article {
  background: var(--white); overflow: hidden;
}
.gallery article img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery article .meta { padding: 14px 16px 18px; }
.gallery article h3 { font-size: 16px; margin-bottom: 4px; }
.gallery article p { font-size: 13px; color: var(--mute); }

/* QUOTE FORM */
.form-grid { display: grid; gap: 16px; max-width: 640px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  padding: 12px 14px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius);
}
.check-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.check-grid label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px;
  padding: 10px 12px; background: var(--white);
}

/* FOOTER */
.site-footer {
  background: var(--slate); color: rgba(255,255,255,.75);
  padding: 48px 0 36px; font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  margin-bottom: 32px;
}
.site-footer .logo { color: #fff; text-shadow: none; margin-bottom: 10px; }
.site-footer h4 {
  color: #fff; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px; font-size: 12px; opacity: .7;
}

/* CTA BAND */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 36px; background: var(--ink); color: #fff;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em;
}
.cta-band p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .concept-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .steps, .project-strip, .gallery, .detail-split, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .product-grid, .steps, .project-strip, .gallery, .detail-split, .footer-grid, .check-grid {
    grid-template-columns: 1fr;
  }
  .concept-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .concept-tile { min-height: 160px; }
}
