/* =========================================================
   SH Partners — 딥틸 · 골드
   색·서체는 모두 아래 변수에서 바뀝니다.
   ========================================================= */

/* ---------- 브랜드 컬러 : 딥틸 + 골드 ---------- */
:root {
  --deep: #0e3036;
  --deep-2: #13434b;
  --deep-3: #0a2328;
  --accent: #d6a53a;
  --accent-2: #f3cd6a;
  --on-accent: #1a1a1a;
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --ink: #1c2a2d;
  --muted: #5d6b6d;
  --line: rgba(28, 42, 45, 0.12);
  --on-deep: #f3efe6;
  --on-deep-muted: rgba(243, 239, 230, 0.72);

  --logo-s-1: #fbe08a;
  --logo-s-2: #e2a624;
  --logo-s-3: #b77910;
  --logo-h-1: #ffffff;
  --logo-h-2: #e3e6e8;
  --logo-h-3: #a9b0b4;

  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-head: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --head-weight: 700;
  --radius: 4px;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;          /* 단어 중간에서 줄이 바뀌지 않게 (전체 공통 규칙) */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

.nowrap, .ph { white-space: nowrap; }   /* .ph = 의미 단위(구절): 구절 안에서는 줄이 바뀌지 않음 */
p, li, h1, h2, h3 { text-wrap: pretty; }   /* 마지막 줄에 한 단어만 남는 것 방지 */

.todo {
  font-style: normal;
  background: #fff3a8;
  color: #6b5200;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.92em;
}
.todo-note {
  margin: -8px 0 28px;
  text-align: center;
  font-size: 14px;
  color: #6b5200;
  background: #fff8cc;
  padding: 8px 12px;
  border-radius: 6px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font: 600 16px/1 var(--font-body);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--on-deep-muted); color: var(--on-deep); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--kakao { background: #fee500; color: #191919; margin-top: 28px; }
.btn--kakao svg { width: 22px; height: 22px; fill: currentColor; }
.btn--block { width: 100%; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--deep) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-deep); }
.brand__logo { width: 44px; height: 36px; }
.brand__name { font: 700 17px/1 var(--font-body); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--on-deep); font-size: 15px; font-weight: 500; opacity: .88; }
.nav a:hover { opacity: 1; color: var(--accent-2); }
.nav .nav__cta {
  opacity: 1; padding: 9px 20px;
  border: 1px solid var(--accent); color: var(--accent-2);
  border-radius: var(--radius);
}
.nav .nav__cta:hover { background: var(--accent); color: var(--on-accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--on-deep); transition: .3s; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(640px, 100vh, 960px); min-height: clamp(640px, 100svh, 960px);
  display: flex; align-items: center;
  padding: 120px 0 90px;
  color: var(--on-deep);
  background:
    radial-gradient(1200px 600px at 80% 20%, color-mix(in srgb, var(--deep-2) 90%, transparent), transparent 60%),
    var(--deep);
}
/* 명함 같은 종이 질감 */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 슬라이드별 사진 */
.hero__media {
  position: absolute; z-index: 0;
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 53%; translate: 0 -50%;
  width: min(38vw, 500px); aspect-ratio: 4 / 5;
}
.hero__media::before {           /* 사진 뒤 골드 프레임 */
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: var(--radius);
}
.hero__media::after {            /* 브랜드 색 살짝 덮기 */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--deep) 55%, transparent));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius);
  filter: saturate(.8) contrast(1.05);
  opacity: 0; transition: opacity .9s ease;
}
.hero__media img.is-active { opacity: 1; }

.hero__inner { position: relative; z-index: 1; }
.slides { display: grid; max-width: 640px; margin-bottom: 36px; }  /* 가장 긴 슬라이드 높이에 맞춰 자동으로 늘어남 */
.slide {
  grid-area: 1 / 1; width: 100%;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s ease .4s, transform .6s ease .4s; }

