/*
Theme Name: Goat Wellness Child
Template: twentytwentyfive
Description: Premium design for goatwellness.royalkeyword.com
Version: 1.0
*/

:root {
  --gw-primary: #5C4033;
  --gw-primary-light: #7B5B4C;
  --gw-primary-dark: #3E2A22;
  --gw-accent: #B8860B;
  --gw-accent-light: #DAA520;
  --gw-warm: #F5E6D3;
  --gw-warm-light: #FBF5EE;
  --gw-bg: #FDFBF8;
  --gw-text: #2C2C2C;
  --gw-text-light: #666666;
  --gw-text-muted: #999999;
  --gw-border: #E8DDD0;
  --gw-shadow-sm: 0 1px 3px rgba(92,64,51,0.08);
  --gw-shadow-md: 0 4px 12px rgba(92,64,51,0.1);
  --gw-shadow-lg: 0 8px 24px rgba(92,64,51,0.12);
  --gw-radius-sm: 6px;
  --gw-radius-md: 12px;
  --gw-radius-lg: 16px;
  --gw-max-content: 780px;
  --gw-max-wide: 1200px;
  --gw-space-xs: 8px;
  --gw-space-sm: 16px;
  --gw-space-md: 24px;
  --gw-space-lg: 40px;
  --gw-space-xl: 64px;
  --gw-space-2xl: 96px;
  --gw-space-3xl: 128px;
  --gw-transition: 200ms ease;
}

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&display=swap');

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gw-text);
  background: var(--gw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove WP default chrome */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif KR', 'Pretendard Variable', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gw-primary-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--gw-space-md); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: var(--gw-space-xl) 0 var(--gw-space-md); padding-bottom: var(--gw-space-sm); border-bottom: 2px solid var(--gw-warm); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin: var(--gw-space-lg) 0 var(--gw-space-sm); }

p {
  margin-bottom: var(--gw-space-sm);
  line-height: 1.8;
}

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

/* Content area styling */
.entry-content,
.wp-block-post-content {
  max-width: var(--gw-max-content);
  margin: 0 auto;
  padding: 0 var(--gw-space-md);
}

/* Image styling */
.entry-content img,
.wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gw-radius-md);
  box-shadow: var(--gw-shadow-sm);
}

/* Table styling */
.entry-content table,
.wp-block-post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--gw-radius-md);
  overflow: hidden;
  box-shadow: var(--gw-shadow-sm);
  margin: var(--gw-space-md) 0;
  font-size: 0.95em;
}

.entry-content table thead th,
.wp-block-post-content table thead th {
  background: var(--gw-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

.entry-content table tbody td,
.wp-block-post-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gw-border);
  background: #fff;
}

.entry-content table tbody tr:last-child td { border-bottom: none; }
.entry-content table tbody tr:nth-child(even) td { background: var(--gw-warm-light); }

