/* ============================================================
   richmai.kr/land — 죽능리 임야 6,600평 임대 랜딩페이지
   순수 CSS · 외부 요청 0 · 시스템 폰트 스택 · 모바일 우선
   팔레트: 네이비/차콜 + 앰버 포인트 1색
   ============================================================ */

:root {
  --navy: #14304e;
  --navy-deep: #0d2238;
  --navy-tint: #e9eef4;
  --charcoal: #2b3440;
  --ink: #1f2937;
  --muted: #5b6672;
  --accent: #d97416;
  --accent-dark: #b45c0d;
  --accent-soft: #fdf0e3;
  --bg: #f7f9fb;
  --card: #ffffff;
  --line: #dfe5ec;
  --radius: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--navy);
  color: #eef3f8;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-left: 0.85rem;
  border-left: 5px solid var(--accent);
  line-height: 1.35;
}

.section-dark h2 {
  color: #fff;
}

h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 0.9rem;
}

.lead {
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--charcoal);
}

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

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---- Header ---- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.74rem;
  color: #9fb2c5;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

.btn-block {
  display: block;
  width: 100%;
  font-size: 1.1rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #1c4468 100%);
  color: #eef3f8;
  padding: 3.2rem 0 3.6rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 640px;
  font-size: 1.02rem;
  color: #cfdae5;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 800;
  color: #ffb469;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-num small {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 0.1em;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: #b9c8d6;
  margin-top: 0.35rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Timeline (왜 지금인가) ---- */
.timeline {
  list-style: none;
  margin: 1.5rem 0;
  border-left: 3px solid var(--navy-tint);
  padding-left: 1.25rem;
}

.timeline li {
  position: relative;
  padding: 0.55rem 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 3px - 5px);
  top: 1.1rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.02rem;
}

.timeline-text {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Spec table (부지 개요) ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.spec-table th,
.spec-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 7.5rem;
  min-width: 6.5rem;
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.spec-table strong {
  color: var(--accent-dark);
}

/* ---- Cards (활용 시나리오) ---- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 1px 3px rgba(20, 48, 78, 0.06);
}

.card p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---- Checklist (인허가 가이드) ---- */
.checklist {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.checklist li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  position: relative;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.8rem;
}

/* ---- Figures (현장 전경) ---- */
.figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.figures figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
}

.figures img {
  width: 100%;
  border-radius: 6px;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f0f3f7,
    #f0f3f7 12px,
    #e7ebf1 12px,
    #e7ebf1 24px
  );
  border: 2px dashed #c3ccd7;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  padding: 1rem;
}

.figures figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  padding: 0.55rem 0.25rem 0.2rem;
}

/* ---- FAQ ---- */
#faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

#faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.95rem 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
}

#faq details[open] summary::after {
  content: "\2212";
}

#faq details[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--navy-tint);
}

#faq details p {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--charcoal);
}

/* ---- Inquiry (문의) ---- */
.inquiry-intro {
  max-width: 640px;
  color: #cfdae5;
  margin-bottom: 1.6rem;
}

.inquiry-intro strong {
  color: #ffb469;
}

.inquiry-tel {
  margin: -0.6rem 0 1.6rem;
  font-size: 1.15rem;
  color: #cfdae5;
}

.inquiry-tel a {
  color: #ffb469;
  text-decoration: none;
}

.inquiry-tel a:hover {
  text-decoration: underline;
}

.inquiry-form {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: #eef3f8;
}

.req {
  color: #ffb469;
}

.opt {
  font-weight: 400;
  color: #9fb2c5;
  font-size: 0.82rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c4d0;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.form-row textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(217, 116, 22, 0.45);
  border-color: var(--accent);
}

/* 허니팟: 화면 밖으로 (display:none 회피 봇 대응) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: #9fb2c5;
  text-align: center;
  margin-top: 0.8rem;
}

/* ---- Blog links ---- */
.blog-links {
  max-width: 640px;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.blog-links-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #9fb2c5;
  margin-bottom: 0.5rem;
}

.blog-links a {
  display: block;
  color: #ffb469;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}

.blog-links a:hover,
.blog-links a:focus {
  text-decoration: underline;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c8d6;
  padding: 2rem 0 2.4rem;
  font-size: 0.9rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer p + p {
  margin-top: 0.45rem;
}

.fine-print {
  font-size: 0.78rem;
  color: #7e93a8;
}

/* ---- Result pages (inquiry.php 출력) ---- */
.result-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
  background: var(--navy);
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.result-card h1 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.result-card p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.error-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.4rem;
}

.error-list li {
  background: #fdecec;
  color: #a33232;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ---- Motion 최소화 ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ============================================================
   태블릿 이상 (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .figures {
    grid-template-columns: minmax(0, 520px) 1fr;
  }

  .photo-placeholder {
    min-height: 300px;
  }
}

/* ============================================================
   데스크톱 (≥900px)
   ============================================================ */
@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .spec-table th {
    width: 10rem;
  }
}
