/* 공통 머리·모집 배너·바닥·전화 바. 기존 페이지에도 들어가므로 모두 .atp 안에 한정한다. */
.atp, body.atp-page {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-400: #ff9783;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
}
.atp {
  font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.65;
  letter-spacing: normal; text-align: left; word-break: keep-all; color: var(--color-text);
}
.atp *, .atp *::before, .atp *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
.atp a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.atp img { display: block; max-width: 100%; border: 0; }
.atp h2 { font-family: var(--font); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; word-break: keep-all; text-wrap: pretty; }
.atp a[href^="tel:"] { white-space: nowrap; }
.atp :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.atp .atp-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* 전화 바 자리는 body의 마지막 칸이어야 화면 아래에 붙는다 */
.atp.atp-callbar-holder { position: sticky; bottom: 0; z-index: 1001; }

/* 머리 */
.atp .atp-header { position: relative; z-index: 1000; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.atp .atp-bar { display: flex; align-items: center; gap: 24px; height: 88px; }
.atp .atp-brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.atp .atp-brand__mark { position: relative; display: block; width: 56px; height: 56px; overflow: hidden; }
.atp .atp-brand__mark img { position: absolute; width: 92px; height: 92px; max-width: none; left: -18px; top: -14px; }
.atp .atp-nav { display: none; align-items: stretch; gap: 4px; margin-left: auto; height: 100%; }
.atp .atp-nav__kisul { align-self: center; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--color-accent); color: var(--color-bg); font-weight: 800; white-space: nowrap; }
.atp .atp-nav__kisul:hover { background: var(--color-accent-600); color: var(--color-bg); }
.atp .atp-chip { padding: 1px 6px; border: 1px solid var(--color-bg); font-size: 12px; font-weight: 600; line-height: 1.4; }
.atp .atp-nav__item { display: flex; align-items: center; padding: 0 12px; font-weight: 600; white-space: nowrap; }
.atp .atp-nav__item:hover { color: var(--color-accent-700); }
.atp .atp-inquiry { display: none; align-items: center; flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-divider); font-size: 16px; font-weight: 800; white-space: nowrap; }
.atp .atp-menubtn { margin-left: auto; min-height: 48px; padding: 0 16px; border: 1px solid var(--color-divider); background: transparent; color: var(--color-text); font: 800 17px var(--font); cursor: pointer; }
.atp .atp-inquiry:hover, .atp .atp-menubtn:hover, .atp .atp-mobile__inquiry:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

.atp .atp-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); box-shadow: var(--shadow-md); }
.atp .atp-mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 24px; padding-bottom: 32px; }
.atp .atp-mega .atp-col { padding: 0 16px; border-left: 2px solid var(--color-divider); }
.atp .atp-col__title { margin-bottom: 8px; font-weight: 800; }
.atp .atp-col--kisul .atp-col__title { color: var(--color-accent-700); }
.atp .atp-mega .atp-col__links a { display: block; padding: 6px 0; font-size: 16px; }
.atp .atp-mega .atp-col__links a:hover { color: var(--color-accent-700); text-decoration: underline; }

.atp .atp-mobile { border-top: 2px solid var(--color-divider); padding: 8px var(--gutter) 24px; }
.atp .atp-mobile .atp-col { padding: 16px 0; border-bottom: 1px solid var(--color-divider); }
.atp .atp-mobile .atp-col__title { margin-bottom: 4px; font-size: 19px; }
.atp .atp-mobile .atp-col__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.atp .atp-mobile .atp-col__links a { display: block; padding: 8px 0; text-decoration: underline; }
.atp .atp-mobile__inquiry { display: flex; align-items: center; min-height: 56px; margin-top: 16px; padding: 0 16px; border: 1px solid var(--color-divider); font-weight: 800; }
/* JS가 켜져 있으면 접어 두고, 꺼져 있으면 메뉴를 모두 보여 준다 */
.atp-js .atp .atp-mobile { display: none; }
.atp-js .atp .atp-header.is-mobile-open .atp-mobile { display: block; }
html:not(.atp-js) .atp .atp-menubtn { display: none; }

@media (min-width: 1080px) {
  .atp .atp-nav { display: flex; }
  .atp .atp-inquiry { display: inline-flex; }
  .atp .atp-menubtn, .atp .atp-mobile, .atp-js .atp .atp-header.is-mobile-open .atp-mobile { display: none; }
  .atp .atp-header.is-mega-open .atp-mega { display: block; }
}
@media (min-width: 1080px) and (max-width: 1179px) {
  .atp .atp-bar { gap: 12px; }
  .atp .atp-nav { gap: 0; }
  .atp .atp-nav__item { padding: 0 8px; font-size: 16px; }
}

/* 기술자 모집 배너 */
.atp .atp-recruit { background: var(--color-text); color: var(--color-bg); }
.atp .atp-recruit__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.atp .atp-recruit__kicker { font-size: 15px; font-weight: 600; color: var(--color-accent-400); }
.atp .atp-recruit h2 { margin-top: 6px; font-size: clamp(26px, 3vw, 36px); color: var(--color-bg); }
.atp .atp-recruit a { padding: 12px 0; border-bottom: 2px solid var(--color-bg); font-size: 18px; font-weight: 800; color: var(--color-bg); }

/* 바닥 */
.atp .atp-footer { background: var(--color-bg); border-top: 2px solid var(--color-divider); }
.atp .atp-footer__in { padding-top: 48px; padding-bottom: 40px; }
.atp .atp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; font-size: 16px; font-weight: 600; }
.atp .atp-footer__links a { text-decoration: underline; }
.atp .atp-footer__phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; padding: 16px 0; border-top: 2px solid var(--color-text); border-bottom: 1px solid var(--color-divider); }
.atp .atp-footer__phone strong { font-weight: 800; }
.atp .atp-footer__phone a { font-size: 22px; font-weight: 800; }
.atp .atp-footer__info { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.atp .atp-footer__copy { margin-top: 20px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* 하단 전화 바 */
.atp .atp-callbar { padding: 8px clamp(8px, 2vw, 16px); background: var(--color-bg); border-top: 2px solid var(--color-text); }
.atp .atp-callbar a { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1200px; min-height: 56px; margin: 0 auto; padding: 0 20px; background: var(--color-accent); color: var(--color-bg); font-size: 19px; font-weight: 800; }
.atp .atp-callbar a:hover { background: var(--color-accent-600); }
.atp .atp-callbar a:active { background: var(--color-accent-700); }
@media (max-width: 379px) {
  .atp .atp-callbar a { padding: 0 12px; font-size: 17px; }
}
@media print {
  .atp.atp-callbar-holder { display: none; }
}
