/* =========================================================================
   NSB Auctions (Pty) Ltd — nsbauctions.co.za
   Design system: navy + green from the official logo lockup. Poppins / Nunito.
   Institutional, compliance-forward. Hand-crafted, dependency-free, WCAG AA.
   Built by Asmal Digital / Dezignit.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---- Tokens ---- */
:root {
  /* Brand, sampled from the official logo */
  --navy:        #2B3177;
  --navy-deep:   #212770;
  --navy-ink:    #1A1D33;
  --navy-wash:   #F3F4FA;
  --green:       #76C043;   /* brand green. accents, rules, highlights, icons */
  --green-deep:  #5CA22F;   /* AA-safe green for TEXT on white */
  --green-cta:   #45831D;   /* button fill. darkened so WHITE label hits 4.5:1 AA */
  --green-cta-h: #3C711A;   /* button hover */
  --green-wash:  #F0F8EA;

  --surface:     #FFFFFF;
  --background:  #F7F8FC;
  --fg:          #1A1D33;
  --fg-muted:    #565C78;
  --line:        #E1E4F0;
  --line-soft:   #EEF0F7;
  --on-dark:     #FFFFFF;
  --on-dark-mut: #C9CDE6;   /* body copy on navy. 7.4:1 */
  --amber:       #C77E12;
  --danger:      #C02626;

  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --maxw-wide: 1360px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26,29,51,.06), 0 1px 3px rgba(26,29,51,.07);
  --shadow-md: 0 4px 14px rgba(26,29,51,.08), 0 2px 5px rgba(26,29,51,.05);
  --shadow-lg: 0 22px 48px rgba(43,49,119,.16);
  --space: clamp(3.25rem, 6.5vw, 6rem);
  --header-h: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
ul, ol { padding-left: 1.15rem; }
strong, b { font-weight: 700; }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--navy); color: #fff; padding: .8rem 1.3rem; border-radius: 0 0 8px 0; font-family: var(--font-head); font-weight: 600; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; color: var(--navy-ink); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.65rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.08rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--fg-muted); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; font-size: .74rem; color: var(--green-deep); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--green); flex: none; }
.eyebrow--light { color: var(--green); }
.eyebrow--center { justify-content: center; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--wash { background: var(--background); }
.section--navywash { background: var(--navy-wash); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p, .section--dark li { color: var(--on-dark-mut); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-wide { max-width: 78ch; }
.center .measure, .center .measure-wide { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.25fr 1fr; } }
/* Grid and flex children default to min-width:auto, so any wide child (a table
   with a min-width, a long unbroken string) forces the whole track open and
   the page scrolls sideways. Reset it so wide content scrolls in its own box. */
.grid > *, .split > *, .lotlayout > *, .steps > *, .lotgrid > *, .mosaic > * { min-width: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  padding: .88rem 1.7rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* Every button label is white. Green fills use --green-cta (the brand green
   darkened) so a white label clears 4.5:1 contrast. */
.btn--primary { background: var(--green-cta); color: #fff; border-color: var(--green-cta); box-shadow: var(--shadow-sm); font-weight: 700; }
.btn--primary:hover { background: var(--green-cta-h); border-color: var(--green-cta-h); color: #fff; box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--outline { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--outline:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(26,29,51,.03);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.header__logo img { height: 46px; width: auto; }
.header__logo { flex: none; display: block; }
.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: .15rem; }
  .nav a {
    font-family: var(--font-head); font-weight: 500; font-size: .875rem; color: var(--fg);
    text-decoration: none; padding: .55rem .68rem; border-radius: 7px; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
  }
  .nav a:hover { background: var(--navy-wash); color: var(--navy); }
  .nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green); border-radius: 7px 7px 0 0; }
}
.header__cta { display: none; }
@media (min-width: 1060px) { .header__cta { display: flex; align-items: center; gap: .55rem; flex: none; } }

/* ---- Desktop dropdown menus ---- */
.nav__item { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: .34rem; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: .875rem; color: var(--fg);
  padding: .55rem .68rem; border-radius: 7px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav__toggle:hover { background: var(--navy-wash); color: var(--navy); }
.nav__toggle::after {
  content: ""; width: 7px; height: 7px; flex: none; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.nav__item[data-open="true"] .nav__toggle::after { transform: rotate(225deg); margin-top: 2px; }
.nav__item[data-open="true"] .nav__toggle { background: var(--navy-wash); color: var(--navy); }
.nav__toggle[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green); border-radius: 7px 7px 0 0; }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 120; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .55rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item[data-open="true"] .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block; padding: .6rem .8rem; border-radius: 8px; font-size: .88rem;
  font-weight: 500; color: var(--fg); text-decoration: none; white-space: nowrap;
}
.nav__menu a:hover { background: var(--navy-wash); color: var(--navy); }
.nav__menu a[aria-current="page"] { color: var(--navy); font-weight: 700; background: var(--navy-wash); }
.nav__menu .nav__lead { font-weight: 700; color: var(--navy); }
.nav__menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: .45rem .4rem; }

