/* ═══════════════════════════════════════════════════════════
   너와농장 (Neowa Farm) · style.css
   기준: 02_design_spec_v1.1.md — 컬러 팔레트 4.2 · 타이포 4.3 · 100vh 원칙
   ═══════════════════════════════════════════════════════════ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #F7F4EC;          /* 웜 아이보리 */
  --white: #FFFFFF;
  --dark: #2B2B2B;        /* 딥 차콜 */
  --footer: #1A1A1A;
  --green: #2E4A3B;       /* 딥 포레스트 그린 */
  --brown: #8B6E4E;       /* 웜 브라운 */
  --line: #E8E1D3;        /* 라이트 베이지 */
  --coral: #F4D7D3;
  --coral-t: #8B4B45;
  --mint: #D3E8DF;
  --gold: #D4AF37;
  --txt: #2B2B2B;
  --txt-sub: #555555;
  --txt-mut: #999999;
  --header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--bg); color: var(--txt);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Header ─────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: .5px solid var(--line); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
}
.header .logo { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.gnb { display: flex; gap: 34px; }
.gnb a { font-size: 13.5px; color: #666; font-weight: 500; transition: color .2s; }
.gnb a:hover { color: var(--green); }
.gnb a.active { color: var(--green); font-weight: 700; }
.menu-btn { display: none; font-size: 22px; line-height: 1; }
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 200;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 24px; font-weight: 700; }
.mobile-menu a.active { color: var(--green); }
.mobile-menu .close { position: absolute; top: 16px; right: 22px; font-size: 28px; }

/* ── Section 공통 (100vh 원칙) ───────────── */
.section { min-height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 90px 80px; }
.section.bg-white { background: var(--white); }
.section.bg-cream { background: var(--bg); }
.section.bg-dark  { background: var(--dark); color: #F7F4EC; }

.label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--brown); margin-bottom: 14px; }
.label::after { content: ""; display: block; width: 80px; height: 1px; background: var(--brown); margin-top: 10px; }
.label.center { text-align: center; }
.label.center::after { margin-left: auto; margin-right: auto; }
.bg-dark .label { color: #a08663; }

h1.hero-title { font-size: clamp(42px, 6.2vw, 80px); font-weight: 700; line-height: 1.18; letter-spacing: -1.5px; }
h2.sec-title  { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.25; letter-spacing: -1px; }
.accent { color: var(--green); }
.bg-dark .accent { color: #cfe4d7; }
.sub { color: var(--txt-sub); font-size: 15px; margin-top: 22px; }
.bg-dark .sub { color: rgba(247,244,236,.75); }
.quote { font-style: italic; color: var(--green); font-size: 20px; line-height: 1.55; }
.byline { font-size: 12.5px; color: var(--txt-mut); margin-top: 10px; }

/* 스크롤 리빌 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Hero (풀블리드) ─────────────────────── */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero .media { position: absolute; inset: 0; }
.hero .media img, .hero .media video { width: 100%; height: 100%; object-fit: cover; }
.hero .overlay { position: absolute; inset: 0; background: rgba(20,20,15,.34); }
.hero .inner { position: relative; z-index: 2; color: #fff; padding: 0 24px; }
.hero .eyebrow { font-size: 13.5px; letter-spacing: .18em; font-weight: 600; opacity: .85; margin-bottom: 26px; }
.hero .eyebrow::after { content:""; display:block; width:80px; height:1px; background:rgba(255,255,255,.5); margin:14px auto 0; }
.hero .hero-sub { margin-top: 26px; font-size: 16.5px; opacity: .88; line-height: 1.7; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.85); font-size: 12.5px; animation: bob 2.2s infinite; }
.section .scroll-hint { color: var(--brown); }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ── 버튼 ────────────────────────────────── */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px; padding: 14px 30px; font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s; text-align:center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.13); }
.btn small { font-size: 10.5px; font-weight: 500; }
.btn-coral { background: var(--coral); color: var(--dark); border: .5px solid #E8B6B0; }
.btn-coral small { color: var(--coral-t); }
.btn-mint { background: var(--mint); color: var(--dark); border: .5px solid #B0D4C6; }
.btn-mint small { color: var(--green); }
.btn-green { background: var(--green); color: #F7F4EC; border-radius: 8px; }
.btn-pill  { background: var(--green); color: #F7F4EC; border-radius: 999px; padding: 12px 28px; font-size: 13.5px; }
.cta-row { display: flex; gap: 20px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }

/* ── 카드 공통 ───────────────────────────── */
.grid { display: grid; gap: 26px; }
.card { background: var(--white); border: .5px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(43,43,43,.10); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; }
.card .date { font-size: 12px; color: var(--brown); }
.card .name { font-size: 17px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.card .desc { font-size: 12.5px; color: #666; margin-top: 8px; }
.card .go { display:block; margin-top: 16px; background: var(--green); color:#F7F4EC; text-align:center; border-radius: 6px; padding: 9px; font-size: 12.5px; font-weight:600; }

/* 이미지-텍스트 교차 챕터 */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.split .ph { position: relative; overflow: hidden; }
.split .ph img, .split .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .tx { display: flex; flex-direction: column; justify-content: center; padding: 90px 80px; }
.split.rev .ph { order: 2; } .split.rev .tx { order: 1; }
.badge-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; background: var(--white); border: .5px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 12.5px; color: #666; width: fit-content; }
.bg-white .badge-src { background: var(--bg); }

/* ── 폼 ─────────────────────────────────── */
.form { width: 100%; max-width: 520px; margin: 40px auto 0; text-align: left; }
.form label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 7px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(247,244,236,.25);
  border-radius: 8px; padding: 13px 15px; color: #F7F4EC; font-size: 14px; font-family: inherit; transition: border .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #cfe4d7; }
.form input.err, .form textarea.err, .form select.err { border-color: #E8827A; }
.form textarea { min-height: 120px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23F7F4EC'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form select option { color: #2B2B2B; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.agree { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12.5px; color: rgba(247,244,236,.8); cursor: pointer; }
.form .submit { width: 100%; margin-top: 26px; background: var(--coral); color: var(--dark); font-weight: 700; font-size: 15px; padding: 15px; border-radius: 8px; transition: transform .2s; }
.form .submit:hover { transform: translateY(-2px); }
.form .submit[disabled] { opacity: .55; transform: none; cursor: default; }
.form-msg { margin-top: 16px; font-size: 13.5px; display: none; text-align: center; border-radius: 8px; padding: 12px; }
.form-msg.ok { display: block; background: rgba(211,232,223,.18); color: #cfe4d7; }
.form-msg.fail { display: block; background: rgba(244,215,211,.15); color: #f4d7d3; }
.err-hint { color: #E8827A; font-size: 11.5px; margin-top: 5px; display: none; }

/* ── 아코디언 ────────────────────────────── */
.acc { max-width: 760px; margin: 40px auto 0; width: 100%; }
.acc-item { background: var(--white); border: .5px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.bg-white .acc-item { background: var(--bg); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; font-size: 14.5px; font-weight: 600; text-align: left; }
.acc-q .ic { color: var(--brown); font-size: 18px; font-weight: 400; transition: transform .25s; }
.acc-item.open .ic { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 22px 18px; font-size: 13.5px; color: var(--txt-sub); }

/* ── 탭 ─────────────────────────────────── */
.tabs { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.tab-btn { background: var(--white); border: .5px solid var(--line); border-radius: 6px; padding: 11px 22px; font-size: 13px; font-weight: 600; color: #555; }
.tab-btn.active { background: var(--green); color: #F7F4EC; border-color: var(--green); }

/* ── 타임라인 ────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 60px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 1px; background: var(--line); }
.tl-item { text-align: center; position: relative; }
.tl-item .dot { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green); font-size: 14px; position: relative; z-index: 1; }
.bg-white .tl-item .dot { background: var(--bg); }
.tl-item.hl .dot { background: var(--green); color: #F7F4EC; border-color: var(--green); }
.tl-item .t { font-weight: 700; font-size: 14px; margin-top: 12px; }
.tl-item .d { font-size: 12px; color: var(--txt-sub); margin-top: 3px; }

/* ── 푸터 정보 (마지막 섹션 하단 통합) ────── */
.footer-info { text-align: center; margin-top: 90px; padding-top: 34px; position: relative; }
.footer-info::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 320px; height: .5px; background: rgba(247,244,236,.16); }
.footer-info .fname { font-size: 14px; font-weight: 700; }
.footer-info .faddr { font-size: 11.5px; margin-top: 8px; opacity: .55; }
.footer-info .fcopy { font-size: 10.5px; margin-top: 6px; opacity: .38; }
.footer-light::before { background: var(--line); }
.footer-light .faddr, .footer-light .fcopy { color: #999; opacity: 1; }
.footer-light .fcopy { color: #bbb; }

/* ── Technology 전용 ─────────────────────── */
#tech-hero { position: relative; height: 100vh; overflow: hidden; background: #0B0E11; }
#tech-hero .hv { position: absolute; inset: 0; z-index: 5; transition: opacity .6s ease; }
#tech-hero .hv video { width: 100%; height: 100%; object-fit: cover; }
#tech-hero .hv .hv-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.45); z-index: 2; text-align:center; padding: 0 20px; }
#tech-hero .hv.out { opacity: 0; pointer-events: none; }
#tech-hero .skip-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.65); z-index: 3; }
.tech-panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.tech-panel { position: relative; overflow: hidden; cursor: pointer; opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .5s ease; border-right: 2px solid rgba(255,255,255,.06); }
.tech-panel:last-child { border-right: none; }
.tech-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tech-panel:hover img { transform: scale(1.035); }
.tech-panel.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tech-panel { transition: none; } #tech-hero .hv { transition: none; } }
.tech-sec .split .ph { background: #0B0E11; }
.tech-sec .split .ph video, .tech-sec .split .ph img { object-fit: contain; }
.bullet { font-size: 13.5px; color: #666; margin-top: 8px; }
.bullet::before { content: "·"; margin-right: 8px; color: var(--brown); }
.hr-thin { width: 320px; height: .5px; background: var(--brown); opacity: .5; border: none; margin: 30px 0; }

/* 수치 카드 */
.num-card { background: var(--bg); border: .5px solid var(--line); border-radius: 10px; text-align: center; padding: 44px 20px; }
.bg-cream .num-card { background: var(--white); }
.num-card .n { font-size: 48px; font-weight: 700; color: var(--green); letter-spacing: -1px; }
.num-card .t { font-size: 13.5px; color: #666; margin-top: 8px; }
.num-card .d { font-size: 12px; color: var(--txt-mut); margin-top: 14px; }

/* WINNERS 배지 */
.winners { display: flex; align-items: center; gap: 26px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.winners .medal { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 15px; line-height: 1.25; background: #fffdf6; }
.winners .medal small { font-size: 9.5px; color: var(--brown); font-weight: 600; margin-top: 3px; }
.winners .wtxt { max-width: 460px; text-align: left; }
.winners .wtxt b { display: block; font-size: 15.5px; }
.winners .wtxt span { font-size: 12.5px; color: var(--txt-sub); }

/* Contact */
.type-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 50px; }
.type-card { background: var(--white); border: .5px solid var(--line); border-radius: 10px; padding: 30px 18px 24px; text-align: center; cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s; }
.type-card:hover, .type-card.sel { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(43,43,43,.09); border-color: var(--green); }
.type-card .em { font-size: 30px; }
.type-card .tt { font-weight: 700; font-size: 15px; margin-top: 14px; }
.type-card .dd { font-size: 11.5px; color: #666; margin-top: 8px; line-height: 1.55; }
.type-card .gg { font-size: 11.5px; color: var(--green); font-weight: 600; margin-top: 14px; }
.map-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; margin-top: 44px; align-items: start; }
.map-box { border-radius: 10px; overflow: hidden; border: .5px solid var(--line); background: repeating-linear-gradient(45deg,#f2eee3,#f2eee3 12px,#ece7d9 12px,#ece7d9 24px); min-height: 380px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:#8B6E4E; }
.map-box .pin { width: 40px; height: 40px; background: var(--green); border-radius: 50%; display:flex; align-items:center; justify-content:center; }
.info-list .row { padding: 16px 0; border-bottom: .5px solid var(--line); }
.info-list .row:last-child { border: none; }
.info-list b { font-size: 14px; display:block; margin-bottom: 5px; }
.info-list span { font-size: 12.5px; color: var(--txt-sub); display: block; }
.ch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.ch-card { background: var(--bg); border: .5px solid var(--line); border-radius: 10px; padding: 32px 24px; text-align: center; }
.bg-white .ch-card { background: var(--bg); }
.ch-card .em { font-size: 26px; }
.ch-card b { display: block; margin-top: 12px; font-size: 15px; }
.ch-card span { font-size: 12px; color: var(--txt-sub); display: block; margin-top: 6px; }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 900px) {
  .header { padding: 0 22px; }
  .gnb { display: none; }
  .menu-btn { display: block; }
  .section { padding: 80px 24px; }
  .split { grid-template-columns: 1fr; min-height: unset; }
  .split .ph { position: relative; height: 46vh; order: 0 !important; }
  .split .tx { padding: 56px 24px 70px; order: 1 !important; }
  .grid.g3, .grid.g4, .type-cards, .ch-cards { grid-template-columns: 1fr !important; }
  .grid.g2m { grid-template-columns: 1fr 1fr !important; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { display: none; }
  .map-wrap { grid-template-columns: 1fr; }
  .tech-panels { grid-template-columns: 1fr; grid-template-rows: repeat(5, 1fr); }
  .tech-panel { border-right: none; border-bottom: 2px solid rgba(255,255,255,.06); }
  .winners .wtxt { text-align: center; }
}
@media (min-width: 901px) {
  .grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g4 { grid-template-columns: repeat(4, 1fr); }
  .grid.g2 { grid-template-columns: repeat(2, 1fr); }
}
