:root {
  --deep: #0C1E36;
  --accent: #E8D9C4;
  --accent-soft: #F5EEE4;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --ink: #1A1A1A;
  --desc: #475569;
  --radius-btn: 10px;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;
}

* { 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; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--deep);
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: inherit; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: left; max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--desc); font-size: 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--deep); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; color: rgba(255,255,255,.86); }
.nav-link:hover { color: #fff; }
.nav-cta { padding: 10px 22px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

/* index hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .5;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.1) translate(-1%, -1%); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(12,30,54,.92) 0%, rgba(12,30,54,.72) 46%, rgba(12,30,54,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 620px; padding: 120px 0 80px; }
.hero-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .1em; font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; margin-bottom: 20px; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: visible; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; }

/* subpage hero */
.page-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; background: var(--deep); background-size: cover; background-position: center; }
.page-hero.photo .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.34) 60%, rgba(255,255,255,.5) 100%); }
.page-hero.color { background: linear-gradient(135deg, var(--deep) 0%, #17335A 100%); }
.page-hero .hero-inner { position: relative; z-index: 2; padding: 96px 0 40px; color: #fff; }
.page-hero.photo .hero-inner { color: var(--ink); }
.page-hero.photo .hero-inner .eyebrow,
.page-hero.photo .hero-inner h1 {
  display: inline-block;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 6px 14px;
  border-radius: 8px;
}
.page-hero.photo .hero-inner h1 { padding: 10px 16px; line-height: 1.35; }
.page-hero.photo .eyebrow { color: var(--deep); }
.page-hero.color .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0; }

/* service — horizontal cards */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border: 1px solid #E7E9EE; border-radius: 14px; background: #fff; }
.service-card .icon { flex: none; width: 48px; height: 48px; color: var(--deep); }
.service-card h3 { font-size: 19px; margin-bottom: 6px; }
.service-card p { color: var(--desc); font-size: 15px; margin: 0; }

/* case cards — single big photo + region label */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; display: block; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card:hover img { transform: scale(1.05); }
.case-card .case-tag { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.92); color: var(--deep); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.case-card .case-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(12,30,54,.85), rgba(12,30,54,0)); color: #fff; font-weight: 700; font-size: 16px; }

/* guide — numbered vertical steps */
.guide-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.guide-item { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid #E7E9EE; }
.guide-item:last-child { border-bottom: 1px solid #E7E9EE; }
.guide-num { flex: none; font-size: 28px; font-weight: 700; color: var(--accent); -webkit-text-stroke: 1.5px var(--deep); font-family: var(--font-body); }
.guide-item h3 { font-size: 18px; margin-bottom: 6px; }
.guide-item p { color: var(--desc); font-size: 15px; margin: 0; }
.guide-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--deep); text-decoration: underline; }

/* faq accordion */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid #E7E9EE; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 22px 4px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--ink); }
.faq-q::after { content: "+"; font-size: 22px; color: var(--deep); flex: none; transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--desc); font-size: 15px; }
.faq-a p { padding: 0 4px 22px; margin: 0; }

/* closing */
.closing { position: relative; }
.closing-media { height: 360px; overflow: hidden; filter: blur(1.5px); }
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing-copy { text-align: center; max-width: 680px; margin: -110px auto 0; position: relative; z-index: 2; background: #fff; padding: 44px 40px; border-radius: 18px; box-shadow: 0 20px 50px rgba(12,30,54,.12); }
.closing-copy h2 { font-size: clamp(18px, 2.6vw, 28px); }
@media (min-width: 640px) { .closing-copy h2 { white-space: nowrap; } }
.closing-desc { color: var(--desc); }

/* footer */
.site-footer { background: var(--deep); color: rgba(255,255,255,.85); padding: 48px 0 24px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.footer-biz p { margin: 0 0 4px; font-size: 14px; }
.footer-reg { line-height: 1.5; }
.nowrap { white-space: nowrap; }
.footer-actions { display: flex; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; flex-wrap: wrap; gap: 12px; }
.footer-map { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-map a { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-map a:hover { color: rgba(255,255,255,.7); }
.copyright { font-size: 12px; color: rgba(255,255,255,.45); margin: 0; }

/* floating consult */
.floating-consult { position: fixed; bottom: 28px; z-index: 50; background: var(--deep); color: #fff; border-radius: 999px; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(12,30,54,.3); overflow: hidden; }
.floating-consult.side-left { left: 20px; }
.floating-consult.side-right { right: 20px; }
.fc-label { padding: 16px 22px; font-weight: 700; font-size: 14px; }
.fc-reveal { max-width: 0; overflow: hidden; transition: max-width .25s ease; background: var(--accent); }
.fc-reveal a { display: block; padding: 16px 20px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.floating-consult.open .fc-reveal { max-width: 220px; }

/* sitemap page */
.sitemap-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 32px; }
.sitemap-groups h3 { font-size: 15px; color: var(--deep); margin-bottom: 12px; }
.sitemap-groups li { margin-bottom: 8px; }
.sitemap-groups a { font-size: 14px; color: var(--desc); }
.sitemap-groups a:hover { color: var(--deep); }

/* gallery-case cross layout */
.case-detail-nav { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid #E7E9EE; margin-top: 20px; font-size: 14px; }
.cross-row { display: flex; gap: 56px; align-items: center; padding: 56px 0; }
.cross-row:nth-child(even) { flex-direction: row-reverse; }
.cross-row .cross-media, .cross-row .cross-text { flex: 1; min-width: 0; }
.cross-row img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cross-num { font-size: 11px; font-weight: 700; color: var(--deep); letter-spacing: .1em; }
.cross-cat { font-size: 11px; color: var(--desc); letter-spacing: .04em; margin-bottom: 10px; }
.cross-row h2 { font-size: clamp(20px, 2.4vw, 26px); }
.cross-row .body { font-size: 15px; line-height: 1.9; color: #4B5563; }
.info-block { padding: 40px 0; border-top: 1px solid #E7E9EE; max-width: 720px; }
.info-block .body { font-size: 15px; line-height: 1.9; color: #4B5563; }
.info-block h2 { font-size: clamp(19px, 2.2vw, 23px); }

/* guide summary cards on index */
.guide-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.guide-summary-card { border: 1px solid #E7E9EE; border-radius: 12px; padding: 22px; }
.guide-summary-card .icon { width: 30px; height: 30px; color: var(--deep); margin-bottom: 12px; }
.guide-summary-card h3 { font-size: 15px; margin-bottom: 6px; }
.guide-summary-card p { font-size: 13px; color: var(--desc); margin: 0; }

/* region cross-link chips */
.region-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.region-chip { padding: 8px 16px; border: 1px solid #E7E9EE; border-radius: 999px; font-size: 13px; color: var(--desc); }
.region-chip:hover { border-color: var(--deep); color: var(--deep); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--deep); flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .site-nav.open { max-height: 400px; }
  .site-nav .nav-link, .site-nav .nav-cta { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; text-align: center; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-row, .cross-row:nth-child(even) { flex-direction: column; }
  .closing-copy { margin: -70px 16px 0; padding: 28px 22px; }
  .footer-row, .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-map { justify-content: center; }
  .footer-biz { text-align: center; }
  .hero-desc { white-space: normal; }
}
@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 96px 0 60px; }
}
