/* =========================================================
   PRINTRABBIT DESIGN · design.printrabbit.co.kr
   AB9-1 초기설계 및 골격구축 · v1.0 (2026-09-22)
   ---------------------------------------------------------
   색·폰트는 아래 :root 변수 한 곳에서만 정의한다.
   (착수지시서 §8-4: 추후 프린트래빗 통일 컬러로 일괄 교체 대비)
   ========================================================= */

:root {
  /* --- 색 토큰 : 교체 지점 --- */
  --accent-color:      #1a7b8a;   /* 그린틸 (참고 톤) */
  --accent-color-dark: #14616d;
  --accent-color-soft: rgba(26, 123, 138, 0.12);
  --overlay-color:     rgba(12, 58, 66, 0.55);   /* 히어로 이미지 위 오버레이 */

  --ink:        #111315;
  --ink-sub:    #555b60;
  --ink-mute:   #8a9094;
  --line:       #e3e6e8;
  --bg:         #ffffff;
  --bg-soft:    #f6f7f8;
  --bg-dark:    #16191b;
  --ph-bg:      #d9dcde;   /* 플레이스홀더 회색 박스 */
  --ph-ink:     #7b8286;
  --required:   #d1453b;

  /* --- 타이포 --- */
  --font-base: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* --- 레이아웃 --- */
  --wrap:        1200px;
  --gutter:      20px;
  --gnb-h:       64px;
  --quickbar-h:  56px;
  --radius:      4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--gnb-h); }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  padding-bottom: var(--quickbar-h);
}
h1, h2, h3, p, ul, figure, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
em { font-style: normal; color: var(--required); }

/* ---------- 공통 ---------- */
.section { padding: 72px 0; }
.section__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section__head { margin-bottom: 36px; }
.section__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent-color); margin-bottom: 8px;
}
.section__title { font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.section__desc { margin-top: 12px; color: var(--ink-sub); font-size: 15px; }

/* 플레이스홀더 박스 공통 */
.hero__media, .ph-card__box, .about__media, .board__placeholder, .mark-ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; letter-spacing: .08em;
}
.ph-inline { font-weight: 400; color: var(--ink-mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent-color); color: #fff; }
.btn--primary:hover { background: var(--accent-color-dark); }

/* ---------- GNB ---------- */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--gnb-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.gnb__inner {
  height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnb__logo { font-size: 16px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.gnb__nav ul { display: flex; align-items: center; gap: 18px; }
.gnb__nav a { font-size: 14px; color: var(--ink-sub); white-space: nowrap; }
.gnb__nav a:hover { color: var(--accent-color); }
.gnb__cta {
  background: var(--accent-color); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius); font-weight: 700;
}
.gnb__cta:hover { background: var(--accent-color-dark); }
.gnb__toggle {
  display: none; width: 40px; height: 40px; border: 0; background: none;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.gnb__toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------- 히어로 ---------- */
.hero { position: relative; margin-top: var(--gnb-h); overflow: hidden; }
.hero__slides { position: relative; height: 70vh; min-height: 420px; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media { position: absolute; inset: 0; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: var(--overlay-color);
}
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: 96px; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  color: #fff;
}
.hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; opacity: .9; margin-bottom: 12px; }
.hero__title { font-size: 32px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.hero__lead { margin-top: 14px; font-size: 15px; font-weight: 300; opacity: .92; }
.hero__cta {
  position: absolute; z-index: 3; right: 24px; bottom: 96px;
  background: #fff; color: var(--accent-color);
  padding: 14px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
}
.hero__cta:hover { background: var(--accent-color); color: #fff; }
.hero__pager {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 32px;
  display: flex; justify-content: center; gap: 14px;
}
.hero__dot {
  border: 0; background: none; color: rgba(255,255,255,.6);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; padding: 4px;
}
.hero__dot.is-active { color: #fff; border-bottom: 2px solid #fff; }

/* ---------- 서비스 4열 ---------- */
.service { background: var(--bg-soft); }
.service__grid { display: grid; gap: 28px; }
.service__cat {
  font-size: 18px; font-weight: 700; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color); margin-bottom: 16px;
}
.service__cat span {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: .14em; color: var(--accent-color); margin-top: 4px;
}
.service__col li { font-size: 15px; color: var(--ink-sub); padding: 5px 0; }

/* ---------- 포트폴리오 ---------- */
.portfolio__grid { display: grid; gap: 20px; }
.ph-card__box { aspect-ratio: 4 / 3; }
.ph-card figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-sub); }

/* ---------- 회사소개 ---------- */
.about__inner { display: grid; gap: 28px; align-items: center; }
.about__text p { margin-top: 14px; color: var(--ink-sub); font-size: 15px; }
.about__media { aspect-ratio: 16 / 10; }

/* ---------- 견적문의 폼 ---------- */
.qform { margin-top: 8px; }
.qform__block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.qform__block:first-of-type { border-top: 2px solid var(--ink); }
.qform__legend { font-size: 16px; font-weight: 700; padding: 0 0 16px; }
.qform__hint { font-size: 12px; font-weight: 400; color: var(--ink-mute); margin-left: 8px; }
.qform__grid3, .qform__grid2 { display: grid; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-sub); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; background: #fff; width: 100%;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-color); margin: 0; flex: none; }
.checks .check {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 14px; font-size: 14px; background: #fff;
}
.checks .check:has(input:checked) {
  border-color: var(--accent-color); background: var(--accent-color-soft);
}
.check--consent { font-size: 14px; align-items: flex-start; }
.check--consent a { color: var(--accent-color); text-decoration: underline; }

/* 파일첨부 드래그앤드롭 */
.dropzone {
  position: relative;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft); text-align: center;
  padding: 32px 20px; transition: border-color .15s ease, background-color .15s ease;
}
.dropzone.is-dragover { border-color: var(--accent-color); background: var(--accent-color-soft); }
.dropzone__title { font-size: 15px; font-weight: 500; }
.dropzone__sub { margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone__list { margin-top: 12px; }
.dropzone__list li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-sub);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  margin-top: 6px; background: #fff;
}
.dropzone__list li.is-over { border-color: var(--required); color: var(--required); }

