/*
Theme Name: 파인애드 메인
Theme URI: https://pinead.co.kr
Author: 파인애드
Description: 파인애드 메인 사이트 커스텀 테마
Version: 1.0
*/

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

:root {
  --green:     #1B3A8A;
  --green-dark:#0F1F5C;
  --gold:      #D97706;
  --gold-dim:  rgba(217,119,6,0.10);
  --bg:        #FFFFFF;
  --bg2:       #F0F4FF;
  --bg3:       #E4EBFF;
  --text:      #0F172A;
  --muted:     rgba(15,23,42,0.55);
  --border:    rgba(27,58,138,0.1);
  --white:     #FFFFFF;
  --font:      'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 헤더 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  white-space: nowrap;
  transition: color 0.3s;
  font-family: var(--font);
}
.logo-dot { color: var(--gold); font-weight: 900; }
.site-header.scrolled .logo-main { color: var(--green); }
.logo-divider {
  width: 1px; height: 22px;
  background: rgba(217,119,6,0.35);
  flex-shrink: 0;
}
.logo-sub {
  font-size: 9px; font-weight: 600;
  color: var(--gold); letter-spacing: 2px;
  line-height: 1.6; font-family: var(--font);
}

@media (max-width: 600px) {
  .logo-divider,
  .logo-sub { display: none; }
  .logo-main { font-size: 1.25rem; }
}
/* 커스텀 로고 이미지 */
.site-logo-img a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.site-logo-img img {
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
}

/* 구버전 호환 */
.site-logo .logo-img {
  height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block !important;
  transition: filter 0.3s;
}

/* PC 네비 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }
.site-header.scrolled .nav-menu a { color: var(--text); }
.site-header.scrolled .nav-menu a:hover { color: var(--green); }

.nav-cta {
  background: var(--gold);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #b8923f; transform: translateY(-1px); }

/* 햄버거 버튼 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.site-header.scrolled .hamburger span { background: var(--green); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 모바일 오버레이 ===== */
.mobile-overlay {
  display: none; opacity: 0;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  transition: opacity 0.3s;
}
.mobile-overlay.open { display: block; opacity: 1; }

/* ===== 모바일 슬라이드 메뉴 ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 300px; max-width: 85vw;
  height: 100vh;
  background: var(--bg);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--green);
  flex-shrink: 0;
}
.mobile-logo {
  font-size: 1.2rem; font-weight: 900;
  color: #fff; font-family: var(--font);
}
.mobile-logo em { font-style: normal; color: var(--gold); }
.mobile-close {
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem; cursor: pointer;
  padding: 4px 8px; line-height: 1;
  transition: color 0.2s;
}
.mobile-close:hover { color: #fff; }

.mobile-nav-menu {
  list-style: none;
  padding: 8px 0; margin: 0; flex: 1;
}
.mobile-nav-menu li { border-bottom: 1px solid var(--border); }
.mobile-nav-menu a {
  display: block; padding: 18px 24px;
  font-size: 1rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-menu a:hover {
  background: var(--bg2);
  color: var(--green);
}
.mobile-nav-menu .current-menu-item > a {
  color: var(--green); font-weight: 800;
  border-left: 3px solid var(--gold);
  padding-left: 21px;
}

.mobile-menu-cta {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-cta-btn {
  display: block; text-align: center;
  padding: 14px; border-radius: 10px;
  font-size: 0.97rem; font-weight: 700;
  text-decoration: none;
  background: var(--green); color: #fff;
  transition: background 0.2s;
  font-family: var(--font);
}
.mobile-cta-btn:hover { background: var(--green-dark); }
.mobile-cta-btn.kakao { background: #FEE500; color: #1A1A1A; }
.mobile-cta-btn.kakao:hover { background: #f0d800; }

/* ===== 푸터 ===== */
.site-footer {
  background: #0A1540;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
  display: block !important;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* 브랜드 */
.footer-logo {
  font-size: 1.6rem; font-weight: 900;
  color: #fff; margin-bottom: 12px;
  font-family: var(--font);
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.88rem; line-height: 1.9;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.footer-cta-btns { display: flex; flex-direction: column; gap: 10px; }
.f-btn-kakao, .f-btn-tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  width: fit-content; font-family: var(--font);
}
.f-btn-kakao { background: #FEE500; color: #1A1A1A; }
.f-btn-kakao:hover { background: #f0d800; transform: translateY(-1px); }
.f-btn-tel {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
}
.f-btn-tel:hover { background: rgba(255,255,255,0.14); }

/* 컬럼 */
.footer-col-title {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-links a {
  font-size: 0.92rem; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--gold); }
.footer-link-badge span {
  font-size: 0.72rem; font-weight: 700;
  color: var(--gold);
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.3);
  padding: 2px 8px; border-radius: 4px;
}
.footer-address {
  font-style: normal;
  font-size: 0.86rem; line-height: 2;
  color: rgba(255,255,255,0.45);
}
.footer-address a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
}
.footer-address a:hover { color: var(--gold); }

/* 하단 */
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4); transition: color 0.2s;
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-info { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .header-inner { height: 60px; }
}
