:root {
  --wm-primary: #1e3a5f;
  --wm-primary-light: #2d5a8e;
  --wm-primary-dark: #0f2740;
  --wm-accent: #c8956c;
  --wm-accent-light: #e0b898;
  --wm-accent-dark: #a07048;
  --wm-neutral-50: #fafafa;
  --wm-neutral-100: #f5f5f5;
  --wm-neutral-200: #e8e8e8;
  --wm-neutral-300: #d4d4d4;
  --wm-neutral-400: #a3a3a3;
  --wm-neutral-500: #737373;
  --wm-neutral-600: #525252;
  --wm-neutral-700: #404040;
  --wm-neutral-800: #262626;
  --wm-neutral-900: #171717;
  --wm-bg: #ffffff;
  --wm-bg-warm: #fdfcfa;
  --wm-bg-section: #f7f5f2;
  --wm-text: #2c2c2c;
  --wm-text-secondary: #5a5a5a;
  --wm-text-muted: #8a8a8a;
  --wm-border: #e2ddd6;
  --wm-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --wm-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --wm-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --wm-radius-sm: 6px;
  --wm-radius-md: 12px;
  --wm-radius-lg: 20px;
  --wm-spacing-xs: 8px;
  --wm-spacing-sm: 16px;
  --wm-spacing-md: 24px;
  --wm-spacing-lg: 40px;
  --wm-spacing-xl: 64px;
  --wm-spacing-2xl: 96px;
  --wm-spacing-3xl: 128px;
  --wm-max-width: 1200px;
  --wm-content-width: 780px;
  --wm-transition: 200ms ease;
  --wm-font-heading: 'Noto Serif KR', serif;
  --wm-font-body: 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body.windowmohair-site {
  font-family: var(--wm-font-body);
  color: var(--wm-text);
  background: var(--wm-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body.windowmohair-site .wp-site-blocks,
body.windowmohair-site .is-layout-constrained {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wm-primary); text-decoration: none; transition: color var(--wm-transition); }
a:hover { color: var(--wm-accent); }

/* ===== HEADER ===== */
.wm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wm-border);
  transition: box-shadow var(--wm-transition);
}
.wm-header.scrolled { box-shadow: var(--wm-shadow-md); }
.wm-header-inner {
  max-width: var(--wm-max-width);
  margin: 0 auto;
  padding: 0 var(--wm-spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wm-logo-icon {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: var(--wm-radius-sm);
}
.wm-logo-text {
  font-family: var(--wm-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wm-primary);
  letter-spacing: -0.02em;
}
.wm-nav { display: flex; gap: 4px; }
.wm-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wm-text-secondary);
  border-radius: var(--wm-radius-sm);
  transition: all var(--wm-transition);
}
.wm-nav a:hover {
  color: var(--wm-primary);
  background: var(--wm-neutral-100);
}
.wm-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.wm-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--wm-text);
  position: relative;
  transition: all var(--wm-transition);
}
.wm-mobile-toggle span::before,
.wm-mobile-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--wm-text);
  transition: all var(--wm-transition);
}
.wm-mobile-toggle span::before { top: -7px; }
.wm-mobile-toggle span::after { top: 7px; }

/* ===== HERO ===== */
.wm-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}
.wm-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}
.wm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,39,64,0.85) 0%, rgba(30,58,95,0.6) 100%);
}
.wm-hero-content {
  position: relative; z-index: 2;
  max-width: var(--wm-max-width);
  margin: 0 auto;
  padding: var(--wm-spacing-3xl) var(--wm-spacing-md);
  color: #fff;
}
.wm-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200,149,108,0.25);
  border: 1px solid rgba(200,149,108,0.5);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wm-accent-light);
  margin-bottom: var(--wm-spacing-md);
  letter-spacing: 0.05em;
}
.wm-hero h1 {
  font-family: var(--wm-font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: var(--wm-spacing-md);
  max-width: 680px;
}
.wm-hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: var(--wm-spacing-lg);
}
.wm-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--wm-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--wm-radius-sm);
  transition: all var(--wm-transition);
  border: none;
  cursor: pointer;
}
.wm-hero-cta:hover {
  background: var(--wm-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,149,108,0.3);
}

