/* ============================================
   FIVEpro Style - Common CSS Framework
   Based on fivepro.co.kr design patterns
   ============================================ */

/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1b1b1b;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

/* ============================================
   Layout System
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
}
.section-sm {
  padding: 80px 0;
}
.section-lg {
  padding: 160px 0;
}

/* ============================================
   Typography
   ============================================ */
.heading-xl {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-lg {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.heading-md {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.heading-sm {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}
.text-lg {
  font-size: 18px;
  line-height: 1.7;
}
.text-md {
  font-size: 16px;
  line-height: 1.7;
}
.text-sm {
  font-size: 14px;
  line-height: 1.6;
}
.text-xs {
  font-size: 12px;
  line-height: 1.5;
}
.text-center { text-align: center; }
.text-muted { color: #888; }
.text-white { color: #fff; }

/* ============================================
   Section Headers (FIVEpro Pattern)
   ============================================ */
.section-header {
  margin-bottom: 60px;
}
.section-header .sub-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header .section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-header .section-desc {
  font-size: 17px;
  color: #666;
  line-height: 1.8;
  max-width: 600px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin: 0 auto;
}

/* ============================================
   Header / Navigation (FIVEpro Pattern)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo span {
  opacity: 0.5;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #1b1b1b;
  position: relative;
  padding: 8px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}
.nav a:hover::after, .nav a.active::after {
  width: 100%;
}
.header-cta {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #1b1b1b;
  transition: 0.3s;
}

/* ============================================
   Hero Section (FIVEpro Pattern)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img, .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-content .hero-label {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.85;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Buttons (FIVEpro Style)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #fff;
}
.btn-outline {
  border: 2px solid;
  background: transparent;
}
.btn-white {
  background: #fff;
  color: #1b1b1b;
}
.btn-white:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}
.btn-lg {
  padding: 20px 48px;
  font-size: 18px;
}

/* ============================================
   Card System (FIVEpro Pattern)
   ============================================ */
.card-grid {
  display: grid;
  gap: 30px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-body {
  padding: 28px;
}
.card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-body p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}
.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Icon Card */
.icon-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 16px;
  background: #fff;
  transition: all 0.4s ease;
}
.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.icon-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.icon-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.icon-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ============================================
   Stats / Counter Section
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item {
  text-align: center;
  padding: 40px 20px;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 15px;
  color: #888;
}

/* ============================================
   Swiper / Slider Overrides
   ============================================ */
.swiper { overflow: visible !important; }
.swiper-slide { height: auto; }
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 0.3;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ============================================
   Gallery / Portfolio Grid
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.testimonial-card .quote {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}
.testimonial-card .author-name {
  font-weight: 600;
  font-size: 15px;
}
.testimonial-card .author-role {
  font-size: 13px;
  color: #888;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  border-radius: 24px;
}
.cta-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.cta-section p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.85;
}

/* ============================================
   Footer (FIVEpro Pattern)
   ============================================ */
.footer {
  background: #1b1b1b;
  color: #fff;
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .logo {
  font-size: 28px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #999;
  padding: 6px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   Floating Quick Menu
   ============================================ */
.quick-menu {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.quick-btn:hover {
  transform: scale(1.1);
}
.quick-btn.top-btn {
  background: #333;
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 91, 245, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  background: #eee;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Scroll Animations (AOS-like)
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .heading-xl { font-size: 42px; }
  .heading-lg, .section-header .section-title { font-size: 34px; }
  .heading-md { font-size: 26px; }
  .hero-content h1 { font-size: 42px; }
  .section { padding: 80px 0; }
  .section-lg { padding: 100px 0; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header { padding: 0 20px; height: 64px; }
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero { min-height: 80vh; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .heading-xl { font-size: 32px; }
  .heading-lg, .section-header .section-title { font-size: 28px; }
  .heading-md { font-size: 22px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-number { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 28px; }
  .btn { padding: 14px 28px; font-size: 15px; }
  .btn-lg { padding: 16px 36px; }
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 9999;
  transition: width 0.1s;
}

/* ============================================
   Utility Classes
   ============================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.rounded { border-radius: 12px; }
.rounded-lg { border-radius: 20px; }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.bg-light { background: #f8f9fa; }
.bg-dark { background: #1b1b1b; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
