:root {
  color-scheme: dark;
  color: #1c1f28;
  background: #f7f8fb;
  font-family: 'Apple SD Gothic Neo', Pretendard, 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  background: linear-gradient(180deg, #fdfdff 0%, #eef1f8 100%);
}

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

.page-layout {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
  position: relative;
}

.badge-image {
  position: fixed;
  top: 20px;
  right: 20px;
  width: clamp(180px, 22vw, 300px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.badge-image img {
  width: 100%;
  height: auto;
  display: block;
}


.page-layout::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(200px, 30vw, 400px);
  height: auto;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect fill="%23ffffff" width="1" height="1" opacity="0.05"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
  z-index: 1;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-copy {
  padding: 28px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(32, 42, 71, 0.08);
}

.eyebrow {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111827;
}

.hero-text {
  margin: 24px 0 0;
  color: #4b5563;
  font-size: 1.05rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  min-height: 70vh;
  align-content: center;
}

.hero-image {
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-copy {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-tagline {
  margin: 0 0 12px;
  color: #b88715;
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* 줄바꿈 시 어절(단어) 단위로만 끊기도록 (한글) */
  word-break: keep-all;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 5;
}

/* 상단 문구 강제 줄바꿈: 기본은 숨김(데스크톱 한 줄), 모바일에서만 표시 */
.tagline-break {
  display: none;
}

.hero-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 0;
}

.hero-role {
  font-size: clamp(1.4rem, 2.1vw, 1.6rem);
  color: #111827;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  color: #111827;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: Pretendard, 'Noto Sans KR', sans-serif;
}

.hero-text {
  margin: 64px 0 0;
  color: #4b5563;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
  font-family: '굴림', Gulim, sans-serif;
  font-stretch: 70%;
  letter-spacing: -0.01em;
}


@media (max-width: 840px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 2.4rem;
  }
}
.card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 28px;
}

.about-section,
.contact-section {
  background: transparent;
  padding: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section-header span {
  color: #4f46e5;
  font-weight: 700;
  font-size: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #111827;
}

.about-section p,
.contact-section p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.label {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 0.95rem;
}

.value {
  margin: 0;
  font-weight: 600;
  color: #111827;
  font-size: 1.05rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: #4f46e5;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.18);
}

.hint {
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.95rem;
}

.consultation-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 72px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d4af37 0%, #b88715 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
  transition: all 0.3s ease;
}

.consultation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.36);
}

.phone-icon {
  font-size: 1.2rem;
}

.contact-section {
  display: none;
}

.badge-wrap {
  display: none;
}

.directions-section {
  margin-top: 8px;
  padding: 28px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(32, 42, 71, 0.08);
}

.directions-section p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1rem;
}

.map-embed {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
}

.map-hint {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

.direction-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.direction-links .consultation-btn {
  margin-top: 0;
}

.directions-section .consultation-btn {
  margin-top: 0;
}

.contact-form-section {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(32, 42, 71, 0.08);
}

.contact-form-section p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1rem;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  color: #374151;
  font-weight: 600;
  font-size: 0.98rem;
}

.inquiry-form input[type='text'],
.inquiry-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form input[type='text']:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
}

.inquiry-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin: 4px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.success {
  color: #047857;
}

.form-status.error {
  color: #b91c1c;
}

@media (max-width: 840px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-layout {
    padding: 24px 0 48px;
  }

  .hero-copy {
    padding: 24px;
  }

  .card {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  button {
    width: 100%;
  }
}

/* ===== 모바일 반응형 보정 (화면 폭 맞춤) ===== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 840px) {
  .hero-section {
    min-height: auto;
  }

  /* 상단 문구가 화면을 넘지 않도록 줄바꿈 허용 (핵심 수정) */
  .hero-tagline {
    white-space: normal;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  /* 모바일에서 "당신과 함께하는 / 법률전문 전략파트너"로 고정 줄바꿈 */
  .tagline-break {
    display: inline;
  }

  .hero-text {
    margin-top: 24px;
  }

  .consultation-btn {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  /* 장식용 뱃지가 본문을 가리지 않게 축소 */
  .badge-image {
    width: 110px;
    top: 12px;
    right: 12px;
  }

  .hero-tagline {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-role {
    font-size: 1.2rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  /* 카드 좌우 여백 축소로 내용 폭 확보 */
  .directions-section,
  .contact-form-section {
    padding: 22px 18px;
  }

  .consultation-btn {
    width: 100%;
    justify-content: center;
  }

  .map-embed iframe {
    height: 240px;
  }
}
