/* =========================================================
   JUSTJOB 배달플랫폼 - 메인 스타일시트
   메인컬러: #f0962d (오렌지) / 서브컬러: #0f3287 (네이비)
========================================================= */

:root {
  --main-color: #f0962d;
  --main-color-dark: #d97f1a;
  --sub-color: #0f3287;
  --sub-color-light: #17429e;
  --text-dark: #06060a;
  --text-gray: #5b6472;
  --bg-light: #f7f3ed;
  --bg-gray: #f5f5f5;
  --white: #ffffff;
  --header-height: 76px;
  --header-height-mobile: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--main-color);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--text-dark);
}

.section-title.on-dark { color: var(--white); }

.section-desc {
  text-align: center;
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
}

.section-desc.on-dark { color: rgba(255,255,255,0.85); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--main-color);
  color: var(--white);
}
.btn-primary:hover { background: var(--main-color-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* =========== Header / Navigation =========== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

#site-header.scrolled {
  background: rgba(6, 6, 10, 0.92);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  height: 64px;
}

.header-inner {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.logo img {
  height: 24px;
  width: auto;
  display: block;
}
.logo .logo-accent { color: var(--main-color); }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 22px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--main-color);
}

.header-cta {
  display: none;
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-cta.btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========== Hero =========== */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(6,6,10,0.55), rgba(6,6,10,0.75)),
              url('../images/hero-isometric.png') center center / cover no-repeat;
  padding: calc(var(--header-height) + 40px) 24px 100px;
}

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

.hero-kicker {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.92);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.hero-title .brand-just { color: var(--main-color); }
.hero-title .brand-job { color: #e60014; }

.hero-scroll {
  margin-top: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.08em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =========== Intro / Stats (orange) =========== */
#intro {
  background: var(--main-color);
  color: var(--white);
  padding: 90px 24px;
  text-align: center;
}

#intro .intro-tag {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

#intro h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 20px;
}

#intro p.intro-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
  max-width: 680px;
  margin: 0 auto 56px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 36px 40px;
  min-width: 280px;
  flex: 1 1 320px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.stat-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}
.stat-card span.stat-note {
  font-size: 14px;
  color: var(--text-gray);
  display: block;
  margin-bottom: 18px;
}
.stat-card strong {
  font-size: 42px;
  font-weight: 800;
  color: var(--main-color);
}

/* =========== Service Section =========== */
#service {
  background: var(--bg-gray);
  padding: 100px 24px 60px;
}

.service-header { margin-bottom: 70px; }

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  grid-template-areas: "media text";
  align-items: center;
  gap: 60px;
  max-width: 1024px;
  margin: 0 auto 90px;
}

.service-block:last-child { margin-bottom: 20px; }

.service-block.reverse {
  grid-template-columns: 1fr minmax(0, 420px);
  grid-template-areas: "text media";
}

.service-media {
  grid-area: media;
  width: 100%;
}

.service-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 50, 135, 0.12);
}

.service-text { grid-area: text; }

.service-num {
  display: inline-block;
  color: var(--main-color);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}

.service-text h3 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--text-dark);
}

.service-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray);
  margin: 0;
}

/* =========== Inquiry Section (navy, Kakao + Location) =========== */
#inquiry {
  background: var(--sub-color);
  padding: 110px 24px;
  color: var(--white);
}

.inquiry-header { margin-bottom: 64px; }

.inquiry-cards {
  display: flex;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.inquiry-card {
  flex: 1 1 380px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.inquiry-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
}

.inquiry-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.inquiry-icon.kakao { background: #FEE500; color: #391B1B; }
.inquiry-icon.map { background: var(--main-color); color: var(--white); }

.inquiry-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.inquiry-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0 0 26px;
  min-height: 48px;
}

.inquiry-card .btn { width: 100%; }

.inquiry-card .btn-kakao {
  background: #FEE500;
  color: #391B1B;
}
.inquiry-card .btn-kakao:hover { background: #f7db00; }

.inquiry-note {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.inquiry-note strong { color: var(--main-color); }

/* =========== Download / 관리프로그램 지원 (PC/모바일 분리 레이아웃) =========== */
#download {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url('../images/download-center-isometric.png') center / cover no-repeat;
  color: var(--white);
  padding: 90px 24px 70px;
  text-align: center;
}

#download .section-eyebrow { color: var(--main-color); }

#download .section-title { color: var(--white); font-size: 32px; }

#download .section-desc { color: rgba(255,255,255,0.9); margin-bottom: 0; }

.download-grid-wrap {
  background: var(--bg-light);
  padding: 64px 24px 70px;
}

.download-section-block {
  max-width: 1024px;
}

.download-group { margin-bottom: 60px; }
.download-group:last-of-type { margin-bottom: 44px; }

.download-subtitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 26px;
  text-align: left;
}

.download-subtitle .subtitle-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sub-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.download-subtitle .subtitle-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--sub-color);
}

