/* 리앤양 랜딩 페이지 — Nike형 UI (v3) */
:root {
  --la-ink: #111111;
  --la-muted: #707072;
  --la-bg: #fafafa;
  --la-surface: #ffffff;
  --la-accent: #e31b23;
  --la-accent-hov: #b5121b;
  --la-border: #cacacb;
  --la-radius-pill: 30px;
  --la-nav-h: 60px;
  --la-font-body: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.la-landing {
  font-family: var(--la-font-body);
  color: #fff;
  background: #000;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--la-nav-h);
  word-break: keep-all;
}

/* 통합 nav (partial) */
.la-nav--landing {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--la-nav-h);
  background: #fff;
  border-bottom: 1px solid var(--la-border);
}
.la-nav__inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.la-nav__logo {
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--la-ink); text-decoration: none; flex-shrink: 0;
}
.la-nav__menu { display: flex; gap: 20px; flex: 1; }
.la-nav__link {
  font-size: 14px; font-weight: 500; color: var(--la-ink);
  text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.la-nav__link:hover, .la-nav__link.is-active {
  color: var(--la-ink);
  border-bottom-color: var(--la-ink);
}
.la-nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.la-nav__back { font-size: 14px; color: var(--la-muted); text-decoration: none; }
.la-nav__back:hover { color: var(--la-ink); }
.la-nav__toggle {
  display: none; width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer; padding: 10px;
}
.la-nav__toggle span {
  display: block; height: 2px; background: var(--la-ink);
  margin: 5px 0; border-radius: 1px;
}
.la-nav__drawer {
  position: fixed; inset: var(--la-nav-h) 0 0 0;
  background: #fff; z-index: 499;
  display: flex; flex-direction: column; padding: 24px; gap: 16px;
}
.la-nav__drawer[hidden] { display: none !important; }
.la-nav__drawer a {
  font-size: 18px; font-weight: 500; color: var(--la-ink);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--la-border);
}