/* ---- Mobile accordion groups ---- */
.mobilenav__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--fg);
  padding: .8rem .35rem; text-align: left;
}
.mobilenav__group > button::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-right: .5rem;
  border-right: 2px solid var(--green-deep); border-bottom: 2px solid var(--green-deep);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.mobilenav__group[data-open="true"] > button::after { transform: rotate(225deg) translateY(-2px); }
.mobilenav__sub { display: none; list-style: none; padding: 0 0 .4rem .9rem; margin: 0; border-left: 2px solid var(--green); }
.mobilenav__group[data-open="true"] .mobilenav__sub { display: block; }
.mobilenav__sub a { font-size: .94rem; font-weight: 500; border-bottom: 0; padding: .58rem .35rem; }

/* Mobile nav */
.navtoggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 0 10px; background: var(--navy); border: 0; border-radius: 8px; cursor: pointer;
}
@media (min-width: 1060px) { .navtoggle { display: none; } }
.navtoggle span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobilenav { display: none; border-top: 1px solid var(--line); background: #fff; padding-block: .75rem 1.5rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobilenav.is-open { display: block; }
@media (min-width: 1060px) { .mobilenav, .mobilenav.is-open { display: none; } }
.mobilenav a {
  display: block; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--fg);
  text-decoration: none; padding: .8rem .35rem; border-bottom: 1px solid var(--line-soft);
}
.mobilenav a[aria-current="page"] { color: var(--navy); font-weight: 700; border-left: 3px solid var(--green); padding-left: .8rem; }
.mobilenav .btn { margin-top: 1.25rem; }

/* ---- Hero ---- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(118,192,67,.30), transparent 62%),
    linear-gradient(112deg, var(--navy-deep) 0%, var(--navy) 46%, #333A8C 100%);
  z-index: 0;
}
/* Diagonal motif echoing the logo lockup */
.hero::before {
  content: ""; position: absolute; top: 0; right: -8%; bottom: 0; width: 46%;
  background: linear-gradient(100deg, transparent 0 48%, rgba(255,255,255,.045) 48% 52%, transparent 52%),
              linear-gradient(100deg, transparent 0 62%, rgba(118,192,67,.12) 62% 64%, transparent 64%);
  z-index: 1; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { color: #D5D8EE; max-width: 56ch; margin-top: 1.35rem; }
.hero .btn-row { margin-top: 2.1rem; }
.hero--compact .hero__inner { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }

/* Trust strip under hero */
.trustbar { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 2; }
.trustbar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(255,255,255,.1); }
.trustbar__item { background: var(--navy-deep); padding: 1.4rem 1.35rem; }
.trustbar__num { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--green); line-height: 1.1; }
.trustbar__label { font-size: .84rem; color: var(--on-dark-mut); margin-top: .3rem; line-height: 1.4; }

/* ---- Breadcrumb ---- */
.crumb { font-size: .84rem; color: var(--on-dark-mut); margin-bottom: 1rem; font-family: var(--font-head); }
.crumb a { color: var(--on-dark-mut); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span { opacity: .55; padding-inline: .45rem; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; min-width: 0;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #C9CFEB; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--fg-muted); font-size: .98rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-wash);
  display: grid; place-items: center; margin-bottom: 1.15rem; flex: none;
}
.card__icon svg { width: 26px; height: 26px; color: var(--green-deep); }
.card__icon--navy { background: var(--navy-wash); }
.card__icon--navy svg { color: var(--navy); }
.card__more { margin-top: auto; padding-top: 1.15rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card--link:hover .card__more { color: var(--green-deep); gap: .65rem; }
.card--dark { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14); box-shadow: none; }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-mut); }

