/* =========================================================
   ADDTO Inc. — 회사 홈페이지 공통 스타일
   모든 페이지가 이 파일 하나를 사용합니다.
   ========================================================= */

/* ---------- 색상 · 글꼴 ---------- */
:root {
  --ink: #211D19;          /* 제목 */
  --text: #4A433C;         /* 본문 */
  --muted: #6B6259;        /* 보조 본문 */
  --subtle: #8A7F6E;       /* 라벨 · 캡션 */
  --gold: #A9814A;         /* 포인트 */
  --line: #E4DCCB;         /* 구분선 */
  --paper: #FAF7F1;        /* 본문 배경 */
  --paper-2: #F3EDE0;      /* 칩 · 아바타 배경 */
  --paper-gold: #F6EFDD;   /* 강조 박스 배경 */
  --nav-bg: #1E1B18;
  --nav-text: #9C9388;
  --nav-text-on: #EDE7DC;
  --nav-foot: #756C60;
  --brand-white: #F4EFE7;

  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-family: var(--sans); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- 레이아웃 ---------- */
.shell { width: 100%; min-height: 100vh; display: flex; }

.page { flex-grow: 1; min-width: 0; background: var(--paper); padding: 120px 80px 130px; }
.page--home { padding: 130px 80px 110px; display: flex; flex-direction: column; }

.block { max-width: 660px; margin-bottom: 100px; }
.block--wide { max-width: 900px; }
.block--last { margin-bottom: 0; }

/* ---------- 사이드 내비게이션 ---------- */
.side-nav {
  width: 260px; flex-shrink: 0; background: var(--nav-bg);
  padding: 44px 32px; display: flex; flex-direction: column; gap: 56px;
  position: sticky; top: 0; height: 100vh;
}
.brand-logo-link { display: inline-flex; width: 118px; flex-direction: column; align-items: center; }
.brand-logo { display: block; width: 112px; height: auto; }
.brand-value { margin-top: 1px; color: var(--brand-white); font-family: Arial, sans-serif; font-size: 5.5px; font-weight: 700; line-height: 1; letter-spacing: 1.6px; white-space: nowrap; }
.brand-tagline { margin-top: 5px; color: var(--brand-white); font-size: 10.2px; font-weight: 400; line-height: 1.3; letter-spacing: -0.35px; white-space: nowrap; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; font-size: 14px; font-weight: 500; }
.side-link { display: flex; align-items: center; color: var(--nav-text); padding-left: 14px; border-left: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.side-link:hover { color: var(--nav-text-on); }
.side-link.active { color: var(--nav-text-on); border-left-color: var(--gold); }

.nav-foot { margin-top: auto; font-size: 11px; line-height: 1.7; color: var(--nav-foot); }

.nav-toggle-checkbox { display: none; }
.nav-toggle-btn { display: none; }

/* ---------- 공통 타이포그래피 ---------- */
.eyebrow { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--subtle); text-transform: uppercase; margin: 0 0 18px; }
.eyebrow--tight { margin-bottom: 10px; }
.page-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.5; color: var(--ink); }
.page-sub { margin: 18px 0 0; font-family: var(--serif); font-size: 18px; color: var(--gold); }
.rule { width: 48px; height: 2px; background: var(--gold); margin: 26px 0; }

.section-num { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--gold); margin: 0 0 10px; }
.section-label { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--gold); text-transform: uppercase; margin: 0 0 14px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0 0 20px; }
.en-line { font-size: 14px; font-style: italic; color: var(--subtle); margin: -10px 0 20px; }

.body-p { font-size: 16px; line-height: 1.9; color: var(--text); margin: 0 0 22px; max-width: 660px; }
.body-p:last-child { margin-bottom: 0; }

.callout { border-left: 2px solid var(--gold); padding-left: 26px; font-family: var(--serif); font-size: 18px; line-height: 1.9; color: var(--ink); margin: 44px 0; max-width: 620px; }
.callout:last-child { margin-bottom: 0; }

.divider { height: 1px; background: var(--line); margin: 100px 0; max-width: 660px; }

/* 칩 */
.chip { display: inline-block; font-size: 13px; font-weight: 500; color: var(--text); border: 1px solid var(--line); background: var(--paper-2); padding: 7px 16px; border-radius: 999px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

/* ---------- 메인(index) ---------- */
.home-intro { max-width: 600px; }
.home-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.55; color: var(--ink); }
.home-lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--muted); }

.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 100px; }
.mini-link { display: block; padding-top: 20px; border-top: 1px solid var(--line); transition: transform 0.2s ease; }
.mini-link:hover { transform: translateY(-3px); }
.mini-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--subtle); }
.mini-title { font-family: var(--serif); font-size: 17px; margin-top: 10px; transition: color 0.2s ease; }
.mini-link:hover .mini-title { color: var(--gold); }
.mini-desc { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 8px; }

/* ---------- 메인 첫 화면 등장 효과 ----------
   1) 제목이 단어 단위로 아래에서 부드럽게 올라오고
   2) 핵심어 두 곳에 금색 밑줄이 차례로 그어지며
   3) 금색 선 → 슬로건 → 메뉴 카드 순으로 나타납니다. (약 3초) */
