/* =========================================================
   AsTec Mobility — homepage styles
   딥네이비 + 골드 액센트, 여백 중심 프리미엄 톤
   ========================================================= */
:root {
  --navy:      #0c1b2a;
  --navy-2:    #102a43;
  --navy-soft: #1c3a57;
  --gold:      #e3a648;
  --gold-soft: #f0c178;
  --ink:       #161b22;
  --body:      #3d4750;
  --muted:     #8893a0;
  --line:      #e7eaee;
  --bg:        #ffffff;
  --bg-soft:   #f5f7f9;
  --bg-dark:   #0c1b2a;
  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      1200px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 18px 50px -20px rgba(12,27,42,.28);
  --shadow-sm: 0 8px 24px -12px rgba(12,27,42,.22);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* display 지정 요소(.btn 등)에서도 hidden 속성 보장 */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none} html{scroll-behavior:auto} }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; transition: all .3s var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #2a1c05; }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(227,166,72,.6); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color:#fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--line:hover { border-color: var(--navy); background: var(--bg-soft); }

/* ---------- section header ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px;
}
.section { padding: clamp(72px, 10vw, 130px) 0; scroll-margin-top: 72px; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__title { font-size: clamp(28px, 4vw, 44px); }
.section__title br { display: block; }
.section__desc { margin-top: 18px; font-size: 17px; color: var(--muted); }
.section--alt { background: var(--bg-soft); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; line-height: 1.05; }
.brand__logo { display: flex; }
.brand__logo img { height: 70px; width: auto; display: block; }
.brand__txt { display: flex; flex-direction: column; }
.brand__main { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.03em; white-space: nowrap; transition: color .35s; }
.brand__sub { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .14em; transition: color .35s; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,.88); transition: color .25s; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-7px; width:0; height:2px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover { color:#fff; } .nav a:hover::after { width:100%; }
.header-cta { padding: 11px 22px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }

/* scrolled state (solid white) */
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header.scrolled .brand__main { color: var(--ink); }
.site-header.scrolled .brand__sub { color: var(--muted); }
.site-header.scrolled .nav a { color: var(--body); }
.site-header.scrolled .nav a:hover { color: var(--navy); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero__video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; opacity:0; transition: opacity 1.1s var(--ease); }
.hero__video.show { opacity:1; }
.hero__scrim { position:absolute; inset:0; z-index:1;
  background: linear-gradient(110deg, rgba(8,17,28,.92) 0%, rgba(10,22,36,.74) 45%, rgba(10,22,36,.42) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 760px; }
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:9px; font-size:13px; font-weight:700; letter-spacing:.18em;
  color: var(--gold-soft); margin-bottom: 26px;
}
.hero__eyebrow::before { content:""; width:34px; height:1.5px; background: var(--gold); }
.hero__title { font-size: clamp(38px, 6.2vw, 72px); color:#fff; font-weight: 800; line-height: 1.12; }
.hero__subtitle { margin: 26px 0 40px; font-size: clamp(16px,2vw,19px); color: rgba(255,255,255,.86); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 64px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.18); }
.hero__stat .v { font-size: 22px; font-weight: 800; color: #fff; }
.hero__stat .l { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 2px; }
.hero__scroll { position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:2; color:rgba(255,255,255,.6); font-size:12px; letter-spacing:.2em; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about__title { font-size: clamp(28px,3.6vw,42px); margin-bottom: 26px; }
.about__body p { font-size: 17px; margin: 0 0 18px; }
.about__points { margin-top: 36px; display: grid; gap: 20px; }
.about__point { display: flex; gap: 16px; }
.about__point .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.about__point h4 { font-size: 17px; margin-bottom: 3px; }
.about__point p { margin: 0; font-size: 14.5px; color: var(--muted); }
.about__media { position: relative; }
.about__media img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; left: -26px; bottom: 40px; background: var(--gold); color: #2a1c05;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 220px;
}
.about__badge .b1 { font-size: 26px; font-weight: 800; line-height: 1.1; }
.about__badge .b2 { font-size: 13px; font-weight: 600; margin-top: 4px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.svc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.07); }
.svc__tag { position: absolute; top: 16px; left: 16px; background: rgba(12,27,42,.85); color: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; }
.svc__body { padding: 28px 26px 32px; }
.svc__body h3 { font-size: 21px; margin-bottom: 12px; }
.svc__body p { font-size: 15px; color: var(--muted); margin: 0; }

/* =========================================================
   FLEET
   ========================================================= */
.fleet__grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 200px; gap: 16px; }
.fleet__item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--navy); }
.fleet__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.fleet__item:nth-child(6) { grid-column: span 2; }
.fleet__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.fleet__item:hover img { transform: scale(1.08); }
.fleet__cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 18px 16px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(8,17,28,.82)); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.fleet__item:hover .fleet__cap { opacity: 1; transform: none; }

/* =========================================================
   INFRA
   ========================================================= */
