/* =====================================================================
   THEME v2 — shared upgrade layer
   ---------------------------------------------------------------------
   Loaded AFTER site.css. Every colour here comes from tokens.css, so this
   one file re-skins itself per site: warm retail on Consignment, cool
   industrial on Warehousing, navy/brass and sage/terracotta on the two
   real estate sites.

   Additive by design — no existing class is redefined out from under
   site.css, so nothing in the FSWD renderer breaks.

   Also carries the components the brief asks for that site.css has no
   vocabulary for:
     .inv-*    inventory card + sold badge      (raw.pdf p4, p6)
     .flow     Next Move Program service flow   (Realtor PDF 5)
     .aud-*    audience cards                   (raw.pdf p15, Realtor PDF 5)
     .tstrip   trust strip
   ===================================================================== */

/* ---------- fluid type: no breakpoint jumps ------------------------- */
:root {
  --fs-xs:   clamp(.75rem,  .72rem + .15vw, .8125rem);
  --fs-sm:   clamp(.875rem, .85rem  + .15vw, .9375rem);
  --fs-base: clamp(1rem,    .97rem  + .18vw, 1.0625rem);
  --fs-lg:   clamp(1.125rem,1.07rem + .3vw,  1.25rem);
  --fs-xl:   clamp(1.25rem, 1.15rem + .5vw,  1.5rem);
  --fs-2xl:  clamp(1.5rem,  1.32rem + .9vw,  2rem);
  --fs-3xl:  clamp(1.875rem,1.55rem + 1.6vw, 2.75rem);
  --fs-4xl:  clamp(2.25rem, 1.7rem  + 2.7vw, 3.75rem);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: .16s;
  --dur: .28s;

  --shadow-lg: 0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 56px rgba(0,0,0,.13), 0 8px 16px rgba(0,0,0,.05);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.022em; }
h1 { letter-spacing: -.032em; }
h2 { letter-spacing: -.026em; }
p  { text-wrap: pretty; }
p, li { max-width: 72ch; }

::selection { background: var(--green-050); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- eyebrow ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--fs-xs); font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: var(--s2);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
  background: var(--ribbon);
}
.eyebrow--on-dark { color: var(--on-dark-2); }

.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); }

/* ---------- buttons: lift + shadow ---------------------------------- */
.btn, .button, a.btn {
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

/* ---------- cards --------------------------------------------------- */
.card {
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* ---------- trust strip --------------------------------------------- */
.tstrip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2) var(--s5);
  padding: var(--s3) 0;
  border-block: 1px solid var(--line);
}
.tstrip__item {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.tstrip__item svg, .tstrip__item i { color: var(--green-text); flex: none; }

/* =====================================================================
   INVENTORY CARD — Consignment
   raw.pdf p4/p6: photo, name, price, dimensions, condition, brand,
   available/sold, category, item number. Sold badge required.
   ===================================================================== */
.inv-grid {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.inv-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.inv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.inv-card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--surface-3); overflow: hidden;
}
.inv-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.inv-card:hover .inv-card__media img { transform: scale(1.04); }
.inv-card__body { padding: var(--s2) var(--s2) var(--s3); display: grid; gap: 6px; }
.inv-card__name { font-size: var(--fs-base); font-weight: 650; color: var(--ink); margin: 0; }
.inv-card__meta { font-size: var(--fs-xs); color: var(--ink-3); }
.inv-card__price {
  font-family: var(--font-head);
  font-size: var(--fs-lg); font-weight: 700; color: var(--green-text);
}

