/* ============================================================
   한백하우징 — 디딤석시공
   Design tokens — dark concrete + protective-tape blue
   ============================================================ */
:root {
  --bg:            #12151A;
  --bg-raised:     #191D24;
  --line:          #2A2F38;
  --ink:           #ECEEF1;
  --ink-soft:      #AEB4BD;
  --white:         #FFFFFF;
  --card-ink:      #16181C;
  --card-ink-soft: #6B7178;
  --card-line:     #E4E6E9;
  --accent:        #3D7FFF;
  --accent-deep:   #2A5FE0;

  --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Pretendard', ui-monospace, SFMono-Regular, monospace;

  --wrap: 1160px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.01em; word-break: keep-all; }
p { margin: 0 0 1em; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,21,26,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.brand__sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .75;
  font-weight: 500;
}

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius);
  transition: background .15s;
}
.site-nav__cta:hover { background: var(--accent-deep); }

/* ============================================================
   Seam divider — signature element
   Represents the blue protective tape / sealant line running along a threshold seam.
   ============================================================ */
.seam-divider {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
  overflow: visible;
}
.seam-divider::after {
  content: "";
  position: absolute; left: 0; top: -1.5px;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(61,127,255,.55);
  transition: width 1.1s cubic-bezier(.16,.8,.24,1);
}
.seam-divider.is-visible::after { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero__media {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,21,26,.15) 0%, rgba(18,21,26,.30) 55%, rgba(18,21,26,.68) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  color: var(--ink);
  padding-top: 64px;
  padding-bottom: 72px;
  width: 100%;
}
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(236,238,241,.32); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(236,238,241,.08); }
.btn--dark { background: var(--white); color: var(--card-ink); }
.btn--dark:hover { background: var(--accent); color: #fff; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.definition-block {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

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

/* Trust bar */
.trust-bar {
  background: var(--bg-raised);
  color: var(--ink-soft);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar__inner {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  justify-content: center;
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .04em;
}
.trust-bar__inner span { color: var(--accent); margin-right: 8px; }

/* Pain point cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.pain-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.pain-card__thumb { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.pain-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pain-card__num { font-family: var(--font-mono); color: var(--accent-deep); font-size: 13px; letter-spacing: .1em; }
.pain-card h3 { color: var(--card-ink); font-size: 20px; margin: 12px 0 10px; }
.pain-card p { color: var(--card-ink-soft); font-size: 15.5px; margin: 0; }

/* Process steps */
.process { counter-reset: step; }
.process__list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.process__step {
  padding: 28px 22px 0;
  border-right: 1px solid var(--line);
}
.process__step:last-child { border-right: none; }
.process__step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: .08em; margin-bottom: 14px; display: block;
}
.process__step h3 { font-size: 18px; margin-bottom: 8px; }
.process__step p { color: var(--ink-soft); font-size: 14.5px; }

/* Before / after gallery */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ba-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-card__images {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.ba-card__images::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--accent);
  z-index: 2;
}
.ba-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ba-card__tag {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 3px;
  background: rgba(18,21,26,.75); color: #fff;
  text-transform: uppercase;
}
.ba-card__img--after .ba-card__tag { background: var(--accent); color: #fff; }
.ba-card__label {
  padding: 14px 16px 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--card-ink-soft);
}
.ba-card__caption {
  padding: 6px 16px 16px;
  margin: 0;
  font-size: 14.5px; color: var(--card-ink);
}
.ba-grid__more {
  display: none;
  margin: 20px 0 0;
  font-size: 14px; color: var(--ink-soft);
  text-align: center;
}

