/* ═══ Primary 컬러: 다크 틸 #1a4a4a (인테리어·리폼 업종) ═══ */
:root {
  --primary: #1a4a4a;
  --primary-hover: #15393a;
  --primary-light: #e8f4f4;
  --accent: #2d7a7a;
  --bg-white: #ffffff;
  --bg-gray: #f8f8f8;
  --bg-dark: #111d1d;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-radius: 0.75rem;
  --section-py: 5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-white);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--section-py) 0; }
.bg-gray { background: var(--bg-gray); }
.bg-dark { background: var(--bg-dark); color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Fixed Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-text { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

body { padding-top: 64px; }

/* ── SERVICE Section (First) ── */
.service-section { background: var(--bg-white); }
.service-top { margin-bottom: 2.5rem; }
.service-desc { max-width: 640px; color: var(--text-muted); margin-top: 1rem; line-height: 1.8; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .service-cards { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,74,74,0.14);
}

/* 이미지 + 오버레이 넘버 배지 */
.service-card-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--bg-gray);
}
.service-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-card-thumb img { transform: scale(1.06); }
.service-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

/* 텍스트 영역 */
.service-card-body {
  padding: 1.1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.service-card:hover .service-card-body { border-top-color: var(--primary); }

.service-card-title {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}
.service-card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card-more {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.service-card:hover .service-card-more {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero Section ── */
.hero-section {
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
  background: var(--bg-gray);
}

.hero-slider {
  width: 100%;
  position: relative;
  aspect-ratio: 16/7;
  min-height: 420px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-slider { aspect-ratio: 4/3; min-height: 320px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.32) 55%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 5;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.68) 100%);
    align-items: flex-end;
  }
}

.hero-text {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
}
@media (max-width: 768px) {
  .hero-text { padding: 3.5rem 1.25rem; text-align: center; }
}

.hero-brand { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-bottom: 0.75rem; font-weight: 500; }
.hero-keyword { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; line-height: 1.2; }
.hero-desc { color: rgba(255,255,255,0.82); margin-bottom: 1.75rem; max-width: 480px; line-height: 1.7; }
@media (max-width: 768px) { .hero-desc { margin-left: auto; margin-right: auto; } }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .hero-ctas { justify-content: center; } }
.hero-tags { font-size: 0.78rem; color: rgba(255,255,255,0.52); }

.slider-indicators {
  position: absolute;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.slider-dot.active { background: #fff; }

/* ── Gallery Section ── */
.gallery-section { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.gallery-head { margin-bottom: 2.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.gallery-card .card-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gallery-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-card:hover .card-thumb img { transform: scale(1.03); }
.case-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--primary); color: #fff;
  padding: 0.2rem 0.6rem; border-radius: 0.25rem;
}
.gallery-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.4; }
.card-sub { font-weight: 300; font-size: 0.875rem; color: var(--text-muted); }
.card-more { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: color 0.3s ease; }
.gallery-card:hover .card-more { color: var(--primary); }

/* ── Video Section ── */
.video-section { background: var(--bg-gray); }
.video-wrap {
  max-width: 800px;
  margin: 2rem auto 1.5rem;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-cta { text-align: center; margin-top: 1.5rem; }
.video-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Why Us Section ── */
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 640px) { .whyus-grid { grid-template-columns: 1fr; } }
.whyus-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.whyus-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,74,74,0.08); }
.whyus-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.whyus-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.whyus-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.whyus-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Process Section ── */
.process-section { background: var(--bg-gray); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 auto 1rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ── FAQ Section ── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-icon::after { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner { padding-bottom: 1.25rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ── CTA Section ── */
.cta-section { background: var(--primary); color: #fff; padding: var(--section-py) 0; }
.cta-label { background: rgba(255,255,255,0.2); color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section .section-sub { color: rgba(255,255,255,0.75); }
.cta-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.trust-badge svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-nav h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ── Floating Button ── */
.floating-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
}
.floating-btn a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 3rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(26,74,74,0.35);
  text-decoration: none;
  position: relative;
}
.floating-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; flex-shrink: 0; }
.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 3rem;
  border: 2px solid var(--primary);
  animation: pulseRing 3s infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* ── Animations ── */
.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); }

/* ── Sub Hero (NSEO / Contact) ── */
.sub-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.sub-hero-img {
  position: absolute;
  inset: 0;
}
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
}
.sub-hero-content .section-label { background: rgba(255,255,255,0.15); color: #fff; }
.sub-hero-content h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.sub-hero-content p { color: rgba(255,255,255,0.75); max-width: 540px; }
.sub-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Contact Page ── */
.contact-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 768px) { .contact-steps { grid-template-columns: 1fr; } }
.contact-step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.contact-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}
.contact-step h3 { margin-bottom: 0.6rem; }
.contact-step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.contact-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.contact-info-box {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}
.contact-info-box h3 { color: var(--primary); margin-bottom: 1rem; }
.contact-info-box ul { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info-box li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}
.contact-info-box li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Portfolio Detail ── */
.detail-info-bar {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.info-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 768px) { .info-bar-inner { grid-template-columns: repeat(2, 1fr); } }
.info-bar-item { text-align: center; }
.info-bar-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.3rem; }
.info-bar-val { font-size: 0.95rem; font-weight: 700; }

.detail-section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.detail-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 540px) { .detail-photos { grid-template-columns: 1fr; } }
.detail-photos img { width: 100%; border-radius: 0.5rem; object-fit: cover; aspect-ratio: 4/3; }

.process-step-detail { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
@media (max-width: 640px) { .process-step-detail { flex-direction: column; } }
.step-badge-sm {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.step-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
.step-photos img { width: 100%; border-radius: 0.5rem; object-fit: cover; aspect-ratio: 4/3; }

.summary-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.summary-box ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.summary-box li {
  font-size: 0.95rem; padding-left: 1.2rem; position: relative;
}
.summary-box li::before {
  content: '';
  position: absolute; left: 0; top: 0.6rem;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary);
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── NSEO pages ── */
.nseo-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .nseo-case-grid { grid-template-columns: 1fr; } }
.nseo-case-item { position: relative; border-radius: var(--card-radius); overflow: hidden; }
.nseo-case-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.nseo-case-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 1.5rem 1rem 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; border: 1px solid var(--border); text-align: left; }
.compare-table th { background: var(--primary); color: #fff; font-weight: 700; }
.compare-table tr:nth-child(even) td { background: var(--bg-gray); }
.compare-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }

.main-banner {
  background: var(--bg-gray);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.main-banner p { color: var(--text-muted); margin-bottom: 1rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: block;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.related-card.current { border-color: var(--primary); background: var(--primary-light); pointer-events: none; }
.related-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.related-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.related-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.related-current { font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* ── Sitemap page ── */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}
.sitemap-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary); }
.sitemap-card ul { display: flex; flex-direction: column; gap: 0.5rem; }
.sitemap-card a { font-size: 0.875rem; color: var(--text-muted); }
.sitemap-card a:hover { color: var(--primary); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Responsive Header ── */
@media (max-width: 640px) {
  .floating-btn { bottom: 1.25rem; right: 1rem; }
  section { padding: 3.5rem 0; }
}
