/*
Theme Name: Waterdetect Local
Theme URI: https://waterdetect.webcrafts.co.kr/
Author: Waterdetect
Description: 전국 지역형 누수탐지 서비스 전용 경량 테마
Version: 1.4.1
Text Domain: waterdetect-local
*/

:root {
  --ink: #10233f;
  --ink-deep: #081a31;
  --slate: #52647a;
  --muted: #73849a;
  --line: #dbe5ee;
  --paper: #ffffff;
  --surface: #f4f8fb;
  --surface-blue: #eaf7f8;
  --cyan: #15a8b3;
  --cyan-dark: #087f8b;
  --accent: #ffb547;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow: 0 20px 60px rgba(16, 35, 63, .12);
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-deep);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 229, 238, .85);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  transform: rotate(45deg);
  border-radius: 55% 50% 55% 12%;
  background: linear-gradient(145deg, #43c9cd, var(--cyan-dark));
  box-shadow: 0 8px 18px rgba(21, 168, 179, .26);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 7px;
  top: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .76);
}
.brand-sub {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  position: relative;
  color: #34485f;
  font-size: 15px;
  font-weight: 750;
}
.site-nav a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--cyan);
  transition: right .2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }
.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff !important;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(21, 168, 179, .24);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.header-cta:hover,
.button:hover { transform: translateY(-2px); background: var(--cyan-dark); }
.button-secondary {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.button-secondary:hover { background: rgba(255,255,255,.2); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: currentColor;
  transition: .2s ease;
}

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,25,48,.98) 0%, rgba(5,25,48,.92) 33%, rgba(5,25,48,.5) 58%, rgba(5,25,48,.12) 100%),
    var(--hero-image) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(73, 214, 218, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(73,214,218,.035), 0 0 0 140px rgba(73,214,218,.025);
}
.hero-inner { position: relative; z-index: 1; padding: 104px 0 126px; }
.hero-copy { width: min(650px, 64%); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #79e0e3;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.hero h1 em { color: #69d8dc; font-style: normal; }
.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 750;
}
.hero-points li::before { content: "✓"; margin-right: 7px; color: #78e0e3; font-weight: 900; }

.trust-strip { position: relative; z-index: 5; margin-top: -46px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(219,229,238,.8);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}
.trust-item { display: flex; align-items: center; gap: 16px; padding: 26px 30px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-number {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-blue);
  color: var(--cyan-dark);
  font-weight: 900;
}
.trust-item strong { display: block; font-size: 16px; }
.trust-item span:last-child { display: block; color: var(--muted); font-size: 13px; }

.section { padding: 112px 0; }
.section-soft { background: var(--surface); }
.section-dark { background: var(--ink-deep); color: #fff; }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-dark .section-kicker { color: #70dadd; }
.section-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.section-copy { margin: 16px 0 0; color: var(--slate); }
.section-dark .section-copy { color: rgba(255,255,255,.68); }

.carousel-shell { position: relative; }
.carousel-controls { display: flex; gap: 8px; position: absolute; right: 0; top: -82px; }
.carousel-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .2s ease;
}
.carousel-button:hover { border-color: var(--cyan); color: var(--cyan-dark); transform: translateY(-2px); }
.service-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.service-track::-webkit-scrollbar { display: none; }
.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  scroll-snap-align: start;
  box-shadow: 0 14px 34px rgba(16,35,63,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(21,168,179,.5); box-shadow: var(--shadow); }
.service-media {
  position: relative;
  aspect-ratio: 19 / 11;
  overflow: hidden;
  margin: -28px -28px 24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #dce8ef;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-media img { transform: scale(1.035); }
.service-card.has-media .service-icon { margin-top: 0; }
.service-card.has-media h3 { margin-top: 20px; }
.service-card-title { color: inherit; text-decoration: none; }
.service-card-title:hover { color: var(--cyan-dark); }
.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #e9f9fa, #d8f0f2);
  color: var(--cyan-dark);
  font-size: 21px;
  font-weight: 950;
}
.service-card h3 { margin: 28px 0 10px; font-size: 23px; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--slate); font-size: 15px; }
.service-tag { margin-top: auto; padding-top: 24px; color: var(--cyan-dark); font-size: 13px; font-weight: 850; }
.related-carousel { padding-top: 0; }