/* Sector list card with a green rule */
.sector { border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.35rem 1.5rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.sector p { font-size: .95rem; color: var(--fg-muted); }

/* ---- Process steps ---- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; color: var(--navy); line-height: 1;
}
.step::after { content: ""; position: absolute; top: 1.05rem; left: 3.6rem; right: 0; height: 2px; background: var(--line); }
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--fg-muted); font-size: .96rem; }
.section--dark .step::before { color: var(--green); }
.section--dark .step::after { background: rgba(255,255,255,.16); }

/* ---- Feature list ---- */
.ticks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235CA22F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(118,192,67,.2); }

/* ---- Auction platform: lot cards ---- */
.lotgrid { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.lot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lot__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #E8EAF4, #DCDFEE); display: grid; place-items: center; }
.lot__media svg { width: 62px; height: 62px; color: #9AA0C4; }
.lot__media img { width: 100%; height: 100%; object-fit: cover; }
.lot__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.lot__cat { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.lot__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: .4rem 0 .75rem; color: var(--navy-ink); }
.lot__title a { text-decoration: none; color: inherit; }
.lot__title a:hover { color: var(--navy); }
.lot__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.lot__bidlabel { font-size: .74rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-head); font-weight: 600; }
.lot__bid { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.lot__time { font-family: var(--font-head); font-weight: 700; font-size: .84rem; color: var(--amber); text-align: right; }

.badge {
  display: inline-flex; align-items: center; gap: .38rem; font-family: var(--font-head);
  font-weight: 700; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .34rem .7rem; border-radius: 100px;
}
.badge--live { background: var(--green); color: #14300B; }
.badge--timed { background: var(--navy); color: #fff; }
.badge--onsite { background: var(--amber); color: #fff; }
.badge--upcoming { background: var(--navy-wash); color: var(--navy); border: 1px solid #C9CFEB; }
.badge--closed { background: #E9EBF2; color: var(--fg-muted); }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lot__badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; }

/* Auction filter bar */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: .87rem; padding: .55rem 1.05rem;
  border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--fg-muted);
  cursor: pointer; transition: all .16s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Lot detail bid panel */
.bidpanel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 1.25rem); }
.bidpanel__current { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; color: var(--navy); line-height: 1.1; }
.bidpanel__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.bidpanel__row:last-of-type { border-bottom: 0; }
.bidpanel__row dt { color: var(--fg-muted); }
.bidpanel__row dd { font-family: var(--font-head); font-weight: 600; color: var(--navy-ink); text-align: right; }
.countdown { display: flex; gap: .5rem; margin: 1rem 0 1.35rem; }
.countdown div { flex: 1; background: var(--navy-wash); border-radius: 8px; padding: .6rem .4rem; text-align: center; }
.countdown b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); font-weight: 600; }

/* ---- Tables ---- */
/* min-width:0 lets the wrapper shrink below its table's min-width inside a
   flex or grid parent, so the table scrolls in its own box instead of pushing
   the page wide. Without it a card-wrapped table overflows the viewport. */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; min-width: 0; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
table.data th { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); background: var(--background); }
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--navy-ink); }

/* ---- Accordion (FAQ) ---- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: .8rem; }
.acc summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.35rem; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy-ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--green-deep); border-bottom: 2.5px solid var(--green-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.acc[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.acc__body { padding: 0 1.35rem 1.35rem; color: var(--fg-muted); font-size: .98rem; }
.acc__body > * + * { margin-top: .8rem; }

/* ---- Forms ---- */
.field { display: block; margin-bottom: 1.15rem; }
.field label, .label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .89rem; color: var(--navy-ink); margin-bottom: .45rem; }
.field .hint { font-size: .82rem; color: var(--fg-muted); font-weight: 400; margin-top: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--fg);
  padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,49,119,.13); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565C78' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 17px; padding-right: 2.6rem; }
