/* Hirezo — theme taken from the logo: near-black, silver/white, bright orange (#fd7301).
   To re-tint the whole site, change --color-brand and --color-brand-rgb together. */

:root {
  --color-bg: #070707;
  --color-surface: #121213;
  --color-surface-raised: #1a1a1c;
  --color-border: #2a2a2d;
  --color-border-strong: #3b3b40;

  --color-text: #f5f5f5;           /* the logo's white */
  --color-muted: #a1a1a6;

  --color-brand: #fd7301;          /* sampled from the logo's orange — links, focus, highlights on dark bg (7.3:1 on the page bg) */
  --color-brand-rgb: 253, 115, 1;  /* same colour, for rgba(var(--color-brand-rgb), alpha) tints */
  --color-brand-strong: #fd7301;   /* solid button fill */
  --color-brand-strong-hover: #ff8a26;
  --color-on-brand: #0b0b0b;       /* text on a solid orange fill: 7.2:1 (white would only be 2.8:1) */

  --color-steel: #d1d0d0;          /* the logo's silver — secondary accent */
  --color-steel-dark: #0f0f10;

  --color-danger: #ff4d4f;
  --color-danger-strong: #c62d2f;
  --color-success: #3dd68c;
  --color-info: #4ea1f3;

  --radius: 8px;
  --font-display: "Oswald", "Arial Narrow", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #000;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--color-text);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--color-brand); }

.whoami { color: var(--color-muted); font-size: 0.9rem; }

/* Layout */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main.container-wide {
  max-width: 960px;
}

/* Hero */

.hero { text-align: center; padding: 2rem 0 3rem; }

.hero-logo {
  max-width: 260px;
  width: 60%;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(var(--color-brand-rgb), 0.25));
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.hero p { color: var(--color-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--color-brand-strong);
  color: var(--color-on-brand);
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--color-brand-strong-hover); }

.btn-secondary {
  background: var(--color-steel);
  color: var(--color-steel-dark);
}

.btn-secondary:hover { background: #a4aab1; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); }

.btn-danger {
  background: var(--color-danger-strong);
  color: #fff;
}

.btn-danger:hover { background: #a52224; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Forms */

.form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--color-text); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--color-surface-raised);
  color: var(--color-text);
}

input::placeholder, textarea::placeholder { color: #6b6b6b; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(var(--color-brand-rgb), 0.25);
}

textarea { resize: vertical; }

.checkbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.checkbox-list li { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; }
.checkbox-list-scroll {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-raised);
}

.error { color: var(--color-danger); font-size: 0.85rem; }
.note { color: var(--color-muted); font-size: 0.9rem; }

/* Flash messages */

.flashes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; border: 1px solid transparent; }
.flash-success { background: rgba(61, 214, 140, 0.12); color: var(--color-success); border-color: rgba(61, 214, 140, 0.3); }
.flash-danger { background: rgba(255, 77, 79, 0.12); color: var(--color-danger); border-color: rgba(255, 77, 79, 0.3); }
.flash-info { background: rgba(78, 161, 243, 0.12); color: var(--color-info); border-color: rgba(78, 161, 243, 0.3); }

/* Cards (admin installer review, etc.) */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.card-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0; color: var(--color-text); }
.card-subtitle { color: var(--color-muted); font-size: 0.9rem; margin: 0.15rem 0 0; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.card-body p { margin: 0.35rem 0; font-size: 0.95rem; }

.town-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; padding: 0; list-style: none; }
.town-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(185, 190, 196, 0.15);
  color: var(--color-steel);
  border-radius: 999px;
  padding: 0.2rem 0.3rem 0.2rem 0.75rem;
  font-size: 0.85rem;
}
.town-list form { margin: 0; }
.town-list button {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}
.town-list button:hover { color: var(--color-danger); }
.card-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }

/* Badges / pills */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-steel { background: rgba(185, 190, 196, 0.15); color: var(--color-steel); }
.badge-brand { background: rgba(var(--color-brand-rgb), 0.15); color: var(--color-brand); }
.badge-pending { background: rgba(78, 161, 243, 0.15); color: var(--color-info); }
.badge-approved { background: rgba(61, 214, 140, 0.15); color: var(--color-success); }
.badge-rejected { background: rgba(255, 77, 79, 0.15); color: var(--color-danger); }

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
}

/* Inline reject form (reason textarea shown next to approve button) */

.reject-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.reject-form textarea { min-height: 60px; }

/* Job/quote status badges */

.badge-open { background: rgba(78, 161, 243, 0.15); color: var(--color-info); }
.badge-chosen { background: rgba(61, 214, 140, 0.15); color: var(--color-success); }
.badge-completed { background: rgba(185, 190, 196, 0.15); color: var(--color-steel); }
.badge-cancelled { background: rgba(255, 77, 79, 0.15); color: var(--color-danger); }
.badge-selected { background: rgba(61, 214, 140, 0.15); color: var(--color-success); }
.badge-not-selected { background: rgba(185, 190, 196, 0.1); color: var(--color-muted); }

