/* ==========================================================================
   Serious Inquiries Only Equine — shared theme
   1. Tokens  2. Base  3. Layout  4. Components  5. Utilities  6. Responsive
   Page-specific layout lives in assets/css/pages/*.css
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-10: rgba(201,168,76,0.10);
  --gold-25: rgba(201,168,76,0.25);
  --gold-45: rgba(201,168,76,0.45);
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #181818;
  --dark3: #222222;
  --white: #F5F0E8;
  --text-soft: rgba(245,240,232,0.7);
  --muted: rgba(245,240,232,0.5);
  --muted2: rgba(245,240,232,0.35);
  --faint: rgba(245,240,232,0.25);
  --border: var(--gold-25);
  --card-border: rgba(201,168,76,0.18);
  --skeleton: linear-gradient(90deg, #1c1c1c 25%, #262626 50%, #1c1c1c 75%);
  --border-subtle: rgba(255,255,255,0.07);
  --red: #cc2200;
  --red-soft: #cf6679;
  --green: #81c784;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Helvetica Neue', sans-serif;
  --container: clamp(1400px, 88vw, 1760px); /* 1400px up to ~1590px screens, then grows with the screen (1920 → 1690px), capped at 1760px */
  --gutter: 48px;
  /* Side padding for full-width bars so their content lines up with .container */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  --nav-h: 92px;
  --ease: 0.2s ease;
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 112.5%; } /* 18px base; every font-size is in rem */
body {
  background: var(--black); color: var(--white);
  font-family: var(--font-sans); font-weight: 300; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
strong { color: var(--white); font-weight: 500; }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 60px 0; }
.section--dark { background: var(--dark2); }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

/* 4. COMPONENTS --------------------------------------------------------- */

/* Typography bits */
.eyebrow { font-size: 0.777rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.caps { font-size: 0.819rem; letter-spacing: 0.15em; text-transform: uppercase; }
.gold-rule { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 12px auto 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 2rem; letter-spacing: 0.02em; }
.section-header h2 em, .hero-title em { color: var(--gold-light); font-style: italic; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  background: rgba(10,10,10,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--edge);
}
.nav-links { justify-self: center; }
.nav-cta { justify-self: end; }
.nav-logo { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.nav-logo:hover { color: var(--white); }
.nav-logo img { height: 62px; width: auto; }
.nav-links { display: flex; gap: 36px; }
.nav-links a, .nav-avatar { font-size: 0.819rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-links a:hover, .nav-links a.is-active, .nav-avatar:hover { color: var(--gold); }
.nav-cta { display: flex; gap: 16px; align-items: center; }
.nav-avatar { display: flex; align-items: center; gap: 9px; }
.nav-icon { position: relative; display: flex; align-items: center; padding: 4px; color: var(--muted); transition: color var(--ease); }
.nav-icon:hover, .nav-icon.is-active { color: var(--gold); }
.nav-icon__count { position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 0.6rem; }

/* Avatar */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--dark3);
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color var(--ease);
}
.avatar--sm { width: 28px; height: 28px; }
.avatar--lg { width: 46px; height: 46px; }
.avatar--xl { width: 72px; height: 72px; border-width: 2px; }
.nav-avatar:hover .avatar { border-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; font-family: var(--font-sans); font-size: 0.819rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; transition: all var(--ease); text-align: center;
}
.btn--primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--border); }
.btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--ghost { background: var(--dark3); color: var(--white); border-color: var(--border-subtle); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--soft { background: var(--gold-10); color: var(--gold); border-color: var(--border); font-weight: 400; letter-spacing: 0.08em; text-transform: none; }
.btn--soft:hover { background: rgba(201,168,76,0.16); border-color: var(--gold-45); color: var(--gold); }
.btn--success { background: rgba(46,125,50,0.12); color: var(--green); border-color: rgba(46,125,50,0.4); text-transform: none; letter-spacing: 0.05em; font-weight: 400; font-size: 0.861rem; }
.btn--success:hover { background: rgba(46,125,50,0.22); color: var(--green); }
.btn--sm { padding: 9px 20px; font-size: 0.798rem; }
.btn--xs { padding: 6px 12px; font-size: 0.766rem; letter-spacing: 0.12em; }
.btn--block { display: flex; width: 100%; }
.btn--glow:hover { box-shadow: 0 8px 28px rgba(201,168,76,0.22); }
/* Busy: a spinner before the label, no more clicks */
.btn.is-loading { pointer-events: none; cursor: progress; }
.btn.is-loading::before { content: ''; flex-shrink: 0; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation-duration: 1.6s; } }

/* Link-style button */
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.787rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color var(--ease); }
.link-btn:hover { color: var(--gold); }

