/* ═══ 디자인 클론 출처 ═══
   참조: parkingline.bobeabuild.com / Primary: #1E3A5F / Accent: #C8A458
   배경1: #F3F4F6 / 배경2: #F1F5F9 / 배경3: #FAFAFA
   폰트: Pretendard / 카드: 0.5rem / 버튼: 0.375rem
   레이아웃: max-width 1280px / 헤더: 68px fixed glass
   ═══════════════════════ */

:root {
  --primary: #1E3A5F;
  --primary2: #2C5282;
  --accent: #C8A458;
  --bg1: #F3F4F6;
  --bg2: #F1F5F9;
  --bg3: #FAFAFA;
  --ink: #111827;
  --muted: #6B7280;
  --border: #E2E8F0;
  --card-radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: var(--bg1);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* === Animations === */
.fade-in-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-in-up.is-visible { opacity: 1; transform: none; }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring {
  position: absolute; inset: 0; border-radius: 9999px;
  border: 2px solid var(--primary); animation: pulse-ring 3s ease-out infinite; pointer-events: none;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 0.375rem; font-weight: 600;
  font-size: .95rem; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,58,95,.28); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* === Glass Effect === */
.glass {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* === Typography === */
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.02em; line-height: 1.18; }
.section-label {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; color: var(--primary); text-transform: uppercase; margin-bottom: .75rem;
}
.section-header { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: .75rem; }
.section-header p { font-size: .95rem; color: var(--muted); font-weight: 300; line-height: 1.8; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid rgba(226,232,240,.6); height: 68px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-text { font-size: 1.25rem; font-weight: 900; color: var(--primary); letter-spacing: -.03em; }
.logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--muted); }

/* === Gallery Cards (shared) === */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1280px; margin: 0 auto;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  display: block; border: 1px solid var(--border); border-radius: var(--card-radius);
  overflow: hidden; transition: all .3s ease; background: #fff;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(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 .4s ease; }
.gallery-card:hover .card-thumb img { transform: scale(1.03); }
.case-badge {
  position: absolute; top: .75rem; left: .75rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  background: var(--primary); color: #fff; padding: .2rem .6rem; border-radius: .25rem;
}
.gallery-card .card-body { padding: 1.25rem; }
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.4; margin-bottom: .3rem; }
.card-sub { font-weight: 300; font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.card-more { font-size: .875rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.gallery-card:hover .card-more { color: var(--primary); }

/* === Service Cards === */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
}
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  display: block; overflow: hidden; background: #fff;
  border: 1px solid var(--border); border-radius: var(--card-radius);
  transition: all .3s ease;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30,58,95,.12); }
.service-card .card-thumb { aspect-ratio: 3/4; overflow: hidden; background: var(--bg2); }
.service-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .card-thumb img { transform: scale(1.04); }
.service-card .card-body { padding: .75rem; }
.service-card h3 { font-size: .875rem; font-weight: 800; margin-bottom: .3rem; line-height: 1.3; }
.service-card .card-desc { font-size: .75rem; font-weight: 300; color: var(--muted); line-height: 1.5; margin-bottom: .4rem; }
.service-card .card-more { font-size: .75rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.service-card:hover .card-more { color: var(--primary); }

/* === Footer === */
.site-footer { background: #15202F; color: rgba(255,255,255,.75); padding-top: 4rem; padding-bottom: 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { color: #fff; font-size: 1.1rem; font-weight: 900; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 1.25rem; }
.footer-consult {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: .875rem; font-weight: 600; border-radius: .375rem; transition: background .2s;
}
.footer-consult:hover { background: rgba(255,255,255,.18); }
.footer-nav h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; }
.footer-nav ul li { margin-bottom: .5rem; }
.footer-nav ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-nav ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.35); }

/* === Floating Button === */
.floating-btn { position: fixed; bottom: 2rem; right: 1.5rem; z-index: 40; }
.floating-btn a {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; background: var(--primary); color: #fff;
  border-radius: 9999px; font-size: .875rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(30,58,95,.4); transition: transform .2s, box-shadow .2s;
}
.floating-btn a:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,58,95,.5); }

/* === WHY US === */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem;
}
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 2rem; border-left: 4px solid var(--primary);
}
.why-num { font-size: .7rem; font-weight: 700; color: var(--primary); letter-spacing: .1em; margin-bottom: .75rem; }
.why-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.why-card p { font-size: .9rem; font-weight: 300; color: var(--muted); line-height: 1.75; }