/* Commission / subscription status badges */

.badge-invoiced { background: rgba(78, 161, 243, 0.15); color: var(--color-info); }
.badge-paid { background: rgba(61, 214, 140, 0.15); color: var(--color-success); }
.badge-active { background: rgba(61, 214, 140, 0.15); color: var(--color-success); }
.badge-pending_payment { background: rgba(var(--color-brand-rgb), 0.18); color: var(--color-brand); }
.badge-expired { background: rgba(185, 190, 196, 0.15); color: var(--color-steel); }

/* Admin bookkeeping tables */

.summary-card { display: inline-block; padding: 1.25rem 1.75rem; margin-bottom: 1.5rem; }
.summary-label { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 0.25rem; }
.summary-value { font-family: var(--font-display); font-size: 2rem; color: var(--color-brand); margin: 0; }

.filter-bar { display: flex; gap: 0.5rem; margin: 0 0 1.5rem; flex-wrap: wrap; }

.pagination { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 2rem; }
.pagination-status { color: var(--color-muted); font-size: 0.85rem; }

.table-wrap { overflow-x: auto; margin-bottom: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table th {
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  background: var(--color-surface);
}
.data-table tbody tr:hover { background: var(--color-surface-raised); }
.data-table .flagged-row { background: rgba(var(--color-brand-rgb), 0.06); }

.inline-form { display: flex; gap: 0.4rem; align-items: center; }
.inline-form select {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised);
  color: var(--color-text);
  font-size: 0.85rem;
}

/* Photo thumbnails */

.photo-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0; }
.photo-grid img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-strong);
}

input[type="file"] {
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Quote rows */

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.quote-row:last-child { border-bottom: none; }

.quote-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-brand);
  font-weight: 600;
}

.quote-meta { color: var(--color-muted); font-size: 0.85rem; }

.contact-box {
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.contact-box p { margin: 0.25rem 0; }

/* ==========================================================================
   Landing page (public marketing page at "/")
   ========================================================================== */

main.landing { max-width: none; margin: 0; padding: 0; }

.lp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lp-eyebrow {
  font-family: var(--font-display);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.lp-h2 {
  font-size: 1.6rem;
  max-width: 34rem;
  margin: 0 0 2.5rem;
}

/* Hazard-stripe divider — a nod to the trades this marketplace runs on */
.lp-hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-brand) 0 18px,
    #000 18px 36px
  );
}

/* Hero */

.lp-hero {
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(var(--color-brand-rgb), 0.16), transparent 65%),
    var(--color-bg);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.lp-hero-inner { text-align: center; }

.lp-hero-logo {
  max-width: 560px;
  width: 88%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.lp-hero h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.lp-hero-accent { color: var(--color-brand); }

.lp-hero-sub {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.lp-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.lp-hero-login {
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.lp-hero-login a { font-weight: 600; }

.btn-lg { padding: 0.85rem 1.9rem; font-size: 1rem; }

/* Sections */

.lp-section { padding: 3.5rem 0; }

.lp-section-raised { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* How it works */

.lp-how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.lp-step { position: relative; padding-top: 0.25rem; }

.lp-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-border-strong);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.lp-step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.lp-step p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

/* Why Hirezo */

.lp-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-value {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
}

.lp-value h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.lp-value p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

/* Categories */

.lp-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.lp-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lp-category:hover { border-color: var(--color-brand); transform: translateY(-2px); }

.lp-category svg { width: 30px; height: 30px; color: var(--color-brand); }

.lp-category span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* Closing CTA */

.lp-cta {
  background: #000;
  padding: 3.5rem 0;
  text-align: center;
}

.lp-cta-inner h2 { margin: 0 0 0.6rem; font-size: 1.9rem; }
.lp-cta-inner > p { color: var(--color-muted); margin: 0 0 2rem; }

/* Footer */

.lp-footer { background: #000; border-top: 1px solid var(--color-border); padding: 1.75rem 0; }

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.lp-footer-logo { height: 22px; width: auto; display: block; }

.lp-footer-meta { margin: 0; color: var(--color-muted); font-size: 0.85rem; }
.lp-footer-meta a { color: var(--color-muted); text-decoration: underline; }
.lp-footer-meta a:hover { color: var(--color-brand); }

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--color-muted); font-size: 0.85rem; }
.site-footer a { color: var(--color-muted); text-decoration: underline; }
.site-footer a:hover { color: var(--color-brand); }

@media (max-width: 860px) {
  .lp-how { grid-template-columns: repeat(2, 1fr); }
  .lp-why { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .lp-hero h1 { font-size: 2.1rem; }
  .lp-how { grid-template-columns: 1fr; gap: 1.75rem; }
  .lp-cta-inner h2 { font-size: 1.5rem; }
}