.qform__foot {
  border-top: 1px solid var(--line);
  padding-top: 24px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.qform__note { margin-top: 14px; font-size: 13px; color: var(--ink-sub); min-height: 20px; }
.qform__note.is-error { color: var(--required); }

/* ---------- 게시판 ---------- */
.board { background: var(--bg-soft); }
.board__placeholder { height: 200px; }

/* ---------- 푸터 ---------- */
.footer { background: var(--bg-dark); color: #b9c0c4; padding: 48px 0 40px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer__logo { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.footer__marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mark-ph { width: 92px; height: 40px; border-radius: 2px; font-size: 11px; }
.footer__links { display: flex; gap: 18px; margin-top: 24px; font-size: 13px; }
.footer__links a:hover { color: #fff; }
.footer__corp {
  font-style: normal; margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-size: 13px; color: #8d9599;
}
.footer__copy { margin-top: 20px; font-size: 12px; color: #6d7478; }

/* ---------- 하단 고정 바 / 플로팅 ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  height: var(--quickbar-h);
  background: var(--bg-dark); border-top: 1px solid #2a2f32;
}
.quickbar__inner { height: 100%; display: flex; }
.quickbar__item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #d5dadd; font-size: 14px; font-weight: 500;
  border-left: 1px solid #2a2f32;
}
.quickbar__item:first-child { border-left: 0; }
.quickbar__item:hover { background: var(--accent-color); color: #fff; }

.floating {
  position: fixed; right: 14px; bottom: calc(var(--quickbar-h) + 14px); z-index: 95;
  display: flex; flex-direction: column; gap: 8px;
}
.floating__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.floating__btn:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.floating__btn--top { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.floating__btn--top.is-visible { opacity: 1; pointer-events: auto; }

/* =========================================================
   브레이크포인트 1 / 3 : 모바일 (기준 375px)
   ========================================================= */
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .section__title { font-size: 22px; }

  .hero__slides { height: 74vh; min-height: 380px; }
  .hero__title { font-size: 24px; }
  .hero__lead { font-size: 14px; }
  .hero__copy { bottom: 120px; }
  /* 우측 플로팅 버튼(44px + 여백)과 겹치지 않도록 오른쪽을 비워둔다 */
  .hero__cta { left: var(--gutter); right: 72px; bottom: 64px; }
  .hero__pager { bottom: 20px; gap: 10px; }

  .service__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }

  .qform__grid3, .qform__grid2 { grid-template-columns: 1fr; }
  .checks .check { padding: 8px 12px; font-size: 13px; }
  .qform__foot .btn { width: 100%; }

  .footer__corp { flex-direction: column; gap: 4px; }
}

/* =========================================================
   브레이크포인트 2 / 3 : 태블릿 (기준 768px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1439px) {
  .section__title { font-size: 26px; }
  .hero__title { font-size: 34px; }

  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1.1fr 1fr; }

  .qform__grid3 { grid-template-columns: repeat(2, 1fr); }
  .qform__grid2 { grid-template-columns: repeat(2, 1fr); }

  .qform__foot { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------------------------------------------------------
   GNB 접힘 구간 (1100px 미만)
   메뉴 항목이 9개라 태블릿 폭에서 한 줄에 들어가지 않는다.
   → 모바일·태블릿 모두 햄버거 메뉴로 접는다.
   --------------------------------------------------------- */
@media (max-width: 1099px) {
  .gnb__toggle { display: flex; }
  .gnb__nav {
    position: fixed; top: var(--gnb-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--gnb-h)); overflow-y: auto;
    display: none;
  }
  .gnb__nav.is-open { display: block; }
  .gnb__nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .gnb__nav li { border-top: 1px solid var(--line); }
  .gnb__nav li:first-child { border-top: 0; }
  .gnb__nav a { display: block; padding: 13px var(--gutter); font-size: 15px; }
  .gnb__cta { margin: 10px var(--gutter); text-align: center; }
}

/* =========================================================
   브레이크포인트 3 / 3 : 데스크톱 (기준 1440px)
   ========================================================= */
@media (min-width: 1440px) {
  :root { --gnb-h: 72px; --gutter: 32px; }

  .section { padding: 96px 0; }
  .section__title { font-size: 32px; }

  .hero__slides { height: 82vh; min-height: 620px; }
  .hero__title { font-size: 44px; }
  .hero__lead { font-size: 17px; }
  .hero__cta { right: 48px; bottom: 120px; padding: 18px 40px; font-size: 16px; }

  .service__grid { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .about__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; }

  .qform__grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .qform__grid2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .qform__foot { flex-direction: row; justify-content: space-between; align-items: center; }

  .floating { right: 28px; }
}

/* 접근성 : 모션 최소화 선호 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
}
