/* ============================================================
   대명티엔씨 (대명T&C) — 공유 스타일
   산업/건설 톤: 딥 스틸 네이비 + 세이프티 앰버
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Archivo+Narrow:wght@500;600;700&display=swap');

:root {
  /* color */
  --ink:        #0E1722;   /* near-black steel navy */
  --steel:      #16273A;   /* primary navy */
  --steel-2:    #1E3650;   /* lighter navy panel */
  --amber:      #F26A1B;   /* safety orange */
  --amber-deep: #D2540E;
  --paper:      #F3F1EC;   /* warm concrete off-white */
  --paper-2:    #E9E5DD;
  --line:       #D5D0C6;
  --line-dark:  rgba(255,255,255,.14);
  --muted:      #5C6470;
  --muted-on:   #9DB0C4;   /* muted on dark */
  --white:      #FFFFFF;

  /* type */
  --kr: 'Pretendard', system-ui, sans-serif;
  --display: 'Archivo', 'Pretendard', sans-serif;
  --narrow: 'Archivo Narrow', 'Archivo', sans-serif;

  /* layout */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--kr);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared wrappers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* mono index/label */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* section heading */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 {
  font-family: var(--kr);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.sec-head p {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--kr);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fff; color: var(--steel); border-color:#fff; }
.btn .ar { font-family: var(--display); font-weight: 800; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,241,236,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .brand-icon { height: 36px; width: auto; display: block; flex: none; }
.brand .logo-bar { width: 4px; height: 38px; background: var(--amber); flex: none; }
.brand .logo { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand .logo .row { display: flex; align-items: center; gap: 7px; }
.brand .logo .dm { font-family: var(--kr); font-weight: 800; font-size: 23px; letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; }
.brand .logo .dm i { font-style: normal; color: var(--amber); }
.brand .logo .en { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.brand .logo .en .tc { background: var(--amber); color: #fff; letter-spacing: 0.06em; padding: 1px 4px 2px; }
.site-footer .brand .dm { color: #fff; }
.site-footer .brand .en { color: var(--muted-on); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 15.5px; padding: 10px 16px;
  color: var(--ink); position: relative;
}
.nav-links a::after {
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:2px;
  background: var(--amber); transform: scaleX(0); transform-origin:left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--steel); }
.nav-cta { display:flex; align-items:center; gap:16px; }
.nav-tel { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--steel); letter-spacing:.02em; }
.nav-tel small { display:block; font-size:10px; letter-spacing:.18em; color:var(--amber); font-weight:700; }

.nav-toggle { display:none; }
.mobile-menu { display:none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C7D2DE; }
/* padding 단축 속성이 .wrap 의 좌우 여백을 지우던 문제 수정 (모바일에서 글자가 화면 끝에 붙었음) */
.footer-top { padding-top: clamp(48px,6vw,80px); padding-bottom: 48px; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top .brand .bn b { color:#fff; }
.footer-top .brand .bn span { color: var(--muted-on); }
.footer-blurb { margin-top: 22px; max-width: 38ch; color: var(--muted-on); font-size: 14.5px; line-height:1.7; }
.foot-col h4 { font-family: var(--display); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: var(--amber); margin:0 0 18px; font-weight:700; }
.foot-col a, .foot-col p { display:block; color:#C7D2DE; font-size:15px; margin:0 0 12px; }
.foot-col a:hover { color:#fff; }
.footer-bottom { padding-top: 22px; padding-bottom: 22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color: var(--muted-on);
  background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat center top / calc(100% - 2 * var(--gut)) 1px; }
.footer-bottom .ar { font-family: var(--display); letter-spacing:.04em; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--steel); color:#fff; position:relative; overflow:hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; opacity:.6;
}
.page-hero .wrap { position:relative; padding-top: clamp(64px,9vw,120px); padding-bottom: clamp(56px,8vw,104px); }
.page-hero h1 { font-size: clamp(36px,6vw,68px); font-weight:800; letter-spacing:-0.035em; margin:20px 0 0; line-height:1.08; }
.page-hero .lead { margin-top:22px; max-width:54ch; color:var(--muted-on); font-size:clamp(16px,1.8vw,19px); }
.crumb { font-family:var(--display); font-size:12px; letter-spacing:.16em; color:var(--muted-on); }
.crumb b { color:var(--amber); }

/* ---------- generic section ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--steel); color:#fff; }
.section.dark .sec-head p { color: var(--muted-on); }

/* ---------- cta band (모든 페이지 하단 공통 — 원래 index.html 에만 있어 다른 페이지에서 깨졌음) ---------- */
.cta-band { background: var(--amber); color:#fff; }
.cta-band .wrap { padding: clamp(48px,6vw,82px) var(--gut); display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2 { font-size:clamp(28px,4vw,44px); font-weight:800; letter-spacing:-0.03em; margin:0; line-height:1.15; }
.cta-band p { margin:14px 0 0; font-size:17px; opacity:.92; }
.cta-tel { text-align:right; }
.cta-tel .tn { font-family:var(--display); font-weight:900; font-size:clamp(30px,4vw,52px); letter-spacing:.01em; line-height:1; display:block; }
.cta-tel small { font-size:14px; letter-spacing:.1em; }

/* divider tag */
.tag-row { display:flex; gap:10px; flex-wrap:wrap; }
.tag { font-family:var(--display); font-size:12px; font-weight:700; letter-spacing:.08em; padding:7px 14px; border:1px solid var(--line); color:var(--muted); }
.dark .tag { border-color: var(--line-dark); color: var(--muted-on); }

/* utility */
.amber { color: var(--amber); }
.mono { font-family: var(--display); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display:none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-cta .nav-tel { display:none; }
  .nav-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border:1.5px solid var(--ink); background:none; cursor:pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content:""; display:block; width:20px; height:2px; background:var(--ink); position:relative;
  }
  .nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }
  .mobile-menu { display:none; border-bottom:1px solid var(--line); background:var(--paper); }
  .mobile-menu.open { display:block; }
  .mobile-menu a { display:block; padding:16px var(--gut); border-top:1px solid var(--line); font-weight:600; }
  .mobile-menu .tel { color:var(--amber); font-family:var(--display); font-weight:800; }
}
@media (max-width:520px){
  .footer-top { grid-template-columns: 1fr; gap:32px; }
}

/* ===== mobile optimization ===== */
@media (max-width: 860px){
  :root { --header-h: 64px; }
  /* tighten brand so it shares the row with the toggle */
  .brand { gap: 9px; }
  .brand .brand-icon { height: 30px; }
  .brand .logo-bar { height: 32px; }
  .brand .logo .dm { font-size: 19px; }
  .brand .logo .en { font-size: 9px; letter-spacing: .14em; }
  .brand .logo .en .tc { padding: 1px 3px 2px; }
  /* comfortable tap targets in the dropdown */
  .mobile-menu a { padding-top: 15px; padding-bottom: 15px; }
}
@media (max-width: 600px){
  /* full-width primary actions */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .sec-head .btn-ghost { width: 100%; justify-content: center; }
  /* CTA band stacks cleanly, tel left-aligned */
  .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-tel { text-align: left; }
  .cta-tel .tn { word-break: keep-all; }
  /* avoid oversized headings overflowing */
  .page-hero h1 { font-size: clamp(30px, 9vw, 44px); }
}
@media (max-width: 400px){
  .brand .logo .en { display: none; }
}

