:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;

  --deep: #1B3A2F;
  --accent: #E4D8C4;
  --accent-soft: #F4EFE6;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F5;
  --ink: #1A1A1A;
  --desc: #4A5C57;

  --radius-btn: 8px;
  --radius-img: 10px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #d8c8ac; }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { border-color: rgba(14,47,42,0.25); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- header ---------- */
.site-header {
  background: transparent;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled { background: #EDF0F2; border-bottom: 1px solid #E5E7EB; box-shadow: 0 1px 16px rgba(0,0,0,0.06); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.02em; white-space: nowrap; transition: color 0.3s ease; }
.site-header.is-scrolled .brand { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,0.86); font-size: 15px; font-weight: 500; transition: color 0.3s ease; }
.site-nav a:hover { color: #fff; }
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-scrolled .site-nav a:hover { color: var(--deep); }
.btn-nav.btn-primary { padding: 10px 20px; font-size: 14px; margin-left: 4px; }
.nav-toggle-input, .nav-toggle-btn { display: none; }

/* ---------- floating call button ---------- */
.floating-call {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  background: var(--deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14,47,42,0.28);
}
.floating-call-icon { width: 22px; height: 22px; display: flex; }
.floating-call-icon svg { width: 100%; height: 100%; }
.floating-call-reveal {
  max-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: max-width 0.28s ease, padding 0.28s ease;
}
.floating-call.is-open .floating-call-reveal { max-width: 220px; padding-left: 12px; }
.floating-call-label { font-size: 13px; color: rgba(255,255,255,0.72); }
.floating-call-number { font-size: 15px; font-weight: 700; color: var(--accent); }
.floating-call.is-hidden-by-bar { display: none; }

/* ---------- bottom consult bar (B-23) ---------- */
.consult-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  background: #EDF0F2;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.consult-bar.is-visible { transform: translateY(0); }
.consult-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.consult-bar-main { flex: 1; max-width: 420px; }
.consult-bar-sub { font-size: 13px; color: var(--desc); text-decoration: underline; white-space: nowrap; flex-shrink: 0; }

/* ---------- home hero (split) ---------- */
.hero {
  background: var(--bg-soft);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px 72px;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--desc);
  white-space: nowrap;
}
.hero-cta { margin-top: 30px; display: flex; gap: 12px; }
.hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-breathe 14s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
}

