/* ============================================
   Good Farmer B2B – 공통 스타일
   Brand: Good Farmer / 굿농수산 | 운영: ㈜굿커머스
   Colors: Deep Green (#1a4d2e), Navy (#1b2a4a), White, CTA Orange (#f58220)
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1b2a4a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 700; color: #1a4d2e; }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { color: #3d4f6b; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Variables */
:root {
  --green:   #1a4d2e;
  --green-light: #2d7a47;
  --navy:    #1b2a4a;
  --orange:  #f58220;
  --yellow:  #f9b800;
  --white:   #ffffff;
  --gray-bg: #f6f8f5;
  --gray-border: #dde3da;
  --text-main: #1b2a4a;
  --text-sub:  #3d4f6b;
  --text-muted:#6b7e96;
  --radius:  8px;
  --shadow:  0 2px 16px rgba(26,77,46,.10);
  --section-py: 80px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Base */
section { padding: var(--section-py) 0; }
section + section { border-top: 1px solid var(--gray-border); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-sub); max-width: 600px; margin-bottom: 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover { background: var(--green); color: #fff; opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); opacity: 1; }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 18px; font-size: .875rem; }

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-green { background: #e6f2eb; color: var(--green); }
.badge-orange { background: #fef3e6; color: var(--orange); }
.badge-navy { background: #e8ecf5; color: var(--navy); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Image placeholder */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #e6f2eb 0%, #c8e0d0 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}
.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
/* 헤더 브랜드명만 '굿농수산'으로 표시 (푸터·본문 텍스트 불변) */
#site-header .logo-main {
  font-size: 0;        /* 원본 텍스트 숨김 */
}
#site-header .logo-main::after {
  content: '굿농수산';
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.header-nav a {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s;
}
.header-nav a:hover { color: #fff; }

.header-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: .88rem !important;
  transition: opacity .2s !important;
}
.header-cta:hover { opacity: .88 !important; color: #fff !important; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav drawer */
.mobile-nav,
#mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--green);
  z-index: 999;
  padding: 32px 24px;
  overflow-y: auto;
}
.mobile-nav.open,
#mobile-nav.open { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a,
#mobile-nav a {
  display: block;
  color: rgba(255,255,255,.9);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-nav .mobile-cta,
#mobile-nav .mobile-cta {
  margin-top: 24px;
  background: var(--orange);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
  padding: 12px 0;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--gray-border); }
.breadcrumb a { color: var(--green); }
.breadcrumb [aria-current="page"] { color: var(--text-main); font-weight: 600; }

/* ============================================
   FOOTER — 미니멀 구조 (2026 개편)
   ============================================ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 40px 0 28px;
}

/* 기존 grid 구조 비활성화 → 단일 열 */
.footer-grid {
  display: block;
  margin-bottom: 0;
}

/* 브랜드 영역: 로고만 */
.footer-brand {
  margin-bottom: 16px;
}

/* 푸터 logo-main: '굿농수산' 표시 */
.footer-brand .logo-main {
  font-size: 0;          /* 원본 텍스트 숨김 */
}
.footer-brand .logo-main::after {
  content: '굿농수산';
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
/* logo-sub, 기존 설명 p 모두 숨김 */
.footer-brand .logo-sub { display: none; }
.footer-brand p          { display: none; }

/* 기존 footer-col 메뉴 컬럼 숨김 */
.footer-col { display: none; }

/* 회사 정보 두 줄 */
.footer-info {
  margin-bottom: 20px;
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
}
.footer-info a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .15s;
}
.footer-info a:hover { color: #fff; }

/* 저작권 + 법적 링크 */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-bottom a:hover { color: #fff; }

/* 반응형 */
@media (max-width: 480px) {
  .footer-info { font-size: .8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  background: var(--orange);
  padding: 14px 24px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
}
.mobile-sticky-cta a {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.01em;
}
/* 신청폼 진입 시 JS로 추가되는 숨김 클래스 */
.mobile-sticky-cta.sticky-cta-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-sticky-cta {
  transition: opacity .3s ease, transform .3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-py: 64px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 52px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 60px; }
  .btn-lg { padding: 16px 28px; }
}

@media (max-width: 480px) {
  :root { --section-py: 44px; }
  .container { padding: 0 16px; }
}
