/* 교습소철거견적 — 견적서(인보이스) 스타일, 표 중심 레이아웃 */

:root {
  --navy: #003049;
  --navy-deep: #00202f;
  --orange: #F77F00;
  --paper: #FFFFFF;
  --paper-soft: #F4F7F9;
  --ink: #16262F;
  --muted: #4B5D68;
  --line: #C9D6DC;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-display: swap;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--navy); }

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--navy-deep);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-nav a {
  padding: 12px 14px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cfe0e8;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; padding: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); padding-left: 20px; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
  border-bottom: 6px solid var(--orange);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 20px 44px;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 58ch;
  font-size: 1.02rem;
  color: #cfe0e8;
  margin: 0 0 26px;
}

.hero-media {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  overflow: hidden;
}

.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 72px 20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  background: var(--orange);
  color: #1a1200;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid var(--orange);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover, .btn:focus-visible {
  background: transparent;
  color: var(--orange);
}

.hero .btn { color: #1a1200; }

.btn-accent { background: var(--orange); color: #1a1200; border-color: var(--orange); }

/* ---------- Document card ---------- */

.doc {
  background: var(--paper);
  margin: -28px 0 56px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,48,73,0.12);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.doc-head {
  padding: 28px 28px 22px;
  border-bottom: 2px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.doc-tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.doc-title {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  width: 100%;
}

.doc-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 18px;
  padding: 30px 28px;
  border-bottom: 1px dashed var(--line);
}

.doc-section:last-of-type { border-bottom: none; }

.line-no {
  font-family: 'SUIT', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--orange);
  border-right: 2px solid var(--paper-soft);
}

.line-body h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--navy);
}

.line-body p { margin: 0 0 14px; color: var(--ink); }
.line-body p:last-child { margin-bottom: 0; }

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

@media (max-width: 480px) {
  .doc-section { grid-template-columns: 1fr; }
  .line-no {
    border-right: none;
    border-bottom: 2px solid var(--paper-soft);
    padding-bottom: 6px;
    width: fit-content;
  }
}

/* ---------- Table (invoice line items) ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.94rem;
}

caption { text-align: left; }

th, td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

tbody tr:nth-child(even) { background: var(--paper-soft); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Checklist ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 13px 16px 13px 46px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--paper);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery picture {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- Total / CTA block ---------- */

.doc-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: #fff;
  padding: 26px 28px;
}

.doc-total p { margin: 0; max-width: 46ch; font-weight: 600; color: #dce8ee; }

/* ---------- Footer ---------- */

footer {
  background: var(--navy-deep);
  color: #cfe0e8;
  padding: 40px 20px 32px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: 1040px;
  margin: 0 auto 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 20px;
}

footer nav a {
  color: #cfe0e8;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer nav a:hover { color: var(--orange); }

footer address {
  max-width: 1040px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #a9c0cb;
}

footer address a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

footer p {
  max-width: 1040px;
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: #7c93a0;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 480px) {
  .doc-head, .doc-section, .doc-total { padding-left: 18px; padding-right: 18px; }
  .wrap { padding: 0 14px; }
  .gallery { grid-template-columns: 1fr; }
  .doc-total { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 1100px; }
}