.home-intro { max-width: 720px; }
.home-title { font-size: 42px; line-height: 1.5; letter-spacing: -0.4px; }

.hero-line { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; animation: hero-word 1s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.3s + var(--d, 0) * 0.07s) both; }

.hero-mark {
  font-style: normal;
  background-image: linear-gradient(rgba(169, 129, 74, 0.32), rgba(169, 129, 74, 0.32));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 0% 0.36em;
  animation: hero-mark 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.35s forwards;
}
.hero-mark--2 { animation-delay: 1.7s; }

.page--home .eyebrow { animation: hero-eyebrow 1s ease-out 0s both; }
.page--home .rule { animation: hero-rule 0.7s cubic-bezier(0.65, 0, 0.35, 1) 2.1s both; }
.home-lead { animation: hero-fade 0.8s ease-out 2.3s both; }
.mini-link { animation: hero-card 0.7s ease-out 2.5s both; }
.mini-link:nth-child(2) { animation-delay: 2.6s; }
.mini-link:nth-child(3) { animation-delay: 2.7s; }
.mini-link:nth-child(4) { animation-delay: 2.8s; }
.mini-link:nth-child(5) { animation-delay: 2.9s; }

@keyframes hero-word { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hero-mark { to { background-size: 100% 0.36em; } }
@keyframes hero-eyebrow { from { opacity: 0; letter-spacing: 5px; } to { opacity: 1; letter-spacing: 3px; } }
@keyframes hero-rule { from { width: 0; } to { width: 48px; } }
@keyframes hero-fade { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-card { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* 움직임 줄이기를 설정한 사용자에게는 효과 없이 완성된 화면을 보여줍니다. */
@media (prefers-reduced-motion: reduce) {
  .w > span, .page--home .eyebrow, .page--home .rule, .home-lead, .mini-link { animation: none; }
  .hero-mark { animation: none; background-size: 100% 0.36em; }
}

/* ---------- About: 연혁 ---------- */
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); max-width: 760px; }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.year { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--gold); }
.milestone-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.milestone-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.milestone-list li { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Business: 흐름 ---------- */
.flow-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 36px 0 40px; }
.flow-row .chip { font-weight: 700; color: var(--ink); padding: 8px 18px; }
.flow-arrow { color: var(--gold); font-size: 14px; }

