/* ═══════════════════════════════════════════════════════════════════════
   BidAll Demo — pilot theme.
   Neutral, professional auction-house look (teal + serif headings). Restyle
   the :root tokens per real client. The same tokens are forwarded to the
   auction embed (see the #bidall-auction block at the bottom).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* —— brand tokens —— */
  --brand:        #0f766e;   /* primary / buttons / links (teal) */
  --brand-ink:    #ffffff;   /* text on --brand */
  --accent:       #0f766e;   /* auction accent (= --brand) */
  --radius:       12px;      /* rounded-xl */
  --font:         "Georgia", "Times New Roman", serif;   /* headings */
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* —— surfaces (light) —— */
  --bg:           #faf9f7;
  --surface:      #ffffff;
  --text:         #1a1a1a;
  --muted:        #6b7280;
  --border:       #e6e4df;
  --maxw:         1080px;
}

/* Dark mode: follows the OS by default, but the header toggle can force either
   mode via <html data-theme="dark|light"> (persisted in localStorage). The same
   tokens feed the embed, so lot cards + the bid modal switch too. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f; --surface: #1e1c17; --text: #f3f1ec; --muted: #a1988a; --border: #322f28;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f; --surface: #1e1c17; --text: #f3f1ec; --muted: #a1988a; --border: #322f28;
}

/* ───────────────────────── base ───────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .brand { font-family: var(--font); }
a { color: var(--brand); text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Buttons — center-aligned text via flex, comfortable tap target. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
  padding: 12px 22px; min-height: 48px; border-radius: var(--radius);
  border: 0; cursor: pointer; transition: opacity .15s ease;
}
.btn:hover { opacity: .9; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }

/* ───────────────────────── header ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.brand span { color: var(--brand); margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--text); font-size: .95rem; }
.site-nav a.btn { color: var(--brand-ink); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-size: 1.1rem; line-height: 1;
}
@media (max-width: 560px) { .site-nav a:not(.btn) { display: none; } }

/* ───────────────────────── hero ───────────────────────── */
.hero {
  background:
    radial-gradient(1200px 400px at 70% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero__inner { padding: 72px 20px 80px; max-width: 760px; }
.hero__title { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }

/* ───────────────────────── sections ───────────────────────── */
.section { padding: 64px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__title { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; }
.section__sub { color: var(--muted); margin: 0 0 28px; }

.about p { max-width: 640px; color: var(--muted); }
.about__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.about__stats b { display: block; font-size: 1.9rem; font-family: var(--font); }
.about__stats span { color: var(--muted); font-size: .9rem; }

.steps__list { list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps__list li { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; }
.steps__list b { display: block; margin-bottom: 6px; }
.steps__list span { color: var(--muted); font-size: .92rem; }

.contact__lines { font-size: 1.1rem; margin-top: 8px; }

/* ───────────────────────── footer ───────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; color: var(--muted); font-size: .88rem; }
.site-footer__powered { opacity: .8; }

/* ═══════════════════════════════════════════════════════════════════════
   Forward the brand to the auction embed → lot grid + bid modal match.
   ═══════════════════════════════════════════════════════════════════════ */
#bidall-auction {
  --bidall-accent:  var(--accent);
  --bidall-radius:  var(--radius);
  --bidall-card-bg: var(--surface);
  --bidall-text:    var(--text);
  --bidall-muted:   var(--muted);
  --bidall-border:  var(--border);
  font-family: var(--font-body);
}
