@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;
  --bg: #f3f5f6;
  --surface: #ffffff;
  --ink: #14181c;
  --ink-soft: #52606d;
  --line: #dbe1e5;
  --accent: #2f6f78;
  --accent-dark: #1f4a51;
  --accent-2: #131e24;
  --accent-2-tint: #e9f1f1;
  --shadow-sm: 0 4px 14px rgba(19, 24, 28, 0.08);
  --shadow-md: 0 16px 36px rgba(19, 24, 28, 0.16);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { 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;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 245, 246, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .2s var(--ease); }
.nav a:not(.cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--accent); transition: right .25s var(--ease);
}
.nav a:not(.cta):hover { color: var(--accent); }
.nav a:not(.cta):hover::after { right: 0; }
.nav a.cta { padding: 9px 18px; background: var(--accent); color: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.nav a.cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; }

.btn-rect { border-radius: 3px; }
.btn-round { border-radius: 10px; }
.btn-pill { border-radius: 999px; }

/* ---------- hero: full-bleed photo, bottom-anchored copy ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroPan 16s var(--ease) infinite alternate;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,24,28,0.12) 0%, rgba(19,24,28,0.42) 55%, rgba(19,24,28,0.82) 100%);
}
@keyframes heroPan {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -1%); }
}
.hero-content { position: relative; z-index: 2; padding: 64px 0 56px; color: #fff; width: 100%; }
.hero-eyebrow {
  font-size: 13.5px; font-weight: 600; color: #bfe0e2;
  letter-spacing: 0.03em; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.2; font-weight: 700; margin: 0 0 18px;
  white-space: nowrap;
}
.hero p { font-size: 16.5px; color: rgba(255,255,255,0.82); margin: 0 0 30px; white-space: nowrap; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.hero-cta-center { justify-content: center; text-align: center; margin: 0 auto; }
.hero-actions.hero-cta-right { justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,111,120,.38); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: #fff; transform: translateY(-2px); }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 0; }
  .hero h1, .hero p { white-space: normal; }
}

/* ---------- section top banner (sub pages) ---------- */
/* .page-hero also carries .wrap in the markup for legacy reasons; this
   two-class selector out-specifies the plain .wrap rule so the banner
   image spans full width, but the text padding is calculated to land on
   the exact same left/right edge as .wrap's 1120px column (24px inset
   below that width, growing with the centered gutter above it) — so the
   heading lines up with the header logo instead of the viewport edge. */
.page-hero.wrap {
  max-width: none;
  width: 100%;
  padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1120px) / 2 + 24px));
}
.page-hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 72px;
  color: var(--ink);
  background: linear-gradient(160deg, #e4ebec 0%, #f3f5f6 70%);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.page-hero.photo {
  background-image: linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.26)), var(--hero-img);
}
.page-hero .eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; font-weight: 700; text-shadow: 0 1px 14px rgba(255,255,255,0.55); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-label { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0 0 40px; white-space: nowrap; }
@media (max-width: 640px) { .section-title { white-space: normal; } }

