/*
Theme Name: Danbi SEO Landing
Author: 단비마케팅
Description: 네이버 웹사이트 영역 노출용 콘텐츠 허브 테마. 풀블리드 히어로 + 칼럼 카드 그리드 + 자동 브랜드 커버.
Version: 2.0
Requires PHP: 7.4
Text Domain: danbi-seo
*/

/* ==========================================================
   0. 디자인 토큰 — 색상 변경은 여기서
   ========================================================== */
:root {
  --teal: #33929E; --teal-deep: #256E78; --teal-soft: #8FC7CD;
  --ink: #2D2D2D; --ink-soft: #5A6668;
  --mist: #EFF6F7; --paper: #FFFFFF; --line: #E2E9EA;
  --warn-bg: #FBF1EC; --warn: #C75146;
  --radius: 14px; --w-text: 760px; --w-wide: 1080px;
}

/* ==========================================================
   1. 기본
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 17px;
  word-break: keep-all; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: var(--w-text); margin: 0 auto; padding: 0 20px; }
.wide { max-width: var(--w-wide); margin: 0 auto; padding: 0 20px; }

/* ==========================================================
   2. 헤더
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: var(--w-wide); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo img { height: 34px; width: auto; }
.head-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.head-nav a { color: var(--ink); font-weight: 500; }
.btn-call { background: var(--teal); color: #fff !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.btn-call:hover { background: var(--teal-deep); text-decoration: none; }
@media (max-width: 560px) { .head-nav .hide-m { display: none; } }

/* 픽셀 십자 눈썹 */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; color: var(--teal-deep); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 15px; height: 15px; flex: none;
  background:
    linear-gradient(var(--teal), var(--teal)) 50% 0 / 5px 5px,
    linear-gradient(var(--teal), var(--teal)) 0 50% / 5px 5px,
    linear-gradient(var(--teal-deep), var(--teal-deep)) 50% 50% / 5px 5px,
    linear-gradient(var(--teal), var(--teal)) 100% 50% / 5px 5px,
    linear-gradient(var(--teal), var(--teal)) 50% 100% / 5px 5px;
  background-repeat: no-repeat; }

/* ==========================================================
   3. 풀블리드 히어로
   ========================================================== */
