/**
 * agent-profile.css — unified agent profile page stylesheet
 *
 * Per _research/Unified_Agent_Profile_Template_Design_Spec_2026-05-18.md
 * Decision D1: agp-* namespace; Decision H1: dark theme throughout
 * (NOT solid red CTA band — fixes Crystal audit visible bug).
 *
 * Loaded by all 11 agent profile pages generated by build-agent-profile.py.
 * Convention #15 byte-symmetric across realestategander-site/css/,
 * goosebay-site/css/, and stjohns-site/css/.
 *
 * Section sequence (Decision B1):
 *   1. .agp-hero          — photo + name + tagline + CTAs
 *   2. .agp-stats         — 4-cell stats bar (years / rating / since / award)
 *   3. #ag-sales          — VOW-gated Sales History (existing js/agent-sales.js)
 *   4. .agp-listings      — Active listings (DDF fragment)
 *   5. .agp-about         — Short paragraphs + optional callout
 *   6. .agp-specialties   — Chips
 *   7. .agp-service-area  — Service area chips
 *   8. .agp-reviews       — TestimonialTree-backed + sample quotes
 *   9. .agp-cta-band      — Dark with red accent (NOT solid red — Decision H1)
 *  10. .agp-contact       — Phone + email
 *
 * Mobile-first; breakpoints at 720px (tablet) + 1024px (desktop).
 */