/* status badges — sold must be unmistakable */
.inv-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: .3em .7em;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.inv-badge--new  { background: var(--green-text); color: #fff; }
.inv-badge--sold { background: var(--ink); color: #fff; }
.inv-card--sold .inv-card__media img { filter: grayscale(1) opacity(.55); }
.inv-card--sold .inv-card__price { color: var(--ink-3); text-decoration: line-through; }

/* =====================================================================
   SERVICE FLOW — "The Next Move Program"
   Realtor PDF 5: Real Estate -> Moving -> Storage -> Consignment/Delivery
   Also used by raw.pdf p20's designer workflow.
   ===================================================================== */
.flow {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: var(--s2);
  list-style: none; margin: 0; padding: 0;
  counter-reset: flow;
}
.flow__step {
  counter-increment: flow;
  flex: 1 1 12rem; min-width: 11rem;
  position: relative;
  padding: var(--s3) var(--s2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.flow__step::before {
  content: counter(flow);
  display: grid; place-items: center;
  width: 2.1rem; aspect-ratio: 1; margin: 0 auto var(--s1);
  border-radius: 999px;
  background: var(--green-050); color: var(--green-text);
  font-weight: 700; font-size: var(--fs-sm);
}
/* connector chevron — hidden when the row wraps and on mobile */
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(var(--s2) * -1);
  width: var(--s2); height: 2px; background: var(--line);
}
@media (max-width: 720px) { .flow__step:not(:last-child)::after { display: none; } }
.flow__title { font-size: var(--fs-base); font-weight: 650; color: var(--ink); }
.flow__note  { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 4px; }

/* =====================================================================
   AUDIENCE CARDS — "Who We Help" / "Choose Your Situation"
   raw.pdf p15 (designers, builders, Realtors, businesses, homeowners)
   Realtor PDF 5 (four situation cards)
   ===================================================================== */
.aud-grid {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.aud-card {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.aud-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.aud-card__icon {
  display: grid; place-items: center;
  width: 2.75rem; aspect-ratio: 1; margin-bottom: var(--s1);
  border-radius: var(--radius-sm);
  background: var(--green-050); color: var(--green-text);
  font-size: 1.25rem;
}
.aud-card__title { font-size: var(--fs-lg); font-weight: 650; color: var(--ink); margin: 0; }
.aud-card__body  { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.aud-card__cta {
  margin-top: auto; padding-top: var(--s2);
  font-size: var(--fs-sm); font-weight: 650; color: var(--green-text);
}
.aud-card__cta::after { content: " \2192"; transition: transform var(--dur) var(--ease-out); display: inline-block; }
.aud-card:hover .aud-card__cta::after { transform: translateX(3px); }

/* =====================================================================
   MEDIA
   ===================================================================== */
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--surface-3);
}
.media-frame img, .media-frame video { display: block; width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s1); }

/* =====================================================================
   DARK / MESH BANDS
   ===================================================================== */
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark p { color: var(--on-dark-2); }

.band-mesh { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); }
.band-mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background:
    radial-gradient(60rem 30rem at 8% 0%,   var(--green-050), transparent 60%),
    radial-gradient(50rem 26rem at 92% 100%, var(--amber-050), transparent 60%);
}
.band-mesh h2 { color: var(--on-dark); }
.band-mesh p  { color: var(--on-dark-2); }

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */
.skip-link {
  position: absolute; left: var(--s2); top: -100%; z-index: 999;
  padding: var(--s2) var(--s3);
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm); font-weight: 650;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--s2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  .btn, .btn-row, .tstrip, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* =====================================================================
   BRAND LOCKUP
   brand.logo_mark is TODO_ on every new site until real marks exist.
   A deliberate monogram reads as a design decision; a broken <img> does not.
   Swap automatically once brand.logo_mark is filled in — no CSS change needed.
   ===================================================================== */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }

.brand__monogram {
  display: grid; place-items: center;
  width: 57px; height: 57px; flex: none;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.425rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 15ch;
}
.brand[style*="#fff"] .brand__name { color: #fff; }

@media (max-width: 900px) { .brand__name { max-width: 11ch; font-size: .95rem; } }

/* ---------- photo gallery ------------------------------------------- */
.gallery__item {
  margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-3);
  box-shadow: var(--shadow-sm);
}
.gallery__item picture { display: block; }
.gallery__img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery__item:hover .gallery__img { transform: scale(1.04); }

.gallery--tall .gallery__img { aspect-ratio: 3 / 4; }
.gallery--wide .gallery__img { aspect-ratio: 16 / 9; }

/* single feature image */
.feature-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-photo img { display: block; width: 100%; height: auto; }

/* ---------- split: photograph beside copy ---------------------------- */
.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  /* The image is source-ordered second so it reads after the copy on a phone
     and in a screen reader; flip only reverses the visual columns. */
  .split--flip .split__copy  { order: 2; }
  .split--flip .split__media { order: 1; }
}
.split__copy > .lede { max-width: none; }
.split__media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* consign form extras */
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input[type="file"] {
  width: 100%; padding: .7em; font: inherit; font-size: .9rem;
  background: var(--surface-2); border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.field input[type="file"]:hover { border-color: var(--green); }
.field__hint { font-size: .78rem; color: var(--ink-3); margin-top: .35em; }
