:root {
  --teal: #0e7c7b;
  --teal-dark: #0a5e5d;
  --orange: #e86a17;
  --orange-dark: #c8570f;
  --ink: #16323a;
  --muted: #5c737c;
  --line: #d9e4e7;
  --bg: #f4f9f7;
  --card: #ffffff;
  --error-bg: #fdecea;
  --error-ink: #8f1d12;
  --ok-bg: #e6f4ea;
  --ok-ink: #14532d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Archivo", sans-serif;
  line-height: 1.15;
  margin: 0.6em 0 0.4em;
}

a { color: var(--teal-dark); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* Header — white, lockup logo */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.site-header .brand img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; }

.site-footer {
  margin-top: 40px;
  padding: 24px 16px;
  background: #041f2c;
  color: #dcebee;
  text-align: center;
  font-size: 0.95rem;
}

/* Buttons — color rule: teal = customer, orange = partner, neutral = shared */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}
.btn-customer { background: var(--teal); }
.btn-customer:hover { background: var(--teal-dark); }
.btn-partner { background: var(--orange); }
.btn-partner:hover { background: var(--orange-dark); }
.btn-neutral { background: var(--ink); }

.link-button {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--teal-dark); font-weight: 600; cursor: pointer; text-decoration: underline;
}
.inline-form { display: inline; }

/* Landing doors */
.hero { text-align: left; padding: 12px 0 4px; }
.hero h1 { font-size: 2rem; margin-top: 0.2em; }
.doors { display: grid; gap: 14px; margin: 18px 0; }
.door {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}
.door-kicker { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; opacity: 0.9; }
.door-title { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 800; margin: 4px 0; }
.door-sub { display: block; opacity: 0.95; }
.door-customer { background: var(--teal); }
.door-partner { background: var(--orange); }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}
.listing-card h3 { margin-top: 0.4em; }
.listing-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.listing-photo-lg { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; }
.price { font-weight: 700; font-size: 1.1rem; }

/* Forms */
.form { display: grid; gap: 12px; max-width: 560px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.form textarea { min-height: 80px; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 6px; }
.fineprint { color: var(--muted); font-size: 0.9rem; }

/* Flash messages */
.flash { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--error-bg); color: var(--error-ink); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

@media (min-width: 720px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
}