.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.symptom-card {
  position: relative;
  min-height: 235px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.symptom-card::after {
  content: attr(data-step);
  position: absolute;
  right: 20px;
  bottom: -30px;
  color: rgba(21,168,179,.07);
  font-size: 120px;
  font-weight: 950;
  line-height: 1;
}
.symptom-card h3 { margin: 0 0 10px; font-size: 22px; }
.symptom-card p { max-width: 440px; margin: 0; color: var(--slate); }
.symptom-label { display: inline-block; margin-bottom: 20px; color: var(--cyan-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; background: rgba(255,255,255,.13); }
.process-item { position: relative; padding: 34px 28px; background: var(--ink-deep); }
.process-index { color: #66d8dc; font-size: 13px; font-weight: 900; }
.process-item h3 { margin: 28px 0 9px; font-size: 21px; }
.process-item p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }

.coverage-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
  padding: 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eefafa 0%, #f7fbfd 55%, #edf4fa 100%);
}
.coverage-panel h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.045em; }
.coverage-panel p { margin: 18px 0 0; color: var(--slate); }
.region-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.region-cloud span { padding: 11px 15px; border: 1px solid #cfe1e9; border-radius: 999px; background: #fff; color: #36506a; font-size: 14px; font-weight: 800; }

.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}
.faq-question::after { content: "+"; color: var(--cyan-dark); font-size: 26px; font-weight: 400; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { display: none; padding: 0 44px 26px 4px; color: var(--slate); }
.faq-answer.is-open { display: block; }

.closing-cta {
  overflow: hidden;
  padding: 62px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #102d4b, #0c6974);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.closing-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.closing-cta p { max-width: 680px; margin: 15px auto 28px; color: rgba(255,255,255,.72); }
.closing-cta .button { background: #fff; color: var(--ink) !important; }

.page-hero { padding: 94px 0 70px; background: linear-gradient(140deg, #0b223c, #0e6571); color: #fff; }
.breadcrumbs { margin-bottom: 20px; color: rgba(255,255,255,.62); font-size: 13px; }
.page-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.05em; }
.entry-featured-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 42px 0 -145px;
  border: 6px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: #dce8ef;
  box-shadow: 0 26px 70px rgba(4,19,36,.32);
}
.entry-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero.has-featured-image + .page-main { padding-top: 190px; }
.page-hero.has-featured-image + .related-carousel { padding-top: 190px; }
.page-main { padding: 72px 0 110px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: start; }
.page-content { font-size: 18px; }
.page-content > *:first-child { margin-top: 0; }
.post-image-gallery { margin: 0 0 62px; }
.post-image-gallery h2 { margin-bottom: 22px; }
.post-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-image-grid figure { overflow: hidden; aspect-ratio: 16 / 9; margin: 0; border-radius: var(--radius-md); background: #dce8ef; box-shadow: 0 14px 34px rgba(16,35,63,.08); }
.post-image-grid figure:first-child { grid-column: 1 / -1; }
.post-image-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-content section { margin-top: 54px; }
.page-content h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(27px, 3vw, 34px); line-height: 1.3; letter-spacing: -.045em; }
.page-content h3 { margin: 28px 0 10px; color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.page-content p { margin: 0 0 18px; color: #344a63; line-height: 1.85; }
.page-content ul,
.page-content ol { margin: 20px 0; padding-left: 24px; color: #344a63; }
.page-content li { margin: 11px 0; padding-left: 4px; line-height: 1.7; }
.content-lead { padding: 28px 30px; border-left: 5px solid var(--cyan); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface-blue); }
.content-lead p { margin: 0; color: var(--ink); font-size: 20px; font-weight: 720; line-height: 1.75; }
.info-box { margin-top: 28px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.info-box strong { display: block; margin-bottom: 8px; color: var(--ink); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.check-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: #344a63; line-height: 1.65; }
.check-item strong { display: block; margin-bottom: 5px; color: var(--cyan-dark); }
.page-faq details { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.page-faq summary { padding: 19px 22px; color: var(--ink); font-weight: 850; cursor: pointer; }
.page-faq details p { padding: 0 22px 20px; margin: 0; font-size: 16px; }
.page-aside { position: sticky; top: 104px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.page-aside h2 { margin: 0 0 12px; font-size: 20px; }
.page-aside p { margin: 0; color: var(--slate); font-size: 14px; }
.aside-list a { color: var(--ink); font-weight: 760; text-decoration: none; }
.aside-list a:hover,
.aside-list a[aria-current="page"] { color: var(--cyan-dark); }
.aside-list { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.aside-list li { padding: 11px 13px; border-radius: 10px; background: #fff; color: #40556c; font-size: 13px; font-weight: 800; }

.site-footer { padding: 64px 0 90px; background: #07182c; color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.footer-brand { color: #fff; }
.footer-copy { max-width: 550px; margin: 18px 0 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: 13px; font-weight: 750; }
.copyright { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

.mobile-bar { display: none; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--cyan); font-size: 72px; line-height: 1; }
.not-found h1 { margin: 16px 0 10px; }

@media (max-width: 980px) {
  .hero { min-height: 650px; }
  .hero-copy { width: 72%; }
  .trust-item { padding: 22px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-panel { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .page-aside { position: static; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }
  body { font-size: 16px; padding-bottom: 70px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px 20px 28px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 35px rgba(16,35,63,.14);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 4px; }
  .site-nav .header-cta { margin-top: 10px; }
  .hero { min-height: 690px; align-items: flex-end; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5,25,48,.15) 0%, rgba(5,25,48,.65) 38%, rgba(5,25,48,.98) 70%, #051930 100%),
      var(--hero-image) 63% top/auto 56% no-repeat;
  }
  .hero-inner { padding: 280px 0 70px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-points { gap: 10px 18px; }
  .trust-strip { margin-top: 0; background: var(--ink-deep); }
  .trust-grid { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; box-shadow: none; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-title { font-size: 35px; }
  .carousel-controls { position: static; margin: -10px 0 16px; }
  .service-track { grid-auto-columns: 84%; }
  .check-grid { grid-template-columns: 1fr; }
  .post-image-grid { grid-template-columns: 1fr; }
  .post-image-grid figure:first-child { grid-column: auto; }
  .symptom-grid { grid-template-columns: 1fr; }
  .symptom-card { min-height: 220px; padding: 28px; }
  .process-grid { grid-template-columns: 1fr; }
  .coverage-panel { padding: 34px 24px; gap: 34px; }
  .entry-featured-image { margin: 30px 0 -108px; border-width: 4px; border-radius: 20px; }
  .page-hero.has-featured-image + .page-main { padding-top: 140px; }
  .page-hero.has-featured-image + .related-carousel { padding-top: 140px; }
  .closing-cta { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .mobile-bar a { min-height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 850; }
  .mobile-bar a:last-child { background: var(--cyan); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
