/* ============================================================
   common.css — Company Construction · Shared Design System
   ============================================================
   Import this file in every page:
   <link rel="stylesheet" href="common.css" />
   ============================================================ */

/* ============================
   CSS Variables (Navy / Construction)
   ============================ */
:root {
  /* Brand colours */
  --color-primary:       #3d3d3d;   /* Slate Blue — 헤더·CTA */
  --color-primary-dark:  #2d2520;   /* 호버·액티브 */
  --color-primary-light: #555555;   /* 하이라이트 */
  --color-accent:        #d4470f;   /* Amber Gold — 신뢰·품질 */
  --color-accent-dark:   #b83a0c;

  /* UI colours */
  --color-bg:            #ffffff;
  --color-bg-soft:       #f7f3f0;
  --color-border:        #e0d4cc;
  --color-text:          #111827;
  --color-text-muted:    #6b6560;

  /* Nav */
  --color-nav-text:      #2d2520;
  --color-nav-hover:     rgba(61,61,61,0.08);

  /* Header 세로 크게 하기 ============*/
  --header-height:        120px;
  --header-height-mobile: 90px;
  --shadow-header: 0 2px 16px rgba(30,20,15,0.10);

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Montserrat', sans-serif;

  /* Motion */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   Reset
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* ============================
   Header (공통)
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: var(--shadow-header);
  border-bottom: 3px solid var(--color-accent);
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 48px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================
   Logo (공통)
   ============================ */
.logo {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo__img {
  height: 54px !important;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── 헤더 로고 하단 ISO 인증 뱃지 ── */
.logo__iso {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.logo__iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1.5px solid var(--color-accent);
  border-radius: 3px;
  background: rgba(212, 71, 15, 0.05);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo__iso-badge svg {
  flex-shrink: 0;
  stroke: var(--color-accent);
}

/* 모바일에서 ISO 뱃지 숨김 */
@media (max-width: 768px) {
  .logo__iso { display: none; }
}



/* ============================
   Desktop Nav (공통)
   ============================ */
.nav { display: flex; align-items: center; }

.nav__list {
  list-style: none;
  display: flex;
  gap: 0px;
}

/* ============================
   헤더 메뉴 글씨 크게하기, 폰트변경 
   ============================ */
.nav__link {
  display: inline-block;
  padding: 8px 16px;
  color: var(--color-nav-text);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  transition: background var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  background: var(--color-nav-hover);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================
   Back Button (portfolio/team 공통)
   ============================ */
.header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.header__back:hover {
  background: rgba(61,61,61,0.08);
  color: #2d2520;
  border-color: var(--color-primary);
}

.header__back svg { width: 15px; height: 15px; }

/* ============================
   Hamburger (공통)
   ============================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger:hover { background: var(--color-nav-hover); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   Mobile Drawer (공통)
   ============================ */
.mobile-menu {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__list {
  list-style: none;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu__link {
  display: block;
  padding: 12px 16px;
  color: var(--color-bg);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition), padding-left var(--transition);
}

/* .mobile-menu__link.active 제거 — hover만 유지 */
.mobile-menu__link:hover {
  background: rgba(255,255,255,0.08);
  border-left-color: var(--color-accent);
  padding-left: 22px;
}

/* ============================
   Section / Layout 공통
   ============================ */
.section {
  padding: 100px 0;
  scroll-margin-top: var(--header-height);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(200, 168, 75, 0.1);
  border: 1px solid rgba(200, 168, 75, 0.3);
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 40px;
}

.section-title span { color: var(--color-primary); }

/* ============================
   Buttons (공통)
   ============================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 30, 50, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 136, 46, 0.35);
}

.btn--full { width: 100%; text-align: center; }

button.btn {
  border: 2px solid transparent;
  font-family: var(--font-display);
  cursor: pointer;
}

/* ============================
   Tags / Badges (공통)
   ============================ */
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(26, 46, 74, 0.08);
  border: 1px solid rgba(26, 46, 74, 0.15);
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ============================
   Placeholder Images (공통)
   ============================ */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d3d3d 0%, #555555 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  width: 48px;
  height: 48px;
  opacity: 0.2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.placeholder-img span {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ============================
   Footer (공통)
   ============================ */
.footer {
  background: #1c1814;
  color: #ccc;
  padding-top: 64px;
}

.footer__top {
  display: grid;
  /* 기본 4컬럼 (서브페이지용): brand · Quick Links · Contact · 4번째컬럼
     index.html 은 style.css 에서 3컬럼으로 덮어씁니다 */
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 6px;
}

.footer__logo-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer__desc {
  font-size: 0.9rem;
  color: #7a8a9a;
  line-height: 1.75;
  margin-bottom: 24px;
}


.footer__social {
  display: flex;
  gap: 10px;
}



.footer__col-title {
  font-family: 'Playfair Display', serif;   /* var(--font-display); */
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: #7a8a9a;
  text-decoration: none; font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer__links a:hover { color: #fff; padding-left: 6px; }

.footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #7a8a9a;
  line-height: 1.5;
}

/* footer 연락처 SVG 아이콘 */
.footer__contact-list li span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #7a8a9a;
}

.footer__contact-list li span:first-child svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p { font-size: 0.84rem; color: #445; }

.footer__bottom-links { display: flex; gap: 24px; }

.footer__bottom-links a {
  font-size: 0.84rem;
  color: #445566;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__bottom-links a:hover { color: #aaa; }

/* ============================
   Scroll Reveal Animation (공통)
   JS가 로드된 후 <html class="js-ready"> 가 추가될 때만 숨김 처리
   → JS 없이 열어도 모든 콘텐츠가 보임
   ============================ */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready [data-reveal-delay="1"] { transition-delay: 0.1s; }
.js-ready [data-reveal-delay="2"] { transition-delay: 0.2s; }
.js-ready [data-reveal-delay="3"] { transition-delay: 0.3s; }
.js-ready [data-reveal-delay="4"] { transition-delay: 0.4s; }
.js-ready [data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================
   Responsive (공통)
   ============================ */
@media (max-width: 768px) {
  .header__inner {
    height: var(--header-height-mobile);
    padding: 0 20px;
  }
  .nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
}

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__bottom-links { gap: 16px; }
}

/* img 교체 시 placeholder pseudo 숨김 */
.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.placeholder-img:has(img)::before { display: none; }
.placeholder-img:has(img) span    { display: none; }


/* ============================
   Sub-page Hero (portfolio · services · team 공통)
   about.html의 라이트 hero는 팀 스타일과 달라 별도 유지
   ============================ */

/* 다크 Hero — portfolio · services 공유 */
.sub-hero {
  background: linear-gradient(160deg, #2d2520 0%, #3d3d3d 50%, #555555 100%);
  padding: 80px 48px 68px;
  position: relative;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.sub-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.sub-hero__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(200,168,75,0.4);
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.sub-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.sub-hero__title span { color: var(--color-accent); }

.sub-hero__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.82;
  max-width: 560px;
  font-weight: 300;
}

/* Stats strip — portfolio · services 공유 (라이트 배경) */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.stats-strip__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  padding: 22px 52px 22px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--color-border);
  margin-right: 52px;
}

.stat-item:last-child {
  border-right: none;
  margin-right: 0;
}

.stat-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.76rem;
  color: #8a99aa;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sub-hero { padding: 56px 24px 48px; }
  .stats-strip__inner {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    padding: 20px 16px;
    margin-right: 0;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  /* 오른쪽 열 border-right 제거 */
  .stat-item:nth-child(2n) { border-right: none; }
  /* 마지막 두 항목 border-bottom 제거 */
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 480px) {
  .stat-item { padding: 18px 12px; }
  .stat-item__num { font-size: 1.6rem; }
}

/* ============================
   Scroll To Top Button
   ============================ */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 71, 15, 0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(212, 71, 15, 0.45);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 24px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ============================
   Footer Simple (서브페이지 공통)
   about · services · portfolio · team · careers 에서 공유
   파일별 padding/max-width 재정의는 각 <style> 블록에서 처리
   ============================ */
.footer-simple {
  background: #1c1814;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 48px;
}

.footer-simple__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-simple p {
  color: #445566;
  font-size: 0.82rem;
}

.footer-simple a {
  color: #7a8a9a;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-simple a:hover { color: #fff; }

@media (max-width: 720px) {
  .footer-simple { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .footer-simple__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