/* ===== SECTION ===== */
.wm-section {
  padding: var(--wm-spacing-2xl) var(--wm-spacing-md);
}
.wm-section--alt { background: var(--wm-bg-section); }
.wm-section-inner {
  max-width: var(--wm-max-width);
  margin: 0 auto;
}
.wm-section-header {
  text-align: center;
  margin-bottom: var(--wm-spacing-xl);
}
.wm-section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wm-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--wm-spacing-xs);
}
.wm-section-title {
  font-family: var(--wm-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--wm-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.wm-section-subtitle {
  margin-top: var(--wm-spacing-sm);
  font-size: 1rem;
  color: var(--wm-text-secondary);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ===== CARDS GRID ===== */
.wm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--wm-spacing-md);
}
.wm-card {
  background: var(--wm-bg);
  border-radius: var(--wm-radius-md);
  overflow: hidden;
  box-shadow: var(--wm-shadow-sm);
  border: 1px solid var(--wm-border);
  transition: all var(--wm-transition);
  display: flex;
  flex-direction: column;
}
.wm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wm-shadow-lg);
  border-color: var(--wm-accent-light);
}
.wm-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.wm-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.wm-card:hover .wm-card-image img { transform: scale(1.04); }
.wm-card-category {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  background: var(--wm-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.wm-card-body {
  padding: var(--wm-spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wm-card-title {
  font-family: var(--wm-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wm-neutral-800);
  line-height: 1.45;
  margin-bottom: 8px;
}
.wm-card-title a { color: inherit; }
.wm-card-title a:hover { color: var(--wm-primary); }
.wm-card-excerpt {
  font-size: 0.9rem;
  color: var(--wm-text-secondary);
  line-height: 1.7;
  flex: 1;
}
.wm-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--wm-spacing-sm);
  padding-top: var(--wm-spacing-sm);
  border-top: 1px solid var(--wm-neutral-200);
  font-size: 0.8rem;
  color: var(--wm-text-muted);
}

/* ===== CAROUSEL ===== */
.wm-carousel {
  position: relative;
  overflow: hidden;
}
.wm-carousel-track {
  display: flex;
  gap: var(--wm-spacing-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--wm-spacing-xs) 0 var(--wm-spacing-md);
}
.wm-carousel-track::-webkit-scrollbar { display: none; }
.wm-carousel-item {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

/* ===== STEPS ===== */
.wm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wm-spacing-md);
  counter-reset: step;
}
.wm-step {
  text-align: center;
  padding: var(--wm-spacing-lg) var(--wm-spacing-md);
  background: var(--wm-bg);
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-border);
  position: relative;
  counter-increment: step;
}
.wm-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--wm-primary);
  color: #fff;
  font-family: var(--wm-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto var(--wm-spacing-sm);
}
.wm-step-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--wm-neutral-800);
  margin-bottom: 8px;
}
.wm-step-desc {
  font-size: 0.88rem;
  color: var(--wm-text-secondary);
  line-height: 1.65;
}