.eyebrow {
  font-size: 13px; letter-spacing: .22em; font-weight: 600;
  color: var(--accent-2); margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(34px, 5vw, 58px); line-height: 1.28;
  letter-spacing: -0.02em;
}
.hero__desc { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--on-deep-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; }

.slide-dots { display: flex; gap: 10px; margin-top: 48px; }
.slide-dots button {
  width: 34px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.28); transition: background .3s, width .3s;
}
.slide-dots button.is-active { width: 56px; background: var(--accent); }

/* ---------- 신뢰 포인트 ---------- */
.trust { background: var(--deep-3); color: var(--on-deep); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust__item { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.08); }
.trust__item:first-child { border-left: 0; }
.trust__item strong { display: block; font-size: 18px; color: var(--accent-2); margin-bottom: 6px; }
.trust__item span { font-size: 15px; color: var(--on-deep-muted); }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__label { font-size: 13px; letter-spacing: .24em; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section__title {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em;
}
.section__desc { margin-top: 14px; color: var(--muted); }

/* ---------- 회사소개 ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__card {
  position: relative; aspect-ratio: 4 / 5; max-width: 440px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, var(--deep-2), var(--deep));
  color: var(--on-deep); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
}
.about__card::after {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius);
}
.about__logo { width: 62%; height: 44%; }
.about__card-name { font-weight: 700; letter-spacing: .2em; font-size: 18px; }
.about__card-sub { font-size: 14px; color: var(--on-deep-muted); }

.about__text .section__title { margin-bottom: 28px; }
.about__lead {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(19px, 2vw, 23px); line-height: 1.6;
  padding-left: 20px; border-left: 3px solid var(--accent);
  margin-bottom: 28px;
}
.about__text p + p { margin-top: 14px; }
.about__text p:not(.about__lead):not(.section__label) { color: var(--muted); }
.about__text p strong { color: var(--accent); font-weight: 800; }
.about__motto { margin-top: 22px !important; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 19px; color: var(--ink) !important; }
.about__sign { margin-top: 30px !important; font-size: 15px; }
.about__sign { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 14px; color: var(--muted); }
.about__name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.signature { height: 46px; width: auto; margin-left: -8px; }
.signature--ko { height: 60px; }

/* ---------- 컨설팅 분야 ---------- */
.services { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; padding: 40px 28px 36px;
  background: #fff; border-radius: var(--radius);
  border-top: 3px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-top-color: var(--accent); box-shadow: 0 24px 50px -24px rgba(0,0,0,.25); }
.card__num { position: absolute; top: 22px; right: 24px; font: 700 14px/1 var(--font-body); color: var(--accent); letter-spacing: .1em; }
.card__icon { width: 48px; height: 48px; fill: none; stroke: var(--deep-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--muted); }

/* ---------- 진행 절차 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 30px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -12px; width: 8px; height: 8px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.step__num { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- 사례 ---------- */
.cases { background: var(--deep); color: var(--on-deep); }
.cases .section__desc { color: var(--on-deep-muted); }
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.case__tags span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--on-deep-muted); }
.case__tags span:first-child { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.case h3 { font-size: 18px; margin-bottom: 10px; }
.case p { font-size: 15px; color: var(--on-deep-muted); }
.case__result { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.18); font-weight: 600; color: var(--accent-2) !important; }

/* ---------- FAQ ---------- */
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 40px 24px 0; font-size: 18px; font-weight: 600;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before { content: "Q."; color: var(--accent); font-weight: 800; margin-right: 10px; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 26px; font-weight: 300; color: var(--muted); transition: rotate .3s;
}
.faq__list details[open] summary::after { rotate: 45deg; }
.faq__list details p { padding: 0 0 24px 30px; color: var(--muted); }

