/* JBD Planters components: header + footer cloned from jbdplanters.com, plus the Our Finishes page layout.
   Every class prefixed jbd- so it can live in WP Additional CSS without touching other pages.
   Colors/fonts only from jbd-live-tokens.css. */

/* ---------- Top bar (rust strip: shipping + returns left, phone right) ---------- */
.jbd-topbar { background: var(--surface-accent); color: var(--base-3); }
.jbd-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 40px; max-width: var(--container); margin-inline: auto; }
.jbd-topbar-group { display: flex; align-items: center; gap: 18px; }
.jbd-topbar .eyebrow { color: var(--base-3); margin: 0; display: inline-flex; align-items: center; gap: .5em; }
.jbd-topbar .jbd-icon { width: 15px; height: 15px; }
.jbd-topbar-sep { opacity: .7; }

/* ---------- Header (cream-100, logo 100px, centered Jost menu, icons right) ---------- */
.jbd-header { background: var(--cream-100); position: relative; z-index: 10; padding: 20px 40px; }
.jbd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: var(--container); margin-inline: auto; }
.jbd-logo { padding-left: 20px; }
.jbd-logo img { width: 100px; height: auto; }
.jbd-nav { flex: 1; padding-left: 38px; } /* puts the menu centre where it sits on live (722px on a 1440 screen) */
.jbd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 44px; }
.jbd-nav a {
  display: block; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid transparent;
  font: 600 13px/1.4 var(--font-body); letter-spacing: .88px; text-transform: uppercase;
  color: #000; /* live link color is var(--deep-ocean), which the site never defines, so it renders black */
}
.jbd-nav a:hover { border-bottom-color: var(--surface-accent); }
.jbd-nav a[aria-current="page"] { color: var(--gold-500); }
.jbd-utils { display: flex; align-items: center; gap: 24px; margin-right: 40px; }
.jbd-utils a { color: var(--surface-inverse); display: inline-flex; position: relative; }
.jbd-utils .jbd-icon { width: 20px; height: 20px; }
.jbd-cart { position: relative; display: inline-flex; }
.jbd-utils .jbd-cart .jbd-icon { width: 26px; height: 26px; }
/* WooCommerce mini-cart badge geometry (left 100%, -44%, 1.43em circle), gold-500 fill as on live */
.jbd-cart-count {
  position: absolute; left: 100%; top: 0; margin-left: -44%; transform: translateY(-50%);
  min-width: 1.43em; height: 1.43em; padding: 0 .25em; border-radius: 1em; display: flex; align-items: center; justify-content: center;
  background: var(--gold-500); color: var(--base-3); font: 400 15px/1 var(--font-body);
}
.jbd-icon { width: 20px; height: 20px; flex: none; }
.jbd-menu-toggle { display: none; }

@media (max-width: 1024px) {
  .jbd-topbar-inner { padding-inline: 20px; }
  .jbd-topbar-group:last-child { display: none; }
  .jbd-header { padding: 16px 20px; }
  .jbd-logo { padding-left: 0; }
  .jbd-utils { margin-right: 0; }
  .jbd-header-inner { flex-wrap: wrap; gap: 16px; }
  .jbd-logo img { width: 80px; }
  .jbd-utils { margin-left: auto; gap: 18px; }
  .jbd-menu-toggle { display: inline-flex; order: 3; background: none; border: 0; padding: 0; color: var(--surface-accent); cursor: pointer; }
  .jbd-menu-toggle .jbd-icon { width: 32px; height: 32px; }
  .jbd-nav { order: 4; flex-basis: 100%; display: none; padding-left: 0; }
  .jbd-header.is-open .jbd-nav { display: block; }
  .jbd-nav ul { flex-direction: column; }
  .jbd-nav a { font-size: 15px; padding-block: 14px; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero: centered H1 / sub / button, then full-bleed photo band ---------- */
.jbd-hero { text-align: center; padding-block: 64px 56px; }
.jbd-hero-copy { display: grid; justify-items: center; }
.jbd-hero-sub { font-size: 17px; line-height: 1.6; color: var(--contrast); max-width: 46ch; margin-block: 18px 30px; }
.jbd-hero-photo { width: 100%; aspect-ratio: 4 / 1; min-height: 200px; max-width: 100%; overflow: hidden; background: var(--cream-100); }
.jbd-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Finish groups: generous section padding, h2 + hairline + count ---------- */
.jbd-finishes { display: grid; gap: clamp(64px, 6vw, 96px); padding-block: clamp(72px, 7vw, 112px) 40px; }
.jbd-group { display: grid; gap: 32px; }
.jbd-group-head { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.jbd-group-head .h2 { margin: 0; }
.jbd-group-head::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--line); }
.jbd-group-count { order: 3; margin: 0; white-space: nowrap; color: var(--surface-inverse); font-variant-numeric: tabular-nums; }

/* Same 5-column track for every family so all cards share one size; short families stay left-aligned */
.jbd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .jbd-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 820px)  { .jbd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .jbd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Card: white, hairline, inner padding; swatch is a 3:2 landscape rectangle */
.jbd-card { background: var(--base-3); border: 1px solid var(--line); border-radius: 2px; padding: 10px; display: grid; transition: box-shadow .2s, transform .2s; }
.jbd-card:hover { box-shadow: 0 10px 24px rgb(4 34 51 / 8%); transform: translateY(-2px); }
.jbd-card-chip { position: relative; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--cream-100); }
.jbd-card-chip img { width: 100%; height: 100%; object-fit: cover; }
.jbd-card-code { position: absolute; left: 12px; top: 12px; margin: 0; font-size: 12px; color: var(--base-3); }
.jbd-card.is-light .jbd-card-code { color: var(--surface-inverse); }
.jbd-card-name { font-size: 14px; color: var(--surface-inverse); line-height: 1.35; padding: 12px 4px 4px; }

