/* ═══ 디자인 클론 출처 ═══
   참조: https://remodeling.kjibsuri.com/
   Primary: #B4C7B0 (파스텔 세이지 — 랜덤 선정)
   배경1~3: #ffffff / #faf7f6 / #f5efed
   폰트: Pretendard Variable 200·400·600·700·800·900
   카드: radius 2px / 1px solid #e8ddda / gap:0 + 내부 라인
   버튼: radius 999px (pill) / primary #B4C7B0
   레이아웃: max-width 1280px / section padding 112px/80px/56px
   헤더: 흰색 / height 68px / border-bottom line
   배경패턴: .section.alt 만 #faf7f6 교차
   ═══════════════════════ */

:root {
  --primary: #B4C7B0;
  --primary-dark: #8BA88B;
  --text-on-primary: #2d2d2d;
  --surf: #faf7f6;
  --surf-2: #f5efed;
  --line: #e8ddda;
  --text: #3d2f2f;
  --mute: #7b6b6b;
  --mute-2: #a89b9b;
  --ff: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  --r-card: 2px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(61,47,47,.06), 0 1px 3px rgba(61,47,47,.08);
  --shadow-md: 0 4px 14px rgba(61,47,47,.08), 0 2px 4px rgba(61,47,47,.06);
  --shadow-lg: 0 20px 40px -12px rgba(61,47,47,.18), 0 8px 16px rgba(61,47,47,.08);
  --card-radius: 2px;
  --border: #e8ddda;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
img, picture, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1.3; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 112px 0;
  background: #fff;
}
.section.alt { background: var(--surf); }
.section.tight { padding: 80px 0; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}
.logo-ic { color: var(--primary-dark); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--primary-dark); }
.nav-cta { color: var(--text-on-primary); }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* Portfolio Section (with H1) */
.portfolio-section { padding-top: 96px; padding-bottom: 112px; }
.portfolio-head { text-align: center; margin-bottom: 56px; }
.portfolio-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.portfolio-sub {
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pf-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--text);
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surf);
}
.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pf-body { padding: 22px 22px 24px; border-top: 1px solid var(--line); }
.pf-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pf-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pf-sub {
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.pf-more {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.sv-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--text);
}
.sv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.sv-card:hover .sv-thumb img { transform: scale(1.05); }
.sv-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surf);
}
.sv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.sv-body { padding: 18px 18px 22px; border-top: 1px solid var(--line); }
.sv-label {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sv-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.sv-desc {
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.sv-more {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Hero Overlay */
.hero-overlay {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero/hero-01.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 1;
}
.hero-overlay .container {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
}
.hero-h2 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.proc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.proc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.proc-desc {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-left h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 20px;
  line-height: 1.35;
}
.about-left p {
  color: var(--mute);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 22px;
  text-align: center;
}
.stat-num {
  color: var(--primary-dark);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.area-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.area-title .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.area-sub {
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.area-list span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--surf-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  color: var(--text);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.faq-q .q-mark {
  color: var(--primary-dark);
  font-weight: 900;
  margin-right: 10px;
}
.faq-q .caret {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-q .caret { transform: rotate(180deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 8px 22px;
  color: var(--mute);
  line-height: 1.8;
  font-size: 0.98rem;
}
.faq-a-inner .a-mark {
  color: var(--primary-dark);
  font-weight: 900;
  margin-right: 10px;
}

/* CTA Section */
#contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 96px 0;
  text-align: center;
  color: var(--text-on-primary);
}
#contact-section h2 {
  color: var(--text-on-primary);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 18px;
}
#contact-section p.cta-sub {
  color: rgba(45,45,45,0.85);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.cta-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.65);
  color: var(--text);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-btns .btn-outline { background: #fff; border-color: #fff; }
.cta-btns .btn-outline:hover { border-color: var(--text-on-primary); }
.cta-btns .btn-primary { background: var(--text-on-primary); color: #fff; border-color: var(--text-on-primary); }
.cta-btns .btn-primary:hover { background: #000; border-color: #000; }

/* Footer */
.site-footer {
  background: var(--text);
  color: #d9cfcf;
  padding: 56px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.foot-text { color: #d9cfcf; margin-bottom: 4px; }
.foot-mute { color: #a89b9b; font-size: 0.88rem; }
.foot-title {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.foot-links li { margin-bottom: 8px; }
.foot-links a {
  color: #d9cfcf;
  font-size: 0.92rem;
}
.foot-links a:hover { color: #fff; }
.foot-bottom {
  padding-top: 20px;
  color: #a89b9b;
  font-size: 0.85rem;
}

/* Floating button */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-toggle {
  background: var(--primary);
  color: var(--text-on-primary);
  border: none;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}
.float-toggle:hover { background: var(--primary-dark); transform: translateY(-2px); }
.float-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: -1;
}
.float-list[hidden] { display: none; }
.float-item {
  background: #fff;
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.float-item:hover { border-color: var(--primary); }

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* NSEO / detail hero */
.page-hero {
  padding: 96px 0 64px;
  background: var(--surf);
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  color: var(--mute);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--mute); }
.page-hero .breadcrumb a:hover { color: var(--primary-dark); }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero p.lead {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.8;
}

/* NSEO content */
.nseo-body {
  padding: 80px 0;
}
.nseo-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}
.nseo-main .intro {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.9;
  padding: 24px 28px;
  background: var(--surf);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-card);
  margin-bottom: 40px;
}
.nseo-section { margin-bottom: 40px; }
.nseo-section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nseo-section p {
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.9;
}
.nseo-side {
  position: sticky;
  top: 90px;
  height: fit-content;
}
.nseo-side .side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
}
.nseo-side h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.nseo-side .side-btn {
  display: block;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--text-on-primary);
  text-align: center;
  border-radius: var(--r-pill);
  font-weight: 700;
  margin-bottom: 8px;
}
.nseo-side .side-btn:hover { background: var(--primary-dark); }
.nseo-side .side-btn.outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.nseo-side .side-btn.outline:hover { border-color: var(--primary); }
.related-portfolios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.related-portfolios .pf-thumb { aspect-ratio: 4/3; }

/* Portfolio detail page */
.pd-hero { padding: 80px 0 40px; background: var(--surf); border-bottom: 1px solid var(--line); }
.pd-hero .breadcrumb { color: var(--mute); font-size: 0.88rem; margin-bottom: 16px; }
.pd-hero .breadcrumb a { color: var(--mute); }
.pd-hero .pd-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pd-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin-bottom: 12px;
}
.pd-hero .pd-sub {
  color: var(--mute);
  font-size: 1.05rem;
}
.pd-info {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pd-info-item {
  padding: 16px;
  background: var(--surf);
  border-radius: var(--r-card);
}
.pd-info-item .label {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.pd-info-item .value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}
.pd-block {
  padding: 72px 0;
}
.pd-block.alt { background: var(--surf); }
.pd-block h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pd-block p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 18px;
}
.pd-img-wrap {
  margin: 30px 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pd-img-wrap img { width: 100%; height: auto; display: block; }
.pd-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pd-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
}
.pd-step .n {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.pd-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.pd-step p { color: var(--mute); font-size: 0.95rem; margin: 0; line-height: 1.75; }
.pd-summary {
  padding: 30px;
  background: var(--surf);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-card);
  margin-top: 30px;
}
.pd-summary h3 { font-size: 1.05rem; margin-bottom: 14px; }
.pd-summary ul { list-style: none; padding: 0; }
.pd-summary li {
  padding-left: 22px;
  position: relative;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.7;
}
.pd-summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Consultation page */
.consult-body { padding: 72px 0; }
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.consult-info h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.consult-info p { color: var(--mute); margin-bottom: 14px; line-height: 1.8; }
.consult-list {
  margin-top: 24px;
  padding: 24px;
  background: var(--surf);
  border-radius: var(--r-card);
}
.consult-list h3 { font-size: 1.05rem; margin-bottom: 14px; }
.consult-list ul { padding-left: 0; }
.consult-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.7;
}
.consult-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px;
  height: 2px;
  background: var(--primary);
}
.consult-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.consult-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
}
.consult-card img { width: 100%; height: auto; display: block; }
.consult-card .cap {
  padding: 14px 18px;
  color: var(--mute);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.consult-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Sitemap page */
.sitemap-body { padding: 72px 0; }
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sitemap-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
}
.sitemap-col h2 {
  font-size: 1.15rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.sitemap-col ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.sitemap-col ul li:last-child { border-bottom: none; }
.sitemap-col ul a { color: var(--text); font-weight: 500; }
.sitemap-col ul a:hover { color: var(--primary-dark); }

/* 404 */
.notfound-body {
  padding: 120px 0;
  text-align: center;
}
.notfound-body h1 {
  font-size: 5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.notfound-body h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.notfound-body p { color: var(--mute); margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nseo-grid { grid-template-columns: 1fr; }
  .nseo-side { position: static; }
  .consult-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-info-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-steps { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .related-portfolios { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-overlay { min-height: 440px; }
  .hero-overlay .container { padding: 72px 24px; }
  .float-cta { right: 16px; bottom: 16px; }
  .float-toggle span { display: none; }
  .float-toggle { padding: 14px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .related-portfolios { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .notfound-body { padding: 80px 0; }
  .notfound-body h1 { font-size: 3.5rem; }
}

/* ═══ Sub-landing pages (14 scheduled sub-pages) ═══ */
.sub-hero {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%);
  display: flex;
  align-items: center;
  width: 100%;
}
.sub-hero-overlay .container {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.sub-eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sub-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.sub-hero-lead {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  margin: 0 0 28px;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  line-height: 1.6;
}

.sub-intro {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
}
.sub-intro p { margin: 0; }

.sub-section {
  max-width: 900px;
  margin: 0 auto;
}
.sub-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.sub-section-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mute);
  white-space: pre-line;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.ba-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  display: block;
}
.ba-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mute);
  margin: 0.75rem 0 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.related-links a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--mute);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.related-links a:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surf);
}

@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; }
  .sub-hero { min-height: 360px; }
  .sub-hero-overlay .container { padding: 56px 20px; }
}
