:root {
  --graphite-900: #14181d;
  --graphite-800: #1b2027;
  --graphite-700: #252c35;
  --graphite-600: #313a46;
  --steel-400: #4a90d9;
  --steel-500: #2e7dd1;
  --steel-600: #1f5fa8;
  --safety-500: #ff8a1f;
  --text-hi: #f4f6f8;
  --text-mid: #b9c2cc;
  --text-lo: #8993a1;
  --border: #333c47;
  --ok-500: #35b56a;
  --warn-500: #e0a52c;
  --danger-500: #e0523f;
  --radius: 10px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--graphite-900);
  color: var(--text-hi);
  line-height: 1.55;
}

a { color: var(--steel-400); text-decoration: none; }
a:hover { color: var(--steel-500); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,24,29,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text-hi); }
.brand .mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }
nav.main { display: flex; gap: 24px; }
nav.main a { color: var(--text-mid); font-weight: 500; font-size: 0.95rem; }
nav.main a:hover { color: var(--text-hi); }
.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--steel-500); color: #fff; }
.btn-primary:hover { background: var(--steel-600); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-hi); }
.btn-outline:hover { border-color: var(--steel-400); color: var(--steel-400); }
.btn-whatsapp { background: #25d366; color: #06210f; }
.btn-whatsapp:hover { background: #1fbd5a; color: #06210f; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-danger { background: var(--danger-500); color: #fff; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero { padding: 72px 0 56px; background: radial-gradient(1100px 500px at 80% -10%, rgba(46,125,209,0.18), transparent), var(--graphite-900); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--steel-400); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 18px; color: var(--text-hi); }
.condolence-note {
  border-left: 3px solid var(--text-lo);
  padding: 12px 18px;
  margin: 0 0 22px;
  background: rgba(255,255,255,0.03);
  color: var(--text-mid);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 52ch;
  border-radius: 0 6px 6px 0;
}
.hero p.lead { font-size: 1.1rem; color: var(--text-mid); max-width: 46ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ── */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 12px; }
.section-head p { color: var(--text-mid); }

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

.card {
  background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { color: var(--text-mid); margin: 0; font-size: 0.95rem; }
.card .icon { width: 44px; height: 44px; border-radius: 9px; background: rgba(46,125,209,0.15); color: var(--steel-400); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.3rem; }

/* ── Process steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--steel-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px;
}
.step h4 { margin: 0 0 8px; font-size: 1rem; }
.step p { color: var(--text-mid); font-size: 0.88rem; margin: 0; }

/* ── Comparison table ── */
table.compare { width: 100%; border-collapse: collapse; background: var(--graphite-800); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.compare th { background: var(--graphite-700); color: var(--text-hi); }
table.compare td.good { color: var(--ok-500); }
table.compare td.bad { color: var(--text-lo); }
table.compare tr:last-child td { border-bottom: none; }

/* ── Catalog figures (full infographic images) ── */
.catalog-figure { margin: 0; text-align: center; }
.catalog-figure img {
  max-width: 75%; height: auto; display: inline-block;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  cursor: zoom-in;
  transition: transform .15s ease;
}
.catalog-figure a:hover img { transform: scale(1.01); }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.gallery-note { margin-top: 14px; font-size: 0.85rem; color: var(--text-lo); font-style: italic; }

/* ── Trust ── */
.trust-strip { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; color: var(--text-mid); font-size: 0.9rem; }
.trust-strip .item { display: flex; align-items: center; gap: 8px; }

/* ── Packages (stacked list, one below the other) ── */
.pkg-stack { display: flex; flex-direction: column; gap: 20px; }
.pkg-card { display: flex; flex-direction: row; align-items: stretch; gap: 22px; }
.pkg-photo { width: 220px; height: 165px; object-fit: cover; border-radius: 8px; display: block; flex: 0 0 220px; }
.pkg-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pkg-price { font-size: 1.6rem; font-weight: 700; color: var(--text-hi); }
.pkg-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-lo); }
.pkg-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-lo); }
@media (max-width: 700px) {
  .pkg-card { flex-direction: column; }
  .pkg-photo { width: 100%; height: 180px; flex: none; }
}
.badge { background: var(--graphite-700); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }

/* ── Forms ── */
.form-card { max-width: 460px; margin: 0 auto; background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-mid); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--graphite-700); color: var(--text-hi); font-size: 0.95rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel-400); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(53,181,106,0.15); color: var(--ok-500); border: 1px solid rgba(53,181,106,0.3); }
.form-msg.err { background: rgba(224,82,63,0.15); color: var(--danger-500); border: 1px solid rgba(224,82,63,0.3); }
.form-msg.warn { background: rgba(224,165,44,0.15); color: var(--warn-500); border: 1px solid rgba(224,165,44,0.3); }

/* ── Status badges ── */
.status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.status-pending { background: rgba(224,165,44,0.15); color: var(--warn-500); }
.status-approved { background: rgba(46,125,209,0.15); color: var(--steel-400); }
.status-rejected, .status-cancelled { background: rgba(224,82,63,0.15); color: var(--danger-500); }
.status-delivered { background: rgba(53,181,106,0.15); color: var(--ok-500); }
.status-returned { background: var(--graphite-700); color: var(--text-mid); }

/* ── Table (dashboard/admin) ── */
table.data { width: 100%; border-collapse: collapse; background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 12px 16px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
table.data th { background: var(--graphite-700); color: var(--text-mid); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.03em; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,0.02); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 1.6rem;
}

/* ── Admin: stat tiles ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-tile {
  background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; position: relative; overflow: hidden;
}
.stat-tile.accent-warn { border-left: 3px solid var(--warn-500); }
.stat-tile.accent-steel { border-left: 3px solid var(--steel-500); }
.stat-tile.accent-ok { border-left: 3px solid var(--ok-500); }
.stat-tile.accent-danger { border-left: 3px solid var(--danger-500); }
.stat-tile .stat-label { color: var(--text-lo); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.stat-tile .stat-value { font-size: 2rem; font-weight: 700; color: var(--text-hi); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-tile .stat-sub { color: var(--text-lo); font-size: 0.8rem; margin-top: 6px; }

/* ── Admin: nav active state ── */
nav.main a.active { color: var(--steel-400); font-weight: 700; }

/* ── Admin: kanban board ── */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.kanban-col { background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-height: 120px; }
.kanban-col h4 { margin: 0 0 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-lo); display: flex; justify-content: space-between; align-items: center; }
.kanban-col h4 .count { background: var(--graphite-700); color: var(--text-hi); border-radius: 999px; padding: 1px 9px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.kanban-card {
  background: var(--graphite-700); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; font-size: 0.85rem;
}
.kanban-card:last-child { margin-bottom: 0; }
.kanban-card .kc-title { font-weight: 700; color: var(--text-hi); margin-bottom: 3px; }
.kanban-card .kc-meta { color: var(--text-lo); font-size: 0.78rem; margin-bottom: 8px; }
.kanban-card .btn { width: 100%; }
.kanban-empty { color: var(--text-lo); font-size: 0.82rem; font-style: italic; padding: 8px 2px; }

/* ── Admin: request cards (queue) ── */
.req-card {
  background: var(--graphite-800); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap;
}
.req-card .req-main { flex: 1 1 320px; min-width: 0; }
.req-card .req-client { font-weight: 700; font-size: 1.02rem; color: var(--text-hi); }
.req-card .req-detail { color: var(--text-mid); font-size: 0.88rem; margin-top: 4px; }
.req-card .req-detail .badge { margin-right: 6px; }
.req-card .req-actions { display: flex; gap: 8px; flex-shrink: 0; }
.warn-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(224,165,44,0.15); color: var(--warn-500); border: 1px solid rgba(224,165,44,0.3); padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }

/* ── Footer ── */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-lo); font-size: 0.85rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ── Utility ── */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-mid); }
.small { font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .grid-3, .grid-2, .steps, .field-row, .gallery, .kanban { grid-template-columns: 1fr; }
  nav.main { display: none; }
  .req-card { flex-direction: column; align-items: stretch; }
  .req-card .req-actions { width: 100%; }
  .req-card .req-actions .btn { flex: 1; }
}
