/* ═══ 디자인 클론: top.gnssign.com ═══
   Primary: #3b4a3f (모스 그린) / 배경: #f8f5f0 / 폰트: Noto Sans KR
   카드: radius 12px, shadow 0 2px 16px rgba(59,74,63,.12) / 버튼: radius 6px
   레이아웃: max-width 1200px, gap 24px / 헤더: 70px fixed white
   ═══════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --primary: #3b4a3f;
  --primary-dark: #2a3830;
  --primary-light: #4d6359;
  --accent: #c9a227;
  --accent-dark: #a8861f;
  --bg: #f8f5f0;
  --sub-bg: #ece8e0;
  --text: #1a2320;
  --text-soft: #606a68;
  --border: #d4d0c8;
  --white: #ffffff;
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --shadow: 0 2px 16px rgba(59,74,63,.12);
  --shadow-lg: 0 8px 32px rgba(59,74,63,.20);
  --transition: 0.3s ease;
  --max-w: 1200px;
  --header-h: 70px;
}

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

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

button {
  cursor: pointer;
}

/* ── 2. Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 3. Section ── */
.section {
  padding: 96px 0;
}

.section--sub {
  background: var(--sub-bg);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 17px;
}

/* ── 4. Fade animation ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-in-up[data-delay="6"] { transition-delay: 0.6s; }

/* ── 5. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s, color var(--transition), border-color var(--transition);
}

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

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

.btn--accent {
  background: var(--accent);
  color: #1a2320;
  font-weight: 800;
}

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

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

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

.btn--white {
  background: #fff;
  color: var(--primary);
  font-weight: 800;
}

.btn--white:hover {
  background: var(--accent);
  color: #1a2320;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: var(--radius);
}

.btn:active {
  transform: scale(0.98);
}

/* ── 6. Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.site-logo__text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.site-logo__text span {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--sub-bg);
  color: var(--accent);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-cta {
  margin-left: 16px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a2320;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  border: none;
}

.header-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  z-index: 1001;
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.mobile-nav ul a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav ul a:hover {
  background: var(--sub-bg);
  color: var(--primary);
}

.mobile-nav-cta {
  display: block;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a2320;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

/* ── 7. Hero ── */
.hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 85vh;
  background: #1a2320;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide--1 {
  z-index: 2;
  animation: hero-crossfade 10s ease-in-out infinite;
}

.hero-slide--2 {
  z-index: 1;
  opacity: 1;
}

@keyframes hero-crossfade {
  0%   { opacity: 1; }
  42%  { opacity: 1; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(20, 40, 30, 0.90) 0%, rgba(40, 74, 60, 0.55) 55%, transparent 100%);
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 0 56px;
  z-index: 4;
  color: #fff;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-text h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 8. Pain Points Section ── */
.pain-points {
  background: var(--sub-bg);
}

.pain-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.pain-item-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pain-item-text p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.worry-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── 9. Features Section ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ── 10. Compare Slider Section ── */
.compare-section {
  background: var(--sub-bg);
}

.compare-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: ew-resize;
  user-select: none;
}

.compare-slider .before-img,
.compare-slider .after-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.compare-slider .after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
}

.compare-slider .after-wrap .after-img {
  width: auto;
  min-width: 100%;
  max-width: none;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
}

