/* ========================================
   법률사무소 신록 - Main Stylesheet
   ======================================== */

:root {
  --color-navy: #0a1628;
  --color-navy-light: #142240;
  --color-navy-mid: #1a3050;
  --color-gold: #c4a35a;
  --color-gold-light: #d4b86a;
  --color-gold-dark: #a68840;
  --color-white: #ffffff;
  --color-off-white: #f8f7f4;
  --color-gray-100: #f0eeea;
  --color-gray-200: #e2dfd8;
  --color-gray-400: #9a9590;
  --color-gray-600: #5c5854;
  --color-gray-800: #2a2724;
  --color-text: #1a1a1a;
  --color-text-light: #6b6762;

  --font-sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-heading: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--font-heading);
  --font-display: var(--font-heading);

  --header-height: 80px;
  --container-width: 1280px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
}

html.page-snap {
  scroll-snap-type: y mandatory;
  height: 100%;
}

body.page-snap {
  scroll-snap-type: y mandatory;
}

body.page-snap > section,
body.page-snap > footer.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

body.page-snap > section > .container,
body.page-snap > footer.footer > .container {
  width: 100%;
}

body.page-snap > .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

body.page-snap .stats,
body.page-snap .about,
body.page-snap .attorneys,
body.page-snap .cases,
body.page-snap .news,
body.page-snap .contact {
  padding: calc(var(--header-height) + 32px) 0 48px;
}

body.page-snap .practice,
body.page-snap .consultation {
  padding: calc(var(--header-height) + 24px) 0 40px;
}

body.page-snap .footer {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 40px) 0 48px;
}

body.page-snap .cases__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.page-snap .case-card {
  padding: 20px;
}

body.page-snap .case-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

body.page-snap .about__image {
  aspect-ratio: 4/3;
  max-height: 42vh;
}

body.page-snap .about__grid {
  align-items: center;
  gap: 48px;
}

body.page-snap .about__text {
  margin-bottom: 24px;
}

body.page-snap .about__values li {
  padding: 14px 0;
}

/* 구성원 — 세로 카드 + 가로 직사각형 사진 (노트북 한 화면) */
body.page-snap > section.attorneys {
  justify-content: center;
  overflow: visible;
  padding: calc(var(--header-height) + 12px) 0 24px;
}

body.page-snap .attorneys .section-header {
  margin-bottom: 22px;
}

body.page-snap .attorneys .section-desc {
  font-size: 0.9375rem;
}

body.page-snap .attorneys__grid {
  gap: 24px;
  max-width: 1120px;
}

body.page-snap .attorney-card {
  display: flex;
  flex-direction: column;
}

body.page-snap .attorney-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 340px;
  height: auto;
}

body.page-snap .attorney-card__photo::before {
  font-size: 3rem;
}

body.page-snap .attorney-card__info {
  padding: 12px 16px 16px;
}

body.page-snap .attorney-card__head {
  margin-bottom: 8px;
}