.hero-full { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; background: #17282B; }
.hero-full video, .hero-full .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-full .fallback { position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(51,146,158,.45), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(51,146,158,.28), transparent 60%),
    linear-gradient(160deg, #17282B 0%, #1E3A3F 55%, #17282B 100%); }
.hero-full .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,27,.35) 0%, rgba(20,26,27,.15) 45%, rgba(20,26,27,.72) 100%); }
.hero-full .inner { position: relative; z-index: 2; width: 100%; padding: 90px 0 70px; }
.hero-full .eyebrow { color: var(--teal-soft); }
.hero-full .eyebrow::before {
  background:
    linear-gradient(var(--teal-soft), var(--teal-soft)) 50% 0 / 5px 5px,
    linear-gradient(var(--teal-soft), var(--teal-soft)) 0 50% / 5px 5px,
    linear-gradient(#fff, #fff) 50% 50% / 5px 5px,
    linear-gradient(var(--teal-soft), var(--teal-soft)) 100% 50% / 5px 5px,
    linear-gradient(var(--teal-soft), var(--teal-soft)) 50% 100% / 5px 5px;
  background-repeat: no-repeat; }
.hero-full h1 { margin-top: 14px; color: #fff; font-size: clamp(28px, 5.2vw, 46px); line-height: 1.32; font-weight: 800; letter-spacing: -.02em; }
.hero-full h1 .accent { color: #6FC5CF; }
.hero-full .sub { margin-top: 16px; color: rgba(255,255,255,.82); font-size: clamp(16px, 2.4vw, 19px); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.quick a:hover { background: var(--teal); border-color: var(--teal); text-decoration: none; }
.quick a .dot { width: 7px; height: 7px; border-radius: 50%; background: #6FC5CF; }

/* ==========================================================
   4. 섹션 · 서비스 · 카드 그리드
   ========================================================== */
.section { padding: 46px 0 8px; }
.section h2 { font-size: clamp(21px, 3.4vw, 26px); line-height: 1.4; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 16px; }
.section p { margin-bottom: 15px; }
.section .more { text-align: center; margin: 26px 0 8px; }
.section .more a { display: inline-block; border: 1.5px solid var(--teal); color: var(--teal-deep); font-weight: 700; padding: 11px 28px; border-radius: 999px; }
.section .more a:hover { background: var(--mist); text-decoration: none; }

.svc { display: grid; gap: 14px; margin: 28px 0 6px; }
@media (min-width: 720px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc div { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 18px 24px; text-align: center; }
.svc .en { display: block; font-family: 'Caveat', cursive; font-size: 27px; font-weight: 700; color: var(--teal); line-height: 1.1; margin-bottom: 12px; }
.svc span { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; display: block; }
.svc span b { color: var(--ink); font-weight: 800; }

.card-grid { display: grid; gap: 22px; margin: 20px 0 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease; }
.ccard:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(45,45,45,.10); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ccard, .ccard:hover { transition: none; transform: none; } }
.ccard .bar-top { height: 7px; background: var(--teal); }
.ccard .thumb { aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.ccard .thumb img, .ccard .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.ccard .body { padding: 16px 18px 18px; }
.ccard .brand { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--teal-deep); margin-bottom: 5px; }
.ccard h3 { font-size: 17.5px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.ccard .read { font-size: 14px; font-weight: 700; color: var(--teal-deep); }
.ccard time { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.list-head { padding: 44px 0 4px; }
.list-head h1 { font-size: clamp(24px, 4.4vw, 32px); font-weight: 800; margin-top: 10px; }
.list-head p { color: var(--ink-soft); margin-top: 8px; }
.paging { display: flex; justify-content: center; gap: 6px; padding: 30px 0 10px; }
.paging .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; }
.paging .page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ==========================================================
   5. 칼럼 글 — 편집기에서 꾸미는 요소들이 여기 스타일로 출력됨
   ========================================================== */
.article-head { padding: 46px 0 10px; }
.article-head h1 { font-size: clamp(24px, 4.4vw, 32px); line-height: 1.4; font-weight: 800; letter-spacing: -.015em; margin: 10px 0; }
.article-head time { color: var(--ink-soft); font-size: 15px; }
.article-body { padding: 10px 0 20px; }
.article-body > * { margin-bottom: 16px; }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 38px 0 14px; padding-top: 22px; border-top: 2px solid var(--mist); }
.article-body h3 { font-size: 18.5px; font-weight: 700; margin: 26px 0 10px; color: var(--teal-deep); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: var(--radius); }
.article-body figcaption, .wp-caption-text { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 800; }
.article-body mark { background: linear-gradient(transparent 55%, rgba(51,146,158,.28) 55%); padding: 0 2px; }

/* 인용구 (편집기 '인용' 블록) */
.article-body blockquote, .wp-block-quote {
  border-left: 4px solid var(--teal); background: var(--mist);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-quote cite { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-soft); font-style: normal; }
/* 강조 인용 (풀인용 블록) */
.wp-block-pullquote { border: 0; padding: 30px 20px; text-align: center; background: #17282B; border-radius: var(--radius); }
.wp-block-pullquote blockquote { border: 0; background: none; padding: 0; }
.wp-block-pullquote p { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.6; }
.wp-block-pullquote cite { color: var(--teal-soft); font-size: 14px; font-style: normal; }

/* 표 (편집기 '표' 블록) */
.article-body table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.article-body th, .wp-block-table th { background: var(--teal); color: #fff; font-weight: 700; padding: 11px 12px; text-align: left; border: 1px solid #2B7E89; }
.article-body td, .wp-block-table td { padding: 11px 12px; border: 1px solid var(--line); vertical-align: top; }
.wp-block-table tr:nth-child(even) td { background: #F7FBFB; }
.wp-block-table figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
/* 줄무늬 스타일 선택 시 */
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: var(--mist); }

/* 구분선 (편집기 '구분선' 블록) → 픽셀 십자 디바이더 */
.article-body hr, .wp-block-separator { border: 0; height: 15px; margin: 34px auto; width: 100%; max-width: 200px; position: relative; background: none !important; }
.article-body hr::before, .wp-block-separator::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.article-body hr::after, .wp-block-separator::after { content: ""; position: absolute; left: 50%; top: 0; width: 15px; height: 15px; transform: translateX(-50%); background-color: var(--paper);
  background-image:
    linear-gradient(var(--teal), var(--teal)),
    linear-gradient(var(--teal), var(--teal)),
    linear-gradient(var(--teal), var(--teal)),
    linear-gradient(var(--teal), var(--teal)),
    linear-gradient(var(--teal), var(--teal));
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: 50% 0, 0 50%, 50% 50%, 100% 50%, 50% 100%;
  box-shadow: 0 0 0 6px var(--paper); }

/* 포인트 박스 / 주의 박스 (패턴 또는 '추가 CSS 클래스'로 사용) */
.danbi-box { background: var(--mist); border-radius: var(--radius); padding: 20px 22px; }
.danbi-box > :last-child, .danbi-warn > :last-child { margin-bottom: 0; }
.danbi-box .box-title, .danbi-warn .box-title { display: block; font-weight: 800; color: var(--teal-deep); margin-bottom: 8px; }
.danbi-warn { background: var(--warn-bg); border-radius: var(--radius); padding: 20px 22px; }
.danbi-warn .box-title { color: var(--warn); }

/* 버튼 블록 */
.wp-block-button__link { background: var(--teal); border-radius: 999px; font-weight: 700; padding: 12px 26px; }
.wp-block-button__link:hover { background: var(--teal-deep); }

.post-nav { display: flex; justify-content: space-between; gap: 14px; padding: 22px 0 40px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 10px; }
.tags a { font-size: 14px; color: var(--teal-deep); background: var(--mist); padding: 6px 13px; border-radius: 999px; }

/* ==========================================================
   6. 문의 박스 · 푸터 · 고정 CTA
   ========================================================== */
.contact-box { background: #17282B; color: #fff; border-radius: 18px; padding: 40px 30px; margin: 50px 0; position: relative; overflow: hidden; }
.contact-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 10%, rgba(51,146,158,.4), transparent 60%); }
.contact-box > * { position: relative; }
.contact-box .eyebrow { color: var(--teal-soft); }
.contact-box h2 { color: #fff; font-size: clamp(21px, 3.6vw, 27px); margin: 10px 0 8px; font-weight: 800; }
.contact-box p { color: rgba(255,255,255,.75); margin-bottom: 22px; }
.contact-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-box a.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.contact-box .b1 { background: var(--teal); color: #fff; }
.contact-box .b1:hover { background: var(--teal-deep); }
.contact-box .b2 { background: #FAE100; color: #3A1D1D; }
.contact-box .b3 { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.contact-box .mini { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.65); }
.contact-box .mini a { color: var(--teal-soft); }

.site-footer { background: var(--ink); color: #AEB9BB; margin-top: 40px; padding: 42px 0 116px; font-size: 14.5px; }
.site-footer .wide { display: grid; gap: 5px; }
.site-footer b { color: #fff; font-size: 16px; }
.site-footer a { color: #CFE5E8; }
.site-footer .sns { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.site-footer .copy { margin-top: 16px; font-size: 13px; color: #7E8C8E; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.sticky-cta a { flex: 1; text-align: center; padding: 15px 0 calc(15px + env(safe-area-inset-bottom)); font-weight: 800; font-size: 16px; text-decoration: none; }
.sticky-cta .call { background: var(--teal); color: #fff; }
.sticky-cta .talk { background: #FAE100; color: #3A1D1D; }
@media (min-width: 900px) { .sticky-cta { display: none; } .site-footer { padding-bottom: 42px; } }