.field-row { display: grid; gap: 0 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkline { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--fg-muted); }
.checkline input { margin-top: .28rem; width: 18px; height: 18px; flex: none; accent-color: var(--green-deep); }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }

/* ---- Callout / CTA band ---- */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(2.1rem, 4.5vw, 3.4rem);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 92% 0%, rgba(118,192,67,.32), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #D5D8EE; }
.cta .btn-row { margin-top: 1.7rem; }

.callout { border-left: 4px solid var(--green); background: var(--green-wash); padding: 1.2rem 1.45rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { color: #33502099; color: #2F4A1C; font-size: .96rem; }
.callout--navy { border-left-color: var(--navy); background: var(--navy-wash); }
.callout--navy p { color: var(--navy-ink); }
.callout--note { border-left-color: var(--amber); background: #FDF6EA; }
.callout--note p { color: #6B4708; }

/* ---- Contact blocks ---- */
.contactline { display: flex; gap: .9rem; align-items: flex-start; }
.contactline svg { width: 21px; height: 21px; color: var(--green-deep); flex: none; margin-top: .28rem; }
.contactline a { color: var(--navy-ink); text-decoration: none; font-weight: 600; font-family: var(--font-head); }
.contactline a:hover { color: var(--green-deep); text-decoration: underline; }
.contactline span { display: block; font-size: .8rem; color: var(--fg-muted); font-weight: 400; font-family: var(--font-body); }

/* ---- Article / news ---- */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy) 0%, #3D45A0 100%); display: grid; place-items: center; }
.post__media svg { width: 46px; height: 46px; color: rgba(255,255,255,.4); }
.post__body { padding: 1.35rem 1.45rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post__date { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green-deep); }
.post h3 { font-size: 1.12rem; margin: .5rem 0 .6rem; }
.post h3 a { color: inherit; text-decoration: none; }
.post p { font-size: .95rem; color: var(--fg-muted); }

/* ---- Footer ---- */
.footer { background: var(--navy-ink); color: var(--on-dark-mut); padding-block: clamp(3rem, 5vw, 4.5rem) 0; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1.1fr; } }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.15rem; font-weight: 700; }
.footer a { color: var(--on-dark-mut); text-decoration: none; font-size: .93rem; }
.footer a:hover { color: var(--green); text-decoration: underline; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .68rem; }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1.15rem; }
.footer__tag { font-size: .94rem; line-height: 1.6; max-width: 34ch; }
.footer__bottom { margin-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; font-size: .84rem; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.small { font-size: .87rem; }
.muted { color: var(--fg-muted); }
.nowrap { white-space: nowrap; }

/* =========================================================================
   IMAGERY
   The site is image-led. These components carry the photography.
   ========================================================================= */

/* Split hero: copy left, photograph right */
@media (min-width: 1000px) {
  .hero--split .hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
}
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(43,49,119,.18), transparent 55%); }
@media (max-width: 999px) { .hero__media { margin-top: 2.5rem; } .hero__media img { aspect-ratio: 16 / 10; } }

/* Full-bleed photographic page hero */
.hero--image { background: var(--navy-ink); }
.hero--image::after {
  background:
    linear-gradient(90deg, rgba(26,29,51,.93) 0%, rgba(26,29,51,.80) 45%, rgba(26,29,51,.45) 100%),
    var(--hero-img, none) center/cover no-repeat;
}
.hero--image::before { display: none; }

/* Figure: a photograph used inside a content section */
.figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.figure img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure--wide img { aspect-ratio: 16 / 9; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.35rem .95rem;
  background: linear-gradient(transparent, rgba(26,29,51,.88));
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .93rem;
}

