/* =============================================
   신윤식 변호사 법률사무소 - 공통 스타일시트
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ── CSS 변수 ─────────────────────────────── */
:root {
  --navy:      #1C2B4A;
  --navy-dark: #111e35;
  --gold:      #C5973A;
  --gold-lt:   #e8b84b;
  --cream:     #F8F6F1;
  --gray:      #6b7280;
  --light:     #f3f4f6;
  --white:     #ffffff;
  --text:      #1f2937;
  --border:    #ddd8cc;
  --shadow:    0 4px 24px rgba(28,43,74,0.12);
  --radius:    6px;
  --transition: 0.3s ease;
}

/* ── 기본 초기화 ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 공통 레이아웃 ─────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 50px;
}
.gold-line {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-primary {
  background: var(--gold); color: var(--white);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ── 네비게이션 ────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
  padding: 0;
}
#navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.nav-logo span { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.8; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 0; }
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-tel {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 700; font-size: 1rem;
}
.nav-tel svg { color: var(--gold); }
/* 햄버거 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── 플로팅 CTA ─────────────────────────────── */
.floating-btns {
  position: fixed; right: 20px; bottom: 90px;
  display: flex; flex-direction: column; gap: 10px; z-index: 900;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer; transition: var(--transition);
  font-size: 1.4rem;
  border: none;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.12); }
.float-phone { background: var(--gold); color: var(--white); }
.float-kakao { background: #FEE500; color: #3C1E1E; }
.float-top   { background: var(--navy); color: var(--white); font-size: 1rem; }

/* ── 히어로 섹션 ────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4070 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5973a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(197,151,58,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 24px; letter-spacing: 0.08em;
}
.hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--white);
  line-height: 1.3; margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem; line-height: 1.9;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 50px;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(197,151,58,0.3);
  border-radius: 8px; padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem; font-weight: 900; color: var(--gold);
  display: block;
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.82rem; margin-top: 4px; }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-emblem {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(197,151,58,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  animation: pulse-ring 3s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,151,58,0.15); }
  50% { box-shadow: 0 0 0 24px rgba(197,151,58,0); }
}
.emblem-icon { font-size: 5rem; margin-bottom: 12px; }
.emblem-text {
  font-family: 'Noto Serif KR', serif;
  color: var(--white); text-align: center;
  font-size: 1.1rem; font-weight: 700; line-height: 1.5;
}
.emblem-sub { color: var(--gold); font-size: 0.85rem; margin-top: 6px; }

/* ── 신뢰 배지 바 ──────────────────────────── */
.trust-bar {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 28px 0;
}
.trust-items {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 28px;
  border-right: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 700; color: var(--navy);
}
.trust-item:last-child { border-right: none; }
.trust-item .icon { font-size: 1.4rem; }

/* ── 업무 분야 카드 ────────────────────────── */
.practice-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.practice-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gold);
  transform: scaleX(0); transition: var(--transition);
}
.practice-card:hover::before { transform: scaleX(1); }
.practice-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.practice-card:hover .card-link { color: var(--gold); }
.card-icon { font-size: 2.8rem; margin-bottom: 16px; }
.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.18rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.card-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.75; margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.tag {
  background: var(--light); color: var(--navy);
  font-size: 0.74rem; padding: 3px 10px; border-radius: 20px;
}
.card-link { color: var(--gray); font-size: 0.85rem; font-weight: 700; transition: var(--transition); }

/* ── 변호사 소개 ────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.about-photo-box {
  background: var(--navy);
  border-radius: 12px; padding: 40px;
  text-align: center; color: var(--white);
  position: sticky; top: 90px;
}
.photo-placeholder {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(197,151,58,0.2);
  border: 3px solid var(--gold);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.about-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 6px;
}
.about-title { color: var(--gold); font-size: 0.9rem; margin-bottom: 24px; }
.about-contact-items { text-align: left; }
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .lbl { color: var(--gold); font-weight: 700; min-width: 50px; }

.career-list { display: flex; flex-direction: column; gap: 0; }
.career-item {
  display: flex; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.career-item:last-child { border-bottom: none; }
.career-dot {
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold);
  margin-top: 8px; flex-shrink: 0;
}
.career-text strong { color: var(--navy); display: block; font-weight: 700; }
.career-text span { font-size: 0.88rem; color: var(--gray); }

/* ── 상담 프로세스 ─────────────────────────── */
.process-bg { background: var(--cream); }
.process-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 20px 24px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 14px;
}
.step-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-desc  { font-size: 0.83rem; color: var(--gray); }
.step-arrow {
  font-size: 1.5rem; color: var(--gold);
  padding: 0 4px; margin-top: -28px;
}