.infra__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.infra__card { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; position: relative; min-height: 340px; display: flex; align-items: flex-end; }
.infra__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--ease), opacity .4s; }
.infra__card::after { content:""; position:absolute; inset:0; background: linear-gradient(transparent 30%, rgba(8,17,28,.9)); }
.infra__card:hover img { transform: scale(1.07); opacity: .7; }
.infra__txt { position: relative; z-index: 2; padding: 28px 24px; }
.infra__txt h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.infra__txt p { font-size: 14px; color: rgba(255,255,255,.78); margin: 0; }

/* =========================================================
   HISTORY
   ========================================================= */
.history__note { display: inline-block; margin-bottom: 36px; padding: 10px 18px; border-radius: 999px; background: rgba(227,166,72,.14); color: #9a6b18; font-size: 13.5px; font-weight: 600; }
.timeline { position: relative; max-width: 760px; margin-left: 8px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.tl { position: relative; padding: 0 0 34px 44px; }
.tl::before { content:""; position:absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.tl__year { font-size: 18px; font-weight: 800; color: var(--navy); }
.tl__text { font-size: 15.5px; color: var(--body); margin-top: 2px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact__list { display: grid; gap: 2px; }
.contact__row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.contact__row dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.contact__row dd { margin: 0; font-size: 15px; color: var(--body); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 56px 0 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand__main { color: #fff; } .site-footer .brand__sub { color: rgba(255,255,255,.55); }
.site-footer__col { max-width: 560px; }
.site-footer__affil { font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 10px; font-weight: 600; }
.site-footer__note { max-width: 560px; font-size: 13px; line-height: 1.8; margin-top: 18px; }
.site-footer__copy { font-size: 13px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }

/* ---------- infra clickable + detail modal ---------- */
.infra__card.is-clickable { cursor: pointer; }
.infra__more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold-soft); }
.infra-modal { position: fixed; inset: 0; z-index: 190; background: rgba(7,14,22,.9); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 4vw; }
.infra-modal.open { display: flex; }
.infra-modal__box { background: var(--bg); border-radius: var(--radius-lg); max-width: 1000px; width: 100%; max-height: 88vh; overflow: auto; padding: 36px; position: relative; }
.infra-modal__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--muted); }
.infra-modal__close:hover { color: var(--ink); }
.infra-modal__head { margin-bottom: 24px; padding-right: 40px; }
.infra-modal__head h3 { font-size: 26px; }
.infra-modal__head p { color: var(--muted); margin: 8px 0 0; }
.infra-modal__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.infra-modal__item { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; cursor: pointer; background: var(--navy); }
.infra-modal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.infra-modal__item:hover img { transform: scale(1.07); }
@media (max-width: 720px) { .infra-modal__grid { grid-template-columns: repeat(2,1fr); } .infra-modal__box { padding: 24px 18px; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,14,22,.92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 5vw; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__cap { color: #fff; margin-top: 18px; font-size: 15px; }
.lightbox__close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; opacity: .8; }
.lightbox__close:hover { opacity: 1; }

/* ---------- to top ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .35s var(--ease); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(12,27,42,.98); backdrop-filter: blur(6px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #fff; font-size: 23px; font-weight: 700; padding: 14px 24px; }
.mobile-menu a:active { color: var(--gold); }

/* ---------- nav highlight (인력 수급 및 관리) ---------- */
.nav a.nav--hl { color: var(--gold); font-weight: 700; }
.site-header.scrolled .nav a.nav--hl { color: #b9791a; }
.nav a.nav--hl::after { background: var(--gold); }
.mobile-menu a.nav--hl { color: var(--gold); }

/* ---------- hero sound button ---------- */
.hero__sound { position: absolute; right: 24px; bottom: 26px; z-index: 3;
  background: rgba(12,27,42,.6); color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
  transition: all .25s var(--ease); }
.hero__sound:hover { background: rgba(12,27,42,.88); border-color: #fff; }
.hero__sound.on { background: var(--gold); color: #2a1c05; border-color: var(--gold); }

/* ---------- affiliates ---------- */
.affil__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.affil__card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 14px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.affil__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.affil__year { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .05em; }
.affil__name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* ---------- contact actions / naver ---------- */
.contact__actions { margin-top: 26px; }
.naver-btn { background: #03c75a; color: #fff; border: 0; }
.naver-btn:hover { background: #02b150; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(3,199,90,.7); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__media img { height: 420px; }
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .infra__grid { grid-template-columns: repeat(2,1fr); }
  .affil__grid { grid-template-columns: repeat(3,1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__media img { height: 340px; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { height: 74px; }
  .brand__sub { display: none; }
  .brand__main { font-size: 16px; }
  .brand__logo img { height: 48px; }
  .hero__sound { right: 16px; bottom: 84px; }
  .affil__grid { grid-template-columns: repeat(2,1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .fleet__grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .fleet__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .fleet__item:nth-child(6) { grid-column: span 2; }
  .infra__grid { grid-template-columns: 1fr; }
  .about__badge { left: 16px; right: 16px; max-width: none; }
  .hero__stats { gap: 18px 30px; }
  .contact__row { grid-template-columns: 100px 1fr; }
}