/* ─── Base + body chrome ────────────────────────────────────────────── */
.agp-page {
  background: #0a0a0a;
  color: #e6e6e6;
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

.agp-page section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.agp-section-eyebrow {
  margin: 0 0 12px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EA002A;
}

.agp-section-heading {
  margin: 0 0 24px;
  font-family: Raleway, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.15;
  color: #ffffff;
}

/* ─── 1. Hero ───────────────────────────────────────────────────────── */
.agp-hero {
  background: #111;
  border-bottom: 4px solid #EA002A;
  max-width: none;
  padding: 0;
}

.agp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.agp-hero-eyebrow {
  margin: 0 0 12px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EA002A;
}

.agp-hero-name {
  margin: 0 0 16px;
  font-family: Raleway, sans-serif;
  font-weight: 900;
  font-size: 4rem;
  line-height: 1.0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.agp-hero-tagline {
  margin: 0 0 32px;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(230, 230, 230, 0.85);
  line-height: 1.4;
}

.agp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agp-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
}

.agp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─── CTA buttons (used in hero + cta-band) ─────────────────────────── */
.agp-cta {
  display: inline-block;
  padding: 14px 28px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.agp-cta-primary {
  background: #EA002A;
  color: #ffffff;
  border: 1px solid #EA002A;
}

.agp-cta-primary:hover {
  background: #c8001f;
}

.agp-cta-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.agp-cta-secondary:hover {
  background: #ffffff;
  color: #0a0a0a;
}

.agp-cta-tertiary {
  background: transparent;
  color: #EA002A;
  border: 1px solid #EA002A;
}

.agp-cta-tertiary:hover {
  background: #EA002A;
  color: #ffffff;
}

/* ─── 2. Stats bar ──────────────────────────────────────────────────── */
.agp-stats {
  background: #111;
  max-width: none;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agp-stat-cell {
  text-align: center;
}

.agp-stat-number {
  margin: 0 0 6px;
  font-family: Raleway, sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: #EA002A;
  line-height: 1.0;
}

.agp-stat-label {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 230, 230, 0.65);
}

/* ─── 4. Active Listings ────────────────────────────────────────────── */
.agp-listings-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.agp-listings-fragment {
  margin-top: 24px;
}

.agp-listings-empty {
  padding: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(230, 230, 230, 0.75);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.agp-listings-empty a {
  color: #EA002A;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 0, 42, 0.35);
}

/* ─── 5. About ──────────────────────────────────────────────────────── */
.agp-about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.agp-about-body {
  margin-top: 16px;
}

.agp-about-para {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(230, 230, 230, 0.85);
}

.agp-callout {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: rgba(234, 0, 42, 0.06);
  border-left: 4px solid #EA002A;
  border-radius: 0 4px 4px 0;
}

.agp-callout-eyebrow {
  margin: 0 0 8px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EA002A;
}

.agp-callout-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(230, 230, 230, 0.85);
}

/* ─── 6. Specialties chips ──────────────────────────────────────────── */
.agp-specialties-inner,
.agp-service-area-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.agp-chips,
.agp-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.agp-chip,
.agp-area-chip {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(230, 230, 230, 0.85);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.agp-area-chip {
  background: rgba(234, 0, 42, 0.08);
  border-color: rgba(234, 0, 42, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

/* ─── 7. Service Area ───────────────────────────────────────────────── */
.agp-area-desc {
  margin: 0 0 8px;
  font-size: 1rem;
  color: rgba(230, 230, 230, 0.75);
}

/* ─── 8. Reviews ────────────────────────────────────────────────────── */
.agp-reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.agp-reviews-stat {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: rgba(230, 230, 230, 0.85);
}

.agp-reviews-stat strong {
  font-family: Raleway, sans-serif;
  font-weight: 900;
  color: #EA002A;
  font-size: 1.3rem;
}

.agp-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.agp-review-card {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #EA002A;
  border-radius: 0 4px 4px 0;
}

.agp-review-quote {
  margin: 0 0 12px;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(230, 230, 230, 0.9);
}

.agp-review-author {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #EA002A;
}

.agp-reviews-all {
  margin: 32px 0 0;
  text-align: center;
}

.agp-reviews-all a {
  display: inline-block;
  padding-bottom: 4px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #EA002A;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 0, 42, 0.35);
}

/* ─── 9. CTA band — Decision H1: dark with red accent (NOT solid red) ── */
.agp-cta-band {
  background: #111;
  border-top: 4px solid #EA002A;
  max-width: none;
  padding: 64px 24px;
}

.agp-cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.agp-cta-heading {
  margin: 0 0 12px;
  font-family: Raleway, sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: #ffffff;
}

.agp-cta-sub {
  margin: 0 0 32px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(230, 230, 230, 0.75);
}

.agp-cta-card {
  margin: 0 auto 24px;
  padding: 24px;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: left;
}

.agp-cta-card-heading {
  margin: 0 0 16px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.agp-cta-quick {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ─── 10. Contact row ───────────────────────────────────────────────── */
.agp-contact {
  background: #0a0a0a;
}

.agp-contact-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.agp-contact-cell {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.agp-contact-label {
  margin: 0 0 8px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 230, 230, 0.5);
}

.agp-contact-value {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
}

.agp-contact-value:hover {
  color: #EA002A;
}

/* ─── Meet the Team backlink ────────────────────────────────────────── */
.agp-meet-team {
  text-align: center;
  padding: 32px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.agp-meet-team a {
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EA002A;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 0, 42, 0.3);
  padding-bottom: 3px;
}

/* ─── Mobile breakpoints ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .agp-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }
  .agp-hero-photo {
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
  }
  .agp-hero-name {
    font-size: 3rem;
  }
  .agp-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .agp-reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .agp-page section {
    padding: 48px 16px;
  }
  .agp-hero-inner {
    padding: 40px 16px;
  }
  .agp-hero-name {
    font-size: 2.4rem;
  }
  .agp-hero-tagline {
    font-size: 1rem;
  }
  .agp-section-heading {
    font-size: 1.5rem;
  }
  .agp-stat-number {
    font-size: 1.7rem;
  }
  .agp-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .agp-cta-heading {
    font-size: 1.6rem;
  }
  .agp-contact-inner {
    grid-template-columns: 1fr;
  }
  .agp-cta-quick .agp-cta {
    flex: 1;
    text-align: center;
  }
}