/* Image card: photograph on top, copy beneath. The workhorse of the site. */
.imgcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.imgcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.imgcard__media { position: relative; overflow: hidden; }
.imgcard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
a.imgcard:hover .imgcard__media img { transform: scale(1.045); }
.imgcard__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(26,29,51,.86); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .36rem .7rem; border-radius: 100px;
}
.imgcard__body { padding: 1.35rem 1.45rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.imgcard__body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.imgcard__body p { color: var(--fg-muted); font-size: .96rem; }
.imgcard__body .card__more { margin-top: auto; padding-top: 1.1rem; }
a.imgcard:hover .card__more { color: var(--green-deep); gap: .65rem; }

/* Overlay card: copy sits on the photograph. Used for sector grids. */
.overcard {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 260px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.overcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.overcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.overcard:hover img { transform: scale(1.05); }
.overcard__scrim { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(26,29,51,.30) 0%, rgba(26,29,51,.62) 48%, rgba(26,29,51,.92) 100%); }
.overcard__body { position: relative; z-index: 2; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.overcard__body h3 { color: #fff; font-size: 1.22rem; margin-bottom: .4rem; }
.overcard__body p { color: #D5D8EE; font-size: .93rem; }
.overcard__body .card__more { color: var(--green); margin-top: .85rem; padding-top: 0; }
.overcard::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--green); z-index: 3; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.overcard:hover::after { transform: scaleX(1); }

/* Photographic band behind a CTA or statement */
.imgband { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.imgband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgband__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43,49,119,.95) 0%, rgba(43,49,119,.80) 50%, rgba(43,49,119,.55) 100%); }
.imgband__body { position: relative; z-index: 2; padding: clamp(2.25rem, 5vw, 4rem); color: #fff; }
.imgband__body h2 { color: #fff; }
.imgband__body p { color: #D5D8EE; }

/* Mosaic strip: a run of photographs that carries a section on its own */
.mosaic { display: grid; gap: .85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .4s ease; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .8rem .6rem;
  background: linear-gradient(transparent, rgba(26,29,51,.85));
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-align: center;
}
@media (min-width: 700px) {
  .mosaic--feature { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
  .mosaic--feature figure:first-child { grid-column: span 2; grid-row: span 2; }
  .mosaic--feature figure:first-child img { aspect-ratio: auto; height: 100%; }
}

/* Step cards carrying a photograph */
.stepimg { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.1rem; }
.stepimg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Thumbnail row, lot detail gallery */
.thumbrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.thumbrow img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s ease; }
.thumbrow img:hover, .thumbrow img.is-active { border-color: var(--green); }

/* Every photograph on the site is a placeholder until the client supplies theirs */
.imgnote { font-size: .78rem; color: var(--fg-muted); margin-top: .6rem; font-style: italic; }

/* =========================================================================
   DARK SECTION OVERRIDES
   Component rules set dark text colours for use on white. Inside a dark
   section those must flip, or the copy disappears into the navy. This block
   sits last so it wins on source order regardless of component specificity.
   ========================================================================= */
.section--dark p,
.section--dark li,
.section--dark .step p,
.section--dark .card p,
.section--dark .sector p,
.section--dark .lead,
.section--dark dd,
.section--dark dt,
.section--dark .lot__cat,
.section--dark .lot__bidlabel,
.section--dark .acc__body,
.section--dark table.data td,
.section--dark .muted,
.section--dark .small { color: var(--on-dark-mut); }

.section--dark .step h3,
.section--dark .sector h3,
.section--dark .card h3,
.section--dark .lot__title,
.section--dark strong,
.section--dark b,
.section--dark table.data td strong { color: #fff; }

.section--dark .sector {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.14);
  border-left-color: var(--green);
}
.section--dark .card { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section--dark .card__icon { background: rgba(118,192,67,.18); }
.section--dark .card__icon svg { color: var(--green); }
.section--dark .card__more { color: var(--green); }
.section--dark a:not(.btn) { color: #fff; }
.section--dark a:not(.btn):hover { color: var(--green); }
.section--dark table.data th { background: rgba(255,255,255,.07); color: #E4E7F5; }
.section--dark table.data th, .section--dark table.data td { border-bottom-color: rgba(255,255,255,.13); }
.section--dark .tablewrap { background: transparent; border-color: rgba(255,255,255,.16); }
.section--dark .acc { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14); }
.section--dark .acc summary { color: #fff; }

/* The .cta band is navy too, same treatment */
.cta .lead, .cta li, .cta p { color: #D5D8EE; }

/* Placeholder marker for unverified/demo content */
.placeholder {
  border: 1px dashed var(--amber); background: #FDF6EA; border-radius: var(--radius);
  padding: .85rem 1.1rem; font-size: .86rem; color: #6B4708; font-family: var(--font-head); font-weight: 600;
}
