@charset "UTF-8";
/**
 * contact.css
 * 바톤 웰스 (Baton Wealth) - 문의하기 페이지 스타일
 * index.html과 동일한 1060px 레이아웃 및 최상단 히어로 박스 정렬
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #f3f5f9;
  color: #222;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── 웹 접근성: 본문 바로가기 (Skip Navigation) ── */
.skip-nav {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a2332;
  color: #fff;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 99999;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: 0;
  outline: 2px solid #3b82f6;
}

/* ── 글로벌 네비게이션 헤더 (index.html과 완벽 일치) ── */
body>header {
  background: #1a2332;
  border-bottom: 1px solid #1a2332;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

nav {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 41px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  transition: transform .2s ease, opacity .2s ease;
}

.logo:hover .nav-logo-img {
  transform: scale(1.03);
  opacity: 0.95;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #c8d8ea;
  text-decoration: none;
  font-size: 18px;
  padding: 9px 19px;
  border-radius: 20px;
  background: transparent;
  transition: background .2s, color .2s;
}

.nav-links a:hover {
  background: #173b63;
  color: #fff;
}

/* ── 헤더 금융 키워드 검색창 ── */
.nav-search-form {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 10px;
}

.nav-search-input {
  width: 175px;
  height: 36px;
  padding: 0 34px 0 14px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.nav-search-input:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.16);
  border-color: #38a169;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.25);
}

.nav-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, transform .2s ease;
}

.nav-search-btn:hover {
  color: #4ade80;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .nav-search-form {
    margin-left: 6px;
  }

  .nav-search-input {
    width: 130px;
    font-size: 12px;
  }

  .nav-search-input:focus {
    width: 155px;
  }
}



/* ── 히어로 배너 (메인 랜드마크 최상단 H1 구획) ── */
header.hero,
.hero {
  background: none;
  border: none;
  position: static;
  box-shadow: none;
  color: #173b63;
  padding: 48px 24px 38px;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.hero .sub {
  font-size: 15.5px;
  opacity: .88;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  word-break: keep-all;
}

/* ── 본문 레이아웃 (1060px 와이드) ── */
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

/* ── 본문 카드 (1060px 크기에 맞게 넓힌 카드) ── */
.contact-card {
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  padding: 48px 34px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  text-align: center;
}

address.contact-email-wrap,
.contact-email-wrap {
  font-style: normal;
  display: block;
  margin-bottom: 40px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f4f7fb;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  padding: 18px 36px;
  font-size: 20px;
  font-weight: 700;
  color: #173b63;
  text-decoration: none;
  transition: all .2s ease;
}

.email-link:hover {
  background: #eaf1fa;
  border-color: #bcd2ee;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 59, 99, .08);
}

.contact-details {
  text-align: left;
  border-top: 1px solid #eef2f7;
  padding-top: 36px;
}

.contact-details h2 {
  font-size: 19px;
  color: #173b63;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-details p {
  font-size: 15px;
  color: #4b5868;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
  word-break: keep-all;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.contact-grid-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
}

.contact-grid-item h3 {
  font-size: 16px;
  color: #173b63;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-grid-item p {
  font-size: 14px;
  color: #556477;
  margin-bottom: 0;
  line-height: 1.65;
  text-align: left;
  word-break: keep-all;
}

.contact-notice {
  background: #fdf6ec;
  border-left: 4px solid #e6a23c;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-top: 24px;
  font-size: 14px;
  color: #8c6016;
  line-height: 1.7;
  text-align: left;
  word-break: keep-all;
}

/* ── 푸터 (index.html과 동일) ── */
footer {
  background: #1a2332;
  color: #fff;
  text-align: center;
  padding: 36px 20px;
  font-size: 13.5px;
  border-top: 1px solid #1a2332;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #c8d8ea;
  text-decoration: none;
  font-size: 13.5px;
  margin: 0 10px;
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .copyright {
  color: #8fa2ba;
  font-size: 12.5px;
  margin: 10px 0 0;
  letter-spacing: .2px;
}

/* ── 반응형 ── */
@media (max-width: 650px) {
  nav {
    padding: 9px 14px 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links a:active {
    background: #173b63;
    color: #fff;
  }

  .nav-search-form {
    margin-left: 4px;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
  }

  /* 모바일 환경: 평소 돋보기 아이콘 ➡️ 터치/클릭 시 PC형으로 확장 */
  .nav-search-input {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: transparent !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .nav-search-input::placeholder {
    color: transparent !important;
  }

  .nav-search-form:focus-within .nav-search-input,
  .nav-search-form.active .nav-search-input,
  .nav-search-input:focus {
    width: clamp(125px, 36vw, 160px) !important;
    height: 32px !important;
    padding: 0 30px 0 12px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid #38a169 !important;
    color: #ffffff !important;
    cursor: text;
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.25) !important;
    z-index: 1;
  }

  .nav-search-form:focus-within .nav-search-input::placeholder,
  .nav-search-form.active .nav-search-input::placeholder,
  .nav-search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 11.5px;
  }

  .nav-search-btn {
    position: absolute;
    right: 7px !important;
    width: 24px;
    height: 24px;
    z-index: 3;
    pointer-events: auto !important;
  }

  .nav-search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .hero {
    padding: 44px 18px 36px;
  }

  .hero h1 {
    font-size: 26px;
  }

  main {
    padding: 16px 18px 50px;
  }

  .contact-card {
    padding: 40px 16px;
  }

  .email-link {
    font-size: 16px;
    padding: 14px 20px;
  }
}