/* professions-shared.css - /building-professions/ section */
/* Reuses .gloss-main, .gloss-breadcrumb-strip, .gloss-sidebar-* from glossary-shared.css */

/* ---- Individual profession page ---- */

.prof-def-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
  margin-bottom: 28px;
}

.prof-def-header {
  padding: 28px 28px 22px;
  border-bottom: 1.5px solid var(--light);
}

.prof-def-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.prof-def-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -.3px;
  line-height: 1.15;
}

.prof-strapline {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

.prof-def-body { padding: 0 28px 28px; }

.prof-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--light);
}

.prof-section:last-child { border-bottom: none; padding-bottom: 0; }
.prof-section:first-child { padding-top: 0; }

.prof-section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}

/* What they do */
.prof-what-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text);
  font-size: .93rem;
  line-height: 1.75;
}
.prof-what-list li { margin-bottom: 3px; }

/* When you need one */
.prof-when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.prof-when-chip {
  background: var(--light);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.prof-when-chip::before { content: none; }
@media (max-width: 500px) {
  .prof-when-grid { grid-template-columns: 1fr; }
}

/* Costs */
.prof-cost-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.prof-cost-table tr { border-bottom: 1px solid var(--light); }
.prof-cost-table tr:last-child { border-bottom: none; }
.prof-cost-table td { padding: 9px 4px; color: var(--text); vertical-align: top; }
.prof-cost-table td:last-child {
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
  padding-left: 16px;
}
.prof-cost-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 10px 0 0;
  font-style: italic;
}

/* Qualifications */
.prof-qual-list { display: flex; flex-direction: column; gap: 8px; }
.prof-qual-box {
  background: #eef2ff;
  border-left: 3px solid #3b5bdb;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.prof-qual-name {
  font-weight: 800;
  color: var(--navy);
  font-size: .88rem;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  margin-bottom: 3px;
}
.prof-qual-desc {
  font-size: .83rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.prof-qual-note {
  background: #fff8e1;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: .84rem;
  color: #5c4000;
  line-height: 1.5;
  margin-top: 10px;
}

/* How to find */
.prof-find-list { display: flex; flex-direction: column; gap: 6px; }
.prof-find-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--light);
  border-radius: 8px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  transition: background .15s;
  gap: 10px;
}
.prof-find-link:hover { background: #dde4ef; }
.prof-find-link svg { flex-shrink: 0; margin-top: 2px; }
.prof-find-body { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.prof-find-tip { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* ---- Category hub page ---- */
/* Reuses .gloss-listing-* classes from glossary-shared.css */

/* ---- Landing page ---- */

.prof-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(rgba(12,20,40,.75) 0%, rgba(12,20,40,.6) 50%, rgba(12,20,40,.75) 100%),
              url('/images/building-terms-explained.webp') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 128px 24px 113px;
}
.prof-hero-content { max-width: 660px; width: 100%; text-align: center; }
.prof-hero-pill {
  display: inline-block;
  background: rgba(245,166,35,.2); border: 1px solid rgba(245,166,35,.4);
  color: var(--gold); font-size: .72rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 22px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.prof-hero h1 { font-size: clamp(1.9rem,5vw,2.9rem); font-weight: 900; color: #fff; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px; }
.prof-hero h1 span { color: var(--gold); font-style: normal; }
.prof-hero-sub { font-size: 1rem; color: rgba(255,255,255,.78); line-height: 1.65; margin: 0 auto; max-width: 520px; font-family: 'Roboto Condensed',Arial,sans-serif; }

.prof-hub-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 24px 60px; }
.prof-hub-intro { font-size: 1rem; color: var(--text); line-height: 1.75; margin-bottom: 36px; max-width: 720px; }

.prof-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .prof-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prof-cat-grid { grid-template-columns: 1fr; } }

.prof-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
  border: 1.5px solid transparent;
}
.prof-cat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
  border-color: var(--gold);
}
.prof-cat-icon { font-size: 1.6rem; margin-bottom: 10px; line-height: 1; }
.prof-cat-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Roboto Condensed', Arial, sans-serif;
  margin-bottom: 4px;
}
.prof-cat-count {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 700;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.prof-cat-desc { font-size: .83rem; color: var(--muted); line-height: 1.55; flex: 1; }
.prof-cat-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Roboto Condensed', Arial, sans-serif;
  margin-top: 14px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .prof-def-card, .prof-cat-card { background: #1a2235; }
  .prof-when-chip { background: #1e2a40; }
  .prof-qual-box { background: #1a2550; border-left-color: #6683d4; }
  .prof-qual-name { color: #a0b4f0; }
  .prof-qual-note { background: #2a2000; color: #d4b060; }
  .prof-find-link { background: #1e2a40; color: #c0d0e8; }
  .prof-find-link:hover { background: #263550; }
  .prof-find-tip { color: #8090a8; }
}

:root[data-theme="dark"] .prof-def-card,
:root[data-theme="dark"] .prof-cat-card { background: #1a2235; }
:root[data-theme="dark"] .prof-when-chip { background: #1e2a40; }
:root[data-theme="dark"] .prof-qual-box { background: #1a2550; border-left-color: #6683d4; }
:root[data-theme="dark"] .prof-qual-name { color: #a0b4f0; }
:root[data-theme="dark"] .prof-qual-note { background: #2a2000; color: #d4b060; }
:root[data-theme="dark"] .prof-find-link { background: #1e2a40; color: #c0d0e8; }
:root[data-theme="dark"] .prof-find-link:hover { background: #263550; }
:root[data-theme="light"] .prof-def-card,
:root[data-theme="light"] .prof-cat-card { background: #fff; }
:root[data-theme="light"] .prof-when-chip { background: var(--light); }
:root[data-theme="light"] .prof-qual-box { background: #eef2ff; border-left-color: #3b5bdb; }
:root[data-theme="light"] .prof-find-link { background: var(--light); color: var(--navy); }