/* ---------- 상담 신청 ---------- */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__lead { margin-top: 18px; color: var(--muted); font-size: 17px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact__list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list span { width: 72px; flex-shrink: 0; color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact__list .contact__hours { width: auto; flex-shrink: 1; padding-top: 0; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.contact__hours small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.contact__list a { font-weight: 600; }
.contact__list li:first-child a { font-size: 24px; font-weight: 800; color: var(--deep-2); letter-spacing: .02em; line-height: 1.2; }

.form {
  background: #fff; padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -35px rgba(0,0,0,.3);
  display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form label b { color: #d9534f; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 15px/1.5 var(--font-body); color: var(--ink);
  padding: 12px 14px; border: 1px solid #d6d6d0; border-radius: var(--radius);
  background: #fcfcfa; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form .is-invalid { border-color: #d9534f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.consent { display: grid; gap: 8px; padding: 16px; background: var(--paper); border-radius: var(--radius); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--deep-2); flex-shrink: 0; }
.consent__detail { margin-left: 26px; font-size: 13px; color: var(--muted); }
.consent__detail summary { cursor: pointer; text-decoration: underline; }
.consent__detail p { margin-top: 6px; line-height: 1.8; }
.form__msg { min-height: 1.5em; text-align: center; font-size: 15px; font-weight: 600; }
.form__msg.is-ok { color: #1f7a4d; }
.form__msg.is-err { color: #c0392b; }

/* ---------- 푸터 ---------- */
.footer { background: var(--deep-3); color: var(--on-deep-muted); padding: 56px 0 110px; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--accent-2); }
.footer__links .js-privacy { color: var(--on-deep); font-weight: 600; }
.footer__info { line-height: 2; }
.footer__info i { font-style: normal; margin: 0 10px; opacity: .3; }
.footer__notice { margin-top: 18px; font-size: 13px; opacity: .75; max-width: 900px; }
.footer__copy { margin-top: 22px; font-size: 13px; opacity: .55; }

/* ---------- 플로팅 / 모바일 바 ---------- */
.float-kakao {
  position: fixed; right: 28px; bottom: 28px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fee500; color: #191919;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s;
}
.float-kakao:hover { transform: scale(1.08); }
.float-kakao svg { width: 30px; height: 30px; fill: currentColor; }

.mobile-bar { display: none; }

/* =========================================================
   반응형
   ========================================================= */
/* 인사말 수동 줄바꿈: 글 폭이 충분한 넓은 화면에서만 적용 (좁은 화면은 단어 단위 자동 줄바꿈) */
@media (max-width: 1239px) { .br-wide { display: none; } }
.br-narrow { display: none; }
@media (max-width: 640px) { .br-narrow { display: inline; } }   /* 좁은 화면에서만 쉼표 뒤 줄바꿈 */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .case-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: var(--deep);
    transform: translateY(-120%); transition: transform .35s;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav__cta { margin-top: 14px; text-align: center; border-bottom: 1px solid var(--accent); }
  .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); }
  .header { background: color-mix(in srgb, var(--deep) 94%, transparent); }

  .hero { align-items: flex-end; padding-bottom: 70px; }
  /* 모바일: 사진을 어둡게 깐 배경으로 */
  .hero__media { inset: 0; width: auto; aspect-ratio: auto; translate: none; }
  .hero__media::before { display: none; }
  .hero__media::after { border-radius: 0; box-shadow: none; background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 55%, transparent), var(--deep) 78%); }
  .hero__media img { border-radius: 0; }
  .br-pc { display: none; }
  .slides { margin-bottom: 28px; }

  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 4px; }
  .trust__item:first-child { border-top: 0; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 320px; }
  .form__row { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }

  .float-kakao { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    position: fixed; inset: auto 0 0 0; z-index: 45;
    background: var(--deep); padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -6px 20px rgba(0,0,0,.2);
  }
  .mobile-bar a { display: grid; place-items: center; height: 58px; color: var(--on-deep); font-weight: 600; font-size: 15px; border-right: 1px solid rgba(255,255,255,.08); }
  .mobile-bar .mobile-bar__main { background: var(--accent); color: var(--on-accent); border: 0; }
}

@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__info i { display: none; }
  .footer__info { line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