/* Breadcrumb */
.breadcrumb { padding: 13px var(--edge); font-size: 0.819rem; letter-spacing: 0.07em; color: var(--muted2); background: var(--dark); border-bottom: 1px solid var(--border-subtle); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.15); }

/* Card (dark panel with gold hairline) */
.card { background: var(--dark2); border: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent); }
.card--gold { border-color: var(--border); }
.card--gold::before { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card--plain::before { display: none; }
.card--hover { transition: border-color 0.3s, transform 0.25s; }
.card--hover:hover { border-color: var(--gold-45); transform: translateY(-3px); }
.card__body { padding: 24px; }
.card__body--lg { padding: 32px; }
.card__title {
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--white);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); position: relative;
}
.card__title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 32px; height: 1px; background: var(--gold); }

/* Listing card (vertical) */
.listing-card {
  background: var(--dark2); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.5); border-color: var(--gold-45); color: inherit; }
.listing-card__img { position: relative; padding-top: 68%; overflow: hidden; background: var(--dark3); }
.listing-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-card__img img { transform: scale(1.04); }
.listing-card__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.listing-card__title { font-size: 0.913rem; font-weight: 500; line-height: 1.35; }
.listing-card__excerpt { display: none; } /* shown only in the listings list view (pages/listings.css) */
.listing-card__price { font-size: 0.913rem; font-weight: 500; }
.listing-card__price span { color: var(--gold); }
.listing-card__meta { font-size: 0.829rem; color: var(--muted); }
.listing-card__tags { margin-top: auto; padding-top: 8px; }
.section--dark .listing-card { background: var(--dark3); border-color: rgba(255,255,255,0.08); }

/* Listing row (horizontal) */
.listing-row {
  background: var(--dark2); border: 1px solid var(--border-subtle);
  display: grid; grid-template-columns: 280px 1fr; overflow: hidden; position: relative;
  color: inherit; transition: border-color 0.22s;
}
.listing-row:hover { border-color: var(--border); color: inherit; }
.listing-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: 0; transition: opacity 0.22s; }
.listing-row:hover::before { opacity: 1; }
.listing-row__img { position: relative; padding-top: 75%; background: var(--dark3); overflow: hidden; }
.listing-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-row:hover .listing-row__img img { transform: scale(1.04); }
.listing-row__content { padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.listing-row__cats { font-size: 0.766rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.listing-row__title { font-size: 1.05rem; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.listing-row__price { font-size: 0.924rem; color: var(--gold-light); font-weight: 400; margin-bottom: 10px; }
.listing-row__price small { font-size: 0.819rem; color: var(--muted); margin-left: 4px; }
.listing-row__excerpt { font-size: 0.871rem; color: rgba(245,240,232,0.55); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-row__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.819rem; color: var(--muted); }

/* Image overlays */
.overlay-badge { position: absolute; top: 10px; left: 0; z-index: 1; }
.overlay-pill {
  position: absolute; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center; font-size: 0.845rem; transition: all var(--ease);
}
.overlay-pill:hover { background: rgba(201,168,76,0.3); color: var(--gold); }
.overlay-pill--tr { top: 10px; right: 10px; }
.overlay-pill--br { bottom: 10px; right: 10px; }
.overlay-seller { position: absolute; bottom: 10px; left: 10px; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 0.777rem; color: rgba(255,255,255,0.8); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* Badges & tags */
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--gold); color: var(--black); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; }
.badge--red { background: var(--red); color: #fff; }
.badge--green { background: rgba(46,125,50,0.15); color: var(--green); border: 1px solid rgba(46,125,50,0.3); font-weight: 500; }
.badge--pill { justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 0.66rem; font-weight: 700; line-height: 1; letter-spacing: 0; } /* a circle for 1 digit, a rounded pill for more */
/* Package tier tags: one hue, weight increases with tier */
.pkg-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 0.756rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--border-subtle); color: var(--muted); }
.pkg-tag--featured { border-color: var(--gold); color: var(--gold); }
.pkg-tag--allinone { border-color: var(--gold); background: var(--gold); color: var(--black); font-weight: 600; }
.pkg-tag--elite { border-color: var(--gold-light); background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 0.766rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(201,168,76,0.2); color: var(--muted); padding: 2px 8px; white-space: nowrap; transition: all var(--ease); }
.tag--lg { font-size: 0.777rem; padding: 4px 12px; border-color: var(--border); }
.tag:hover { border-color: var(--gold); color: var(--gold); }

/* Lists */
.list-check li, .list-dash li, .list-num li {
  font-size: 0.887rem; color: var(--text-soft); padding: 9px 0; line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: flex-start; gap: 10px;
}
.list-check li:last-child, .list-dash li:last-child, .list-num li:last-child { border-bottom: none; }
.list-check li::before { content: '✓'; color: var(--gold); font-size: 0.829rem; font-weight: 600; flex-shrink: 0; margin-top: 3px; }
.list-dash li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.list-num { counter-reset: item; }
.list-num li { counter-increment: item; }
.list-num li::before { content: counter(item); color: var(--gold); font-size: 0.819rem; font-weight: 500; flex-shrink: 0; min-width: 12px; }
.list--compact li { font-size: 0.845rem; padding: 4px 0; color: var(--muted); }

/* Note / callout */
.note { font-size: 0.871rem; color: var(--muted); line-height: 1.75; border-left: 2px solid rgba(201,168,76,0.35); padding-left: 14px; }
.callout { font-size: 0.871rem; color: var(--muted); line-height: 1.75; padding: 14px 16px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02); }
.callout--gold { border-color: var(--gold-25); background: rgba(201,168,76,0.05); }
.callout--danger { border-color: rgba(220,50,50,0.25); background: rgba(220,50,50,0.04); }
.callout--safe { border-color: rgba(46,125,50,0.3); background: rgba(46,125,50,0.04); }