body.page-snap .attorney-card__career {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (min-width: 769px) and (max-height: 960px) {
  .attorneys {
    overflow: visible;
    padding: calc(var(--header-height) + 12px) 0 24px;
  }

  .attorneys .section-header {
    margin-bottom: 22px;
  }

  .attorneys .section-desc {
    font-size: 0.9375rem;
  }

  .attorneys__grid {
    gap: 24px;
    max-width: 1120px;
  }

  .attorney-card {
    display: flex;
    flex-direction: column;
  }

  .attorney-card__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 340px;
    height: auto;
  }

  .attorney-card__photo::before {
    font-size: 3rem;
  }

  .attorney-card__info {
    padding: 12px 16px 16px;
  }

  .attorney-card__head {
    margin-bottom: 8px;
  }

  .attorney-card__career {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  body.page-snap > section.attorneys {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-height: 820px) {
  body.page-snap > section.attorneys,
  .attorneys {
    padding: calc(var(--header-height) + 8px) 0 20px;
  }

  .attorneys .section-header {
    margin-bottom: 16px;
  }

  .attorney-card__photo {
    max-height: 300px;
  }

  .attorney-card__photo::before {
    font-size: 2.5rem;
  }

  .attorney-card__info {
    padding: 10px 14px 14px;
  }

  .attorney-card__career {
    font-size: 0.6875rem;
  }
}

@media (min-width: 769px) and (max-height: 720px) {
  .attorneys .section-desc {
    display: none;
  }

  .attorneys .section-header {
    margin-bottom: 12px;
  }

  .attorney-card__photo {
    max-height: 260px;
  }

  .attorney-card__info {
    padding: 10px 12px 12px;
  }
}

/* 업무분야 — 8카드 한 화면 (page-snap) */
body.page-snap > section.practice {
  justify-content: center;
  padding: calc(var(--header-height) + 8px) 0 20px;
  overflow: hidden;
}

body.page-snap .practice .section-header {
  margin-bottom: 20px;
}

body.page-snap .practice .section-desc {
  font-size: 0.875rem;
  line-height: 1.5;
}

body.page-snap .practice__grid {
  gap: 12px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

body.page-snap .practice-card {
  padding: 16px 18px;
}

body.page-snap .practice-card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

body.page-snap .practice-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

body.page-snap .practice-card > p {
  display: none;
}

body.page-snap .practice-card ul {
  margin-bottom: 10px;
}

body.page-snap .practice-card li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 2px 0;
  padding-left: 10px;
}

body.page-snap .practice-card li:nth-child(n+3) {
  display: none;
}

body.page-snap .practice-card__link {
  font-size: 0.75rem;
}

@media (min-width: 769px) and (max-height: 900px) {
  body.page-snap > section.practice {
    padding: calc(var(--header-height) + 6px) 0 16px;
  }

  body.page-snap .practice .section-header {
    margin-bottom: 14px;
  }

  body.page-snap .practice .section-title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    margin-bottom: 8px;
  }

  body.page-snap .practice .section-label {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  body.page-snap .practice .section-desc {
    font-size: 0.8125rem;
  }

  body.page-snap .practice__grid {
    gap: 8px;
  }

  body.page-snap .practice-card {
    padding: 12px 14px;
  }

  body.page-snap .practice-card__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
  }

  body.page-snap .practice-card h3 {
    font-size: 0.875rem;
    margin-bottom: 4px;
  }

  body.page-snap .practice-card ul {
    margin-bottom: 6px;
  }

  body.page-snap .practice-card li {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0;
  }

  body.page-snap .practice-card li:nth-child(n+2) {
    display: none;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  body.page-snap .practice .section-desc {
    display: none;
  }

  body.page-snap .practice .section-header {
    margin-bottom: 10px;
  }

  body.page-snap .practice-card ul {
    display: none;
  }

  body.page-snap .practice-card {
    padding: 10px 12px;
  }

  body.page-snap .practice-card h3 {
    margin-bottom: 6px;
  }
}

@media (max-width: 1024px) {
  body.page-snap .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html.page-snap,
  body.page-snap {
    scroll-snap-type: y proximity;
  }

  body.page-snap > section,
  body.page-snap > footer.footer {
    min-height: auto;
    scroll-snap-stop: normal;
    display: block;
  }

  body.page-snap .stats,
  body.page-snap .about,
  body.page-snap .practice,
  body.page-snap .attorneys,
  body.page-snap .cases,
  body.page-snap .news,
  body.page-snap .consultation,
  body.page-snap .contact {
    padding: 80px 0;
  }

  body.page-snap .footer {
    min-height: auto;
    padding: 64px 0 32px;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn--gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.btn--outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-navy-light);
}

.btn--full {
  width: 100%;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled,
.header--solid {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header__menu a.is-active {
  color: var(--color-gold);
}

.header__menu a.is-active::after {
  width: 100%;
}

.page-info,
.page-practice,
.page-cases,
.page-attorney {
  padding-top: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo-ko {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.header__logo-en {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

.header__nav {
  display: none;
}

.header__menu {
  display: flex;
  gap: 36px;
}

.header__menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  position: relative;
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.header__menu a:hover {
  color: var(--color-white);
}

.header__menu a:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
  padding: 10px 24px;
  font-size: 0.8125rem;
}

.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .header__nav {
    display: block;
  }
  .header__cta {
    display: inline-flex;
  }
  .header__toggle {
    display: none;
  }
}

/* Mobile nav overlay */
.header__nav.open {
  display: block;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--color-navy);
  padding: 48px 24px;
}

.header__nav.open .header__menu {
  flex-direction: column;
  gap: 24px;
}

.header__nav.open .header__menu a {
  font-size: 1.25rem;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.hero__bg-slides {
  position: absolute;
  inset: 0;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  z-index: 0;
}

.hero__bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease;
}

.hero__bg-slide.active img {
  transform: scale(1.06);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.65) 50%, rgba(10, 22, 40, 0.8) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(196, 163, 90, 0.1) 0%, transparent 60%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height) + 48px) 24px 120px;
}

.hero__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.2;
  color: var(--color-white);
}

.hero__title-line--accent {
  color: var(--color-gold);
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.75rem);
}