.compare-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-handle::before {
  content: '\25C1 \25B7';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  z-index: 11;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.compare-badge {
  position: absolute;
  bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 0.3rem;
  z-index: 5;
}

.compare-badge.before {
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.compare-badge.after {
  right: 1rem;
  background: var(--accent);
  color: #1a2320;
}

.compare-guide {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

/* ── 11. Portfolio Section ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
  display: block;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 138, 0);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: opacity var(--transition), background var(--transition);
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card.touched .portfolio-overlay {
  opacity: 1;
  background: rgba(42, 56, 48, 0.88);
}

.portfolio-overlay-location {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.portfolio-overlay-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.portfolio-overlay-more {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-more {
  text-align: center;
  margin-top: 48px;
}

/* ── 12. Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

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

.service-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.07);
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.service-card:hover .service-card-more {
  color: var(--accent);
}

/* ── 13. Trust Cards Section ── */
.trust-section {
  background: var(--primary);
  color: #fff;
}

.trust-section .section-head h2 {
  color: #fff;
}

.trust-section .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition);
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trust-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.trust-card-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.trust-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

/* ── 14. FAQ Section ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-btn:hover {
  color: var(--primary);
}

.faq-q-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.faq-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  stroke: currentColor;
  fill: none;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-body {
  max-height: 400px;
}

.faq-body p {
  padding: 0 0 22px 40px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
}

.faq-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── 15. CTA Section ── */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  line-height: 1.8;
}

.cta-phone {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 16. Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.footer-brand {
  flex-shrink: 0;
  max-width: 300px;
}

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

.footer-logo-text {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}

.footer-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  padding: 4px 0;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── 17. Floating Button ── */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.floating-btn-inner {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.floating-btn-inner:hover {
  transform: scale(1.1);
}

.floating-btn-inner svg {
  width: 26px;
  height: 26px;
  stroke: #1a2320;
  fill: none;
  stroke-width: 2;
}

.floating-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 1rem;
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 3s cubic-bezier(0.2, 0.65, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── 18. Sub Hero ── */
.sub-hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
  min-height: 400px;
  background: var(--primary);
}

.sub-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 64px;
  color: #fff;
  text-align: center;
}

.sub-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.sub-hero-eyebrow::before,
.sub-hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sub-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.sub-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sub-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 19. Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  background: none;
  border: none;
  padding: 8px;
  line-height: 1;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 12px 16px;
  font-size: 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── 20. Steps ── */
.steps {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--border);
}

.step:last-child::after {
  display: none;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── 21. Detail Page ── */
.detail-hero {
  position: relative;
  margin-top: var(--header-h);
  height: 480px;
  overflow: hidden;
  background: var(--primary);
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.back-link:hover {
  color: #fff;
}

.detail-info-bar {
  background: var(--sub-bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info-item label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

.info-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.3s;
  width: 100%;
  display: block;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.summary-box {
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  background: var(--sub-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 32px;
}

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

.summary-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.summary-box li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── 22. Related Services ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  display: block;
}

.related-card.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.related-card:hover:not(.current) {
  background: var(--sub-bg);
  color: var(--primary);
}

/* ── 24. Sitemap ── */
.sitemap-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.sitemap-list {
  list-style: none;
}

.sitemap-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sitemap-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
  transition: color var(--transition);
}

.sitemap-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.sitemap-list a:hover {
  color: var(--primary);
}

/* ── 23. Mobile Responsive ── */
@media (min-width: 769px) {
  .btn--sms-only {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero-slides {
    aspect-ratio: unset;
    min-height: 100svh;
  }

  .pain-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid,
  .trust-grid,
  .portfolio-grid,
  .services-grid,
  .info-bar-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .step::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    margin-left: 0;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .cta-phone {
    font-size: 28px;
  }

  .btn--sms-only {
    display: inline-flex !important;
  }

  .compare-slider .before-img,
  .compare-slider .after-img {
    aspect-ratio: 1 / 1;
  }

  .detail-hero {
    height: 320px;
  }

  .detail-hero-content {
    padding: 24px;
  }
}

/* ── 클래스명 호환 별칭 (section-head → section-header 등) ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header--light { text-align: center; margin-bottom: 64px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.section-sub { margin-top: 16px; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.section-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; }

/* trust-section 내 흰색 텍스트 */
.trust-section .section-title { color: #fff; }
.trust-section .section-sub { color: rgba(255,255,255,.75); }

/* ── Hero: .hero-images / .hero-img / .hero-content / .hero-label / .hero-title ── */
.hero-images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 85vh;
  background: #1a2320;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  z-index: 1;
}
.hero-img--active {
  z-index: 2;
  animation: hero-crossfade 10s ease-in-out infinite;
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 0 56px;
  z-index: 4;
  color: #fff;
  text-align: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-label::before,
.hero-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* ── Logo in header ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--primary);
}

/* ── Painpoint section ── */
.painpoint-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pain-text { /* wrapper inside .pain-item — no extra layout needed */ }
.pain-q {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.pain-a {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

/* ── Feature card text ── */
.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}
.feature-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ── Gallery section actions ── */
.gallery-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ── Portfolio card — card layout (image + info below) ── */
.portfolio-card {
  aspect-ratio: auto;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.portfolio-card--hidden { display: none; }
.portfolio-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.07); }
.portfolio-info {
  padding: 18px 20px 20px;
}
.portfolio-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--text);
}
.portfolio-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Service card text aliases ── */
.service-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-img-wrap img { transform: scale(1.07); }
.service-info { padding: 24px; }
.service-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}
.service-card:hover .service-link { color: var(--accent); }

/* ── Trust card text aliases ── */
.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.trust-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}
.trust-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}
.trust-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
}

/* ── FAQ: .faq-question / .faq-icon / .faq-answer ── */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  transition: transform .3s;
  stroke: currentColor;
  fill: none;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.faq-answer[hidden] { display: block !important; max-height: 0; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
}
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ── CTA section text aliases ── */
.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 24px;
  line-height: 1.8;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── Footer aliases ── */
.footer-left {
  flex-shrink: 0;
  max-width: 300px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -.02em;
}
.footer-biz {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
  color: rgba(255, 255, 255, .55);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

/* contact.php step 스타일 */
.contact-steps { display: flex; gap: 40px; margin-bottom: 48px; }
.contact-step { flex: 1; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 700; display: block; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.contact-step-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.contact-info-box { background: var(--sub-bg); border-radius: var(--radius); padding: 32px; margin-top: 48px; }
.contact-info-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-info-box ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-info-box li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.6; }
.contact-info-box li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.btn--outline-dark { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius-sm); }
.btn--outline-dark:hover { background: rgba(255,255,255,.1); }

/* cases.php hero */
.sub-hero .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 12px; transition: color var(--transition); }
.sub-hero .back-link:hover { color: #fff; }

/* 404 page */
.not-found-num { font-size: clamp(80px,15vw,120px); font-weight: 900; color: var(--primary); opacity: .12; line-height: 1; }
.not-found-section { text-align: center; padding: 96px 0; }

@media (max-width: 768px) {
  .contact-steps { flex-direction: column; gap: 24px; }
  .section-header { margin-bottom: 40px; }
}