/* Service link card */
.service-card {
  display: flex; gap: 24px; align-items: center;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s, transform .15s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card__img { width: 160px; height: 120px; flex: none; border-radius: 3px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body h3 { color: var(--card-ink); font-size: 20px; margin-bottom: 8px; }
.service-card__body p { color: var(--card-ink-soft); font-size: 15px; margin-bottom: 10px; }
.service-card__link { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); }

/* About */
.about-block { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.about-block__facts { display: grid; gap: 14px; }
.about-fact { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about-fact dt { font-family: var(--font-mono); color: var(--ink-soft); font-size: 13px; }
.about-fact dd { margin: 0; font-weight: 600; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 4px; font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 24px; color: var(--ink-soft); max-width: 720px; }

/* CTA banner */
.cta-banner {
  background: var(--accent); color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-banner__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn--primary { background: #fff; color: var(--accent-deep); }
.cta-banner .btn--primary:hover { background: var(--bg); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-raised); border-top: 1px solid var(--line); padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.site-footer__line { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 6px; }
.site-footer__heading { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list a { font-size: 15px; color: var(--ink-soft); }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero { padding: 72px 0 0; text-align: center; }
.contact-hero .eyebrow { justify-content: center; }
.contact-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.contact-hero p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.contact-panel__call {
  padding: 48px 40px;
  background: var(--accent); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-panel__call .eyebrow { color: #fff; opacity: .9; }
.contact-panel__call .eyebrow::before { background: #fff; }
.contact-panel__call .btn--primary { background: #fff; color: var(--accent-deep); }
.contact-panel__call .btn--primary:hover { background: var(--bg); color: #fff; }
.contact-panel__call .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.contact-panel__call .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.contact-phone {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 42px);
  color: #fff;
  margin: 6px 0 24px;
  letter-spacing: .01em;
}
.contact-panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-panel__info {
  padding: 48px 40px;
}
.contact-panel__info h2 { color: var(--card-ink); font-size: 20px; margin-bottom: 18px; }
.contact-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-info-list li { display: flex; gap: 14px; font-size: 15px; color: var(--card-ink); }
.contact-info-list dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--card-ink-soft); min-width: 88px; }

/* ============================================================
   Detail page
   ============================================================ */
.detail-hero { padding: 64px 0 48px; }
.detail-hero h1 { font-size: clamp(36px, 6vw, 58px); }
.detail-hero__lead { color: var(--ink-soft); font-size: 18px; max-width: 640px; }
.detail-hero__img { border-radius: var(--radius); overflow: hidden; margin-top: 40px; aspect-ratio: 16/7; }
.detail-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--card-line); border-radius: var(--radius);
  background: var(--white);
}
.spec-item { padding: 22px 20px; border-right: 1px solid var(--card-line); }
.spec-item:last-child { border-right: none; }
.spec-item dt { font-family: var(--font-mono); font-size: 12px; color: var(--card-ink-soft); margin-bottom: 8px; letter-spacing: .05em; }
.spec-item dd { margin: 0; color: var(--card-ink); font-weight: 700; font-size: 17px; }

.related-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Layout modules — used to vary detail-page composition
   ============================================================ */

/* Split hero: photo one side, text the other, no overlay */
.hero-split { padding: 56px 0 0; }
.hero-split__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-split__text h1 { font-size: clamp(34px, 5vw, 52px); }
.hero-split__lead { color: var(--ink-soft); font-size: 18px; }
.hero-split--reverse .hero-split__grid { direction: rtl; }
.hero-split--reverse .hero-split__grid > * { direction: ltr; }

/* Vertical process timeline */
.timeline { position: relative; max-width: 720px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 1px;
  background: var(--line);
}
.timeline__step { position: relative; padding: 0 0 40px 52px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); color: var(--accent-deep);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-line);
}
.timeline__step h3 { font-size: 18px; margin-bottom: 6px; }
.timeline__step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 640px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 18px 20px;
}
.checklist__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.checklist__body { color: var(--card-ink); font-size: 15.5px; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--card-line); color: var(--card-ink); }
.compare-table thead th { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em; color: var(--card-ink-soft); background: #F4F5F7; text-transform: uppercase; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 600; width: 30%; }
.compare-table .is-good { color: var(--accent-deep); font-weight: 600; }

/* Site-note callout — real jobsite comment, honestly labeled (not a review/testimonial) */
.site-note {
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 640px;
}
.site-note__label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; display: block;
}
.site-note p { font-size: 16px; color: var(--ink); margin: 0; line-height: 1.7; }

/* Featured single before/after pair — larger, editorial */
.gallery-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.gallery-feature__img { position: relative; aspect-ratio: 3/4; }
.gallery-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-feature__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 3px;
  background: rgba(18,21,26,.75); color: #fff; text-transform: uppercase;
}
.gallery-feature__img--after .gallery-feature__tag { background: var(--accent); }
.gallery-feature__caption { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

/* Photo strip — wide single-row crops for photo-first pages */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-strip__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.photo-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip__cap { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }

/* 404 */
.notfound { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); }
.notfound__desc { color: var(--ink-soft); margin-bottom: 32px; }
.notfound__actions { display: flex; justify-content: center; gap: 14px; }
