/* ============================================================
   앤스브릭 커스텀 스타일
   Bootstrap 5 + Swiper + AOS + BaguetteBox + animate.css
   Primary: #ff5440 | Dark: #403534 | Light: #f5f6f8
   ============================================================ */

/* ── 폰트 ── */
body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ── Bootstrap 색상 오버라이드 ── */
:root {
  --bs-primary: #ff5440;
  --bs-primary-rgb: 255, 84, 64;
  --bs-dark: #403534;
  --bs-dark-rgb: 64, 53, 52;
  --color-light-bg: #f5f6f8;
  --color-section-bg: #F7F7F7;
}

.btn-primary {
  --bs-btn-bg: #ff5440;
  --bs-btn-border-color: #ff5440;
  --bs-btn-hover-bg: #e8432f;
  --bs-btn-hover-border-color: #e8432f;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: #ff5440;
  --bs-btn-border-color: #ff5440;
  --bs-btn-hover-bg: #ff5440;
  --bs-btn-hover-color: #fff;
}
.btn-dark {
  --bs-btn-bg: #403534;
  --bs-btn-border-color: #403534;
  --bs-btn-hover-bg: #302828;
}
.text-primary  { color: #ff5440 !important; }
.bg-primary    { background-color: #ff5440 !important; }
.border-primary{ border-color: #ff5440 !important; }

/* ── 네비게이션 ── */
#navbar {
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#navbar.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
#navbar .navbar-brand img { height: 36px; }
#navbar .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #fff !important;
  transition: color 0.2s;
}
#navbar.scrolled .nav-link { color: #403534 !important; }
#navbar .nav-link:hover,
#navbar .nav-link.active { color: #ff5440 !important; }
#navbar .navbar-toggler { border-color: rgba(255,255,255,0.5); }
#navbar.scrolled .navbar-toggler { border-color: #ddd; }
#navbar .dropdown-menu { border: none; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-radius: 12px; }
#navbar .dropdown-item { font-size: 0.88rem; font-weight: 600; padding: 0.6rem 1.2rem; }
#navbar .dropdown-item:hover { color: #ff5440; background: rgba(255,84,64,0.06); }

/* ══════════════════════════════════════════
   히어로 슬라이더 (Swiper)
══════════════════════════════════════════ */
#hero {
  height: 100vh;
  min-height: 600px;
}
.hero-swiper {
  height: 100%;
  width: 100%;
}
.hero-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.22) 60%, transparent 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: 8%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
  max-width: 640px;
}
.hero-title {
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-accent { color: #ff5440; }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  background: rgba(0,0,0,0.25);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* Swiper 히어로 — 페이지네이션 & 버튼 */
.hero-pagination {
  bottom: 30px !important;
}
.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: all 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #ff5440;
  width: 30px;
  border-radius: 5px;
}
.hero-btn-prev,
.hero-btn-next {
  color: rgba(255,255,255,0.75) !important;
  --swiper-navigation-size: 28px;
}
.hero-btn-prev:hover,
.hero-btn-next:hover { color: #fff !important; }

/* ── animate.css 히어로 캡션 기본 숨김 ── */
.hero-caption .hero-title,
.hero-caption .hero-desc,
.hero-caption .btn {
  opacity: 0;
}
.hero-caption .animate__animated {
  opacity: 1;
}

/* ══════════════════════════════════════════
   섹션 공통
══════════════════════════════════════════ */
.section-label {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff5440;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
.section-title mark {
  background: none;
  color: #ff5440;
  padding: 0;
}
.section-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
}

/* ── 카드 ── */
.ak-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.ak-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── OUR SERVICE ── */
.service-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
}
.service-num {
  width: 44px; height: 44px;
  background: #ff5440;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── 브릭 통계 섹션 ── */
.stats-section {
  background: url('/img/block_img.jpg') center/cover no-repeat;
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,10,8,0.72);
}
.stats-section .container { position: relative; z-index: 1; }
.stat-number {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: #ff5440;
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ══════════════════════════════════════════
   플랫폼 Swiper
══════════════════════════════════════════ */
.platform-swiper {
  padding-bottom: 48px !important;
}
.platform-swiper .swiper-slide {
  height: auto;
}
.platform-pagination {
  bottom: 0 !important;
}
.platform-pagination .swiper-pagination-bullet-active {
  background: #ff5440;
}

/* ── 실적 카운터 ── */
.counter-section { background: #403534; }
.counter-num {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: #ff5440;
  line-height: 1;
}

/* ══════════════════════════════════════════
   후기 Swiper
══════════════════════════════════════════ */
.testimonial-swiper {
  padding-bottom: 56px !important;
}
.testimonial-swiper .swiper-slide {
  height: auto;
}
.testimonial-card {
  background: var(--color-light-bg);
  border-radius: 16px;
  padding: 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: #ff5440;
  opacity: 0.15;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: serif;
  line-height: 1;
}
.testimonial-author { font-weight: 700; color: #403534; }
.testimonial-company { font-size: 0.82rem; color: #999; }
.testimonial-pagination {
  bottom: 4px !important;
}
.testimonial-pagination .swiper-pagination-bullet-active {
  background: #ff5440;
}
.testimonial-btn-prev,
.testimonial-btn-next {
  color: #403534 !important;
  --swiper-navigation-size: 24px;
  top: auto !important;
  bottom: 0px;
}
.testimonial-btn-prev { left: 8px !important; }
.testimonial-btn-next { right: 8px !important; }

/* ── CONTACT CTA ── */
.cta-section { background: #ff5440; }

/* ══════════════════════════════════════════
   포트폴리오
══════════════════════════════════════════ */
.filter-btn {
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #888;
  padding: 0.5rem 1.2rem;
  position: relative;
  transition: color 0.3s;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: #ff5440;
  transition: all 0.3s;
  transform: translateX(-50%);
}
.filter-btn.active,
.filter-btn:hover { color: #ff5440; }
.filter-btn.active::after { width: 100%; }

.portfolio-item-wrap {
  position: relative;
}
.portfolio-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  cursor: pointer;
  background: #f0f0f0;
  display: block;
}
.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.portfolio-thumb:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,84,64,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.portfolio-thumb:hover .portfolio-overlay { background: rgba(255,84,64,0.28); }
.portfolio-overlay svg {
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-thumb:hover .portfolio-overlay svg { opacity: 1; }

/* portfolio-thumb 가 a 태그 안에 있을 때 */
a .portfolio-thumb { display: block; }

.portfolio-info { padding: 0.6rem 0.2rem; }
.portfolio-title { font-weight: 600; font-size: 0.88rem; color: #1a1a1a; margin-bottom: 0.1rem; }
.portfolio-cat { font-size: 0.78rem; color: #ff5440; margin-bottom: 0; }

/* BaguetteBox 캡션 커스텀 */
#baguette-img { border-radius: 6px; }
#baguetteBox-overlay { background: rgba(0,0,0,0.9) !important; }
.baguetteBox-button { background: rgba(255,84,64,0.85) !important; border-radius: 8px !important; }

/* ── 어드민 ── */
.admin-sidebar { width: 240px; min-height: 100vh; background: #1a1a2e; }
.admin-nav-item { color: rgba(255,255,255,0.6); text-decoration: none; padding: 0.75rem 1.2rem; display: flex; align-items: center; gap: 0.75rem; border-radius: 8px; margin: 2px 8px; transition: all 0.2s; font-size: 0.88rem; font-weight: 500; }
.admin-nav-item:hover, .admin-nav-item.active { background: #ff5440; color: #fff; }
.admin-content { flex: 1; background: #f0f2f5; min-height: 100vh; }

/* ── 푸터 ── */
footer { background: #1a1a1a; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #ff5440; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: #ff5440; background: #ff5440; color: #fff; }

/* ── 반응형 ── */
@media (max-width: 767px) {
  .hero-caption { left: 5%; right: 5%; }
  .hero-title { font-size: 1.8rem; }
  .stat-number { font-size: 2rem; }
  .counter-num { font-size: 2.4rem; }
  .testimonial-btn-prev,
  .testimonial-btn-next { display: none !important; }
}
