/* =============================================
   (주)하나엔지니어링 - 공통 스타일시트
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #0f2c5c;        /* 네이비 블루 */
  --primary-dark: #091e40;
  --primary-light: #1a4480;
  --accent: #2b7fc4;         /* 포인트 블루 */
  --accent-light: #4da6e8;
  --accent-teal: #17a4b8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f0f4f8;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-main: #1e293b;
  --text-sub: #475569;
  --font-main: 'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-main);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-sub);
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  margin: 1rem auto;
  border-radius: 2px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

/* ---- Logo Text Style ---- */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text .logo-main {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  font-family: var(--font-main);
}
.logo-text .logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
/* scrolled header에서도 흰색 유지 */
.header.scrolled .logo-text .logo-main { color: var(--white); }
.header.scrolled .logo-text .logo-sub  { color: rgba(255,255,255,0.6); }

/* 밝은 배경(subpage) 헤더 로고 — scrolled 고정 페이지 */
.header-light .logo-text .logo-main { color: var(--white); }
.header-light .logo-text .logo-sub  { color: rgba(255,255,255,0.6); }

/* footer logo text */
.footer-logo-text .logo-main {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-logo-text .logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

/* ---- CTA Block (section 하단 중앙) ---- */
.section-cta {
  text-align: center;
  margin-top: 60px;
  padding: 44px 32px 48px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(135deg, rgba(15,44,92,0.03) 0%, rgba(43,127,196,0.06) 100%);
  border-radius: var(--radius-lg);
  position: relative;
}
.section-cta-dark {
  text-align: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
/* 주요 CTA 버튼 — 오렌지 계열, 강렬한 존재감 */
.cta-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: linear-gradient(135deg, #e85d04 0%, #f48c06 100%);
  color: var(--white);
  border-radius: 50px;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(232,93,4,0.4), 0 0 0 0 rgba(232,93,4,0.25);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  text-decoration: none;
  letter-spacing: 0.01em;
  animation: pulse-cta 2.8s infinite;
}
@keyframes pulse-cta {
  0%   { box-shadow: 0 8px 28px rgba(232,93,4,0.4), 0 0 0 0 rgba(232,93,4,0.35); }
  70%  { box-shadow: 0 8px 28px rgba(232,93,4,0.4), 0 0 0 12px rgba(232,93,4,0); }
  100% { box-shadow: 0 8px 28px rgba(232,93,4,0.4), 0 0 0 0 rgba(232,93,4,0); }
}
.cta-btn-main:hover {
  background: linear-gradient(135deg, #c04a00 0%, #e07b00 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(232,93,4,0.55);
  color: var(--white);
  animation: none;
}
.cta-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.cta-btn-sub:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.cta-btn-sub-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.cta-btn-sub-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.header.scrolled {
  background: rgba(9, 30, 64, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header.transparent {
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 18px;
  height: 72px;
  line-height: 72px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--gray-50);
  color: var(--accent);
  padding-left: 28px;
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px !important;
  height: auto !important;
  line-height: normal !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem !important;
  margin-left: 12px;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,127,196,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(9, 30, 64, 0.98);
  backdrop-filter: blur(12px);
  padding: 8px 0 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

/* 아코디언 그룹 (상위 메뉴 + 하위 메뉴 묶음) */
.mobile-nav-group {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* 상위 메뉴 행 */
.mobile-nav-row {
  display: flex;
  align-items: center;
}

.mobile-nav-row > a {
  flex: 1;
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: none !important;
}

.mobile-nav-row > a:hover {
  color: var(--accent-light);
  background: rgba(255,255,255,0.05);
}

/* 화살표 토글 버튼 */
.mobile-nav-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: color 0.2s, transform 0.25s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.mobile-nav-toggle:hover { color: var(--accent-light); }
.mobile-nav-toggle.open { transform: rotate(180deg); color: var(--accent-light); }

/* 하위 메뉴 (숨김 → 열림) */
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.25);
}
.mobile-nav-sub.open { max-height: 500px; }

.mobile-nav-sub a {
  display: block;
  padding: 11px 24px 11px 40px;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.mobile-nav-sub a::before {
  content: '└';
  position: absolute;
  left: 22px;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}
.mobile-nav-sub a:hover {
  color: var(--accent-light);
  background: rgba(255,255,255,0.04);
}

/* 단독 메뉴 (하위 없음) */
.mobile-nav-item {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-item:hover {
  color: var(--accent-light);
  background: rgba(255,255,255,0.05);
}

.mobile-nav .mobile-cta {
  margin: 16px 24px 0;
  display: block;
  text-align: center;
  padding: 14px 24px !important;
  background: var(--accent);
  border-radius: 50px;
  border: none !important;
  font-weight: 700;
  color: #fff;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,127,196,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

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

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ---- Stats / Counter ---- */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  display: block;
}

.stat-unit {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  display: block;
}

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  padding: 130px 0 70px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--accent-light);
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--accent-light);
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
}

.footer-bottom-right {
  display: flex;
  gap: 20px;
}

.footer-bottom-right a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-bottom-right a:hover {
  opacity: 1;
  color: var(--accent-light);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--text-sub); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ---- Tag / Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--accent);
  color: var(--white);
}

.badge-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ---- Wave Divider ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,127,196,0.12);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 64px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    /* display: block 으로 변경하되, visibility:hidden 으로 초기에 숨김 */
    display: block;
  }
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

/* ---- CTA Section (전 페이지 공통) ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 60%, var(--accent) 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.cta-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