.download-subtitle .subtitle-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--main-color);
  background: rgba(240,150,45,0.12);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.download-grid {
  display: grid;
  gap: 22px;
  width: 100%;
}

.download-grid-pc {
  grid-template-columns: repeat(2, 1fr);
}

.download-grid-mobile {
  grid-template-columns: repeat(3, 1fr);
}

.download-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15,50,135,0.08);
  border-radius: 20px;
  padding: 34px 20px 26px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15,50,135,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), var(--sub-color));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(15,50,135,0.15);
  border-color: rgba(240,150,45,0.35);
}

.download-card:hover::before { opacity: 1; }

.download-card .icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240,150,45,0.12), rgba(15,50,135,0.07));
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card .icon-wrap img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0;
}

.download-card span.card-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.download-card small {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 18px;
}

.download-card .download-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-color);
  padding-top: 14px;
  border-top: 1px solid rgba(15,50,135,0.08);
  width: 100%;
  justify-content: center;
}

.download-card .download-cta i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.download-card:hover .download-cta i { transform: translateY(2px); }

/* 설치 유의사항 */
.install-notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid rgba(15,50,135,0.12);
  border-left: 4px solid var(--main-color);
  border-radius: 16px;
  padding: 26px 30px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.install-notice-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240,150,45,0.12);
  color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.install-notice-text strong {
  display: block;
  font-size: 17px;
  color: var(--sub-color);
  margin-bottom: 10px;
}
.install-notice-text ul {
  margin: 0;
  padding: 0;
}
.install-notice-text li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-gray);
}
.install-notice-text li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-weight: 700;
}
.install-notice-text li b { color: var(--text-dark); }

/* =========== Footer (레이아웃 최대한 유지) =========== */
#site-footer {
  background: #464646;
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 50px;
  text-align: center;
}

#site-footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
#site-footer .footer-logo img {
  height: 20px;
  width: auto;
  opacity: 0.9;
}
#site-footer .footer-logo .logo-accent { color: var(--main-color); }

#site-footer p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 4px;
  color: rgba(255,255,255,0.7);
}

#site-footer .footer-copy {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =========== Responsive =========== */
@media (max-width: 1024px) {
  .service-block { gap: 40px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0; right: 0;
    background: rgba(6,6,10,0.97);
    padding: 12px 24px 28px;
    gap: 0;
    z-index: 1050;
  }
  .main-nav.mobile-open a {
    width: 100%;
    padding: 16px 8px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }

  #site-header { height: var(--header-height-mobile); }
  #site-header.scrolled { height: var(--header-height-mobile); }

  #home { padding-top: calc(var(--header-height-mobile) + 30px); }

  .hero-title { font-size: 34px; }
  .hero-kicker { font-size: 15px; }

  #intro h2 { font-size: 24px; }
  #intro p.intro-desc { font-size: 15px; }

  .stats-row { gap: 16px; }
  .stat-card { padding: 26px 24px; min-width: 0; flex: 1 1 100%; }

  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
    gap: 28px;
    text-align: center;
    margin-bottom: 60px;
  }
  .service-media img { max-width: 280px; height: 220px; margin: 0 auto; }
  .service-text h3 { font-size: 24px; }
  .service-text p { font-size: 15px; }

  .section-title { font-size: 26px; }
  .section-desc { font-size: 15px; }

  .inquiry-cards { flex-direction: column; align-items: stretch; }

  .download-grid { gap: 16px; }
  .download-grid-pc { grid-template-columns: repeat(2, 1fr); }
  .download-grid-mobile { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 26px 16px 20px; }

  .download-subtitle .subtitle-text { font-size: 18px; }
  .download-subtitle .subtitle-icon { width: 36px; height: 36px; font-size: 15px; }

  .install-notice { flex-direction: column; align-items: flex-start; padding: 22px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 26px; }
  .logo img { height: 20px; }
  .download-grid { gap: 14px; }
  .download-grid-pc { grid-template-columns: repeat(2, 1fr); }
  .download-grid-mobile { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 22px 12px 18px; }
  .download-card .icon-wrap { width: 64px; height: 64px; }
  .download-card .icon-wrap img { width: 40px; height: 40px; }
  .download-subtitle { flex-wrap: wrap; gap: 8px; }
  .download-subtitle .subtitle-badge { font-size: 11px; padding: 4px 10px; }
  .download-group { margin-bottom: 40px; }
  #intro, #service, #inquiry, #download, .download-grid-wrap, #site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