/* === PROCESS === */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem;
}
@media (max-width: 768px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 1.75rem 1.5rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; margin-bottom: 1rem;
}
.process-step h3 { font-size: .95rem; font-weight: 800; margin-bottom: .5rem; }
.process-step p { font-size: .85rem; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* === FAQ === */
.faq-list { margin-top: 3rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .95rem; font-weight: 700; cursor: pointer; color: var(--ink); background: none;
}
.faq-icon { flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: .875rem; font-weight: 300; color: var(--muted);
  line-height: 1.8; padding-bottom: 1.25rem; display: none;
}
.faq-item.open .faq-answer { display: block; }

/* === CTA === */
.section-cta {
  padding: 6rem 1.25rem; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #16304A 50%, #0F1F33 100%);
}
.section-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 28%, rgba(200,164,88,.18), transparent 50%),
              radial-gradient(circle at 82% 72%, rgba(255,255,255,.08), transparent 55%);
}
.cta-inner { max-width: 1280px; margin: 0 auto; text-align: center; position: relative; }
.cta-inner h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: .75rem; }
.cta-inner p { font-size: .95rem; opacity: .8; font-weight: 300; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.trust-badges { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: .4rem; font-size: .8rem; opacity: .75; }

/* === Section spacing === */
section { scroll-margin-top: 80px; }
.section-pad { padding: 5rem 1.25rem; }
.section-pad-lg { padding: 6rem 1.25rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* === NSEO sub-hero === */
.sub-hero {
  position: relative; min-height: 420px; display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
.sub-hero-img { position: absolute; inset: 0; }
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.4) 100%);
}
.sub-hero-content {
  position: relative; z-index: 2; max-width: 1280px;
  margin: 0 auto; padding: 4rem 1.25rem 3rem; width: 100%;
}
.sub-hero-content h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.sub-hero-content p { font-size: .95rem; opacity: .85; font-weight: 300; margin-bottom: 1.5rem; max-width: 40rem; }
.sub-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* === Portfolio detail === */
.detail-info-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
.detail-info-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 768px) { .detail-info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-item { }
.info-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; margin-bottom: .25rem; }
.info-value { font-size: .9rem; font-weight: 600; }
.detail-img-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.summary-box {
  border-left: 4px solid var(--primary); background: #fff;
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--card-radius); padding: 2rem;
}
.summary-box ul li {
  padding: .5rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; font-weight: 300; color: var(--muted);
  padding-left: 1rem; position: relative;
}
.summary-box ul li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 4px;
  background: var(--primary); border-radius: 50%;
}
.summary-box ul li:last-child { border-bottom: none; }

/* === Comparison table === */
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th { background: var(--primary); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 700; }
.compare-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: var(--bg2); }
.compare-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }

/* === Related cards === */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.25rem; transition: all .3s;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,58,95,.1); }
.related-card.current { background: var(--bg2); cursor: default; pointer-events: none; }
.related-card .r-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; margin-bottom: .4rem; }
.related-card h3 { font-size: .9rem; font-weight: 800; margin-bottom: .4rem; line-height: 1.3; }
.related-card p { font-size: .8rem; font-weight: 300; color: var(--muted); line-height: 1.5; }
.current-badge { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-top: .4rem; }

/* === Contact page === */
.step-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.step-box {
  display: flex; gap: 1.5rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem;
}
.step-badge {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.step-content h3 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.step-content p { font-size: .875rem; font-weight: 300; color: var(--muted); line-height: 1.75; }
.notice-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.5rem; margin-top: 2rem;
}
.notice-box h4 { font-size: .9rem; font-weight: 800; margin-bottom: .75rem; color: var(--primary); }
.notice-box ul li {
  font-size: .875rem; font-weight: 300; color: var(--muted);
  padding: .3rem 0; padding-left: 1rem; position: relative;
}
.notice-box ul li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 4px;
  background: var(--primary); border-radius: 50%;
}
.cta-contact-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.btn-tel { background: var(--primary); color: #fff; padding: 1rem 2rem; border-radius: 0.375rem; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem; }
.btn-sms { background: var(--accent); color: #1c1812; padding: 1rem 2rem; border-radius: 0.375rem; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .section-pad { padding: 4rem 1rem; }
  .section-pad-lg { padding: 5rem 1rem; }
}
