/*
  Advisor directory styles (custom page). Scoped under .page-advisors and made
  specific enough to win over the site-wide Divi CSS the page also loads.
  Matches the How to Fascinate brand: white ground, warm ink, one burnt-orange
  accent, the site's own loaded body font, subtle hover only. A few properties
  use !important solely to override Divi's list/base resets on our markup.
*/
body.page-advisors {
  --fca-ink: #1f1d1b;
  --fca-muted: #6c6863;
  --fca-line: #e7e3dd;
  --fca-accent: #d35d1a;      /* burnt orange, AA on white for small text */
  --fca-radius: 10px;
}

/* Layout container */
body.page-advisors .advisors {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
body.page-advisors .advisors > h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fca-ink);
  margin: 0 0 1.5rem;
}

/* Filter / sort bar */
body.page-advisors .advisors__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: end;
  padding: 1.25rem;
  border: 1px solid var(--fca-line);
  border-radius: var(--fca-radius);
  background: #fbfaf8;
  margin: 0 0 1.25rem;
}
body.page-advisors .advisors__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fca-muted);
}
body.page-advisors .advisors__controls input,
body.page-advisors .advisors__controls select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--fca-ink);
  padding: 0.6rem 0.7rem;
  min-height: 44px;
  border: 1px solid var(--fca-line);
  border-radius: 8px;
  background: #fff;
  appearance: none;
}
body.page-advisors #advisor-search {
  min-width: 240px;
  flex: 1 1 240px;
}
body.page-advisors .advisors__controls input:focus,
body.page-advisors .advisors__controls select:focus {
  outline: none;
  border-color: var(--fca-accent);
  box-shadow: 0 0 0 3px rgba(211, 93, 26, 0.18);
}
body.page-advisors .advisors__count {
  font-size: 0.85rem;
  color: var(--fca-muted);
  margin: 0 0 1.5rem;
}

/* Card grid */
body.page-advisors .advisors__grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.75rem 1.5rem;
}
body.page-advisors .advisor-card {
  list-style: none !important;
  margin: 0 !important;
}
body.page-advisors .advisor-card[hidden] { display: none !important; }

body.page-advisors .advisor-card > a {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--fca-ink);
  border: 1px solid var(--fca-line);
  border-radius: var(--fca-radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body.page-advisors .advisor-card > a:hover {
  transform: translateY(-3px);
  border-color: #d9d3ca;
  box-shadow: 0 12px 28px rgba(31, 29, 27, 0.12);
}
body.page-advisors .advisor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f0ece5;
}
body.page-advisors .advisor-card__name {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  padding: 0.85rem 0.9rem 0;
}
body.page-advisors .advisor-card__archetype {
  padding: 0.3rem 0.9rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fca-accent);
}
body.page-advisors .advisor-card__country {
  padding: 0.15rem 0.9rem 0.95rem;
  font-size: 0.85rem;
  color: var(--fca-muted);
}

/* Empty state */
body.page-advisors .advisors__empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--fca-muted);
  border: 1px dashed var(--fca-line);
  border-radius: var(--fca-radius);
}

@media (max-width: 560px) {
  body.page-advisors .advisors__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem 1rem;
  }
}