/* ---------- section shell ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.sec-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.sec-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin-bottom: 14px; }
.sec-sub { color: var(--desc); font-size: 16px; max-width: 640px; }
.sec-head { margin-bottom: 44px; }

/* ---------- services (line list, not numbered cards) ---------- */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(14,47,42,0.12); }
.svc-item {
  padding: 30px 22px;
  border-bottom: 1px solid rgba(14,47,42,0.12);
  border-right: 1px solid rgba(14,47,42,0.12);
}
.svc-item:nth-child(3n) { border-right: none; }
.svc-icon { width: 40px; height: 40px; color: var(--deep); margin-bottom: 16px; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.svc-desc { font-size: 14.5px; color: var(--desc); line-height: 1.75; }

/* ---------- cases: 1 large + 2 small ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.case-feature {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  min-height: 420px;
}
.case-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.case-feature-info {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 78%, transparent) 0%, color-mix(in srgb, var(--deep) 5%, transparent) 60%);
  color: #fff;
}
.case-feature-region { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.case-feature-title { font-size: 22px; font-weight: 700; }
.case-side { display: flex; flex-direction: column; gap: 20px; }
.case-side-item {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  min-height: 200px;
  flex: 1;
}
.case-side-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.case-side-info {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 78%, transparent) 0%, color-mix(in srgb, var(--deep) 5%, transparent) 65%);
  color: #fff;
}
.case-side-region { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.case-side-title { font-size: 16.5px; font-weight: 700; }
.case-more { margin-top: 28px; text-align: center; }

/* ---------- guide summary ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  background: var(--bg);
  border: 1px solid rgba(14,47,42,0.12);
  border-radius: var(--radius-img);
  padding: 24px;
}
.guide-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.guide-card-desc { font-size: 14px; color: var(--desc); margin-bottom: 14px; }
.guide-card-link { font-size: 13.5px; font-weight: 700; color: var(--deep); }

/* ---------- FAQ accordion (native details) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  border: 1px solid rgba(14,47,42,0.14);
  border-radius: var(--radius-img);
  padding: 4px 22px;
  background: var(--bg);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 20px; color: var(--desc); font-size: 14.5px; line-height: 1.8; }

/* ---------- closing ---------- */
.closing {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--deep) 86%, transparent) 0%, color-mix(in srgb, var(--deep) 50%, transparent) 55%, color-mix(in srgb, var(--deep) 20%, transparent) 100%);
}
.closing-inner { position: relative; z-index: 2; padding: 56px; color: #fff; max-width: 520px; }
.closing-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.closing-title { font-size: clamp(22px, 3vw, 30px); line-height: 1.4; margin-bottom: 16px; }
.closing-sub { color: rgba(255,255,255,0.82); font-size: 15px; margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: rgba(255,255,255,0.82); }
.site-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 32px; }
.footer-biz-name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.footer-biz-line { font-size: 13.5px; margin-bottom: 4px; white-space: nowrap; }
.footer-biz-regno .label { margin-right: 6px; }
.footer-cta { display: flex; gap: 10px; margin: 20px 0 28px; }
.footer-sitemap {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer-copy { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---------- subhero (subpages) ---------- */
.subhero { position: relative; min-height: 260px; display: flex; align-items: center; overflow: hidden; }
.subhero-photo { min-height: 320px; }
.subhero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subhero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.28) 100%);
}
.subhero-photo .subhero-inner { color: var(--ink); text-shadow: 0 1px 18px rgba(255,255,255,0.7); }
.subhero-solid {
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
}
.subhero-solid::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--deep); opacity: 0.06;
}
.subhero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; width: 100%; }
.subhero-eyebrow { font-size: 13px; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
.subhero-title { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; }

/* ---------- cross layout (gallery-case body) ---------- */
.cross { padding: 70px 0; }
.cross-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0;
}
.cross-row.reverse .cross-media { order: 2; }
.cross-row.reverse .cross-text { order: 1; }
.cross-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.cross-num { font-size: 11px; letter-spacing: 0.08em; color: var(--desc); margin-bottom: 10px; }
.cross-cat { font-size: 11px; letter-spacing: 0.08em; color: var(--deep); font-weight: 700; }
.cross-text h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 10px 0 16px; }
.cross-text p { font-size: 15px; line-height: 1.9; color: var(--desc); }
.case-points {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.case-points li { font-size: 14.5px; color: var(--ink); padding-left: 18px; position: relative; }
.case-points li::before { content: "+"; position: absolute; left: 0; color: var(--deep); font-weight: 700; }
.case-nav { display: flex; justify-content: space-between; padding: 30px 0 0; border-top: 1px solid rgba(14,47,42,0.12); margin-top: 20px; }
.case-nav a { font-size: 14px; font-weight: 600; color: var(--deep); }

/* ---------- region / guide page body ---------- */
.rg-lead { max-width: 760px; font-size: 16px; color: var(--desc); line-height: 1.95; }
.rg-lead + .rg-lead { margin-top: 18px; }
.rg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rg-step { background: var(--bg-soft); border-radius: var(--radius-img); padding: 22px; }
.rg-step-num { font-size: 12px; font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.rg-step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.rg-step-desc { font-size: 13.5px; color: var(--desc); }
.rg-nearby { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-nearby a {
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(14,47,42,0.16); color: var(--deep);
}

/* ---------- portfolio grid ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-card { border-radius: var(--radius-img); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.pf-card img { width: 100%; height: 100%; object-fit: cover; }
.pf-card-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 78%, transparent) 0%, color-mix(in srgb, var(--deep) 2%, transparent) 60%);
  color: #fff;
}
.pf-card-region { font-size: 12px; color: var(--accent); font-weight: 700; }
.pf-card-title { font-size: 16px; font-weight: 700; margin-top: 4px; }

/* ---------- sitemap page ---------- */
.sm-group { margin-bottom: 34px; }
.sm-group-title { font-size: 14px; font-weight: 700; color: var(--deep); margin-bottom: 14px; }
.sm-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sm-links a { font-size: 14px; color: var(--desc); }

/* ---------- about / contact ---------- */
.contact-phone { font-size: clamp(28px, 5vw, 42px); font-weight: 700; color: var(--deep); }
.contact-card { background: var(--bg-soft); border-radius: 16px; padding: 40px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-sub { white-space: normal; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; top: 64px;
    width: 240px; height: calc(100vh - 64px);
    background: var(--deep);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 20px; transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-toggle-input:checked ~ .site-nav { transform: translateX(0); }
  .site-nav a { width: 100%; padding: 12px 4px; }
  .nav-toggle-btn {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav-toggle-btn span { width: 22px; height: 2px; background: #fff; display: block; transition: background 0.3s ease; }
  .site-header.is-scrolled .nav-toggle-btn span { background: var(--ink); }
  .svc-list { grid-template-columns: 1fr; }
  .svc-item { border-right: none !important; }
  .case-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .cross-row { grid-template-columns: 1fr; gap: 20px; }
  .cross-row.reverse .cross-media, .cross-row.reverse .cross-text { order: initial; }
  .rg-steps { grid-template-columns: 1fr 1fr; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .closing-inner { padding: 32px; max-width: 100%; }
  .site-footer-inner { text-align: center; }
  .footer-biz-line { white-space: normal; }
  .footer-biz-regno { display: flex; flex-direction: column; }
  .footer-cta { justify-content: center; }
  .footer-sitemap { justify-content: center; }
}
@media (max-width: 560px) {
  .rg-steps { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}