/* services: bordered divider grid, not numbered cards */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.svc-cell {
  padding: 34px 22px; border-right: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.svc-cell:last-child { border-right: none; }
.svc-cell .icon { color: var(--accent); margin-bottom: 18px; }
.svc-cell:hover { background: var(--accent-2-tint); }
.svc-cell:hover .icon { transform: scale(1.08); }
.svc-cell h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.svc-cell p { margin: 0; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cell { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

/* case strip: horizontal scroll */
.case-strip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.case-card {
  flex: 0 0 300px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.case-card .thumb {
  aspect-ratio: 4/3; background: linear-gradient(160deg, #e4ebec, #dbe1e5); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 13px;
}
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .thumb img { transform: scale(1.06); }
.case-card .body { padding: 16px 18px 20px; }
.case-card h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 700; }
.case-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.case-more { text-align: right; margin-top: 18px; }
.case-more a { color: var(--accent); font-weight: 600; font-size: 13.5px; transition: padding-right .2s var(--ease); }
.case-more a:hover { padding-right: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr; } }

/* info/guide directory: list rows */
.info-list { border-top: 1px solid var(--line); }
.info-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line); border-radius: 8px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.info-row:hover { background: var(--accent-2-tint); transform: translateX(4px); }
.info-row h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 4px; }
.info-row p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.info-row .go { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; transition: transform .2s var(--ease); }
.info-row:hover .go { transform: translateX(3px); }

/* guide teaser (home): chip nav + lead line */
.guide-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-size: 13.5px; font-weight: 600; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.guide-lead { font-size: 15.5px; color: var(--ink-soft); max-width: 660px; margin: 0 0 22px; }
.guide-more { font-weight: 600; color: var(--accent); font-size: 13.5px; }

/* faq accordion, numbered via counter (no markup changes needed; one faq list per page) */
body { counter-reset: faqcount; }
.faq-item {
  border-bottom: 1px solid var(--line); counter-increment: faqcount;
  position: relative; padding-left: 40px;
}
.faq-item::before {
  content: counter(faqcount, decimal-leading-zero); position: absolute; left: 2px; top: 24px;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+'; color: var(--accent); font-weight: 700; font-size: 20px; flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 4px 22px 0; color: var(--ink-soft); font-size: 14.5px; }

/* detail page cross layout (gallery-case, fixed per spec) */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.detail-block:nth-of-type(even) .detail-media { order: 2; }
.detail-media img, .detail-media .ph { border-radius: 10px; aspect-ratio: 4/3; width: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }
.detail-media .ph { background: linear-gradient(160deg, #e4ebec, #dbe1e5); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.detail-copy .no { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px; }
.detail-copy h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0 0 14px; }
.detail-copy p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
@media (max-width: 780px) {
  .detail-block, .detail-block:nth-of-type(even) .detail-media { grid-template-columns: 1fr; order: 0; }
  .detail-block { gap: 20px; }
}

/* review slider (unused unless has_real_reviews=yes) */
.review-track { display: flex; gap: 20px; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.review-track .rail { display: flex; gap: 20px; animation: railmove 32s linear infinite; }
.review-track.slide-rtl .rail { animation-direction: reverse; }
.review-card { flex: 0 0 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.review-card .stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.review-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
@keyframes railmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* cta band (above footer) */
.cta-band {
  background: var(--accent-2); color: #fff; padding: 64px 0; text-align: center;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { font-size: 15px; color: rgba(255,255,255,0.72); margin: 0 0 28px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-dark); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: var(--accent-2); background: #fff; }

/* footer */
.site-footer { background: #0e1519; color: #b7c2c6; padding: 68px 0 28px; }

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 40px; border-bottom: 1px solid #1c262b;
}
.footer-brand .logo { font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { margin: 10px 0 0; font-size: 13.5px; color: #6b7880; max-width: 420px; }
.footer-actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer-actions a {
  padding: 12px 22px; border: 1px solid #2c3a40; font-size: 13.5px; font-weight: 600; color: #eaf1f1;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-actions a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 32px 0; border-bottom: 1px solid #1c262b; }
.footer-nav a { font-size: 13.5px; color: #8b9499; transition: color .2s var(--ease); }
.footer-nav a:hover { color: #eaf1f1; }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding-top: 24px; }
.footer-bottom .biz { font-size: 12.5px; line-height: 1.8; color: #5c6b70; }
.footer-bottom .biz b { color: #b7c2c6; }
.footer-sitemap-link { font-size: 12.5px; color: #445157; transition: color .2s var(--ease); }
.footer-sitemap-link:hover { color: #b7c2c6; }

@media (max-width: 780px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* floating consult */
.float-consult { position: fixed; bottom: 26px; z-index: 50; }
.float-consult.left { left: 20px; }
.float-consult.right { right: 20px; }
.float-btn {
  background: var(--accent); color: #fff; padding: 15px 22px; font-weight: 700; font-size: 14.5px;
  box-shadow: var(--shadow-md); border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.float-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.float-reveal {
  margin-top: 8px; background: var(--accent-2); color: #fff; padding: 0 16px; font-size: 14px; font-weight: 700;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s var(--ease), opacity .25s var(--ease), padding .3s var(--ease);
}
.float-reveal.show { max-height: 60px; opacity: 1; padding: 12px 16px; }
.float-reveal a { color: #fff; }

.dong-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dong-chip {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  background: var(--accent-2-tint); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}

/* sitemap page: plain column grid, no boxes */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.sitemap-col h2 { margin: 0 0 18px; font-size: 14px; font-weight: 700; color: var(--accent); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sitemap-col a { font-size: 13.5px; color: var(--ink-soft); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.sitemap-col a:hover { color: var(--accent); padding-left: 4px; }
@media (max-width: 780px) { .sitemap-grid { grid-template-columns: 1fr; gap: 28px; } }

/* nearby-region strip (region.php) */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.region-grid a { font-size: 13.5px; color: var(--ink-soft); padding: 5px 0; border-bottom: 1px dotted var(--line); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.region-grid a:hover { color: var(--accent); padding-left: 4px; }

/* generic */
.mono-note { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 26px; cursor: pointer; }
}