/* Forms */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 0.803rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 400; }
.field-label .req { color: var(--red-soft); margin-left: 2px; }
.field-label .opt { color: var(--muted2); font-style: italic; font-size: 0.777rem; letter-spacing: normal; text-transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input, .select, .textarea {
  width: 100%; background: #141414; border: 1px solid rgba(255,255,255,0.1); color: var(--white);
  padding: 11px 14px; font-size: 0.892rem; font-weight: 300; outline: none;
  appearance: none; -webkit-appearance: none; transition: border-color var(--ease), background var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(201,168,76,0.5); background-color: var(--dark2); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.select option { background: var(--dark2); }
.select--compact { width: auto; padding: 9px 36px 9px 14px; font-size: 0.845rem; background-color: var(--dark2); border-color: var(--border-subtle); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.input-group { display: flex; }
.input-group .input { flex: 1; border-right: none; }
.input-group .btn { flex-shrink: 0; }
.input-group--light .input { background: rgba(255,255,255,0.96); color: #1a1a1a; border: none; }
.input-group--light .input::placeholder { color: #999; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.882rem; color: var(--muted); line-height: 1.55; }
.check input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--gold); cursor: pointer; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.pw-toggle:hover { color: var(--gold); }

/* Collapse (accordion / expandable banner) */
.collapse__trigger {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 18px; background: var(--dark2); border: 1px solid var(--border-subtle);
  font-size: 0.882rem; color: var(--muted); transition: border-color var(--ease); user-select: none;
}
.collapse__trigger:hover, .collapse__trigger.is-open { border-color: var(--border); }
.collapse__trigger.is-open { border-bottom-color: transparent; }
.collapse__trigger svg { flex-shrink: 0; color: var(--gold); }
.collapse__trigger > span { flex: 1; min-width: 0; }
.collapse__trigger a { pointer-events: none; }
.collapse__trigger .chevron { margin-left: auto; color: var(--muted); transition: transform 0.25s; }
.collapse__trigger.is-open .chevron { transform: rotate(180deg); }
.collapse__panel { display: none; background: var(--dark2); border: 1px solid var(--border); border-top: none; padding: 20px 20px 20px 48px; }
.collapse__panel.is-open { display: block; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 0.756rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: left; font-weight: 500; padding: 0 0 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.887rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table th:last-child, .table td:last-child { text-align: right; }
.table--kv td:first-child { color: var(--white); font-weight: 400; padding: 11px 0; }
.table--kv td:last-child { color: var(--muted); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); background: var(--dark2); color: var(--muted); font-size: 0.861rem; transition: all var(--ease);
}
.pagination a:hover { border-color: var(--border); color: var(--gold); }
.pagination .is-active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 500; }
.pagination span { border: none; background: none; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(5,5,5,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal { background: var(--dark2); border: 1px solid var(--border); max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(24px); transition: transform 0.35s; }
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__header { padding: 28px 32px 22px; border-bottom: 1px solid var(--gold-25); position: relative; background: linear-gradient(135deg, #1a1a18 0%, #181505 100%); }
.modal__header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.modal__title { font-size: 2rem; font-weight: 300; }
.modal__subtitle { font-size: 0.887rem; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.modal__close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all var(--ease); }
.modal__close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.modal__body { padding: 24px 32px 28px; }
.modal__footer { padding: 16px 32px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: 10px; background: rgba(0,0,0,0.2); }

/* Stat card */
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; transition: border-color var(--ease); }
.stat-card:hover { border-color: var(--border); }
.stat-card__icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: rgba(255,255,255,0.08); }
.stat-card__icon--gold { background: rgba(201,168,76,0.2); }
.stat-card__icon--red { background: rgba(220,50,50,0.15); }
.stat-card__icon--green { background: rgba(46,125,50,0.2); }
.stat-card__num { font-family: var(--font-serif); font-size: 2rem; font-weight: 300; line-height: 1; }
.stat-card__label { font-size: 0.808rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.05em; }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--border); padding: 52px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.site-footer p { font-size: 0.871rem; color: rgba(245,240,232,0.45); line-height: 1.85; }
.site-footer .eyebrow { margin-bottom: 14px; display: block; }
.site-footer__logo { text-align: center; }
.site-footer__logo-img { height: 72px; width: auto; margin: 0 auto; }
.site-footer__social { display: flex; gap: 14px; justify-content: center; margin-top: 16px; }
.site-footer__social a { font-size: 0.766rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.site-footer__social a:hover { color: var(--gold); }
.site-footer__newsletter p { margin-bottom: 14px; }
/* Gravity Forms signup (Site Content → Newsletter form), styled as .input-group with .btn--primary.btn--sm */
.site-footer__newsletter .gform_wrapper.gravity-theme { margin: 0; }
.site-footer__newsletter .gform_wrapper.gravity-theme form { display: flex; align-items: flex-start; }
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_body { flex: 1; min-width: 0; }
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_fields { display: block; }
.site-footer__newsletter .gform_wrapper.gravity-theme .gfield { margin: 0; padding: 0; }
.site-footer__newsletter .gform_wrapper.gravity-theme input[type="email"] {
  box-sizing: border-box; width: 100%; height: 44px; margin: 0; background: #141414; border: 1px solid rgba(255,255,255,0.1); border-right: none; border-radius: 0;
  color: var(--white); padding: 9px 14px; font-family: var(--font-sans); font-size: 0.892rem; font-weight: 300; line-height: inherit; outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.site-footer__newsletter .gform_wrapper.gravity-theme input[type="email"]::placeholder { color: var(--faint); }
.site-footer__newsletter .gform_wrapper.gravity-theme input[type="email"]:focus { border-color: rgba(201,168,76,0.5); background-color: var(--dark2); }
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_footer { flex-shrink: 0; margin: 0; padding: 0; }
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_button {
  box-sizing: border-box; height: 44px; margin: 0; padding: 0 20px; background: var(--gold); color: var(--black); border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--font-sans); font-size: 0.798rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: inherit; cursor: pointer; transition: all var(--ease);
}
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_button:hover { background: var(--gold-light); border-color: var(--gold-light); }
.site-footer__newsletter .gform_wrapper.gravity-theme .gfield_error input[type="email"] { border-color: var(--red-soft); }
.site-footer__newsletter .gform_wrapper.gravity-theme .gfield_validation_message,
.site-footer__newsletter .gform_wrapper.gravity-theme .gform_validation_errors { display: none; }
.site-footer__newsletter .gform_wrapper.gravity-theme .gfield_error .gfield_validation_message { display: block; margin: 6px 0 0; padding: 0; background: none; border: none; color: var(--red-soft); font-size: 0.829rem; }
.site-footer__newsletter .gform_confirmation_message,
.site-footer__newsletter .gform_confirmation_message div { padding: 0 !important; background: none !important; text-align: left !important; color: var(--gold); font-size: 0.892rem; } /* the form's message carries inline grey-box styles */
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer__bottom p { font-size: 0.792rem; color: var(--faint); }
.site-footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__links a { font-size: 0.766rem; color: var(--faint); }
.site-footer__links a:hover { color: var(--muted); }

/* 5. UTILITIES ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-green { color: var(--green); }
.text-sm { font-size: 0.871rem; }
.text-xs { font-size: 0.829rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.divider { border-top: 1px solid var(--border-subtle); margin: 20px 0; }
.fade-up { opacity: 0; animation: fadeUp 0.7s forwards; }
.fade-up.d1 { animation-delay: 0.1s; } .fade-up.d2 { animation-delay: 0.2s; } .fade-up.d3 { animation-delay: 0.35s; } .fade-up.d4 { animation-delay: 0.45s; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* 6. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .nav-avatar span:last-child { display: none; }
}
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --nav-h: 76px; }
  .nav-logo img { height: 50px; }
  .nav-links { display: none; }
  .site-nav { grid-template-columns: auto 1fr; }
  .nav-cta { grid-column: 2; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .listing-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  html { font-size: 100%; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav-cta { gap: 12px; }
}
