/* ==========================================
   향촌흑염소 - 서초 흑염소 커스텀 스타일
   goatfarm.ghyangchon.kr
   ========================================== */

:root {
  --goat-primary: #2d5016;
  --goat-primary-dark: #1a3009;
  --goat-primary-light: #4a7a2a;
  --goat-accent: #8B6914;
  --goat-accent-light: #c4a24e;
  --goat-bg: #faf8f3;
  --goat-bg-warm: #f5f0e8;
  --goat-bg-section: #f0ebe0;
  --goat-text: #2c2c2c;
  --goat-text-light: #5a5a5a;
  --goat-text-muted: #888;
  --goat-border: #e0d8c8;
  --goat-white: #ffffff;
  --goat-shadow: rgba(45, 80, 22, 0.08);
  --goat-shadow-lg: rgba(45, 80, 22, 0.15);
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--goat-text);
  background: var(--goat-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--goat-primary-dark);
}

p { margin-bottom: 1rem; color: var(--goat-text-light); }

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

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

/* ===== NAVIGATION ===== */
.goat-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--goat-border);
  transition: box-shadow 0.3s;
}
.goat-nav.scrolled { box-shadow: 0 2px 20px var(--goat-shadow-lg); }
.goat-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem;
}
.goat-logo { display: flex; align-items: center; gap: 0.8rem; }
.goat-logo img { height: 44px; width: auto; }
.goat-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--goat-primary-dark); letter-spacing: -0.02em; }
.goat-logo-sub { font-size: 0.7rem; color: var(--goat-text-muted); display: block; margin-top: -2px; }

.goat-nav-links { display: flex; gap: 2rem; list-style: none; }
.goat-nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--goat-text-light);
  padding: 0.3rem 0; position: relative;
}
.goat-nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--goat-primary); transition: width 0.3s;
}
.goat-nav-links a:hover { color: var(--goat-primary); }
.goat-nav-links a:hover::after { width: 100%; }

.goat-cta-btn {
  background: var(--goat-primary); color: var(--goat-white) !important;
  padding: 0.6rem 1.5rem; border-radius: 6px; font-weight: 600;
  font-size: 0.85rem; transition: all 0.3s; border: none; cursor: pointer;
}
.goat-cta-btn:hover { background: var(--goat-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px var(--goat-shadow-lg); }

.goat-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.goat-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--goat-text); margin: 5px 0; transition: 0.3s; }

/* ===== HERO ===== */
.goat-hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #1a3009 0%, #2d5016 40%, #3d6b1e 100%);
  position: relative; overflow: hidden; padding-top: 80px;
}
.goat-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="70" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="15" r="0.8" fill="rgba(255,255,255,0.04)"/></svg>');
  background-size: 200px;
}
.goat-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 2;
}
.goat-hero-text { color: var(--goat-white); }
.goat-hero-badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 20px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  font-size: 0.8rem; margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.goat-hero h1 {
  font-size: 3rem; color: var(--goat-white); margin-bottom: 1rem;
  line-height: 1.2; font-weight: 800;
}
.goat-hero h1 em { font-style: normal; color: #b8d49a; }
.goat-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; line-height: 1.7; }
.goat-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.goat-hero-btn-primary {
  background: var(--goat-white); color: var(--goat-primary-dark) !important;
  padding: 0.9rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.goat-hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.goat-hero-btn-secondary {
  border: 2px solid rgba(255,255,255,0.4); color: var(--goat-white) !important;
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600;
  transition: all 0.3s;
}
.goat-hero-btn-secondary:hover { border-color: var(--goat-white); background: rgba(255,255,255,0.1); }

.goat-hero-image { position: relative; }
.goat-hero-image img {
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%; object-fit: cover; max-height: 520px;
}
.goat-hero-image::after {
  content: ''; position: absolute; inset: -3px; border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.15); pointer-events: none;
}

/* ===== SECTIONS COMMON ===== */
.goat-section { padding: 5rem 2rem; }
.goat-section-inner { max-width: 1100px; margin: 0 auto; }
.goat-section-header { text-align: center; margin-bottom: 3.5rem; }
.goat-section-header h2 { font-size: 2rem; margin-bottom: 0.8rem; }
.goat-section-header p { font-size: 1rem; color: var(--goat-text-muted); max-width: 600px; margin: 0 auto; }
.goat-section-alt { background: var(--goat-bg-section); }

/* ===== FEATURES / INFO CARDS ===== */
.goat-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.goat-feature-card {
  background: var(--goat-white); border-radius: 12px;
  padding: 2rem; border: 1px solid var(--goat-border);
  transition: all 0.3s;
}
.goat-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--goat-shadow);
  border-color: var(--goat-primary-light);
}
.goat-feature-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, #e8f5e0, #d4e8b8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.5rem;
}
.goat-feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.goat-feature-card p { font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* ===== IMAGE GALLERY ===== */
.goat-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.goat-gallery-item {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
}
.goat-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.goat-gallery-item:hover img { transform: scale(1.05); }

/* ===== INFO SECTION (Text + Image) ===== */
.goat-info-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; margin-bottom: 4rem;
}
.goat-info-row.reverse { direction: rtl; }
.goat-info-row.reverse > * { direction: ltr; }
.goat-info-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px var(--goat-shadow); }
.goat-info-img img { width: 100%; display: block; }
.goat-info-text h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.goat-info-text p { font-size: 0.95rem; }
.goat-info-list { list-style: none; padding: 0; margin-top: 1rem; }
.goat-info-list li {
  padding: 0.5rem 0; padding-left: 1.5rem; position: relative;
  font-size: 0.92rem; color: var(--goat-text-light);
}
.goat-info-list li::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--goat-primary-light);
}