.la-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; line-height: 1.5;
  padding: 12px 24px; border-radius: var(--la-radius-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.la-btn--primary { background: var(--la-ink); color: #fff; }
.la-btn--primary:hover { background: var(--la-muted); color: #fff; }
.la-btn--secondary {
  background: transparent; color: var(--la-ink);
  border: 1.5px solid var(--la-border);
}
.la-btn--secondary:hover { border-color: var(--la-ink); }
.la-btn--accent { background: var(--la-accent); color: #fff; }
.la-btn--accent:hover { background: var(--la-accent-hov); color: #fff; }
.la-nav__cta { padding: 8px 20px; font-size: 14px; }

/* 레거시 .nav 호환 (인라인 CSS와 병행) */
.nav {
  position: fixed !important; inset: 0 0 auto 0 !important;
  height: var(--la-nav-h) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--la-border) !important;
  backdrop-filter: none !important;
  padding: 0 24px !important;
}
.nav-logo { color: var(--la-ink) !important; }
.nav-back { color: var(--la-muted) !important; }
.nav-cta {
  background: var(--la-accent) !important;
  border-radius: var(--la-radius-pill) !important;
  padding: 8px 20px !important;
}

/* 히어로 — 풀블리드 다크 */
.hero {
  background: var(--la-ink) !important;
  min-height: calc(100vh - var(--la-nav-h));
}
.hero-h1, .hero h1 {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
}
.btn-red, .btn-primary, .cta-primary {
  background: var(--la-accent) !important;
  border-radius: var(--la-radius-pill) !important;
  padding: 12px 28px !important;
}
.btn-outline, .btn-ghost {
  border-radius: var(--la-radius-pill) !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
}

/* 섹션 — 배경은 풀폭, 콘텐츠는 .inner 로 제한 */
.section, .sec {
  padding: 80px 24px !important;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
.section--gray, .sec-gray {
  background: var(--la-bg) !important;
  color: var(--la-ink);
}
.sec-black {
  background: #000 !important;
  color: #fff;
}
.sec-white {
  background: #fff !important;
  color: var(--la-ink);
}
body.la-landing .sec-black .sec-title,
body.la-landing .sec-black .section-title {
  color: #fff;
}
body.la-landing .sec-black .sec-desc,
body.la-landing .sec-black .sec-body {
  color: rgba(255, 255, 255, 0.72);
}
body.la-landing .sec-gray .sec-title,
body.la-landing .sec-white .sec-title,
body.la-landing .sec-gray .section-title,
body.la-landing .sec-white .section-title {
  color: var(--la-ink);
}
body.la-landing .sec-gray .sec-desc,
body.la-landing .sec-gray .sec-body,
body.la-landing .sec-white .sec-desc,
body.la-landing .sec-white .sec-body {
  color: #515154;
}
.section-title, .sec-h2 {
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-align: center;
  margin-bottom: 40px !important;
}

/* 푸터·CTA 바 */
.la-footer {
  background: var(--la-ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.la-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
.la-footer__brand strong {
  display: block; font-size: 22px; color: #fff; margin-bottom: 8px;
}
.la-footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.la-footer__cols h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.la-footer__cols a { color: rgba(255,255,255,0.85); text-decoration: none; }
.la-footer__cols a:hover { text-decoration: underline; }
.la-footer__cols ul { list-style: none; padding: 0; margin: 0; }
.la-footer__cols li { margin-bottom: 8px; font-size: 14px; }
.la-footer__copy {
  max-width: 1280px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; text-align: center;
}

.la-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: flex;
  align-items: stretch;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.la-cta-bar__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  background: transparent;
  color: #fff !important;
  padding: 0 12px;
  border-radius: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.la-cta-bar__item:last-child { border-right: none; }
.la-cta-bar__item:hover,
.la-cta-bar__item:focus {
  color: #fff !important;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}
.la-cta-bar__item--apply {
  background: #e31b23;
  color: #fff !important;
}
.la-cta-bar__item--apply:hover,
.la-cta-bar__item--apply:focus {
  background: #b5121b;
  color: #fff !important;
}
.la-cta-bar__item--kakao { cursor: default; }

/* 수선 전후 3장 — before/after GIF 정사각 표시 */
.repair-proof-3-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #141416;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.repair-proof-3-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 1024px) {
  .la-nav__menu, .la-nav__back { display: none; }
  .la-nav__toggle { display: block; }
  .la-footer__inner { grid-template-columns: 1fr; }
  .la-footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .la-cta-bar { left: 0; right: 0; bottom: 0; }
}

/* custom.php — 맞춤 축구화 랜딩 */
@media (max-width: 680px) {
  body.la-landing .hero { min-height: auto; }
  body.la-landing .hero-inner { grid-template-columns: 1fr; }
  body.la-landing .hero-text { padding: 24px 24px 32px; order: 1; }
  body.la-landing .hero-img { min-height: 180px; max-height: 220px; order: 2; }
  body.la-landing .hero-img img { width: 70%; max-width: 240px; transform: none; margin: 0 auto; }
  body.la-landing .hero-btns { flex-direction: column; align-items: flex-start; }
  body.la-landing .sec { padding: 60px 20px; }
  body.la-landing .kang-grid { grid-template-columns: 1fr; }
  body.la-landing .feat-grid { grid-template-columns: 1fr; gap: 2px; }
  body.la-landing .process-row { grid-template-columns: 1fr 1fr; }
  body.la-landing .kang-block:first-child { border-radius: 12px 12px 0 0; }
  body.la-landing .kang-block:nth-child(2) { border-radius: 0; }
  body.la-landing .kang-block:nth-child(3) { border-radius: 0; }
  body.la-landing .kang-block:last-child { border-radius: 0; }
  body.la-landing .kang-wide { border-radius: 0 0 12px 12px; }
  body.la-landing .feat-block:first-child { border-radius: 12px 12px 0 0; }
  body.la-landing .feat-block:last-child { border-radius: 0 0 12px 12px; }
  body.la-landing .proc-block:first-child { border-radius: 12px 0 0 0; }
  body.la-landing .proc-block:last-child { border-radius: 0 0 12px 0; }
  body.la-landing .gallery-row { grid-template-columns: 1fr; gap: 2px; }
  body.la-landing .hero-btns,
  body.la-landing .cta-btns { flex-direction: column; align-items: center; }
  body.la-landing .price-row { grid-template-columns: 1fr; gap: 8px; }
  body.la-landing .p-amount { text-align: left; }
}

/* changalyi.php — 창갈이 랜딩 */
@media (max-width: 768px) {
  body.la-landing .repair-proof-3-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  body.la-landing .svc-grid { grid-template-columns: repeat(2, 1fr); }
  body.la-landing .process-grid { grid-template-columns: repeat(2, 1fr); }
  body.la-landing .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body.la-landing .sec { padding: 64px 20px; }
  body.la-landing .hero { padding: 100px 20px 64px; }
  body.la-landing .svc-grid,
  body.la-landing .process-grid { grid-template-columns: 1fr; }
  body.la-landing .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  body.la-landing .price-row { padding: 16px 20px; }
  body.la-landing .cta-sec { padding: 72px 20px; }
  body.la-landing .hero-btns { flex-direction: column; align-items: center; }
}

/* apply.php — 수선 신청 */
@media (max-width: 400px) {
  body.la-landing .step-label { display: none; }
  body.la-landing .steps-bar { gap: 4px; }
  body.la-landing .step-sep { margin: 0 4px; }
}
@media (max-width: 768px) {
  body.la-landing .proof-gallery,
  body.la-landing .proof-grid { grid-template-columns: 1fr; }
  body.la-landing .proof-photo,
  body.la-landing .proof-photo.featured { min-height: 260px; }
  body.la-landing .review-band { padding: 18px; }
}

/* apply-custom.php — 맞춤 신청 */
@media (max-width: 600px) {
  body.la-landing .page { padding: 72px 16px 60px; }
  body.la-landing .form-card { padding: 28px 20px; }
  body.la-landing .custom-proof-hero,
  body.la-landing .custom-proof-list,
  body.la-landing .custom-process { grid-template-columns: 1fr; }
  body.la-landing .custom-proof-photo { min-height: 300px; }
  body.la-landing .custom-proof-panel { padding: 24px; }
  body.la-landing .radio-label { font-size: 15px; padding: 12px 14px; }
  body.la-landing .radio-sub { font-size: 12px; }
}

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