/* ===== FEATURE BLOCKS ===== */
.wm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wm-spacing-md);
}
.wm-feature-block {
  padding: var(--wm-spacing-lg);
  background: var(--wm-bg);
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-border);
  transition: all var(--wm-transition);
}
.wm-feature-block:hover {
  border-color: var(--wm-accent-light);
  box-shadow: var(--wm-shadow-md);
}
.wm-feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--wm-primary), var(--wm-primary-light));
  border-radius: var(--wm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--wm-spacing-sm);
}
.wm-feature-icon svg { width: 24px; height: 24px; color: #fff; }
.wm-feature-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wm-neutral-800);
  margin-bottom: 8px;
}
.wm-feature-block p {
  font-size: 0.9rem;
  color: var(--wm-text-secondary);
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.wm-footer {
  background: var(--wm-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--wm-spacing-xl) var(--wm-spacing-md) var(--wm-spacing-lg);
}
.wm-footer-inner {
  max-width: var(--wm-max-width);
  margin: 0 auto;
}
.wm-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--wm-spacing-xl);
  padding-bottom: var(--wm-spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.wm-footer-logo {
  display: inline-flex;
  margin-bottom: var(--wm-spacing-sm);
}
.wm-footer-logo .wm-logo-text { color: #fff; }
.wm-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}
.wm-footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--wm-spacing-sm);
  letter-spacing: 0.05em;
}
.wm-footer-links ul { list-style: none; }
.wm-footer-links li { margin-bottom: 8px; }
.wm-footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--wm-transition);
}
.wm-footer-links a:hover { color: var(--wm-accent-light); }
.wm-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--wm-spacing-md);
  font-size: 0.8rem;
}
.wm-footer-notice {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: var(--wm-spacing-sm);
  max-width: 800px;
}
.wm-footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: var(--wm-spacing-xs);
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(200,149,108,0.3);
  border-radius: 0 6px 6px 0;
}

/* ===== SINGLE POST ===== */
.wm-single { margin-top: 72px; }
.wm-single-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.wm-single-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.wm-single-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.wm-single-content {
  max-width: var(--wm-content-width);
  margin: -80px auto 0;
  position: relative;
  z-index: 2;
  background: var(--wm-bg);
  border-radius: var(--wm-radius-lg) var(--wm-radius-lg) 0 0;
  padding: var(--wm-spacing-xl) var(--wm-spacing-lg);
}
.wm-single-content h1 {
  font-family: var(--wm-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--wm-primary-dark);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: var(--wm-spacing-md);
}
.wm-single-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--wm-text-muted);
  margin-bottom: var(--wm-spacing-lg);
  padding-bottom: var(--wm-spacing-md);
  border-bottom: 1px solid var(--wm-neutral-200);
}

