/* ============================================================
   든든 노무사사무소 — 공통 스타일 (모든 페이지 공유)
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --rose:        #C17A7A;
  --rose-light:  #E8C4C4;
  --rose-pale:   #F9F0F0;
  --gold:        #C9A96E;
  --gold-light:  #E8D5B7;
  --gold-dark:   #A8843A;
  --navy:        #2C3E5C;
  --navy-deep:   #1A2740;
  --charcoal:    #3D3D3D;
  --warm-gray:   #6B6B6B;
  --light-gray:  #F7F5F3;
  --white:       #FFFFFF;
  --cream:       #FDFAF6;
  --kakao:       #FEE500;

  --font-serif:  'Noto Serif KR', 'Playfair Display', serif;
  --font-sans:   'Noto Sans KR', sans-serif;

  --transition:  all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm:   0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
  --radius:      16px;
  --radius-sm:   10px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === LAYOUT === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }

/* === SCROLL PROGRESS BAR === */
#scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  pointer-events: none;
  transition: width 0.1s ease;
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(201,169,110,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.navbar.solid {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(201,169,110,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
  height: 72px;
}
.nav-logo {
  display: flex; flex-direction: column;
  line-height: 1.2; margin-right: auto;
  text-decoration: none;
}
.nav-logo-kr {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); transition: color 0.3s;
}
.navbar.scrolled .nav-logo-kr,
.navbar.solid .nav-logo-kr { color: var(--navy); }
.nav-logo-sub {
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65); transition: color 0.3s;
}
.navbar.scrolled .nav-logo-sub,
.navbar.solid .nav-logo-sub { color: var(--warm-gray); }

.nav-links { display: flex; gap: 4px; }
.nav-links li a {
  display: block; padding: 6px 14px;
  font-size: 0.87rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.navbar.scrolled .nav-links li a,
.navbar.solid .nav-links li a { color: var(--charcoal); }
.navbar.scrolled .nav-links li a:hover,
.navbar.scrolled .nav-links li a.active,
.navbar.solid .nav-links li a:hover,
.navbar.solid .nav-links li a.active {
  color: var(--rose);
  background: var(--rose-pale);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--kakao), #FDD000);
  color: #3A1D1D;
  border-radius: 24px;
  font-size: 0.82rem; font-weight: 700;
  transition: var(--transition); white-space: nowrap;
  box-shadow: 0 4px 14px rgba(253,208,0,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(253,208,0,0.45); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.navbar.scrolled .nav-hamburger span,
.navbar.solid .nav-hamburger span { background: var(--navy); }

/* Mobile Menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(255,255,255,0.99);
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(201,169,110,0.2);
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.mobile-menu.open {
  display: flex; max-height: 600px;
}
.mm-link {
  padding: 13px 4px; font-size: 0.96rem; color: var(--charcoal);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s; display: block;
}
.mm-link:hover { color: var(--rose); }
.mm-link:last-child { border-bottom: none; }
.mm-cta {
  margin-top: 12px; padding: 13px;
  text-align: center;
  background: linear-gradient(135deg, var(--kakao), #FDD000);
  color: #3A1D1D; border-radius: 12px;
  font-weight: 700; border-bottom: none;
}

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; padding: 5px 18px;
  background: linear-gradient(135deg, rgba(193,122,122,0.1), rgba(201,169,110,0.1));
  border: 1px solid rgba(193,122,122,0.22);
  border-radius: 24px; font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--rose); margin-bottom: 14px; font-weight: 700;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--navy); margin-bottom: 12px; line-height: 1.3;
}
.section-sub { font-size: 0.98rem; color: var(--warm-gray); line-height: 1.75; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--kakao), #FDD000);
  color: #3A1D1D; font-weight: 700; font-size: 0.92rem;
  border-radius: 32px; transition: var(--transition);
  box-shadow: 0 6px 24px rgba(253,208,0,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(253,208,0,0.45); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white); font-size: 0.92rem;
  border-radius: 32px; transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }

.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--rose); color: var(--white);
  font-size: 0.92rem; font-weight: 600;
  border-radius: 32px; transition: var(--transition);
  box-shadow: 0 6px 20px rgba(193,122,122,0.3);
}
.btn-solid:hover { transform: translateY(-2px); background: #b86a6a; box-shadow: 0 8px 26px rgba(193,122,122,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  border: 1.5px solid var(--rose);
  color: var(--rose); font-size: 0.88rem; font-weight: 600;
  border-radius: 32px; transition: var(--transition);
}
.btn-ghost:hover { background: var(--rose); color: var(--white); }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--rose);
  transition: gap 0.2s;
}
.btn-text:hover { gap: 10px; }

/* === PAGE HERO (서브페이지용) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #3a2c4a 60%, var(--navy) 100%);
  padding: 140px 24px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(193,122,122,0.12) 0%, transparent 55%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-badge {
  display: inline-block; padding: 5px 18px;
  border: 1px solid rgba(201,169,110,0.4); border-radius: 24px;
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold-light);
  margin-bottom: 18px; font-weight: 600;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white);
  margin-bottom: 14px; line-height: 1.3;
}
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* === BACK TO HOME BAR === */
.back-home-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0;
}
.back-home-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.back-home-left {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--warm-gray);
}
.back-home-left a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--rose); font-weight: 600;
  transition: gap 0.2s;
}
.back-home-left a:hover { gap: 8px; }
.back-home-sep { color: rgba(0,0,0,0.2); }
.back-home-right {
  display: flex; align-items: center; gap: 10px;
}
.bh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  transition: var(--transition);
}
.bh-btn-home {
  background: var(--navy); color: var(--white);
}
.bh-btn-home:hover { background: var(--navy-deep); }
.bh-btn-kakao {
  background: var(--kakao); color: #3A1D1D;
}
.bh-btn-kakao:hover { opacity: 0.9; }