/* ===== FAQ ===== */
.goat-faq-list { max-width: 800px; margin: 0 auto; }
.goat-faq-item {
  background: var(--goat-white); border-radius: 10px;
  margin-bottom: 0.8rem; border: 1px solid var(--goat-border);
  overflow: hidden;
}
.goat-faq-q {
  padding: 1.2rem 1.5rem; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.95rem; color: var(--goat-text);
  transition: background 0.2s;
}
.goat-faq-q:hover { background: var(--goat-bg-warm); }
.goat-faq-q::after { content: '+'; font-size: 1.3rem; color: var(--goat-primary); transition: transform 0.3s; }
.goat-faq-item.active .goat-faq-q::after { transform: rotate(45deg); }
.goat-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
}
.goat-faq-item.active .goat-faq-a { max-height: 500px; }
.goat-faq-a-inner { padding: 0 1.5rem 1.2rem; font-size: 0.9rem; line-height: 1.8; color: var(--goat-text-light); }

/* ===== CONTACT ===== */
.goat-contact {
  background: linear-gradient(135deg, #1a3009, #2d5016);
  color: var(--goat-white); text-align: center;
}
.goat-contact h2 { color: var(--goat-white); font-size: 2rem; margin-bottom: 1rem; }
.goat-contact p { color: rgba(255,255,255,0.8); }
.goat-contact-info {
  display: flex; gap: 3rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap;
}
.goat-contact-item { text-align: center; }
.goat-contact-item dt { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }
.goat-contact-item dd { font-size: 1.1rem; font-weight: 600; }
.goat-contact-item a { color: var(--goat-white) !important; }

/* ===== FOOTER ===== */
.goat-footer {
  background: #111; color: #999; padding: 2.5rem 2rem; text-align: center;
  font-size: 0.8rem; line-height: 1.8;
}
.goat-footer a { color: #bbb; }

/* ===== BLOG POSTS SECTION ===== */
.goat-posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.goat-post-card {
  background: var(--goat-white); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--goat-border); transition: all 0.3s;
}
.goat-post-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px var(--goat-shadow);
}
.goat-post-thumb { aspect-ratio: 16/10; overflow: hidden; }
.goat-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.goat-post-card:hover .goat-post-thumb img { transform: scale(1.05); }
.goat-post-body { padding: 1.2rem 1.3rem; }
.goat-post-body h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.goat-post-body p { font-size: 0.82rem; color: var(--goat-text-muted); margin: 0; line-height: 1.6; }
.goat-post-more {
  display: inline-block; margin-top: 0.7rem; font-size: 0.8rem;
  font-weight: 600; color: var(--goat-primary);
}

/* ===== WP POST/PAGE CUSTOM STYLES ===== */
.goat-wp-content {
  max-width: 800px; margin: 0 auto; padding: 3rem 2rem;
}
.goat-wp-content h1 { font-size: 2rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--goat-primary); padding-bottom: 0.8rem; }
.goat-wp-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; padding-left: 0.8rem; border-left: 4px solid var(--goat-primary); }
.goat-wp-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem; }
.goat-wp-content p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.goat-wp-content img { border-radius: 8px; margin: 1.5rem 0; box-shadow: 0 4px 12px var(--goat-shadow); }
.goat-wp-content ul, .goat-wp-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.goat-wp-content li { margin-bottom: 0.4rem; font-size: 0.93rem; }
.goat-wp-content blockquote {
  border-left: 4px solid var(--goat-accent); padding: 1rem 1.5rem;
  background: var(--goat-bg-warm); margin: 1.5rem 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--goat-text-light);
}
.goat-wp-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.9rem;
}
.goat-wp-content th {
  background: var(--goat-primary); color: var(--goat-white);
  padding: 0.8rem 1rem; text-align: left;
}
.goat-wp-content td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--goat-border);
}
.goat-wp-content tr:hover td { background: var(--goat-bg-warm); }
.goat-info-box {
  background: #e8f5e0; border: 1px solid #b8d49a; border-radius: 8px;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.goat-info-box h4 { color: var(--goat-primary-dark); margin-bottom: 0.5rem; font-size: 1rem; }
.goat-warning-box {
  background: #fff8e1; border: 1px solid #e8d4a0; border-radius: 8px;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .goat-hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .goat-hero h1 { font-size: 2rem; }
  .goat-hero-actions { justify-content: center; }
  .goat-features-grid { grid-template-columns: 1fr; }
  .goat-gallery { grid-template-columns: repeat(2, 1fr); }
  .goat-info-row { grid-template-columns: 1fr; }
  .goat-info-row.reverse { direction: ltr; }
  .goat-posts-grid { grid-template-columns: 1fr; }
  .goat-contact-info { flex-direction: column; gap: 1.5rem; }
  .goat-nav-links { display: none; }
  .goat-mobile-toggle { display: block; }
  .goat-nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--goat-white);
    padding: 1rem 2rem; border-bottom: 1px solid var(--goat-border);
    box-shadow: 0 4px 12px var(--goat-shadow);
  }
  .goat-section { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .goat-hero h1 { font-size: 1.6rem; }
  .goat-gallery { grid-template-columns: 1fr; }
  .goat-section-header h2 { font-size: 1.5rem; }
}