.hero__desc {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero__scroll span {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__slides {
  position: absolute;
  bottom: 100px;
  right: 48px;
  z-index: 2;
  max-width: 320px;
  display: none;
}

.hero__slide {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.hero__slide.active {
  display: block;
  animation: fadeIn 1s ease;
}

.hero__indicators {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__indicator {
  width: 32px;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition);
}

.hero__indicator.active {
  background: var(--color-gold);
  width: 48px;
}

.hero__indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px) {
  .hero__slides {
    display: block;
  }
}

/* ========================================
   Stats
   ======================================== */
.stats {
  padding: 100px 0;
  background: var(--color-off-white);
}

.stats__header {
  text-align: center;
  margin-bottom: 56px;
}

.stats__note {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-top: 8px;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--color-white);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card__suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-left: 2px;
}

.stat-card__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 16px 0 8px;
}

.stat-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 120px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.about__visual {
  position: relative;
}

.about__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}

.about__image-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--color-navy-light);
}

.about__image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.about__image:hover .about__image-inner img {
  transform: scale(1.03);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 24px 32px;
  text-align: center;
}

.about__badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.about__lead {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.about__lead strong {
  color: var(--color-gold-dark);
}

.about__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 1.9;
}

.about__values li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.about__values li:last-child {
  border-bottom: none;
}

.about__values strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.about__values h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.about__values p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ========================================
   Practice Areas
   ======================================== */
.practice {
  padding: 120px 0;
  background: var(--color-navy);
  color: var(--color-white);
}

.practice .section-title {
  color: var(--color-white);
}

.practice .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.practice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .practice__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .practice__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.practice-card {
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.practice-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 163, 90, 0.3);
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.practice-card__icon svg {
  width: 100%;
  height: 100%;
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.practice-card > p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.7;
}

.practice-card ul {
  margin-bottom: 24px;
}

.practice-card li {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
}

.practice-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.practice-card__link {
  font-size: 0.8125rem;
  color: var(--color-gold);
  font-weight: 500;
}

.practice-card__link:hover {
  color: var(--color-gold-light);
}

/* ========================================
   Attorneys
   ======================================== */
.attorneys {
  padding: 120px 0;
  background: var(--color-off-white);
  overflow: hidden;
}

.attorneys__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .attorneys__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

.attorney-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.attorney-card:hover {
  box-shadow: var(--shadow-lg);
}

.attorney-card__photo {
  aspect-ratio: 4 / 5;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--color-gray-200);
}

.attorney-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  filter: saturate(0.85) brightness(0.75);
}

.attorney-card__photo:has(img)::before {
  display: none;
}

.attorney-card__photo--kang img {
  object-position: 54% 8%;
}

.attorney-card__photo--jeon img {
  object-position: center 28%;
}

.attorney-card__photo:has(img) img {
  filter: none;
}

.attorney-card__photo:has(img)::after {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.2), transparent 40%);
}

.attorney-card__photo::before {
  content: attr(data-initial);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.attorney-card:hover .attorney-card__photo img {
  transform: scale(1.04);
}

.attorney-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.35), transparent 45%);
  pointer-events: none;
}

.attorney-card__info {
  padding: 20px 22px 22px;
}

.attorney-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.attorney-card__identity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.attorney-card__role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.attorney-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.attorney-card__career {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.attorney-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.attorney-card__tags span {
  font-size: 0.625rem;
  padding: 3px 10px;
  background: var(--color-gray-100);
  color: var(--color-navy);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.attorney-card__tag--primary {
  background: var(--color-navy) !important;
  color: var(--color-gold) !important;
}

@media (max-width: 480px) {
  .attorney-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .attorney-card__tags {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* ========================================
   Cases
   ======================================== */
.cases {
  padding: 120px 0;
}

.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  padding: 32px;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
  position: relative;
}

.case-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-card__result {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  background: var(--color-navy);
  color: var(--color-gold);
  margin-bottom: 12px;
}

.case-card__category {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-bottom: 8px;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 12px;
}

.case-card h3 a {
  color: inherit;
  transition: color var(--transition);
}

.case-card h3 a:hover {
  color: var(--color-gold-dark);
}

.case-card > p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-100);
  font-size: 0.75rem;
}

.case-card__footer span {
  color: var(--color-gray-400);
}

.case-card__footer a {
  color: var(--color-gold-dark);
  font-weight: 500;
}

.case-card__footer a:hover {
  color: var(--color-gold);
}

.cases__more {
  text-align: center;
  margin-top: 48px;
}

/* ========================================
   News
   ======================================== */
.news {
  padding: 120px 0;
  background: var(--color-off-white);
}

.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .news__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .news-card--featured {
    grid-row: span 2;
  }
}

