/* =============================================
   JR MEDIA - 종합광고대행사 공통 스타일
   Bootstrap 5 기반, 최소한의 커스텀 CSS
   ============================================= */

/* Google Fonts - Noto Sans KR (무료 폰트) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Montserrat:wght@600;700;800;900&display=swap');

/* ---- 기본 설정 ---- */
:root {
  --primary:    #1a3a6b;   /* 네이비 블루 - 신뢰감 */
  --secondary:  #c8960c;   /* 골드 - 프리미엄 */
  --dark:       #0d1f3c;
  --light-bg:   #f4f7fb;
  --text-dark:  #1a1a2e;
  --text-muted: #6c757d;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
}

/* ---- 네비게이션 ---- */
.navbar-brand .brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff !important;
  letter-spacing: 1px;
}
.navbar-brand .brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 2px;
  display: block;
  line-height: 1;
}
.navbar {
  background: var(--dark) !important;
  padding: 0.6rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar.scrolled {
  padding: 0.3rem 0;
  background: rgba(13,31,60,0.97) !important;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.8rem 1rem !important;
  transition: color 0.2s;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}
.btn-inquiry-nav {
  background: var(--secondary);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5rem 1.2rem !important;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-inquiry-nav:hover {
  background: #a87a0a;
  color: #fff !important;
}

/* ---- 히어로 섹션 ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.5s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.9) 0%, rgba(26,58,107,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-title span {
  color: var(--secondary);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ---- 섹션 공통 ---- */
.section-title {
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---- 카드 스타일 ---- */
.service-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(26,58,107,0.15);
}
.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.service-card .card-body {
  padding: 1.5rem;
}
.service-card .card-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}
.media-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.5rem;
  transition: background 0.2s;
}
.service-card:hover .media-icon {
  background: var(--secondary);
}

/* ---- CTA 플로팅 버튼 ---- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-cta a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-cta a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.floating-cta .btn-kakao {
  background: #FEE500;
  color: #3A1D1D;
}
.floating-cta .btn-inquiry {
  background: var(--primary);
  color: #fff;
}
.floating-cta .btn-top {
  background: var(--secondary);
  color: #fff;
}

/* ---- 카운터 섹션 ---- */
.counter-section {
  background: var(--dark);
  padding: 4rem 0;
}
.counter-item {
  text-align: center;
  padding: 1.5rem;
}
.counter-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}
.counter-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ---- 클라이언트 로고 ---- */
.client-logo-wrap {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: box-shadow 0.2s;
}
.client-logo-wrap:hover {
  box-shadow: 0 4px 20px rgba(26,58,107,0.1);
}
.client-logo-wrap span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-align: center;
}

/* ---- 포트폴리오 카드 ---- */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
}
.portfolio-card:hover img {
  transform: scale(1.08);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay h5 {
  color: #fff;
  font-weight: 700;
  margin: 0;
}
.portfolio-overlay span {
  color: var(--secondary);
  font-size: 0.8rem;
}

/* ---- 페이지 헤더 ---- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/seoul-billboard.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.page-header-content {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.page-header .breadcrumb-item.active {
  color: var(--secondary);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ---- 푸터 ---- */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
footer .footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}
footer .footer-brand span {
  color: var(--secondary);
}
footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--secondary);
}
footer .footer-info {
  font-size: 0.82rem;
  line-height: 1.9;
}
footer .footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 1.5rem 0;
}
footer .footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- 버튼 ---- */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-custom:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.btn-gold:hover {
  background: #a87a0a;
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- 배경 섹션 ---- */
.bg-primary-dark {
  background: var(--dark);
}
.bg-light-custom {
  background: var(--light-bg);
}
.bg-primary-custom {
  background: var(--primary);
}

/* ---- 인포 박스 ---- */
.info-box {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.info-box.gold {
  border-left-color: var(--secondary);
}

/* ---- 미디어 카드 ---- */
.media-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}
.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(26,58,107,0.18);
}
.media-card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.media-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ---- 문의 폼 ---- */
.contact-form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(26,58,107,0.12);
}
.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}
.form-control, .form-select {
  border: 1.5px solid #d0dae8;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

/* ---- 타임라인 ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--secondary);
  font-size: 1rem;
}

/* ---- 지도 ---- */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ---- 애니메이션 ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 반응형 ---- */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem;
  }
  .hero-stat-num {
    font-size: 1.5rem;
  }
  .counter-num {
    font-size: 2rem;
  }
  .floating-cta {
    right: 12px;
    bottom: 20px;
  }
  .floating-cta a {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .page-header {
    padding: 6rem 0 2rem;
  }
}

/* ---- 스크롤바 ---- */
/*::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}*/

/* ---- 슬라이더 도트 ---- */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators .active {
  background: var(--secondary);
}



.carousel-control-next, .carousel-control-prev { z-index:10;}