/* ============================================================
   Shop page — Shop Our Brands
   ============================================================
   Slim hero on Deep Teal, brand-card grid, affiliate disclosure,
   bottom consultation CTA. Reuses tokens from site.css.
   ============================================================ */

/* ---------- Slim hero (Ivory — LOCKED direction) ---------- */
.shop-hero {
  background: var(--c-ivory);
  color: var(--c-ink);
  padding-top: 96px;
  padding-bottom: 64px;
}
@media (max-width: 767px) {
  .shop-hero { padding-top: 64px; padding-bottom: 48px; }
}
.shop-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}
.shop-hero-rule {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 1px;
  height: 96px;
  background: var(--c-sea);
  opacity: 0.5;
}
@media (max-width: 767px) {
  .shop-hero-rule { left: 0; height: 64px; }
}
.shop-hero-wrap {
  padding-left: 32px;
  position: relative;
}
@media (max-width: 767px) {
  .shop-hero-wrap { padding-left: 16px; }
}
.shop-hero .eyebrow { margin-bottom: 20px; color: var(--c-sea-text); }
.shop-hero .eyebrow::before { background: var(--c-sea); }
.shop-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0 0 20px;
  max-width: 22ch;
}
@media (max-width: 767px) {
  .shop-hero h1 { font-size: 38px; line-height: 1.1; }
}
.shop-hero .shop-hero-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 767px) {
  .shop-hero .shop-hero-sub { font-size: 16px; }
}

/* ---------- Intro band ---------- */
.shop-intro {
  background: var(--c-ivory);
  padding: 80px 24px 24px;
}
@media (max-width: 767px) {
  .shop-intro { padding: 56px 24px 16px; }
}
.shop-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.shop-intro p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  margin: 0 0 32px;
}
@media (max-width: 767px) {
  .shop-intro p { font-size: 16px; }
}
.shop-intro .shop-intro-cta {
  display: inline-flex;
}

/* ---------- Brand grid ---------- */
.shop-brands {
  background: var(--c-ivory);
  padding: 48px 24px 96px;
}
@media (max-width: 767px) {
  .shop-brands { padding: 32px 24px 72px; }
}
.shop-brands-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.shop-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1023px) {
  .shop-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 639px) {
  .shop-brand-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Brand card ---------- */
.brand-card {
  background: var(--c-ivory);
  border: 1px solid var(--c-stone);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    transform var(--d-hover) var(--ease-out),
    border-color var(--d-hover) var(--ease-out),
    box-shadow var(--d-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-sea);
    box-shadow: 0 12px 28px rgba(15, 79, 87, 0.10);
  }
}
.brand-card:focus-visible {
  outline: 3px solid var(--c-deep);
  outline-offset: 3px;
}

/* Brand logo area — holds a full-bleed marketing panel image
   (square 1:1). Falls back to a typographic placeholder when no
   image is provided. */
.brand-card-logo {
  background: var(--c-ivory);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid var(--c-stone);
  position: relative;
  overflow: hidden;
}
/* When an image is in place we don’t need the mint/pearl backdrop —
   the panels carry their own background. The :has() rule keeps the
   tint only for the typographic placeholder fallback. */
.brand-card-logo:not(:has(.brand-card-logo-img)) {
  background: var(--c-mint);
  padding: 24px;
}
.shop-brand-grid > .brand-card:nth-child(3n + 2) .brand-card-logo:not(:has(.brand-card-logo-img)) {
  background: var(--c-pearl);
}
.brand-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* The marketing panels already include the brand mark; let them
     fill the slot edge-to-edge with a gentle scale-on-hover. */
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand-card:hover .brand-card-logo-img { transform: scale(1.03); }
}
/* The text placeholder shown until real <img> logos replace it */
.brand-card-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-deep);
  text-align: center;
  margin: 0;
  max-width: 90%;
}
@media (max-width: 767px) {
  .brand-card-logo-placeholder { font-size: 22px; }
}

.brand-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (max-width: 767px) {
  .brand-card-body { padding: 24px 22px 22px; }
}
.brand-card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-deep);
  margin: 0 0 12px;
  letter-spacing: 0;
}
.brand-card-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0 0 24px;
  flex: 1;
}
.brand-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--c-deep);
  color: var(--c-ivory);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition:
    transform var(--d-hover) var(--ease-out),
    box-shadow var(--d-hover) var(--ease-out),
    background-color var(--d-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand-card-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 79, 87, 0.18);
  }
}
.brand-card-cta:active {
  transform: scale(0.97);
  transition-duration: var(--d-press);
}
.brand-card-cta .ext-icon {
  flex-shrink: 0;
  margin-left: 2px;
}

/* Visually-hidden helper (for "(opens in a new tab)" text) */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Affiliate disclosure band ---------- */
.shop-disclosure {
  background: var(--c-pearl);
  padding: 40px 24px;
  border-top: 1px solid var(--c-stone);
  border-bottom: 1px solid var(--c-stone);
}
.shop-disclosure-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 639px) {
  .shop-disclosure { padding: 32px 24px; }
  .shop-disclosure-inner { gap: 12px; }
}
.shop-disclosure-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-sea);
}
.shop-disclosure-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
}
.shop-disclosure-text strong {
  font-weight: 600;
  color: var(--c-ink);
}

/* ---------- Bottom consultation block (mirrors legal-contact tone) ---------- */
.shop-consult {
  background: var(--c-mint);
  padding: 96px 24px;
}
@media (max-width: 767px) {
  .shop-consult { padding: 72px 24px; }
}
.shop-consult-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.shop-consult .gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  margin: 0 auto 24px;
}
.shop-consult h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-deep);
  margin: 0 auto 16px;
  max-width: 22ch;
}
@media (max-width: 767px) {
  .shop-consult h2 { font-size: 28px; }
}
.shop-consult p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 auto 32px;
  max-width: 52ch;
}
@media (max-width: 767px) {
  .shop-consult p { font-size: 16px; }
}
