/* ==== 변수 ==== */
:root {
  --bg: #F7FAF7;
  --bg-sub: #DCE1E1;
  --accent: #2ECC71;
  --text: #1A1C1A;
  --radius: 12px;
  --gap-img-text: 16px;
  --side-pad: 24px;
  --section-gap: 50px;
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 29px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { font-size: 16px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--side-pad);
}

.section { padding-block: var(--section-gap); }
.section-sub { color: #555; font-weight: 400; margin-top: 8px; }

/* ==== 버튼 ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==== 헤더 ==== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--bg-sub);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: var(--side-pad);
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 700; font-size: 18px; }

.nav-desktop { display: flex; align-items: center; gap: 28px; font-weight: 600; }

.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--bg);
}
.nav-mobile.open { max-height: 300px; }
.nav-mobile a {
  padding: 14px var(--side-pad);
  border-top: 1px solid var(--bg-sub);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ==== 히어로 ==== */
.hero {
  background-image: linear-gradient(to bottom, transparent 70%, var(--bg) 100%), url('/images/hero-bg.webp');
  background-size: cover, cover;
  background-position: center, center;
  padding-block: 80px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 640px;
  text-align: left;
  padding-inline: var(--side-pad);
  margin-inline: 0;
}
.hero-label { font-size: 32px; font-weight: 700; color: #8B8C6E; letter-spacing: .02em; margin-bottom: 8px; }
.hero-brand { font-size: 29px; font-weight: 700; margin-bottom: 16px; }
.hero-inner p:not(.hero-brand):not(.hero-label) { margin-bottom: 28px; font-size: 17px; }

/* ==== 섹션 제목 공통 ==== */
.section-head { margin-bottom: 32px; text-align: left; }

/* ==== 카드 그리드 공통 ==== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: block;
}
.img-card .img-wrap { position: relative; overflow: hidden; }
.img-card .img-wrap::before { content: ''; display: block; padding-top: 75%; }
.img-card .img-wrap img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.img-card:hover .img-wrap img { transform: scale(1.06); }
.img-card .body { padding: var(--gap-img-text); }
.img-card .body h3 { margin-bottom: 6px; }
.img-card .body p { font-size: 15px; color: #555; }

.link-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.5);
  border: 1.5px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==== Why Smart Farm / About 카드 (모바일 스와이프) ==== */
.swipe-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row .qa-card,
.swipe-row .strength-card,
.swipe-row .product-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-sub);
}
.dots .dot.active { background: var(--accent); }

.qa-card, .strength-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.qa-card img, .strength-card img { width: 24px; height: 24px; margin-bottom: 14px; }
.qa-card h3, .strength-card h3 { margin-bottom: 10px; }
.qa-card p, .strength-card p { color: #555; font-size: 15px; }

/* ==== 제품 라인업 (표) ==== */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card .img-wrap { position: relative; background: var(--bg-sub); }
.product-card .img-wrap::before { content: ''; display: block; padding-top: 75%; }
.product-card .img-wrap img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: var(--gap-img-text); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--gap-img-text); font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--bg-sub); color: #555; }
.spec-table th { width: 40%; color: var(--text); font-weight: 600; }

/* ==== FAQ ==== */
.faq-item { border-bottom: 1px solid var(--bg-sub); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 18px 0;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}
.faq-q img { width: 20px; height: 20px; transition: transform .25s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q img { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 18px; color: #555; font-size: 15px; }

/* ==== 상담 CTA / 푸터 ==== */
.consult-cta { background: var(--bg-sub); text-align: center; }
.consult-cta-inner .cta-group { margin-top: 20px; justify-content: center; }

.site-footer { background: #EFF3EF; padding-block: 40px 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-info { display: flex; gap: 10px; align-items: flex-start; }
.footer-info p { font-size: 14px; color: #555; line-height: 1.7; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-height: 44px; }
.footer-copy { margin-top: 16px; font-size: 13px; color: #888; }

/* ==== 페이지 공통 컨텐츠 ==== */
.page-hero { padding-top: 84px; padding-bottom: 20px; text-align: left; }
.content-block { font-size: 16px; }
.content-block p { margin-bottom: 16px; }
.content-block h2 { margin-top: 40px; margin-bottom: 14px; }
.content-block h3 { margin-top: 24px; margin-bottom: 10px; }
.info-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-block: 20px;
}
.info-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
}
.info-card img { width: 24px; height: 24px; margin-bottom: 10px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p { font-size: 15px; color: #555; }

/* ==== 프로세스 스텝 리스트 ==== */
.step-list { counter-reset: step; margin-block: 20px; display: flex; flex-direction: column; gap: 14px; }
.step-list li {
  counter-increment: step;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px 18px 56px;
  position: relative;
  font-size: 15px;
  color: #555;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ==== 스크롤 시 fade-in ==== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==== 데스크톱 ==== */
@media (min-width: 768px) {
  :root { --side-pad: 40px; --section-gap: 96px; }
  .br-mobile { display: none; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  h3 { font-size: 22px; }
  .nav-mobile { display: none; }
  .hamburger { display: none; }
  .hero-brand { font-size: 52px; }
  .hero-inner { padding-left: calc(var(--side-pad) + 130px); }
  .hero {
    height: 560px;
    padding-block: 0;
  }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .swipe-row {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .swipe-row .qa-card, .swipe-row .strength-card, .swipe-row .product-card { flex: initial; }
  .dots { display: none; }
  .info-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .card-grid.cases-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 640px; }
  .hero-inner p:not(.hero-brand):not(.hero-label) { font-size: 15px; }
  .hero-inner { transform: translateY(32px); }
  .hero-label { font-size: 18px; }
  .section-head h2 { line-height: 1.5; }
}
