/* 바닥코팅친환경 — 그린/라임, 유기적 블롭 형태 레이아웃 (다른 서비스 페이지와 구조적으로 구별) */

:root {
  --primary: #386641;
  --primary-dark: #24462B;
  --accent: #A7C957;
  --accent-dark: #8AAE3C;
  --ink: #1E2B1C;
  --paper: #F3F7EA;
  --card-bg: #FFFFFF;
  --line: #DCE7C8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Gugi", "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-inner { max-width: 1080px; margin: 0 auto; padding: 52px 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary-dark);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: #fff;
  font-family: "Gugi", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
}

.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 4px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--accent); display: block; border-radius: 2px; }

#primary-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 24px;
  }
  #primary-nav a { border-bottom: none; padding: 8px 0; }
}

/* ---------- 버튼: 잎사귀형 비대칭 라운드 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 30px 30px 30px 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 0 var(--accent-dark); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- 히어로: 유기적 블롭 배경 ---------- */
.hero {
  position: relative;
  background: var(--primary);
  overflow: hidden;
  padding: 56px 0 88px;
}
.hero-blob {
  position: absolute;
  top: -20%;
  right: -18%;
  width: 62vw;
  height: 62vw;
  max-width: 520px;
  max-height: 520px;
  background: var(--primary-dark);
  border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%;
  opacity: 0.55;
}
.hero-blob::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 55%;
  height: 55%;
  background: var(--accent);
  border-radius: 42% 58% 63% 37% / 41% 47% 53% 59%;
  opacity: 0.3;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 20px 20px 20px 4px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.35;
}
.hero-sub { font-size: 1.02rem; max-width: 54ch; color: #E4EFD6; }

@media (min-width: 768px) {
  .hero { padding: 88px 0 128px; }
  .hero h1 { font-size: 2.9rem; }
}

/* ---------- 유기적 블롭 디바이더 ---------- */
.divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--paper);
}
.divider path { fill: currentColor; }
.divider.flip { transform: scaleY(-1); color: var(--primary-dark); }

@media (min-width: 768px) { .divider { height: 60px; } }

/* ---------- 인트로: 비교 카드 ---------- */
.intro-section { background: var(--paper); padding-top: 4px; }
.intro-section h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 12px; }
.lead { max-width: 66ch; color: #3B4F35; margin-bottom: 30px; }

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.compare-card {
  background: var(--card-bg);
  border: 2px solid var(--line);
  border-radius: 46px 18px 46px 18px / 30px 30px 30px 30px;
  padding: 28px 26px;
  position: relative;
}
.compare-card.alt {
  border-color: var(--accent);
  background: #F8FBF0;
  border-radius: 18px 46px 18px 46px / 30px 30px 30px 30px;
}
.compare-badge {
  display: inline-block;
  font-family: "Gugi", sans-serif;
  font-size: 0.85rem;
  background: var(--primary);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px 20px 20px 4px;
  margin-bottom: 14px;
}
.compare-card.alt .compare-badge { background: var(--accent-dark); }
.compare-card p { margin: 0; }

@media (min-width: 768px) {
  .compare-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 기능 설명 행: 잎사귀 아이콘 + 텍스트 ---------- */
.feature-section { background: var(--paper); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 0;
}
.feature-row + .feature-row { border-top: 1px dashed var(--line); }

.feature-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  flex-shrink: 0;
}
.feature-icon.alt { background: var(--primary); color: var(--accent); }
.feature-icon svg { width: 40px; height: 40px; }

.feature-text h3 { font-size: 1.18rem; color: var(--primary-dark); margin: 0 0 10px; }
.feature-text p { margin: 0; }

@media (min-width: 768px) {
  .feature-row { grid-template-columns: 96px 1fr; gap: 28px; align-items: center; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse .feature-text { direction: ltr; }
}

/* ---------- 균형 섹션 ---------- */
.balance-section { background: #fff; }
.balance-section .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.balance-blob {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: var(--primary);
  color: var(--accent);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.balance-blob svg { width: 72px; height: 72px; }
.balance-text h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 14px; }
.balance-text p { margin: 0 0 16px; }
.balance-text a { color: var(--primary); font-weight: 700; text-decoration: underline; }

@media (min-width: 768px) {
  .balance-section .section-inner { grid-template-columns: 180px 1fr; }
}

/* ---------- FAQ 아코디언 ---------- */
.faq-section { background: var(--paper); }
.faq-section h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 22px; }
.accordion-item {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 26px 10px 26px 10px / 18px 18px 18px 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: "Gugi", sans-serif;
  font-size: 0.98rem;
  color: var(--primary-dark);
  padding: 18px 22px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 22px 20px; }
.accordion-panel p { margin: 0; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}
.cta-blob {
  position: absolute;
  bottom: -30%;
  left: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 460px;
  max-height: 460px;
  background: var(--primary);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  opacity: 0.6;
}
.cta-inner { position: relative; text-align: center; }
.cta-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cta-section p { color: #DDEACB; margin: 0 auto 8px; max-width: 52ch; }
.cta-section .hero-cta { justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #DCE7CC;
  padding: 44px 20px 28px;
}
.footer-nav {
  max-width: 1080px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-nav a {
  color: #DCE7CC;
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent); }
.site-footer address { max-width: 1080px; margin: 0 auto 16px; font-style: normal; font-size: 0.9rem; line-height: 1.8; }
.site-footer address a { color: var(--accent); text-decoration: none; }
.site-footer p { max-width: 1080px; margin: 0 auto; font-size: 0.82rem; color: #92A585; }

@media (min-width: 480px) {
  .hero h1 { font-size: 2.35rem; }
}

@media (min-width: 1024px) {
  .section-inner { padding-left: 0; padding-right: 0; }
  .hero h1 { font-size: 3.1rem; }
}

@media (min-width: 1280px) {
  .hero-blob { max-width: 600px; max-height: 600px; }
}

/* 현장 사진 */
.site-photo-section { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.site-photo-section h2 { color: var(--primary); margin: 0 0 18px; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.site-photo-grid picture { display: block; aspect-ratio: 4/3; overflow: hidden; }
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .site-photo-grid { grid-template-columns: repeat(2, 1fr); } }