.news-card {
  background: var(--color-white);
  padding: 32px;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-gold);
}

.news-card--featured {
  padding: 48px;
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.news-card--featured .news-card__type {
  color: var(--color-gold);
}

.news-card--featured h3 {
  color: var(--color-white);
  font-size: 1.375rem;
}

.news-card--featured p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  margin: 16px 0;
  line-height: 1.7;
}

.news-card--featured time {
  color: rgba(255, 255, 255, 0.4);
}

.news-card__type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
  display: block;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-card time {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

/* ========================================
   Consultation
   ======================================== */
.consultation {
  padding: 120px 0;
  background: var(--color-navy);
  color: var(--color-white);
}

.consultation .section-title {
  color: var(--color-white);
}

.consultation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 1024px) {
  .consultation__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.consultation__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 32px;
}

.consultation__contact {
  margin-bottom: 40px;
}

.consultation__item {
  margin-bottom: 16px;
}

.consultation__label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.consultation__phone {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-gold);
}

.consultation__item a {
  color: rgba(255, 255, 255, 0.8);
}

.consultation__item a:hover {
  color: var(--color-gold);
}

.consultation__steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.step__text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.step__arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

.consultation__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--color-navy);
  color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.checkbox input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-gold);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 120px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.contact__map-image {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  background: var(--color-off-white);
}

.contact__map-canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.contact__map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  transition: color var(--transition);
}

.contact__map-link:hover {
  color: var(--color-navy);
}

.contact__map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(145deg, var(--color-navy) 0%, #243656 100%);
  color: var(--color-white);
}

.contact__map-fallback-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact__map-fallback-address {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact__map-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #03c75a;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background var(--transition);
}

.contact__map-fallback-btn:hover {
  background: #02b351;
  color: var(--color-white);
}

.contact__map-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.55);
  color: var(--color-white);
  text-align: center;
}

.contact__map-overlay p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact__map-overlay span {
  font-size: 0.875rem;
  color: var(--color-gold);
}

.contact__office h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.contact__office dl {
  margin-bottom: 32px;
}

.contact__office dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  margin-top: 16px;
}

.contact__office dt:first-child {
  margin-top: 0;
}

.contact__office dd {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
}

.contact__office dd a:hover {
  color: var(--color-gold-dark);
}

.contact__transport h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.contact__transport li {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.contact__transport strong {
  color: var(--color-navy);
  margin-right: 8px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 2fr;
  }
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  display: block;
  margin-bottom: 8px;
}

.footer__brand p {
  font-size: 0.8125rem;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__links h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__legal {
  font-size: 0.75rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer__disclaimer {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__copy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Page Nav — Right Section Indicator
   ======================================== */
.page-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 0;
}

@media (min-width: 1024px) {
  .page-nav {
    display: flex;
  }
}

.page-nav__track {
  position: absolute;
  right: 5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(196, 163, 90, 0.22);
  pointer-events: none;
  overflow: hidden;
}

.page-nav__progress {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(196, 163, 90, 0.35);
}

.page-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.page-nav__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 12px;
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.1);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 163, 90, 0.15);
}

.page-nav__dot-wrap {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-nav__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(196, 163, 90, 0.75);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.12);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-nav__item.is-active .page-nav__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-navy);
  border-color: rgba(196, 163, 90, 0.35);
}

.page-nav__item.is-active .page-nav__dot {
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  border-color: var(--color-gold);
  box-shadow: 0 0 16px rgba(196, 163, 90, 0.55);
}

.page-nav__item:hover .page-nav__label {
  opacity: 1;
  transform: translateX(0);
}

.page-nav__item:hover .page-nav__dot {
  border-color: var(--color-gold);
  background: rgba(196, 163, 90, 0.35);
  transform: scale(1.15);
}

.page-nav__item.is-active:hover .page-nav__dot {
  transform: scale(1);
}

.page-nav:hover .page-nav__label {
  opacity: 0.75;
  transform: translateX(0);
}

.page-nav:hover .page-nav__item.is-active .page-nav__label,
.page-nav__item:hover .page-nav__label {
  opacity: 1;
}

/* ========================================
   Floating CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.floating-cta__phone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.floating-cta__phone svg {
  width: 22px;
  height: 22px;
}

.floating-cta__phone:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: scale(1.05);
}

.floating-cta__consult {
  padding: 12px 20px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.floating-cta__consult:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .floating-cta {
    bottom: 32px;
    right: 32px;
  }
}
