/* ==========================================================================
   DALI ROOM Auction Watch — design system
   Edit colours, spacing and type here. Everything else inherits.
   ========================================================================== */

:root {
  --ivory:        #F6F0E6;
  --ivory-deep:   #EFE7D9;
  --paper:        #FCFAF5;
  --ink:          #1C1A18;
  --ink-soft:     #55504A;
  --ink-faint:    #8A8379;
  --navy:         #0B3653;
  --navy-soft:    #14496D;
  --rust:         #C85C3C;
  --rust-dark:    #A9482B;
  --gold:         #C9922D;
  --line:         #E2D8C6;

  --green:        #2F6B4F;
  --amber:        #A9761B;
  --grey:         #6E6A64;
  --red:          #9E3A2C;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 4px;
  --shell: 1180px;
  --shadow: 0 1px 2px rgba(28, 26, 24, .04), 0 8px 24px rgba(28, 26, 24, .05);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); text-decoration: underline; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 .7em;
}
.muted { color: var(--ink-faint); }
.tiny { font-size: .8rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.brand { font-family: var(--serif); font-size: 1.42rem; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand span { text-transform: lowercase; font-size: .78em; color: var(--ink-soft); letter-spacing: 0; }
.brand small {
  display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-top: 2px;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink); font-size: .93rem;
}
.site-nav a:hover { color: var(--rust); text-decoration: none; }
.site-nav a.is-active { color: var(--rust); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 11px; font-size: .85rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 22px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .93rem; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--rust); border-color: var(--rust); }
.btn--ghost:hover { background: rgba(200, 92, 60, .07); color: var(--rust-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: 62px 0 46px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.hero__panel h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 34px; } .hero { padding: 40px 0 32px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 18px 16px; text-align: center; }
.stat__num { font-family: var(--sans); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: 0; }

/* ---------- Filter bar ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 26px;
}
.filters input[type="search"] { flex: 1 1 220px; min-width: 180px; }
input, select, textarea {
  font-family: var(--sans); font-size: .92rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11, 54, 83, .25); outline-offset: 1px; border-color: var(--navy); }
.filters select { flex: 0 1 auto; width: auto; }
label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Lot cards ---------- */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.lot-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.lot-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lot-card__title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; margin: 0; }
.lot-card__title a { color: var(--ink); }
.lot-card__title a:hover { color: var(--rust); text-decoration: none; }
.lot-card__meta { font-size: .84rem; color: var(--ink-faint); margin: 0; }
.lot-card__house { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.lot-card__price { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 0; font-variant-numeric: lining-nums; }
.lot-card__est { font-size: .84rem; color: var(--ink-faint); margin: 0; }
.lot-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; }
.lot-card__thumb { border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 2px; border: 1px solid;
  white-space: nowrap;
}
.badge--sold { color: var(--green); border-color: rgba(47, 107, 79, .35); background: rgba(47, 107, 79, .07); }
.badge--upcoming { color: var(--navy); border-color: rgba(11, 54, 83, .3); background: rgba(11, 54, 83, .06); }
.badge--passed { color: var(--grey); border-color: rgba(110, 106, 100, .3); background: rgba(110, 106, 100, .06); }
.badge--pending { color: var(--amber); border-color: rgba(169, 118, 27, .35); background: rgba(169, 118, 27, .08); }
.badge--withdrawn { color: var(--red); border-color: rgba(158, 58, 44, .3); background: rgba(158, 58, 44, .06); }
.badge--soft { color: var(--ink-faint); border-color: var(--line); background: transparent; }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile__icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-size: 1.25rem; margin-bottom: 16px;
}
.tile h3 { margin-bottom: .35em; }
.tile p { font-size: .93rem; color: var(--ink-soft); margin-bottom: .8em; }

/* ---------- Detail page ---------- */
.detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 30px; } }
.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 500; color: var(--ink-faint); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.price-block { font-family: var(--serif); font-size: 2.1rem; color: var(--navy); line-height: 1.1; font-variant-numeric: lining-nums; }

/* ---------- Notices ---------- */
.notice {
  border-left: 3px solid var(--gold); background: rgba(201, 146, 45, .07);
  padding: 16px 18px; font-size: .9rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.notice--info { border-color: var(--navy); background: rgba(11, 54, 83, .05); }
.notice--ok { border-color: var(--green); background: rgba(47, 107, 79, .07); color: var(--ink); }
.notice--warn { border-color: var(--rust); background: rgba(200, 92, 60, .07); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: var(--ink); }
.check input { width: auto; }
.form-status { margin-top: 16px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* ---------- States ---------- */
.state { padding: 46px 20px; text-align: center; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #DCE6ED; margin-top: 62px; padding: 46px 0 30px; font-size: .9rem; }
.site-footer a { color: #F0D8A8; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .82rem; color: #A9BDCB; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 99; }