/* ── FAQ ────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.98rem; font-weight: 700; color: var(--navy);
  text-align: left;
  transition: var(--transition);
}
.faq-q:hover { background: var(--cream); }
.faq-q.open { background: var(--navy); color: var(--white); }
.faq-q .q-icon { color: var(--gold); font-size: 1.1rem; font-weight: 900; flex-shrink: 0; }
.faq-q .arrow { margin-left: auto; transition: var(--transition); font-size: 0.9rem; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 20px 24px;
  background: var(--cream); font-size: 0.92rem;
  line-height: 1.8; color: var(--text);
  border-top: 1px solid var(--border);
}
.faq-a.open { display: block; }

/* ── CTA 배너 ───────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 70px 0; text-align: center;
}
.cta-banner h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white); margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1rem; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-tel-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--white);
  padding: 16px 36px; border-radius: 6px;
  font-size: 1.15rem; font-weight: 700;
  transition: var(--transition);
}
.cta-tel-btn:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.cta-kakao-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #FEE500; color: #3C1E1E;
  padding: 16px 36px; border-radius: 6px;
  font-size: 1.15rem; font-weight: 700;
  transition: var(--transition);
}
.cta-kakao-btn:hover { background: #ffd700; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── 상담 폼 ────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-info h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 24px;
}
.info-row {
  display: flex; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.info-row .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; color: var(--navy); font-weight: 700; }
.info-row span { color: var(--gray); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem; color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: var(--transition);
}
.form-submit:hover { background: var(--gold); }

/* ── 지도 섹션 ─────────────────────────────── */
.map-wrap {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.map-placeholder {
  background: var(--cream); height: 300px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--gray);
}
.map-placeholder .icon { font-size: 2.5rem; }

/* ── 푸터 ───────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 24px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name {
  font-family: 'Noto Serif KR', serif;
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.84rem; line-height: 1.9; }
.footer-col h4 { color: var(--gold); font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.84rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px; font-size: 0.78rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
}
.footer-bottom .disclaimer { color: rgba(255,255,255,0.45); font-size: 0.75rem; margin-top: 6px; }

/* ── 서비스 페이지 공통 ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 120px 0 70px;
  text-align: center; color: var(--white);
}
.page-hero .breadcrumb {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900;
  margin-bottom: 16px;
}
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.content-section { padding: 70px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.content-box { background: var(--cream); border-radius: 10px; padding: 32px; }
.content-box h3 {
  font-family: 'Noto Serif KR', serif;
  color: var(--navy); font-size: 1.2rem; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
}
.case-list li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; font-size: 0.92rem;
}
.case-list li::before { content: '✓'; color: var(--gold); font-weight: 900; flex-shrink: 0; }
.case-list li:last-child { border-bottom: none; }

.side-cta {
  background: var(--navy); border-radius: 10px;
  padding: 28px 24px; color: var(--white);
  text-align: center; position: sticky; top: 88px;
}
.side-cta h4 { font-family: 'Noto Serif KR', serif; margin-bottom: 8px; font-size: 1.05rem; }
.side-cta p  { font-size: 0.83rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.side-tel {
  display: flex; flex-direction: column; gap: 10px;
}
.side-tel a {
  display: block; padding: 12px;
  border-radius: 6px; font-weight: 700; font-size: 0.92rem;
  transition: var(--transition);
}
.side-tel .tel-main { background: var(--gold); color: var(--white); }
.side-tel .tel-kakao { background: #FEE500; color: #3C1E1E; }
.side-tel a:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── 반응형 ─────────────────────────────────── */
@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; }
  .about-photo-box { position: static; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .content-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-visual   { display: none; }
  .hero-btns     { justify-content: center; }
  .hero-stats    { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-tel { display: none; }
  .nav-toggle    { display: flex; }
  #navbar.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-dark); padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .trust-item    { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 20px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .process-steps { flex-direction: column; }
  .step-arrow    { transform: rotate(90deg); margin: 0; }
  .cta-btns      { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .practice-grid { grid-template-columns: 1fr; }
  .hero-stats    { grid-template-columns: 1fr 1fr; }
  .section       { padding: 50px 0; }
  .hero          { min-height: auto; padding: 110px 0 60px; }
}

/* ── 페이지 전환 애니메이션 ──────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ── 스크롤 나타나기 ─────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
