/* 홈픽스브라더 - 테마 A (카드클릭형 / hero-overlay / grid-2 / label-number / btn-square) */

:root {
  --green: #B8D8B0;
  --green-dark: #8FBF86;
  --green-deep: #4C7A45;
  --ink: #23291f;
  --ink-soft: #55604d;
  --line: #dfe8db;
  --bg: #fbfdf9;
  --card: #ffffff;
  --radius: 0;
  --radius-sm: 0;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,253,249,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-size: 1.15rem; font-weight: 800; color: var(--green-deep); }
.main-nav { display: none; gap: 1.25rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.main-nav a:hover { color: var(--green-deep); }
@media (min-width: 900px) { .main-nav { display: flex; } }

/* Buttons */
.btn-square {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem;
  background: var(--green-deep); color: #fff;
  border-radius: 0;
  font-weight: 700; font-size: 0.92rem;
  border: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn-square:hover { background: #3c6337; }
.btn-square.outline { background: #fff; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-square.large { padding: 1rem 2rem; font-size: 1.02rem; border-radius: 0; }

/* Hero (hero-overlay) */
.hero-overlay {
  position: relative;
  min-height: 74.4vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
}
.hero-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,25,13,0.82) 0%, rgba(15,25,13,0.45) 45%, rgba(20,30,18,0.1) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 3rem 1.25rem 3.2rem; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero-eyebrow { display: inline-block; padding: 0.35rem 0.9rem; background: var(--green); color: var(--green-deep); font-weight: 800; font-size: 0.82rem; border-radius: 0; margin-bottom: 1rem; }
.hero-inner h1 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 800; line-height: 1.35; margin-bottom: 0.9rem; }
.hero-inner p { font-size: 1.02rem; color: #eef4ec; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-inner p.hero-lead { font-size: 1.15rem; font-weight: 700; color: #fff; max-width: 42ch; margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Section shell */
.section { padding: 3.4rem 0; margin-top: 1.5rem; }
.section-alt { background: #f3f8f1; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-eyebrow { color: var(--green-deep); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 0.5rem; display: block; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); }

/* grid-2 */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(76,122,69,0.14); }
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--green-deep); background: var(--green); padding: 0.25rem 0.7rem; border-radius: 0; margin-bottom: 0.6rem; }
.card-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.35rem; }
.card-meta { font-size: 0.85rem; color: var(--ink-soft); }

/* label-number (프로세스) */
.process-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
@media (min-width: 800px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item { position: relative; padding-top: 0.4rem; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--green-deep); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.process-item h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.4rem; }
.process-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* 서비스 리스트 */
.service-card { padding: 1.6rem 1.4rem; }
.service-card .card-num { color: var(--green-dark); font-weight: 800; font-size: 0.85rem; margin-bottom: 0.6rem; display: block; }
.service-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* 회사소개 */
.intro-block { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .intro-block { grid-template-columns: 1fr 1fr; } }
.intro-block img { border-radius: var(--radius); }
.intro-points { display: grid; gap: 1rem; margin-top: 1.4rem; }
.intro-point { display: flex; gap: 0.8rem; align-items: flex-start; }
.intro-point .dot { flex: none; width: 0.55rem; height: 0.55rem; background: var(--green-deep); margin-top: 0.55rem; }

/* 후기 */
.review-card { padding: 1.5rem 1.4rem; }
.review-card .stars { color: var(--green-deep); font-weight: 800; margin-bottom: 0.6rem; }
.review-card p { font-size: 0.94rem; color: var(--ink); margin-bottom: 0.8rem; }
.review-card .who { font-size: 0.82rem; color: var(--ink-soft); }

/* 서비스지역 */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.area-tag { padding: 0.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 0; font-size: 0.88rem; font-weight: 600; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 0.8rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-deep); font-size: 1.3rem; font-weight: 800; }
.faq-item[open] summary::after { content: "-"; }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: 0.92rem; }

/* CTA */
.cta-block { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; }
.cta-block h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 0.8rem; }
.cta-block p { color: #e6f0e4; margin-bottom: 1.6rem; }
.cta-block .btn-square { background: #fff; color: var(--green-deep); }
.cta-block .btn-square:hover { background: #eef4ec; }

/* Footer */
.site-footer { background: #eef4ec; border-top: 1px solid var(--line); padding: 2.6rem 0 6.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.footer-info { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 1rem; }
.footer-info strong { color: var(--ink); font-size: 0.95rem; width: 100%; }
.footer-tel { font-weight: 800; color: var(--green-deep); }
.footer-nav { display: flex; gap: 1rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-copy { font-size: 0.78rem; color: #8a9585; margin: 0; }
.footer-sitemap-link { font-size: 0.78rem; color: #8a9585; text-decoration: underline; }

/* Floating bar */
.floating-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
}
.floating-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.7rem 0.5rem; gap: 0.15rem; }
.floating-call { background: var(--green-deep); color: #fff; }
.floating-sms { background: var(--green); color: var(--green-deep); }
.floating-label { font-size: 0.72rem; font-weight: 700; opacity: 0.9; }
.floating-value { font-size: 0.98rem; font-weight: 800; }

/* 갤러리 */
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65)); }

/* 상세페이지(시공사례/NSEO) */
.detail-hero { padding: 2.6rem 0 1rem; }
.detail-hero .badge { display: inline-block; background: var(--green); color: var(--green-deep); font-weight: 800; font-size: 0.82rem; padding: 0.3rem 0.85rem; border-radius: 0; margin-bottom: 0.9rem; }
.detail-hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; margin-bottom: 0.8rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.story-block { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.story-block figure { margin: 2.2rem 0 1.4rem; }
.story-block figure img { border-radius: var(--radius); }
.story-block figcaption { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.6rem; text-align: center; }
.story-block p { font-size: 1rem; color: var(--ink); margin-bottom: 1.1rem; }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 2rem 0; }
.summary-box h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.8rem; }
.summary-box li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.summary-box li::before { content: "✓"; color: var(--green-deep); font-weight: 800; }
.quote-box { border-left: 3px solid var(--green-deep); padding: 0.4rem 0 0.4rem 1.2rem; margin: 2rem 0; font-style: normal; }
.quote-box p { font-size: 0.98rem; color: var(--ink); }
.quote-box .sig { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* 문자상담 */
.consult-steps { display: grid; gap: 1rem; margin: 1.6rem 0; }
.consult-step { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.consult-step .n { flex: none; width: 2.2rem; height: 2.2rem; background: var(--green); color: var(--green-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