/* ---------- Philosophy ---------- */
.name-card { border: 1px solid var(--line); background: var(--paper); padding: 40px 44px; max-width: 660px; }
.name-card__head { margin: 0 0 20px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.name-card__line { margin: 0 0 8px; font-size: 15px; line-height: 1.8; color: var(--text); }
.name-card__rule { height: 1px; background: var(--line); margin: 22px 0; }
.name-card__foot { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--gold); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.value-card { border: 1px solid var(--line); padding: 32px; background: var(--paper); }
.value-num { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--gold); }
.value-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--subtle); margin: 10px 0 4px; }
.value-title { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 14px; }
.value-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.value-body { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.value-body:last-child { margin-bottom: 0; }

.result-flow { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 32px; }
.method-box { border: 1px solid var(--line); background: var(--paper); padding: 32px; }
.method-box .value-tag { margin-bottom: 18px; }
.method-lead { margin: 0 0 24px; font-family: var(--serif); font-size: 16px; color: var(--ink); }
.method-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.method-step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.method-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.method-icon--need { background: #F5E8E7; color: #B5726A; }
.method-icon--diff { background: #EDE8F3; color: #8A76AD; }
.method-icon--depth { background: #E7F0EA; color: #5C8A6C; }
.method-icon--done { background: var(--paper-gold); color: #B08A3E; }
.method-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.method-desc { font-size: 11.5px; line-height: 1.5; color: var(--subtle); }
.flow-arrow-icon { align-self: center; color: var(--gold); font-size: 22px; }

.result-box { width: 100%; max-width: 420px; align-self: center; border: 1px solid var(--gold); background: var(--paper-gold); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.result-box .value-tag { margin-bottom: 0; }
.result-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.result-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); }
.result-desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Our Impact ---------- */
.growth-row { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; margin-top: 36px; }
.growth-num { font-family: var(--serif); font-weight: 700; font-size: 42px; color: var(--gold); }
.growth-cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.growth-chart { width: 100%; height: auto; max-width: 640px; }

.prof-card { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); max-width: 700px; }
.prof-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--gold); }
.prof-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.prof-field { font-size: 12px; color: var(--gold); font-weight: 700; margin-left: 8px; }
.prof-quote { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }

.book-figure { position: relative; margin: 28px 0 30px; }
.book-figure::after { content: ""; position: absolute; bottom: -4px; left: 18px; width: 150px; height: 20px; background: radial-gradient(ellipse at center, rgba(33,29,25,0.14) 0%, rgba(33,29,25,0) 75%); }
.book-figure img { position: relative; z-index: 1; width: 168px; height: auto; display: block; }
.book-group + .body-p { margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-card { padding: 40px 0; border-top: 1px solid var(--line); max-width: 780px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.contact-card:last-of-type { border-bottom: 1px solid var(--line); }
.contact-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--subtle); font-weight: 700; }
.contact-title { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); margin: 8px 0 0; }
.contact-body { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; max-width: 460px; }
.cta-btn { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 11px 22px; border-radius: 2px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.cta-btn:hover { background: var(--ink); color: var(--paper); }

.company-info { margin-top: 90px; max-width: 620px; }
.company-info__name { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.company-info__line { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.company-info__line--last { margin-bottom: 16px; }
.company-info__slogan { margin: 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold); }

/* ---------- Contact: 문의 팝업 ---------- */
.cta-btn--solid { background: var(--ink); color: var(--paper); }
.cta-btn--solid:hover { background: #000; }
.cta-btn--ghost { border-color: var(--line); color: var(--muted); }
.cta-btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.cta-btn:disabled { opacity: 0.55; cursor: wait; }

.inquiry { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(30, 27, 24, 0.28); }
.inquiry::backdrop { background: rgba(30, 27, 24, 0.55); }
.inquiry[open] { animation: inquiry-in 0.18s ease-out; }
@keyframes inquiry-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.inquiry__panel { position: relative; padding: 40px 40px 34px; border-top: 3px solid var(--gold); }
.inquiry__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--subtle); cursor: pointer; border-radius: 50%; }
.inquiry__close:hover { background: var(--paper-2); color: var(--ink); }
.inquiry__title { margin: 8px 0 8px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.5; color: var(--ink); }
.inquiry__lead { margin: 0 0 28px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.inquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin-bottom: 20px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field__req { font-size: 11px; font-weight: 700; color: var(--gold); margin-left: 4px; }
.field__opt { font-size: 11px; font-weight: 500; color: var(--subtle); margin-left: 4px; }
.field__input { display: block; width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 129, 74, 0.15); }
.field__input--area { resize: vertical; min-height: 150px; line-height: 1.7; }
.field__input[aria-invalid="true"] { border-color: #B5574A; }
.field__hint { margin: 6px 0 0; font-size: 12px; color: var(--subtle); }
.field__hint:has(#inq-count) { text-align: right; }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); border: 1px dashed #CDBF9F; background: var(--paper-2); padding: 10px 18px; border-radius: 2px; cursor: pointer; }
.file-drop:hover { border-color: var(--gold); }
.field:has(.file-input:focus-visible) .file-drop { outline: 2px solid var(--gold); outline-offset: 2px; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--line); padding: 7px 8px 7px 12px; border-radius: 2px; }
.file-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list__size { color: var(--subtle); margin-left: 6px; }
.file-list button { flex-shrink: 0; border: 0; background: transparent; color: var(--subtle); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.file-list button:hover { color: var(--ink); }

.field--agree { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.agree input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }
.agree__detail { margin: 8px 0 0 26px; font-size: 12px; line-height: 1.7; color: var(--subtle); }

.inquiry__status { margin: 0; min-height: 0; font-size: 13px; line-height: 1.6; color: #B5574A; }
.inquiry__status:not(:empty) { margin-top: 4px; padding: 10px 12px; background: #F8ECEA; border-radius: 2px; }
.inquiry__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.inquiry__done { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0 4px; }
.inquiry__done[hidden] { display: none; }
.inquiry__done .result-icon { margin-bottom: 8px; }
.inquiry__done .inquiry__lead { margin-bottom: 20px; }

body.has-dialog { overflow: hidden; }

/* ---------- 모바일 (768px 이하) ---------- */
@media (max-width: 768px) {
  .shell { flex-direction: column; }

  .side-nav {
    width: 100%; height: auto; position: relative;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 18px 24px; gap: 0; z-index: 30;
  }
  .brand-logo-link { width: 106px; }
  .brand-logo { width: 100px; }
  .brand-value { font-size: 5px; letter-spacing: 1.4px; }
  .brand-tagline { margin-top: 4px; font-size: 9.4px; letter-spacing: -0.45px; }

  .nav-toggle-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; cursor: pointer; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-bg); padding: 10px 24px 26px; gap: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  .nav-toggle-checkbox:checked ~ .nav-list { display: flex; }
  .nav-foot { display: none; }

  .page, .page--home { padding: 88px 24px 60px; }
  .page-title { font-size: 24px; }
  .home-title { font-size: clamp(21px, 6.1vw, 30px); letter-spacing: -0.5px; }

  .mini-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .value-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { grid-template-columns: 1fr; gap: 14px; }
  .growth-row { grid-template-columns: 1fr; gap: 20px; }
  .prof-card { grid-template-columns: 44px 1fr; gap: 12px; }
  .prof-avatar { width: 44px; height: 44px; font-size: 15px; }
  .name-card { padding: 26px 22px; }
  .value-card { padding: 24px; }
  .method-icons { grid-template-columns: repeat(2, 1fr); }

  .inquiry { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .inquiry__panel { min-height: 100%; padding: 34px 22px 28px; }
  .inquiry__actions .cta-btn { flex: 1; }
}
