/* =========================================================
   SNMAX Visual Kit — Modern Tech / Business  (v1.1)
   GeneratePress 대상 시각 개선 스타일
   ========================================================= */

:root {
	--snmax-primary: #2563eb;      /* blue-600 */
	--snmax-primary-dark: #1d4ed8; /* blue-700 */
	--snmax-accent: #06b6d4;       /* cyan-500 */
	--snmax-ink: #0f172a;          /* slate-900 */
	--snmax-navy: #0b1220;         /* hero base */
	--snmax-text: #334155;         /* slate-700 */
	--snmax-muted: #64748b;        /* slate-500 */
	--snmax-line: #e2e8f0;         /* slate-200 */
	--snmax-card: #ffffff;
	--snmax-page: #e6ebf3;         /* 전체 배경 톤(회청색) */
	--snmax-page2: #dde4ef;        /* 톤 그라데이션 하단 */
	--snmax-soft: #eef2f7;
	--snmax-radius: 16px;
	--snmax-radius-sm: 10px;
	--snmax-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
	--snmax-shadow-lg: 0 18px 44px rgba(15, 23, 42, .14);
	--snmax-ease: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
body,
button, input, select, textarea {
	font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
		"Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	color: var(--snmax-text);
	-webkit-font-smoothing: antialiased;
}
body {
	/* 전체 톤: 은은한 회청색 그라데이션 — 콘텐츠 영역까지 일관되게 적용 */
	background: linear-gradient(180deg, var(--snmax-page) 0%, var(--snmax-page2) 100%) no-repeat;
	background-attachment: fixed;
	line-height: 1.75;
	letter-spacing: -0.01em;
}
/* GP 콘텐츠 래퍼는 투명 처리해 배경 톤이 그대로 비치게(카드만 흰색) */
.site-content, #content, .content-area, .site-main,
.separate-containers .site-main, .inside-right-sidebar, .inside-left-sidebar {
	background: transparent;
}
h1, h2, h3, h4, h5, h6, .entry-title {
	color: var(--snmax-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}
a { color: var(--snmax-primary); transition: color var(--snmax-ease); }
a:hover { color: var(--snmax-primary-dark); }

/* ---------- 컨테이너를 흰 카드처럼 띄우기 ---------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content,
.site-main > .generate-columns-container article.post {
	background: var(--snmax-card);
}
/* 단일 글 / 일반 페이지 본문 카드 */
.single .inside-article,
.page .inside-article,
.search .inside-article,
.archive .inside-article {
	border: 1px solid var(--snmax-line);
	border-radius: var(--snmax-radius);
	box-shadow: var(--snmax-shadow);
	padding: 40px 44px;
}

/* ---------- Header ---------- */
.site-header {
	background: rgba(247, 249, 252, .92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid #d8e0ec;
	transition: box-shadow var(--snmax-ease);
}
.site-header.snmax-stuck {
	position: sticky; top: 0; z-index: 200;
	box-shadow: 0 4px 22px rgba(15, 23, 42, .1);
}
.main-navigation, .main-navigation .inside-navigation { background: transparent; }
.main-navigation .main-nav ul li a {
	font-size: 1.05rem;          /* 메뉴 글자 키움 */
	font-weight: 600; letter-spacing: -0.01em; position: relative;
	transition: color var(--snmax-ease);
}
.main-navigation .main-nav ul li a::after {
	content: ""; position: absolute; left: 20px; right: 20px; bottom: 12px;
	height: 2px; background: var(--snmax-primary);
	transform: scaleX(0); transform-origin: left;
	transition: transform var(--snmax-ease);
}
.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li.current-menu-item a::after { transform: scaleX(1); }
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--snmax-primary); }

/* ---------- HERO (진한 네이비 그라데이션) ---------- */
.snmax-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 12% -10%, rgba(37, 99, 235, .55), transparent 60%),
		radial-gradient(800px 520px at 92% 10%, rgba(6, 182, 212, .35), transparent 55%),
		linear-gradient(135deg, var(--snmax-navy) 0%, #122046 45%, #1e3a8a 100%);
	color: #fff;
	padding: 104px 20px 96px;
	text-align: center;
}
/* 미세한 그리드 텍스처 */
.snmax-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(700px 400px at 50% 30%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(700px 400px at 50% 30%, #000, transparent 75%);
	pointer-events: none;
}
.snmax-hero__inner { position: relative; max-width: 1040px; margin: 0 auto; }
.snmax-hero__eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase; color: #bfdbfe;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
	backdrop-filter: blur(4px);
}
.snmax-hero__title {
	color: #fff;
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	margin: 0 0 18px; letter-spacing: -0.035em; line-height: 1.2;
}
.snmax-hero__title .snmax-hl {
	background: linear-gradient(120deg, #7dd3fc, #60a5fa, #a5b4fc);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.snmax-hero__lead {
	font-size: clamp(1rem, 1.7vw, 1.18rem);
	color: #cbd5e1; margin: 0 auto 16px; max-width: 100%; line-height: 1.7;
}
/* 데스크톱에서는 제목·리드를 한 줄로 */
@media (min-width: 880px) {
	.snmax-hero__title, .snmax-hero__lead { white-space: nowrap; }
}
.snmax-hero__sub {
	font-size: 1rem; color: #94a3b8; margin: 0 auto 36px; max-width: 600px;
}
.snmax-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.snmax-hero__stats {
	display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
	margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.snmax-hero__stat b { display: block; font-size: 1.7rem; color: #fff; letter-spacing: -0.02em; }
.snmax-hero__stat span { font-size: .85rem; color: #94a3b8; }

/* ---------- Buttons ---------- */
.snmax-btn, .button, button.button, input[type="submit"],
.wpcf7 input[type="submit"], .wpcf7-form input.wpcf7-submit, .snmax-readmore {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 600; letter-spacing: -0.01em; border-radius: 999px;
	padding: 13px 26px; border: 1px solid transparent; cursor: pointer;
	transition: transform var(--snmax-ease), box-shadow var(--snmax-ease), background var(--snmax-ease);
	text-decoration: none;
}
.snmax-btn--primary, .button, button.button, input[type="submit"],
.wpcf7 input[type="submit"], .wpcf7-form input.wpcf7-submit {
	background: var(--snmax-primary); color: #fff;
	box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}
.snmax-btn--primary:hover, .button:hover, button.button:hover, input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover, .wpcf7-form input.wpcf7-submit:hover {
	background: var(--snmax-primary-dark); color: #fff;
	transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .5);
}
.snmax-btn--ghost {
	background: rgba(255, 255, 255, .08); color: #fff;
	border-color: rgba(255, 255, 255, .25); box-shadow: none;
}
.snmax-btn--ghost:hover {
	background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px);
}

/* ---------- 기본 블로그/아카이브 루프: 카드형 ---------- */
.blog .site-main, .archive .site-main, .search .site-main {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.blog .site-main > *:not(article), .archive .site-main > *:not(article),
.search .site-main > *:not(article) { grid-column: 1 / -1; }
.blog article.post, .archive article.post, .search article.post {
	border: 1px solid var(--snmax-line); border-radius: var(--snmax-radius);
	box-shadow: var(--snmax-shadow); overflow: hidden; margin-bottom: 0;
	transition: transform var(--snmax-ease), box-shadow var(--snmax-ease), border-color var(--snmax-ease);
}
.blog article.post .inside-article, .archive article.post .inside-article,
.search article.post .inside-article {
	border: 0; box-shadow: none; border-radius: 0; padding: 0 0 24px;
	display: flex; flex-direction: column; height: 100%;
}
.blog article.post:hover, .archive article.post:hover, .search article.post:hover {
	transform: translateY(-6px); box-shadow: var(--snmax-shadow-lg);
	border-color: rgba(37, 99, 235, .4);
}
/* 카드 썸네일을 제목 위(맨 위)로 */
.blog article .inside-article .post-image, .archive article .inside-article .post-image {
	order: -1;
}
.blog article .post-image, .archive article .post-image, .search article .post-image {
	margin: 0 0 18px; overflow: hidden;
}
.blog article .post-image img, .archive article .post-image img, .search article .post-image img {
	width: 100%; height: 200px; object-fit: cover; display: block;
	transition: transform .5s var(--snmax-ease);
}
.blog article.post:hover .post-image img, .archive article.post:hover .post-image img { transform: scale(1.05); }
.blog article .entry-header, .blog article .entry-summary, .blog article .entry-meta, .blog article .read-more-container,
.archive article .entry-header, .archive article .entry-summary, .archive article .entry-meta, .archive article .read-more-container {
	padding-left: 26px; padding-right: 26px;
}
.blog article .entry-title, .archive article .entry-title { font-size: 1.35rem; margin: 4px 0 10px; }
.blog article .entry-title a, .archive article .entry-title a { color: var(--snmax-ink); }
.blog article .entry-title a:hover, .archive article .entry-title a:hover { color: var(--snmax-primary); }
.blog article .entry-meta, .archive article .entry-meta { font-size: .85rem; color: var(--snmax-muted); }
.blog article .entry-summary, .archive article .entry-summary { color: var(--snmax-text); flex: 1; }
.read-more-container { margin-top: auto; }
.read-more-container .button { font-size: .9rem; padding: 10px 20px; }

/* ---------- [snmax_posts] 숏코드 카드 그리드 ---------- */
.snmax-posts {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px; margin: 30px 0;
}
.snmax-pcard {
	display: flex; flex-direction: column; background: var(--snmax-card);
	border: 1px solid var(--snmax-line); border-radius: var(--snmax-radius);
	box-shadow: var(--snmax-shadow); overflow: hidden;
	transition: transform var(--snmax-ease), box-shadow var(--snmax-ease), border-color var(--snmax-ease);
}
.snmax-pcard:hover {
	transform: translateY(-6px); box-shadow: var(--snmax-shadow-lg);
	border-color: rgba(37, 99, 235, .4);
}
.snmax-pcard__media { position: relative; height: 168px; overflow: hidden; }
.snmax-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--snmax-ease); }
.snmax-pcard:hover .snmax-pcard__media img { transform: scale(1.06); }
/* 썸네일 없는 글: 브랜드 그라데이션 + 이니셜 */
.snmax-pcard__media--ph {
	background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #06b6d4);
	display: flex; align-items: center; justify-content: center;
}
.snmax-pcard__media--ph span { color: rgba(255, 255, 255, .92); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.snmax-pcard__badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	font-size: .72rem; font-weight: 700; letter-spacing: .03em;
	color: #fff; background: rgba(15, 23, 42, .72); backdrop-filter: blur(4px);
	padding: 5px 11px; border-radius: 999px;
}
.snmax-pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.snmax-pcard__title { font-size: 1.2rem; line-height: 1.4; margin: 0 0 10px; }
.snmax-pcard__title a { color: var(--snmax-ink); }
.snmax-pcard__title a:hover { color: var(--snmax-primary); }
.snmax-pcard__excerpt { color: var(--snmax-text); font-size: .96rem; margin: 0 0 16px; flex: 1; }
.snmax-pcard__meta { font-size: .82rem; color: var(--snmax-muted); margin-bottom: 14px; }
.snmax-readmore {
	align-self: flex-start; padding: 9px 18px; font-size: .88rem;
	background: var(--snmax-soft); color: var(--snmax-primary); border: 1px solid var(--snmax-line);
}
.snmax-readmore:hover { background: var(--snmax-primary); color: #fff; transform: translateX(2px); border-color: transparent; }

/* ---------- Single / Page 가독성 ---------- */
.single .entry-content, .page .entry-content { font-size: 1.075rem; }
.single .entry-content > p, .page .entry-content > p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content blockquote {
	border-left: 4px solid var(--snmax-primary); background: var(--snmax-soft);
	padding: 16px 22px; border-radius: var(--snmax-radius-sm); margin: 1.6em 0;
}
.entry-content img { border-radius: var(--snmax-radius-sm); }
.single .entry-header .entry-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- Forms ---------- */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea,
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea {
	border: 1px solid var(--snmax-line); border-radius: var(--snmax-radius-sm);
	padding: 12px 14px; background: #fff;
	transition: border-color var(--snmax-ease), box-shadow var(--snmax-ease);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus,
input[type="tel"]:focus, textarea:focus {
	border-color: var(--snmax-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: none;
}

/* ---------- Contact 정보 카드 ---------- */
.snmax-contact-cards {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px; margin: 34px 0 8px;
}
.snmax-contact-card {
	display: flex; flex-direction: column; gap: 6px; background: var(--snmax-soft);
	border: 1px solid var(--snmax-line); border-radius: var(--snmax-radius); padding: 22px 20px;
	transition: transform var(--snmax-ease), box-shadow var(--snmax-ease);
}
.snmax-contact-card:hover { transform: translateY(-4px); box-shadow: var(--snmax-shadow); }
.snmax-contact-card__icon { font-size: 1.6rem; }
.snmax-contact-card__label {
	font-size: .8rem; font-weight: 700; color: var(--snmax-muted);
	text-transform: uppercase; letter-spacing: .05em;
}
.snmax-contact-card__value { font-size: 1.02rem; font-weight: 600; color: var(--snmax-ink); }

/* ---------- Sidebar 위젯 카드 ---------- */
.sidebar .widget, .inside-right-sidebar .widget, .inside-left-sidebar .widget,
.widget-area .widget {
	background: var(--snmax-card); border: 1px solid var(--snmax-line);
	border-radius: var(--snmax-radius); box-shadow: var(--snmax-shadow);
	padding: 24px 22px; margin-bottom: 26px;
}
.widget .widget-title {
	font-size: 1.05rem; margin: 0 0 16px; padding-bottom: 12px; position: relative;
	border-bottom: 1px solid var(--snmax-line);
}
.widget .widget-title::before {
	content: ""; position: absolute; left: 0; bottom: -1px; width: 42px; height: 3px;
	border-radius: 3px; background: linear-gradient(90deg, var(--snmax-primary), var(--snmax-accent));
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
	padding: 9px 0 9px 20px; position: relative; border-bottom: 1px dashed var(--snmax-line);
	line-height: 1.5;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li::before {
	content: "›"; position: absolute; left: 4px; top: 8px;
	color: var(--snmax-primary); font-weight: 700;
}
.widget ul li a { color: var(--snmax-text); text-decoration: none; }
.widget ul li a:hover { color: var(--snmax-primary); }
.widget select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--snmax-line);
	border-radius: var(--snmax-radius-sm); background: #fff;
}

/* ---------- 사이드바 CTA 카드 ---------- */
.sidebar .widget.snmax-cta-widget, .inside-right-sidebar .widget.snmax-cta-widget {
	padding: 0; border: 0; overflow: hidden;
}
.snmax-cta {
	position: relative; overflow: hidden;
	background:
		radial-gradient(500px 240px at 110% -20%, rgba(6, 182, 212, .45), transparent 60%),
		linear-gradient(135deg, var(--snmax-navy), #1e3a8a 90%);
	color: #fff; padding: 26px 24px 28px; text-align: left;
}
.snmax-cta__eyebrow {
	display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em;
	color: #bfdbfe; margin-bottom: 12px;
}
.snmax-cta__title { color: #fff; font-size: 1.22rem; line-height: 1.4; margin: 0 0 10px; }
.snmax-cta__desc { color: #cbd5e1; font-size: .92rem; margin: 0 0 18px; }
.snmax-cta__btn { width: 100%; }

/* ---------- Footer (히어로 톤과 통일) ---------- */
.site-footer, .site-info, .footer-widgets {
	background: linear-gradient(135deg, var(--snmax-navy) 0%, #122046 60%, #1e3a8a 100%);
	color: #cbd5e1;
}
.footer-widgets { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--snmax-primary), var(--snmax-accent)) 1; }
.site-info {
	border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem;
}
/* 푸터 위젯이 없을 때 카피라이트 바 위에도 액센트 라인 */
.site-info { box-shadow: inset 0 3px 0 -1px rgba(37, 99, 235, .0); }
.site-info a { color: #fff; }
.site-info a:hover { color: var(--snmax-accent); }
.footer-widgets .widget {
	background: transparent; border: 0; box-shadow: none; padding: 0; color: #cbd5e1;
}
.footer-widgets .widget-title { color: #fff; border-color: rgba(255, 255, 255, .12); }
.footer-widgets a { color: #cbd5e1; }
.footer-widgets a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.snmax-to-top {
	position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px;
	border-radius: 50%; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
	background: linear-gradient(135deg, var(--snmax-primary), var(--snmax-accent));
	box-shadow: 0 10px 24px rgba(37, 99, 235, .45);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity var(--snmax-ease), transform var(--snmax-ease), filter var(--snmax-ease); z-index: 300;
}
.snmax-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.snmax-to-top:hover { filter: brightness(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.snmax-hero { padding: 72px 18px 60px; }
	.snmax-hero__stats { gap: 26px; }
	.blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; }
	.single .inside-article, .page .inside-article { padding: 28px 22px; }
}