/* === PAGE END NAV === */
.page-end-nav {
  background: var(--light-gray);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 48px 24px;
}
.pen-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.pen-title {
  font-size: 0.78rem; letter-spacing: 0.15em;
  color: var(--warm-gray); font-weight: 600;
  text-transform: uppercase;
}
.pen-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.pen-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 28px;
  font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: var(--white); color: var(--charcoal);
  transition: var(--transition);
}
.pen-link:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pen-link.home { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pen-link.home:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.pen-link.kakao { background: var(--kakao); color: #3A1D1D; border-color: var(--kakao); }
.pen-link.kakao:hover { opacity: 0.9; color: #3A1D1D; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  justify-content: center; margin-top: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* === CARD BASE === */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* === TAGS === */
.tag {
  display: inline-block; padding: 3px 12px;
  border-radius: 12px; font-size: 0.76rem; font-weight: 700;
}
.tag-rose { background: rgba(193,122,122,0.1); color: var(--rose); }
.tag-gold { background: rgba(201,169,110,0.12); color: var(--gold-dark); }
.tag-navy { background: rgba(44,62,92,0.08); color: var(--navy); }

/* === SCROLL ANIMATION === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* === FOOTER === */
.footer {
  background: var(--navy-deep); padding: 64px 24px 32px;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {}
.footer-logo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.footer-logo-kr { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.footer-logo-sub { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--gold-light); }
.footer-brand-desc { font-size: 0.84rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.1); }

.footer-col-title {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold-light); margin-bottom: 20px; text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; }
.footer-contact-list li i { color: var(--gold); margin-top: 2px; width: 14px; flex-shrink: 0; }

.footer-bottom {
  max-width: 1160px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* === FLOATING KAKAO === */
.float-kakao {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--kakao), #FDD000);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #3A1D1D;
  box-shadow: 0 8px 28px rgba(253,208,0,0.45);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.float-kakao.show { opacity: 1; pointer-events: auto; }
.float-kakao:hover { transform: scale(1.1) translateY(-3px); }
.float-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: var(--white);
  font-size: 0.75rem; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-kakao:hover .float-tooltip { opacity: 1; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section-pad { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .back-home-inner { height: auto; padding: 10px 20px; flex-wrap: wrap; gap: 8px; }
  .back-home-right { gap: 8px; }
  .pen-links { gap: 8px; }
  .pen-link { padding: 9px 16px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