.jbd-disclaimer { text-align: center; color: var(--contrast-2); font-size: 15px; padding-block: 0 72px; }

/* ---------- CTA band: rust (surface-accent), Playfair question left, divider, stacked buttons right ---------- */
.jbd-cta { background: var(--surface-accent); }
.jbd-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: center; padding-block: 64px; }
.jbd-cta .h2 { color: var(--base-3); margin: 0; padding-left: clamp(0px, 2vw, 32px); }
.jbd-cta-divider { align-self: stretch; background: rgb(244 234 222 / 30%); }
.jbd-cta-actions { display: grid; gap: 16px; max-width: 460px; }
.jbd-cta-actions a { width: 100%; }
@media (max-width: 820px) {
  .jbd-cta-inner { grid-template-columns: 1fr; padding-block: 48px; }
  .jbd-cta .h2 { padding-left: 0; }
  .jbd-cta-divider { height: 1px; }
  .jbd-cta-actions { max-width: none; }
}

/* ---------- Footer: navy newsletter + 3 promises, sand bar with links/social, sand payment row ---------- */
.jbd-footer-top { background: var(--surface-inverse); color: var(--cream-100); }
.jbd-footer-top-inner { display: grid; grid-template-columns: 1fr 1.75fr; gap: 40px; padding: 40px; max-width: var(--container); margin-inline: auto; }
.jbd-footer .h3 { color: var(--base-3); margin-bottom: 20px; }
.jbd-newsletter { display: flex; height: 38px; }
.jbd-newsletter input {
  width: 176px; min-width: 0; font: 400 14px var(--font-body); color: var(--cream-100); background: transparent;
  border: 1px solid rgb(244 234 222 / 22%); border-right: 0; padding: 0 12px; border-radius: 0;
}
.jbd-newsletter input::placeholder { color: rgb(244 234 222 / 70%); }
.jbd-newsletter button { font: 500 14px var(--font-body); text-transform: uppercase; color: var(--base-3); background: var(--gold-600); border: 0; padding: 0 17px; cursor: pointer; }
.jbd-newsletter button:hover { background: var(--gold-700); }
.jbd-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-self: center; }
.jbd-promise { display: flex; gap: 16px; align-items: flex-start; padding-left: 20px; border-left: 1px solid rgb(244 234 222 / 22%); }
.jbd-promise:first-child { border-left: 0; padding-left: 0; }
.jbd-promise .jbd-icon { width: 26px; height: 26px; color: var(--gold-500); }
.jbd-promise .eyebrow { color: var(--gold-500); margin-bottom: 7px; }
.jbd-promise p:last-child { font-size: 13px; line-height: 1.5; color: var(--cream-100); max-width: 170px; }

.jbd-footer-bar { background: var(--surface-sand); color: var(--surface-inverse); border-bottom: 1px solid var(--line); }
.jbd-footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 40px; max-width: var(--container); margin-inline: auto; }
.jbd-footer-copy { font-size: 11px; font-weight: 500; }
.jbd-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 40px; row-gap: 8px; }
.jbd-footer-links a { text-decoration: none; }
.jbd-footer-links .eyebrow { color: var(--surface-inverse); margin: 0; }
.jbd-footer-links a:hover .eyebrow { color: var(--surface-accent); }
.jbd-social { display: flex; gap: 17px; }
.jbd-social a { color: var(--surface-inverse); display: inline-flex; }
.jbd-social .jbd-icon { width: 17px; height: 17px; }
.jbd-pay { background: var(--surface-sand); }
.jbd-pay-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding-block: 10px; }
.jbd-pay .eyebrow { color: var(--surface-inverse); margin: 0 6px 0 0; }
.jbd-pay .payment-icon { width: 38px; height: 24px; }
@media (max-width: 1024px) {
  .jbd-footer-top-inner { grid-template-columns: 1fr; padding-inline: 20px; }
  .jbd-promises { grid-template-columns: 1fr; }
  .jbd-promise { border-left: 0; padding-left: 0; }
  .jbd-footer-bar-inner { flex-direction: column; align-items: flex-start; padding-inline: 20px; }
  .jbd-footer-links { flex-direction: column; }
  .jbd-pay-inner { justify-content: flex-start; padding-inline: 20px; }
}

/* ---------- Mockup banner (remove in WP) ---------- */
.jbd-mockbar { background: var(--surface-inverse); color: var(--cream-100); font: 500 12.5px/1.4 var(--font-body); text-align: center; padding: 8px 16px; }
.jbd-mockbar a { color: inherit; font-weight: 600; }
