/**
 * page-brothers-in-business.css
 *
 * Scoped styles for template-brothers-in-business.php only.
 * Global elements (reset, body, nav, breadcrumb, footer, .container,
 * .seo-h1, .hero-headline, .page-hero base) are in main.css.
 *
 * References:
 *   psi-sigma-phi-brothers-in-business.html  — layout & component source
 *   psi-sigma-phi-theme-spec-v4.3.md         — design tokens
 *   psi-sigma-phi-acf-schema-v3.4.md         — field definitions
 */

/* ─────────────────────────────────────────────
   PAGE HERO — BIB-SPECIFIC OVERRIDES
   Base .page-hero padding/border is in main.css.
   These additions are unique to this template.
───────────────────────────────────────────── */
.bib-page .page-hero {
  padding: 88px 0 72px;
  overflow: hidden;
}

/* Ghost watermark text behind the hero */
.bib-page .page-hero::before {
  content: "Business";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(100px, 14vw, 200px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 184, 184, 0.05);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Hero eyebrow line */
.bib-page .page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.bib-page .page-hero .eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--silver);
  display: inline-block;
  flex-shrink: 0;
}

/* Hero lead paragraph */
.bib-page .page-hero .hero-lead {
  font-size: 17px;
  color: var(--silver-light);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

/* Hero CTA button */
.bib-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--white);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.bib-hero-cta:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.bib-hero-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bib-hero-cta:hover svg {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   DIRECTORY SECTION
───────────────────────────────────────────── */
.biz-section {
  padding: 72px 0 100px;
}

/* Listing count line */
.biz-count {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  margin-bottom: 32px;
}

.biz-count strong {
  color: var(--silver);
}

/* ─────────────────────────────────────────────
   FILTER BUTTONS
───────────────────────────────────────────── */
.biz-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(184, 184, 184, 0.2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}

.filter-btn:hover {
  border-color: rgba(184, 184, 184, 0.5);
  color: var(--silver-light);
}

.filter-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ─────────────────────────────────────────────
   BUSINESS GRID
───────────────────────────────────────────── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-gap);
  border: 1px solid var(--grid-gap);
}

/* ─────────────────────────────────────────────
   BUSINESS CARD
   Light-coloured card, dark text — inverted from
   the global dark-card pattern.
───────────────────────────────────────────── */
.biz-card {
  background: var(--light-card);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
}

/* Left accent bar on hover */
.biz-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--black);
  transition: width 0.25s;
  z-index: 0;
  opacity: 0.06;
}

.biz-card:hover {
  background: var(--light-hover);
}

.biz-card:hover::before {
  width: 3px;
}

/* Ensure all direct children clear the ::before pseudo */
.biz-card > * {
  position: relative;
  z-index: 1;
}

/* ── Logo area ── */
.biz-logo {
  width: 100%;
  aspect-ratio: 5 / 3;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.biz-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  filter: none;
  display: block;
}

/* Fallback placeholder when no logo image exists */
.biz-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: rgba(0, 0, 0, 0.2);
}

.biz-logo-initials {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
}

/* ── Card body ── */
.biz-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category pill — overlaid top-right of the logo area */
.biz-category {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  padding: 4px 9px;
  line-height: 1;
  /* No border-radius — keeps the sharp geometric feel of the design */
}

/* Owner / brother name */
.biz-brother {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Business name */
.biz-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
}

/* Tagline */
.biz-tagline {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
}

/* ── Contact detail rows ── */
.biz-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.biz-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #444;
  line-height: 1.45;
  font-weight: 400;
}

.biz-detail svg {
  flex-shrink: 0;
  color: #777;
  margin-top: 1px;
}

.biz-detail a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.biz-detail a:hover {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Social link pills ── */
.biz-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.biz-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #555;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
}

.biz-social:hover {
  border-color: var(--black);
  color: var(--black);
  background: rgba(0, 0, 0, 0.04);
}

.biz-social svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   SUBMIT CTA BANNER
───────────────────────────────────────────── */
.biz-cta {
  margin-top: 64px;
  background: var(--black-2);
  border: 1px solid rgba(184, 184, 184, 0.1);
  border-top: 2px solid rgba(184, 184, 184, 0.2);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.biz-cta-text h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.biz-cta-text p {
  font-size: 14px;
  color: var(--silver-dark);
  line-height: 1.65;
  font-weight: 300;
  max-width: 480px;
}

.btn-submit-listing {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--white);
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-submit-listing:hover {
  background: var(--black);
  color: var(--white);
}

.btn-submit-listing svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-submit-listing:hover svg {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.biz-empty {
  color: var(--silver-dark);
  text-align: center;
  padding: 64px 0;
  font-size: 15px;
  font-weight: 300;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bib-page .page-hero {
    padding: 56px 0 48px;
  }

  .bib-page .page-hero::before {
    display: none;
  }

  .biz-section {
    padding: 48px 0 72px;
  }

  .biz-cta {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .biz-grid {
    grid-template-columns: 1fr;
  }
}