/* =========================================================
   OnBizStar - Main Stylesheet
   Palette: Deep Navy #1D2D44 / Warm Gold #D4A373 /
            Star Amber #F59E0B / Off-White #FDFBF7
   ========================================================= */
:root {
  --navy: #1D2D44;
  --navy-deep: #14213A;
  --navy-soft: #2C3E5C;
  --gold: #D4A373;
  --amber: #F59E0B;
  --bg: #FDFBF7;
  --text: #2B2B2B;
  --text-sub: #6B6B6B;
  --white: #FFFFFF;
  --line: rgba(29, 45, 68, 0.1);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(29, 45, 68, 0.08);
  --shadow-hover: 0 16px 40px rgba(29, 45, 68, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 폰트 웨이트 체계: Bold 700 (제목/강조) / Regular 400 (본문) / Light 300 (보조 설명) */
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  word-break: keep-all;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.accent { color: var(--amber); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; border: none; }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.header.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(29, 45, 68, 0.1);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  transition: color 0.3s;
}
.header.scrolled .logo { color: var(--navy); }
.logo-star {
  color: var(--amber);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.nav a:hover { color: var(--amber); }
.header.scrolled .nav a { color: var(--navy); }
.header.scrolled .nav a:hover { color: var(--amber); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--amber);
  color: var(--navy-deep) !important;
  transition: transform 0.2s !important;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}
.header.scrolled .nav-toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(175deg, rgba(16, 25, 44, 0.86) 0%, rgba(29, 45, 68, 0.72) 55%, rgba(16, 25, 44, 0.88) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 0 100px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Sections (common) ===== */
.section { padding: 84px 0; }
.section-label {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 30px;
}
.section-navy { background: linear-gradient(165deg, var(--navy-deep), var(--navy)); }
.section-navy .section-title { color: var(--white); }
.section-warm { background: linear-gradient(180deg, #FAF4EA, var(--bg)); }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Core Value cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 34px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
/* 카드 상단 가로형 사진: 높이는 기존 아이콘(58px)의 1.5배,
   가로는 카드 내부 좌우 여백이 같도록 꽉 채움 */
.card-photo {
  display: block;
  width: 100%;
  height: 87px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}
.card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.card h3 span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}
.card p { color: var(--text-sub); font-size: 0.97rem; font-weight: 300; }

/* ===== Business cards ===== */
.biz-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.biz-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 158, 11, 0.5);
}
.biz-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.biz-card h3 {
  color: var(--white);
  font-size: 1.22rem;
  margin: 12px 0 10px;
}
.biz-card > p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
  font-weight: 300;
  margin-bottom: 20px;
}
.biz-card ul li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.biz-card ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 0.7rem;
  top: 10px;
}

/* ===== Portfolio ===== */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-sub);
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.25s;
}
.tab:hover { border-color: var(--gold); color: var(--navy); }
.tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.35s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pf-card.hidden { display: none; }
.pf-thumb {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.pf-body { flex: 1; min-width: 0; }
.pf-client {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 5px;
  padding-right: 52px;
}
.pf-card p { color: var(--text-sub); font-size: 0.9rem; }
.pf-tag {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(212, 163, 115, 0.5);
  border-radius: 50px;
  padding: 3px 10px;
  background: rgba(212, 163, 115, 0.08);
}

/* ===== Gov cards ===== */
.gov-card {
  background: var(--white);
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gov-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.gov-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.gov-card h3 {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.45;
  margin-bottom: 12px;
}
.gov-card p { color: var(--text-sub); font-size: 0.93rem; font-weight: 300; }

/* ===== Certifications marquee ===== */
.certs {
  background: var(--navy-deep);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 22px 0;
  overflow: hidden;
}
.certs-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.certs:hover .certs-track { animation-play-state: paused; }
.certs-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.cert-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-desc {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin: -12px 0 28px;
}
.contact-list li {
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.98rem;
}
.contact-list strong {
  display: inline-block;
  width: 70px;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-field select { appearance: none; }
.form-field select option { color: var(--text); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
}
textarea { resize: vertical; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
  min-height: 1.4em;
}

/* ===== Footer ===== */
.footer {
  background: #10192C;
  padding: 56px 0 40px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.footer-brand small {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 6px;
}
.footer-info p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
}
.footer-copy {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
.mobile-br { display: none; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-3, .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-br { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 78vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    background: var(--navy-deep);
    padding: 90px 32px 32px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }
  .nav.open { right: 0; }
  .nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
    padding: 10px 0;
    width: 100%;
  }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; z-index: 210; position: relative; }
  .nav-toggle.open span { background: var(--white); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.3s, opacity 0.3s, background 0.3s; }
}

/* ===== CI 로고 심볼 ===== */
.logo-mark {
  width: 30px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.35));
}
.logo-mark-sm { width: 26px; }
