/*
Theme Name: Company Intro Theme
Description: 회사소개 홈페이지 템플릿의 화면 틀. 기능은 템플릿 플러그인이 맡고, 이 테마는 마크업과 스타일만 둔다.
Version: 0.1.1
Text Domain: company-intro-theme
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===================
   1. CSS Variables
   =================== */
:root {
	--ci-brand: var(--fh-brand, #1f4e5f);
	--ci-brand-deep: var(--fh-brand-deep, #163a47);
	--ci-brand-soft: var(--fh-brand-soft, #eaf1f3);
	--ci-brand-contrast: var(--fh-brand-contrast, #ffffff);
	--ci-ink: #1a1a1a;
	--ci-ink-2: #4d4d4d;
	--ci-line: #d9d9d9;
	--ci-surface: #ffffff;
	--ci-canvas: #f6f6f4;
	--ci-max: 1200px;
	--ci-font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

/* ===================
   2. Reset & Base
   =================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--ci-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ci-ink);
	background: var(--ci-surface);
	overflow-wrap: break-word;
	word-break: keep-all;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ci-brand);
}

a:hover {
	color: var(--ci-brand-deep);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--ci-brand);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	line-height: 1.3;
	margin: 0 0 16px;
}

h1 {
	font-size: 32px;
	font-weight: 700;
}

h2 {
	font-size: 24px;
	font-weight: 700;
}

h3 {
	font-size: 18px;
	font-weight: 600;
}

p,
ul,
ol {
	margin: 0 0 16px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ci-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--ci-brand);
	color: var(--ci-brand-contrast);
}

.ci-skip:focus {
	top: 8px;
}

/* ===================
   3. Layout
   =================== */
.ci-wrap {
	width: 100%;
	max-width: var(--ci-max);
	margin: 0 auto;
	padding: 0 16px;
}

.ci-main {
	padding: 40px 0 64px;
	min-height: 50vh;
}

/* 헤더 */
.ci-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ci-surface);
	border-bottom: 1px solid var(--ci-line);
}

.ci-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.ci-brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ci-ink);
	text-decoration: none;
}

.ci-brand img {
	display: block;
	max-height: 40px;
	width: auto;
}

.ci-nav-toggle {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ci-line);
	border-radius: 8px;
	background: var(--ci-surface);
	color: var(--ci-ink);
	font: inherit;
	cursor: pointer;
}

.ci-nav {
	display: none;
	padding-bottom: 16px;
}

.ci-nav.is-open {
	display: block;
}

.ci-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ci-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 4px;
	color: var(--ci-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--ci-line);
}

.ci-nav a:hover,
.ci-nav .current-menu-item > a {
	color: var(--ci-brand);
	font-weight: 600;
}

/* 푸터 */
.ci-footer {
	padding: 40px 0;
	background: var(--ci-canvas);
	border-top: 1px solid var(--ci-line);
	font-size: 14px;
	color: var(--ci-ink-2);
}

.ci-footer__name {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ci-ink);
}

.ci-footer__info {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ci-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ci-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ci-ink-2);
}

.ci-footer__copy {
	margin: 0;
}

/* ===================
   4. Components
   =================== */
.ci-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 24px;
	border: 2px solid var(--ci-brand);
	border-radius: 8px;
	background: var(--ci-brand);
	color: var(--ci-brand-contrast);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ci-button:hover {
	background: var(--ci-brand-deep);
	border-color: var(--ci-brand-deep);
	color: var(--ci-brand-contrast);
}

.ci-button--ghost {
	background: transparent;
	color: var(--ci-brand);
}

.ci-button--ghost:hover {
	background: var(--ci-brand-soft);
	color: var(--ci-brand-deep);
}

.ci-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

.ci-card {
	padding: 24px;
	border: 1px solid var(--ci-line);
	border-radius: 12px;
	background: var(--ci-surface);
}

.ci-card h3 {
	margin-bottom: 8px;
}

.ci-card p {
	margin: 0;
	color: var(--ci-ink-2);
}

/* ===================
   5. Sections
   =================== */
.ci-hero {
	padding: 48px 24px;
	margin-bottom: 48px;
	border-radius: 16px;
	background: var(--ci-brand-soft);
}

.ci-hero h1 {
	font-size: 32px;
}

.ci-hero p {
	max-width: 40em;
	color: var(--ci-ink-2);
}

.ci-section {
	margin-bottom: 48px;
}

.ci-cta {
	padding: 32px 24px;
	border-radius: 16px;
	background: var(--ci-canvas);
	text-align: center;
}

.ci-page-title {
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--ci-brand);
}

/* 게시판 목록 링크 — 손가락으로 누를 수 있는 높이 */
.fluxboard-simple__subject {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.entry-content > * + h2 {
	margin-top: 48px;
}

.entry-content > h2:first-child {
	margin-top: 0;
}

/* ===================
   6. Responsive
   =================== */
@media (min-width: 768px) {
	h1,
	.ci-hero h1 {
		font-size: 40px;
	}

	h2 {
		font-size: 28px;
	}

	.ci-cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.ci-hero {
		padding: 72px 48px;
	}

	.ci-main {
		padding: 64px 0 80px;
	}
}

@media (min-width: 1024px) {
	/* 로고와 메뉴를 한 줄에 */
	.ci-header .ci-wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}

	.ci-header__bar {
		flex: 0 0 auto;
	}

	.ci-nav-toggle {
		display: none;
	}

	.ci-nav,
	.ci-nav.is-open {
		display: block;
		padding-bottom: 0;
	}

	.ci-nav ul {
		display: flex;
		gap: 4px;
	}

	.ci-nav a {
		padding: 8px 12px;
		border-bottom: 0;
		border-radius: 8px;
		white-space: nowrap;
	}

	.ci-nav a:hover {
		background: var(--ci-brand-soft);
	}

	.ci-header__bar {
		flex-wrap: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
