/* lawlibrary.co.kr premium landing — lawbestway.com visual system adapted */
:root {
  --ll-primary: #274ba8;
  --ll-accent: #ce2706;
  --ll-black: #000;
  --ll-ink: #333;
  --ll-muted: #666;
  --ll-light-muted: #999;
  --ll-line: #e0e0e0;
  --ll-soft-bg: #f7f7f7;
  --ll-white: #fff;
  --ll-kakao: #fee500;
  --ll-serif: 'Noto Serif KR', serif;
  --ll-sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --ll-shadow: 2px 2px 50px rgba(0, 0, 0, .10);
}

.ll-home * { box-sizing: border-box; }
.ll-home { color: var(--ll-ink); background: #fff; font-family: var(--ll-sans); word-break: keep-all; }
.ll-container { width: min(1200px, calc(100% - 60px)); margin: 0 auto; }
.ll-section { position: relative; overflow: hidden; padding: clamp(86px, 10vw, 150px) 0; }
.ll-dark { background: #111; color: #fff; }
.ll-light { background: #fff; color: var(--ll-ink); }
.ll-soft { background: var(--ll-soft-bg); }

.ll-eyebrow { margin: 0 0 24px; font-family: var(--ll-serif); font-size: 18px; font-weight: 300; color: var(--ll-primary); letter-spacing: .02em; }
.ll-dark .ll-eyebrow { color: #fff; opacity: .82; }
.ll-section-head { margin: 0 0 65px; }
.ll-section-head.center { text-align: center; }
.ll-section-head h2, .ll-hero h1 { font-family: var(--ll-serif); font-weight: 300; letter-spacing: -.04em; word-break: keep-all; }
.ll-section-head h2 { display: inline-block; position: relative; margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; color: #000; }
.ll-dark .ll-section-head h2 { color: #fff; }
.ll-section-head h2::before { content: '+'; position: absolute; top: -2px; right: -30px; font-family: var(--ll-sans); font-size: .72em; font-weight: 700; color: var(--ll-primary); }
.ll-section-head p { max-width: 780px; margin: 26px 0 0; color: var(--ll-muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.7; }
.ll-section-head.center p { margin-left: auto; margin-right: auto; }
.ll-dark .ll-section-head p, .ll-dark .ll-copy, .ll-dark .ll-copy-block p { color: rgba(255,255,255,.75); }

.ll-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 28px; border-radius: 0; font-weight: 700; font-size: 17px; text-decoration: none; transition: .25s ease; }
.ll-btn-primary { background: var(--ll-primary); color: #fff; }
.ll-btn-primary:hover { background: #1d397e; color: #fff; transform: translateY(-2px); }
.ll-btn-secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.14); }
.ll-light .ll-btn-secondary, .ll-soft .ll-btn-secondary { color: #333; border-color: #333; background: transparent; }
.ll-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 42px 0 18px; }
.ll-center { text-align: center; margin-top: clamp(34px, 5vw, 60px); }

/* Hero */
.ll-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #000;
}
.ll-hero-media,
.ll-hero-overlay {
  position: absolute;
  inset: 0;
}
.ll-hero-media-placeholder {
  width: 100%;
  height: 100%;
  background: url('../images/lawbestway/main_visual.webp') no-repeat center center;
  background-size: cover;
  transform: scale(1.02);
  filter: grayscale(100%) brightness(1.05);
}
.ll-hero-overlay {
  background: rgba(0,0,0,.45);
}
.ll-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ll-hero h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-family: var(--ll-serif);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.hero-main {
  display: block;
}
.hero-sub {
  display: block;
  margin-top: 22px;
  font-family: var(--ll-sans);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.75);
}
.ll-lead { margin: 0 0 24px; max-width: 720px; color: rgba(255,255,255,.92); font-size: clamp(19px, 2vw, 27px); line-height: 1.58; font-weight: 400; }
.ll-copy { max-width: 760px; margin: 0; color: rgba(255,255,255,.75); font-size: clamp(16px, 1.55vw, 21px); line-height: 1.75; }
.ll-cta-note { margin: 0 0 22px; max-width: 820px; color: rgba(255,255,255,.75); line-height: 1.65; }
.ll-flow { display: inline-flex; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,.78); font-size: 15px; }
.ll-flow span { display: inline-flex; align-items: center; gap: 10px; }
.ll-flow span + span::before { content: '→'; color: var(--ll-primary); font-weight: 800; }

/* Proof */
.ll-proof { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--ll-line); }
.ll-proof-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.ll-proof-grid span { min-height: 72px; display: flex; align-items: center; padding: 0 18px; border-left: 1px solid var(--ll-line); color: #333; font-size: 15px; line-height: 1.45; }
.ll-proof-grid span:first-child { border-left: 0; }

/* Cards */
.ll-card-grid { display: grid; gap: 22px; }
.ll-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ll-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ll-grid-proof { grid-template-columns: repeat(3, 1fr); }
.ll-grid-proof .ll-card { grid-column: auto; }
.ll-card { position: relative; display: block; padding: 30px 24px; border-top: 1px solid #000; background: #fff; color: var(--ll-ink); box-shadow: none; transition: .28s ease; }
.ll-card:hover { box-shadow: inset 0 2px 0 0 var(--ll-primary), var(--ll-shadow); border-top-color: transparent; transform: translateY(-3px); }
.ll-card b { display: block; margin-bottom: 18px; font-family: 'Outfit', var(--ll-sans); color: var(--ll-primary); font-size: 15px; letter-spacing: .04em; }
.ll-card h3 { margin: 0 0 16px; font-family: var(--ll-serif); font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.35; color: #111; }
.ll-card p, .ll-card li { margin: 0; color: var(--ll-muted); font-size: 16px; line-height: 1.7; }
.ll-card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.ll-card li { position: relative; padding-left: 13px; margin-bottom: 8px; }
.ll-card li::before { content: ''; position: absolute; top: 11px; left: 0; width: 5px; height: 5px; background: var(--ll-primary); }
.ll-card a:not(.ll-btn) { display: flex; align-items: center; justify-content: space-between; margin: 22px -24px -30px; padding: 22px 24px; background: #d6d6d6; color: #666; font-family: 'Outfit', var(--ll-sans); font-size: 15px; font-weight: 600; text-decoration: none; transition: .25s ease; }
.ll-card:hover a:not(.ll-btn) { background: var(--ll-primary); color: #fff; }
.ll-card-dark { background: rgba(255,255,255,.06); border-top-color: rgba(255,255,255,.35); color: #fff; }
.ll-card-dark h3 { color: #fff; }
.ll-card-dark p, .ll-card-dark li { color: rgba(255,255,255,.74); }
.ll-card-dark a:not(.ll-btn) { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* Prep */
#ll-prep-mini { background: url('../images/lawlibrary-custom/abstract-light.webp') no-repeat center center; }

/* Promise */
.ll-promise { background: url('../images/lawlibrary-custom/interior-dark.webp') no-repeat center center; background-size: cover; }
.ll-promise::before, .ll-premium::before, .ll-final::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.ll-promise .ll-container, .ll-premium .ll-container, .ll-final .ll-container { position: relative; z-index: 1; }
.ll-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: clamp(36px, 7vw, 90px); align-items: center; }
.ll-copy-block { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.75; }
.ll-copy-block p + p { margin-top: 22px; }

/* Core */
.ll-philosophy { background: #1a1a1a; }

/* Reviews */
.ll-reviews { background: #fff; }
.ll-review::before { content: '“'; position: absolute; top: 8px; right: 22px; color: rgba(39,75,168,.13); font-family: var(--ll-serif); font-size: 76px; line-height: 1; }
.ll-notice { margin: 22px 0 0; color: var(--ll-light-muted); font-size: 14px; text-align: center; }
.ll-notice-dark { color: rgba(255,255,255,.58); }

/* Situation */
#ll-situation-title + p { color: rgba(255,255,255,.75); }

/* Timeline */
.ll-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ll-timeline article { padding: 30px 24px; border-top: 1px solid #000; background: #fff; transition: .25s ease; }
.ll-timeline article:hover { box-shadow: inset 0 2px 0 0 var(--ll-primary), var(--ll-shadow); border-top-color: transparent; }
.ll-timeline b, .ll-process-panel b { color: var(--ll-primary); font-size: 15px; }
.ll-timeline h3, .ll-process-panel h3 { margin: 12px 0 12px; font-family: var(--ll-serif); font-size: 24px; font-weight: 300; }
.ll-timeline p, .ll-process-panel p { margin: 0; color: var(--ll-muted); line-height: 1.7; }

/* Premium & final */
.ll-premium { background: url('../images/lawlibrary-custom/shadow-wall.webp') no-repeat center center; background-size: cover; }
.ll-process-panel { padding: 34px; background: rgba(255,255,255,.95); }
.ll-process-panel article + article { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ll-line); }
.ll-process-panel .ll-btn { margin-top: 28px; }
.ll-final { text-align: center; background: url('../images/lawlibrary-custom/stone-dark.webp') no-repeat center center; background-size: cover; }
.ll-final-inner { position: relative; z-index: 1; max-width: 860px; }
.ll-final h2 { margin: 0 0 22px; font-family: var(--ll-serif); font-size: clamp(38px, 5vw, 68px); font-weight: 300; line-height: 1.15; }
.ll-final p:not(.ll-eyebrow) { color: rgba(255,255,255,.76); line-height: 1.75; }

.ll-sticky-cta { display: none; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 99999; align-items: center; justify-content: center; gap: 8px; min-height: 56px; background: var(--ll-primary); color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.ll-sticky-cta span { font-size: 12px; opacity: .78; }

@media (max-width: 1024px) {
  .ll-proof-grid { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ll-line); }
  .ll-proof-grid span { border-top: 1px solid var(--ll-line); }
  .ll-grid-4, .ll-grid-3, .ll-timeline, .ll-split { grid-template-columns: repeat(2, 1fr); }
  .ll-grid-proof, .ll-grid-proof .ll-card { grid-template-columns: 1fr; grid-column: auto; }
}

@media (max-width: 720px) {
  .ll-container { width: calc(100% - 40px); }
  .ll-section { padding: 70px 0; }
  .ll-section-head { margin-bottom: 45px; }
  .ll-section-head h2 { font-size: 30px; line-height: 1.25; }
  .ll-section-head h2::before { right: -16px; font-size: 22px; }
  .ll-hero { min-height: 650px; padding: 0; }
  .ll-hero h1 { font-size: 38px; line-height: 1.22; }
  .ll-lead { font-size: 18px; }
  .ll-lead br:not(.ll-mobile-break), .ll-copy br { display: none; }
  .ll-actions { flex-direction: column; }
  .ll-btn { width: 100%; min-height: 54px; }
  .ll-proof-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .ll-proof-grid span { min-width: 220px; scroll-snap-align: start; }
  .ll-grid-4, .ll-grid-3, .ll-timeline, .ll-split, .ll-card-grid { grid-template-columns: 1fr; }
  .ll-flow { display: grid; grid-template-columns: 1fr; }
  .ll-flow span + span::before { content: none; }
  .ll-sticky-cta { display: flex; }
  .ll-home { padding-bottom: 72px; }
}

/* Split-section headings aligned with lawbestway large serif titles */
.ll-split h2 {
  margin: 0;
  font-family: var(--ll-serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.04em;
  color: #fff;
}
.ll-light .ll-split h2, .ll-soft .ll-split h2 { color: #000; }
.ll-proof.ll-dark { background: #fff; color: var(--ll-ink); }
.ll-proof.ll-dark .ll-proof-grid span { color: var(--ll-ink); }

@media (max-width: 720px) {
  .ll-split h2 { font-size: 30px; line-height: 1.25; }
}


/* User revision: less copy, generic inquiry CTA, attached visual assets */
.ll-reviews .ll-grid-4 { grid-template-columns: repeat(5, 1fr); }
.ll-process-panel h3 { color: var(--ll-primary); font-weight: 500; }
.ll-process-panel article { border-left: 3px solid var(--ll-primary); padding-left: 18px; }
.ll-card p, .ll-card li { font-size: 15px; line-height: 1.62; }
.ll-section-head p { max-width: 650px; }
@media (max-width: 1200px) { .ll-reviews .ll-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .ll-grid-proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ll-reviews .ll-grid-4, .ll-grid-proof { grid-template-columns: 1fr; } }

/* Additional user-provided visual assets */
.ll-hero-media-placeholder {
  background-image: url('../images/lawbestway/main_visual.webp') !important;
  background-position: center center;
  filter: grayscale(100%) brightness(1.05);
}
.ll-why {
  background: #fff url('../images/lawlibrary-custom/abstract-arc.webp') no-repeat right top;
  background-size: min(720px, 58vw) auto;
}
.ll-logo-bg {
  background: #fff url('../images/lawlibrary-custom/logo-mark-light.webp') no-repeat right top;
  background-size: min(620px, 55vw) auto;
}
.ll-approach {
  background: #f7f7f7 url('../images/lawlibrary-custom/abstract-light-2.webp') no-repeat center top;
  background-size: cover;
}
.ll-approach::before,
.ll-why::before,
.ll-logo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255,255,255,.72);
}
.ll-approach .ll-container,
.ll-why .ll-container,
.ll-logo-bg .ll-container {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .ll-why, .ll-logo-bg { background-size: 900px auto; background-position: 45% top; }
}


/* Main visual requested for top hero; building image moved below */
.ll-promise {
  background-image: url('../images/lawlibrary-custom/building-stairs.webp') !important;
  background-position: center center;
}

/* Show main_business_bg as a full image, not cropped */
.ll-approach {
  background: #f7f7f7 url('../images/lawbestway/main_business_bg.webp') no-repeat center top !important;
  background-size: contain !important;
}
.ll-approach::before {
  background: rgba(255,255,255,.52) !important;
}
@media (max-width: 720px) {
  .ll-approach {
    background-size: 900px auto !important;
    background-position: center top !important;
  }
}

/* User revision: remove Why ChoiSun image background; Brand Promise uses main_location_bg */
.ll-why {
  background: #fff url('../images/lawlibrary-custom/abstract-light-2.webp') no-repeat center top !important;
  background-size: cover !important;
}
.ll-why::before {
  content: none !important;
}
.ll-promise {
  background-image: url('../images/lawlibrary-custom/main_location_bg.webp') !important;
  background-position: center center !important;
  background-size: cover !important;
}
/* CTA 제목 색상 수정 */
.ll-final h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.ll-approach {
  background-size: cover !important;
  background-position: center center !important;
}

@media (max-width: 720px) {
  .ll-approach {
    background-size: cover !important;
    background-position: center center !important;
  }
}
.ll-sticky-cta {
  border-radius: 9px;
}

/* Hero final normalization */
.ll-hero-overlay {
  background: rgba(0,0,0,.1) !important;
}
.ll-hero-inner {
  text-align: center;
}
.ll-hero h1 {
  margin: 0;
}




/* PC 중간 문의 CTA */
.ll-mid-cta {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.ll-mid-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 9px;
  background: #274ba8;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  transition: .25s ease;
}

.ll-mid-cta-btn:hover {
  transform: translateY(-2px);
  background: #1d397e;
  color: #fff;
}

/* 모바일에서는 숨김 */
@media (max-width: 1024px) {
  .ll-mid-cta {
    display: none;
  }
}

.mobile-br {
  display: none;
}

@media (max-width: 720px) {
  .mobile-br {
    display: inline;
  }
}

@media (max-width: 720px) {
  .ll-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 기존 중앙 유지 */
    transform: translateY(-40px); /* 위로 이동 (핵심) */
  }
}






/* FAQ */
.ll-faq {
  background: #fff;
}

.ll-faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid #e5e5e5;
}

.ll-faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.ll-faq-question {
  width: 100%;
  padding: 24px 42px 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--ll-sans);
  font-size: 18px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  position: relative;
}

.ll-faq-question::after {
  content: '+';
  position: absolute;
  top: 24px;
  right: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--ll-primary);
}

.ll-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-right: 42px;
  color: #666;
  font-size: 16px;
  line-height: 1.75;
  transition: max-height .28s ease;
}

.ll-faq-item.active .ll-faq-answer {
  max-height: 260px;
  padding-bottom: 24px;
}

.ll-faq-item.active .ll-faq-question::after {
  content: '−';
}

@media (max-width: 720px) {
  .ll-faq-question {
    font-size: 16px;
    line-height: 1.5;
  }

  .ll-faq-answer {
    font-size: 15px;
    padding-right: 20px;
  }
}

/* Android mobile header logo safety fix — keep logo compact across mobile browsers. */
@media (max-width: 689px) {
  [data-header*="type-1"] .ct-header [data-id="logo"] {
    --margin: 0 !important;
  }
  [data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container {
    --logo-max-height: 32px !important;
    height: 32px !important;
    max-height: 32px !important;
  }
  [data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container img,
  [data-header*="type-1"] .ct-header [data-id="logo"] img {
    width: auto !important;
    max-width: 168px !important;
    height: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
  }
  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title,
  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title a {
    font-size: 18px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
  }
}