/* Post body typography */
.wm-post-body { font-size: 1.05rem; line-height: 1.8; color: var(--wm-text); }
.wm-post-body h2 {
  font-family: var(--wm-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wm-primary-dark);
  margin: var(--wm-spacing-xl) 0 var(--wm-spacing-md);
  padding-bottom: var(--wm-spacing-xs);
  border-bottom: 2px solid var(--wm-accent-light);
}
.wm-post-body h3 {
  font-family: var(--wm-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wm-primary);
  margin: var(--wm-spacing-lg) 0 var(--wm-spacing-sm);
}
.wm-post-body p {
  margin-bottom: var(--wm-spacing-md);
}
.wm-post-body ul, .wm-post-body ol {
  margin: var(--wm-spacing-sm) 0 var(--wm-spacing-md) var(--wm-spacing-md);
}
.wm-post-body li { margin-bottom: 6px; }
.wm-post-body img {
  border-radius: var(--wm-radius-md);
  margin: var(--wm-spacing-md) 0;
  box-shadow: var(--wm-shadow-sm);
}
.wm-post-body blockquote {
  margin: var(--wm-spacing-md) 0;
  padding: var(--wm-spacing-md) var(--wm-spacing-md) var(--wm-spacing-md) var(--wm-spacing-lg);
  background: var(--wm-bg-section);
  border-left: 4px solid var(--wm-accent);
  border-radius: 0 var(--wm-radius-sm) var(--wm-radius-sm) 0;
  font-size: 1rem;
  color: var(--wm-text-secondary);
}
.wm-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--wm-spacing-md) 0;
  font-size: 0.92rem;
  border-radius: var(--wm-radius-sm);
  overflow: hidden;
  border: 1px solid var(--wm-border);
}
.wm-post-body th {
  background: var(--wm-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
.wm-post-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--wm-neutral-200);
}
.wm-post-body tr:nth-child(even) td {
  background: var(--wm-neutral-50);
}
.wm-post-body .wm-callout {
  background: linear-gradient(135deg, rgba(30,58,95,0.06) 0%, rgba(200,149,108,0.08) 100%);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-md);
  padding: var(--wm-spacing-md);
  margin: var(--wm-spacing-md) 0;
}
.wm-post-body .wm-callout-title {
  font-weight: 600;
  color: var(--wm-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.wm-post-body .wm-chart-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.wm-post-body .wm-chart-label {
  flex: 0 0 100px;
  font-size: 0.85rem;
  color: var(--wm-text-secondary);
  text-align: right;
}
.wm-post-body .wm-chart-track {
  flex: 1;
  height: 24px;
  background: var(--wm-neutral-200);
  border-radius: 12px;
  overflow: hidden;
}
.wm-post-body .wm-chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wm-primary), var(--wm-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}

/* Related posts */
.wm-related {
  max-width: var(--wm-content-width);
  margin: 0 auto;
  padding: var(--wm-spacing-xl) var(--wm-spacing-md);
}
.wm-related h2 {
  font-family: var(--wm-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wm-primary-dark);
  margin-bottom: var(--wm-spacing-md);
}

/* ===== SCROLL ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .wm-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .wm-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .wm-header-inner { height: 60px; }
  .wm-header .wm-logo-icon { width: 34px; height: 34px; }
  .wm-nav { display: none; }
  .wm-nav.open {
    display: flex; flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--wm-bg);
    border-bottom: 1px solid var(--wm-border);
    padding: var(--wm-spacing-sm);
    box-shadow: var(--wm-shadow-lg);
  }
  .wm-mobile-toggle { display: flex; }
  .wm-hero { min-height: 70vh; margin-top: 60px; }
  .wm-hero h1 { font-size: 1.8rem; }
  .wm-cards { grid-template-columns: 1fr; }
  .wm-steps { grid-template-columns: repeat(2, 1fr); }
  .wm-feature-grid { grid-template-columns: 1fr; }
  .wm-footer-top { grid-template-columns: 1fr; gap: var(--wm-spacing-lg); }
  .wm-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .wm-carousel-item { flex: 0 0 300px; }
  .wm-section { padding: var(--wm-spacing-xl) var(--wm-spacing-sm); }
  .wm-single-content { padding: var(--wm-spacing-lg) var(--wm-spacing-sm); margin-top: -40px; }
  .wm-single-hero { height: 280px; }
  .wm-post-body { font-size: 1rem; }
  .wm-post-body h2 { font-size: 1.3rem; }
  .wm-post-body table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .wm-steps { grid-template-columns: 1fr; }
  .wm-hero h1 { font-size: 1.5rem; }
}

/* ===== PAGE TEMPLATES ===== */
.wm-page-content {
  max-width: var(--wm-content-width);
  margin: 100px auto 0;
  padding: var(--wm-spacing-xl) var(--wm-spacing-md);
}
.wm-page-content h1 {
  font-family: var(--wm-font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wm-primary-dark);
  margin-bottom: var(--wm-spacing-lg);
  padding-bottom: var(--wm-spacing-sm);
  border-bottom: 2px solid var(--wm-accent-light);
}
.wm-page-content h2 {
  font-family: var(--wm-font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wm-primary);
  margin: var(--wm-spacing-lg) 0 var(--wm-spacing-sm);
}
.wm-page-content p {
  margin-bottom: var(--wm-spacing-sm);
  line-height: 1.8;
  color: var(--wm-text);
}
.wm-page-content ul, .wm-page-content ol {
  margin: var(--wm-spacing-sm) 0 var(--wm-spacing-md) var(--wm-spacing-md);
}
.wm-page-content li { margin-bottom: 6px; line-height: 1.7; }

/* WP overrides */
body.windowmohair-site .entry-content,
body.windowmohair-site .wp-block-post-content {
  max-width: none !important;
  padding: 0 !important;
}
body.windowmohair-site footer.wp-block-template-part,
body.windowmohair-site .wp-block-template-part[data-slug=footer] {
  display: none !important;
}
