/* ==========================================================================
   Common CSS — 변수, 레이아웃, 헤더, 푸터
   ========================================================================== */

/* ---------- CSS Variables — Toss-style White ---------- */
:root {
  /* Primary — Toss Blue */
  --primary: #3182F6;
  --primary-dark: #1B64DA;
  --primary-light: #EBF3FE;

  /* Accent — 로고 연두 (포인트만) */
  --accent: #8DC21F;
  --accent-dark: #6B9A10;

  /* Neutral — Toss Gray Scale */
  --black: #191F28;
  --gray-800: #333D4B;
  --gray-600: #4E5968;
  --gray-400: #8B95A1;
  --gray-200: #E5E8EB;
  --gray-100: #F2F4F6;
  --white: #FFFFFF;

  /* Border */
  --border: #E5E8EB;
  --border-light: #F2F4F6;

  /* Status */
  --red: #F04452;
  --blue: #3182F6;

  /* Typography */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 21px;
  --text-xl: 26px;
  --text-2xl: 32px;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 120px;
  --gnb-height: 52px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--black);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip Navigation ---------- */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 600;
}
.skip-nav:focus {
  top: 0;
}

/* ---------- Lucide icon defaults ---------- */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: -0.125em;
}

/* ====================================================================
   Header
   ==================================================================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled {
  box-shadow: 0 1px 0 var(--border);
}

/* -- Top Bar -- */
.header-top {
  border-bottom: 1px solid var(--border);
}
.header-top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header__logo {
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 36px;
  width: auto;
}
.header__util {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header__util-icon {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  opacity: 0.6;
  vertical-align: -1px;
}
.header__util a:hover .header__util-icon {
  opacity: 1;
}
.header__util a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.header__util a:hover {
  color: var(--black);
  background: var(--gray-100);
}
.header__util a + a {
  border-left: none;
  padding-left: 10px;
}
.header__tel {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--primary);
  margin-left: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  letter-spacing: -0.3px;
  transition: all var(--transition);
}
.header__tel:hover {
  background: var(--primary);
  color: var(--white);
}

/* -- GNB -- */
.gnb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.gnb .inner {
  display: flex;
  align-items: center;
  height: 48px;
}
.gnb__list {
  display: flex;
  align-items: center;
  width: 100%;
}
.gnb__item {
  flex: 1;
  text-align: center;
}
.gnb__icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  opacity: 0.5;
  flex-shrink: 0;
}
.gnb__link:hover .gnb__icon,
.gnb__link--active .gnb__icon {
  opacity: 1;
  color: var(--primary);
}

.gnb__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: all var(--transition);
  position: relative;
}
.gnb__link:hover {
  color: var(--black);
}
.gnb__link--active {
  color: var(--primary);
  font-weight: 700;
}
.gnb__link--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.gnb__link--cta {
  background: var(--primary);
  border: none;
  font-weight: 700;
  color: var(--white);
  border-radius: var(--radius-sm);
  height: 34px;
  margin: 7px 0;
  padding: 0 18px;
  font-size: 13px;
}
.gnb__link--cta:hover {
  background: var(--primary-dark);
}

/* -- Mobile Menu Button -- */
.header__mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
  border-radius: 1px;
}
.header__mobile-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.header__mobile-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -- Mobile CTA -- */
.header__mobile-cta {
  display: none;
}

/* -- Mobile Side Menu -- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open {
  left: 0;
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__logo img {
  height: 32px;
}
.mobile-nav__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-600);
}
.mobile-nav__tel {
  display: block;
  padding: 16px 20px;
  background: var(--primary-light);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}
.mobile-nav__list {
  padding: 12px 0;
}
.mobile-nav__link {
  display: block;
  padding: 14px 24px;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.mobile-nav__util {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}
.mobile-nav__util a {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* -- Overlay -- */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
}
.overlay.is-active {
  display: block;
}

/* ====================================================================
   Footer
   ==================================================================== */
.footer {
  background: var(--white);
  color: var(--gray-600);
  padding: 48px 0;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__info {
  flex: 1;
}
.footer__logo {
  margin-bottom: 16px;
}
.footer__logo img {
  height: 30px;
  opacity: 0.5;
}
.footer__text {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--gray-400);
}
.footer__text span {
  display: inline-block;
  margin-right: 16px;
}
.footer__copyright {
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--gray-400);
}
.footer__contact {
  text-align: right;
}
.footer__contact-tel {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contact-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.footer__contact-time {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: 1.8;
}

/* ====================================================================
   Responsive
   ==================================================================== */

/* ====================================================================
   Desktop Enhancement — PC 가독성 강화
   ==================================================================== */
@media (min-width: 1200px) {
  :root {
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 17px;
    --text-lg: 22px;
    --text-xl: 28px;
    --text-2xl: 36px;
  }

  .inner {
    padding: 0 32px;
  }

  /* Header top bar */
  .header-top .inner {
    height: 64px;
  }

  .header__logo img {
    height: 38px;
  }

  .header__util a {
    padding: 8px 14px;
    font-size: 14px;
  }

  .header__tel {
    font-size: var(--text-md);
    padding: 8px 18px;
  }

  /* GNB */
  .gnb .inner {
    height: 50px;
  }

  .gnb__link {
    height: 50px;
    font-size: 15px;
    font-weight: 600;
  }

  /* Footer */
  .footer {
    padding: 52px 0;
  }

  .footer__text {
    font-size: 14px;
    line-height: 2;
  }

  .footer__contact-tel {
    font-size: var(--text-xl);
  }

  .footer__contact-time {
    font-size: 14px;
  }
}

/* Tablet */
@media (max-width: 1199px) {
  .inner {
    padding: 0 24px;
  }
  .gnb__link {
    font-size: var(--text-sm);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .inner {
    padding: 0 16px;
  }

  /* Header */
  .header {
    background: var(--white);
  }
  .header-top {
    border-bottom: none;
  }
  .header-top .inner {
    height: 52px;
  }
  .header__logo img {
    height: 28px;
  }
  .header__util {
    display: none;
  }
  .header__tel {
    display: none;
  }
  .header__mobile-toggle {
    display: flex;
  }
  .header__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: -0.2px;
  }

  /* GNB hide on mobile */
  .gnb {
    display: none;
  }

  /* Mobile Nav */
  .mobile-nav {
    display: block;
  }

  /* Footer */
  .footer .inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer__contact {
    text-align: left;
  }
  .footer {
    padding: 32px 0;
  }
}