/* Blockquote / Callout */
.entry-content blockquote,
.wp-block-post-content blockquote {
  background: var(--gw-warm-light);
  border-left: 4px solid var(--gw-accent);
  border-radius: 0 var(--gw-radius-md) var(--gw-radius-md) 0;
  padding: var(--gw-space-md) var(--gw-space-md);
  margin: var(--gw-space-md) 0;
  font-style: normal;
  color: var(--gw-primary-dark);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

/* Lists */
.entry-content ul, .entry-content ol,
.wp-block-post-content ul, .wp-block-post-content ol {
  padding-left: 24px;
  margin: var(--gw-space-sm) 0;
}

.entry-content li, .wp-block-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* FAQ styling */
.faq-item {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  padding: var(--gw-space-md);
  margin-bottom: var(--gw-space-sm);
  transition: box-shadow var(--gw-transition);
}

.faq-item:hover { box-shadow: var(--gw-shadow-md); }

.faq-item strong {
  color: var(--gw-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 1.05em;
}

/* Legal notices */
.legal-notice {
  font-size: 0.85em !important;
  color: #777 !important;
  background: #f8f9fa !important;
  border-left: 3px solid #cbd5e1 !important;
  padding: 10px 14px !important;
  margin-top: 2em !important;
  border-radius: 0 6px 6px 0 !important;
}

.ai-notice {
  font-size: 0.85em !important;
  color: #888 !important;
  margin-top: 2em !important;
}

/* Button */
.gw-btn {
  display: inline-block;
  background: var(--gw-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--gw-radius-sm);
  font-weight: 600;
  font-size: 0.95em;
  transition: all var(--gw-transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.gw-btn:hover {
  background: var(--gw-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--gw-shadow-md);
}

/* Hide WP emoji */
img.emoji, img.wp-smiley { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .entry-content, .wp-block-post-content {
    padding: 0 var(--gw-space-sm);
  }
  .entry-content table { font-size: 0.85em; display: block; overflow-x: auto; }
  .entry-content table thead th,
  .entry-content table tbody td { padding: 10px 12px; white-space: nowrap; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Single post styles */
.gw-single {
  max-width: var(--gw-max-wide);
  margin: 0 auto;
  padding: var(--gw-space-lg) var(--gw-space-md);
}

.gw-single-hero {
  margin-bottom: var(--gw-space-xl);
}

.gw-single-thumb {
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  margin-bottom: var(--gw-space-lg);
  aspect-ratio: 16/9;
  max-height: 480px;
}

.gw-single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.gw-single-meta {
  max-width: var(--gw-max-content);
  margin: 0 auto;
}

.gw-single-meta h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: var(--gw-space-sm) 0;
  border: none;
}

.gw-cat a {
  display: inline-block;
  background: var(--gw-warm);
  color: var(--gw-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.gw-single-meta time {
  font-size: 0.9em;
  color: var(--gw-text-muted);
}

.gw-single-body {
  max-width: var(--gw-max-content);
  margin: 0 auto;
}

.gw-single-body h2 {
  position: relative;
  padding-left: 16px;
}

.gw-single-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gw-accent);
  border-radius: 2px;
}

/* Post navigation */
.gw-post-nav {
  max-width: var(--gw-max-content);
  margin: var(--gw-space-2xl) auto var(--gw-space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gw-space-sm);
}

.gw-post-nav-link {
  display: block;
  padding: var(--gw-space-md);
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  transition: all var(--gw-transition);
  text-decoration: none;
}

.gw-post-nav-link:hover {
  border-color: var(--gw-accent);
  box-shadow: var(--gw-shadow-md);
}

.gw-post-nav-link.next { text-align: right; }

.gw-post-nav-label {
  display: block;
  font-size: 0.8em;
  color: var(--gw-text-muted);
  margin-bottom: 4px;
}

.gw-post-nav-title {
  color: var(--gw-primary);
  font-weight: 600;
  font-size: 0.95em;
}

/* Related posts */
.gw-related {
  max-width: var(--gw-max-content);
  margin: 0 auto var(--gw-space-xl);
}

.gw-related h2 {
  border-bottom: none;
  padding-left: 0;
}
.gw-related h2::before { display: none; }

.gw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gw-space-md);
}

.gw-related-card {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  overflow: hidden;
  transition: all var(--gw-transition);
  text-decoration: none;
}

.gw-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gw-shadow-lg);
}

.gw-related-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.gw-related-card h3 {
  padding: var(--gw-space-sm);
  font-size: 0.95em;
  margin: 0;
  color: var(--gw-text);
}

/* Footer */
.gw-footer {
  background: var(--gw-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--gw-space-2xl) var(--gw-space-md) var(--gw-space-lg);
}

.gw-footer-inner {
  max-width: var(--gw-max-wide);
  margin: 0 auto;
}

.gw-footer-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15em;
  font-weight: 700;
  display: block;
  margin-bottom: var(--gw-space-xs);
}

.gw-footer-desc {
  font-size: 0.9em;
  max-width: 560px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: var(--gw-space-lg);
}

.gw-footer-links {
  display: flex;
  gap: var(--gw-space-md);
  margin-bottom: var(--gw-space-lg);
  padding-bottom: var(--gw-space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.gw-footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
  transition: color var(--gw-transition);
}

.gw-footer-links a:hover { color: #fff; }

.gw-footer-legal {
  font-size: 0.8em;
  line-height: 1.65;
  opacity: 0.65;
}

.gw-footer-legal p { margin-bottom: 8px; }

@media (max-width: 768px) {
  .gw-post-nav { grid-template-columns: 1fr; }
  .gw-related-grid { grid-template-columns: 1fr; }
  .gw-single-thumb { aspect-ratio: auto; max-height: 300px; }
}
