/* ================================================
   Y&J BUSINESS 메인 사이트 CSS
   기업 컨설팅 홈페이지
   Gold 브랜드 테마
   ================================================ */

/* CSS Variables - Y&J Brand Colors (Gold) */
:root {
  /* Primary Colors - Gold */
  --primary: #c9a05e;
  --primary-dark: #a6844a;
  --primary-light: #d4b06e;
  --primary-hover: #a6844a;
  --primary-pale: #faf6ed;

  /* Secondary Colors - Sage Green */
  --secondary: #d4b06e;
  --secondary-light: #debc7e;
  --secondary-dark: #a6844a;
  --secondary-pale: #fdfbf7;

  /* Accent Colors */
  --accent: #c9a05e;
  --accent-dark: #a6844a;
  --accent-light: #d4b06e;
  --accent-pale: #faf6ed;

  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Neutral Colors */
  --neutral-50: #f8faf9;
  --neutral-100: #f1f5f3;
  --neutral-200: #e2e8e4;
  --neutral-300: #cbd5ce;
  --neutral-400: #999999;
  --neutral-500: #6b6b6b;
  --neutral-600: #475549;
  --neutral-700: #334137;
  --neutral-800: #1e2920;
  --neutral-900: #0f170f;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #c9a05e 0%, #d4b06e 100%);
  --gradient-dark: linear-gradient(135deg, #a6844a 0%, #c9a05e 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 4px 20px rgba(201, 160, 94, 0.35);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --header-height: 80px;
  --header-height-mobile: 60px;
  --container-max: 1400px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}

/* ================================================
   Header
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(201, 160, 94, 0.15);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.25s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA Button */
.cta-button {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-primary);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 102, 73, 0.45);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-nav ul li:last-child {
  border-bottom: none;
}

.mobile-nav ul li a {
  display: block;
  padding: 16px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  color: var(--primary);
}

.mobile-nav ul li a.mobile-cta {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  background: var(--gradient-light);
  padding: 0;
  margin: 0;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: var(--header-height);
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-headline {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-headline .highlight {
  color: var(--primary);
}

.hero-subheadline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.cta-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 160, 94, 0.45);
}

.cta-ghost {
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.cta-ghost:hover {
  background: var(--primary-pale);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(201, 160, 94, 0.15);
}

.hero-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 24px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ================================================
   Section Common Styles
   ================================================ */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================
   Service Cards
   ================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--primary-pale);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(201, 160, 94, 0.25);
  border-color: var(--primary);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 32px 28px;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-inverse);
  fill: none;
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-description {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.service-card:hover .service-link {
  gap: 12px;
  color: var(--primary);
}

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ================================================
   CTA Bar (Floating)
   ================================================ */
.cta-bar {
  background: var(--gradient-primary);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

.cta-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-bar-content {
  color: var(--text-inverse);
}

.cta-bar-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-bar-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.cta-bar-button {
  background: var(--text-inverse);
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cta-bar-button:hover {
  background: var(--neutral-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background: var(--neutral-800);
  color: var(--text-inverse);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-slogan {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-nav-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-inverse);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 12px;
}

.footer-nav-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--text-inverse);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================================
   Responsive - Tablet
   ================================================ */
@media (max-width: 1023px) {
  .header-inner {
    padding: 0 24px;
  }

  .nav {
    gap: 24px;
  }

  .nav-link {
    font-size: 15px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-container {
    padding: 48px 32px;
    gap: 48px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .hero-subheadline {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ================================================
   Responsive - Mobile
   ================================================ */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    height: var(--header-height);
    padding: 0 16px;
    justify-content: center;
    position: relative;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-img {
    height: 70px;
  }

  .logo-text {
    display: none;
  }

  .nav,
  .header .cta-button {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 16px;
  }

  .mobile-nav {
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
  }

  .hero {
    padding-top: var(--header-height);
  }

  .hero-container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 24px 20px 32px;
    order: 1;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .hero-headline {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.35;
  }

  .hero-subheadline {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .cta-primary,
  .cta-ghost {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 16px 24px;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-visual img {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-disclaimer {
    font-size: 11px;
    margin-top: 20px;
    line-height: 1.5;
  }

  .section {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 20px;
    padding: 0 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* 가로 스크롤 카드 */
  .service-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 20px 20px 20px;
    margin: 0;
  }

  .service-grid::-webkit-scrollbar {
    display: none;
  }

  .service-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .service-card {
    flex: 0 0 85vw;
    max-width: 320px;
    scroll-snap-align: start;
    padding: 0;
  }

  .service-content {
    padding: 20px 18px;
  }

  .service-image {
    height: 140px;
  }

  .service-icon {
    display: none;
  }

  .service-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-description {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .service-link {
    font-size: 14px;
  }

  .cta-bar-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .cta-bar-title {
    font-size: 20px;
  }

  .cta-bar-subtitle {
    font-size: 14px;
  }

  .cta-bar-button {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    padding: 0 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 16px;
  }

  .footer-nav-title {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
