/**
 * AroundManchester.com - Agents Page Stylesheet
 * Page-specific styles for agents.html
 * 
 * @charset UTF-8
 * @author AroundManchester.com Development Team
 * @version 1.0
 */

@charset "UTF-8";

/* ===== COMPACT HEADER DESCRIPTION ===== */
.site-header__description {
  line-height: 1.3;
  padding: 4px 12px;
  margin: 4px auto 0;
}

.site-header__description > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}

/* ===== AGENTS PAGE ===== */
.agents-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f5f5f5;
}

.agents-page a:not(.button) {
  color: #7cb3f0;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.agents-page a:not(.button):hover,
.agents-page a:not(.button):focus {
  color: #4a6bb5;
}

.agents-page__header {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
}

.agents-page__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.agents-page__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.agents-page__highlight {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.agents-page__highlight h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
  border-bottom: none;
  padding-bottom: 0;
}

.agents-page__highlight h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
  border-bottom: none;
  padding-bottom: 0;
}

.agents-page__highlight p {
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.95);
}

.agents-page__commission-display {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.agents-page__commission-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
}

.agents-page__commission-amount {
  font-size: 3rem;
  font-weight: 800;
  display: block;
}

.agents-page__commission-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.agents-page__section {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agents-page__section h2 {
  color: #8e44ad;
  font-size: 1.8rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.agents-page__section h3 {
  color: #8e44ad;
  font-size: 1.8rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.agents-page__section h4 {
  color: #9b59b6;
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.agents-page__section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.agents-page__section ul,
.agents-page__section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.agents-page__section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.agents-page__benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.agents-page__benefit {
  background: #f5eef8;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid #8e44ad;
  transition: transform 0.3s ease;
}

.agents-page__benefit:hover {
  transform: translateY(-5px);
}

.agents-page__benefit h4 {
  color: #8e44ad;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.agents-page__benefit p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

.agents-page__requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.agents-page__requirement {
  background: #f5eef8;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #8e44ad;
}

.agents-page__requirement h4 {
  color: #8e44ad;
  margin: 0 0 10px 0;
}

.agents-page__requirement p {
  margin: 0;
  color: #333;
}

/* Agent Profiles Grid */
.agents-page__profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.agents-page__profile {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agents-page__profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.agents-page__profile-photo {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  font-weight: 700;
}

.agents-page__profile-info {
  padding: 20px;
}

.agents-page__profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 5px 0;
}

.agents-page__profile-districts {
  font-size: 0.9rem;
  color: #8e44ad;
  font-weight: 600;
  margin-bottom: 15px;
}

.agents-page__profile-contact {
  font-size: 0.9rem;
  color: #555;
}

.agents-page__profile-contact p {
  margin: 5px 0;
}

.agents-page__profile--placeholder {
  border: 2px dashed #ccc;
  background: #fafafa;
}

.agents-page__profile--placeholder .agents-page__profile-photo {
  background: linear-gradient(135deg, #bdc3c7, #95a5a6);
  font-size: 1rem;
}

.agents-page__profiles-placeholder {
  text-align: center;
  margin-top: 25px;
  color: #666;
}

/* Agents page comparison table */
.agents-page__comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.agents-page__comparison-table th,
.agents-page__comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.agents-page__comparison-table th {
  background: #f5eef8;
  border-bottom: 2px solid #8e44ad;
  font-weight: 600;
  color: #333;
}

.agents-page__comparison-table tr:nth-child(even) {
  background: #fafafa;
}

.agents-page__comparison-table tr:hover {
  background: #f5eef8;
}

.agents-page__comparison-note {
  margin-top: 15px;
}

.agents-page__cta {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
}

.agents-page__cta h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.agents-page__cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.agents-page__cta a {
  color: #7cb3f0;
}

.agents-page__cta a:hover,
.agents-page__cta a:focus {
  color: #bfe0ff;
}

.agents-page__reveal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.agents-page__reveal-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.agents-page__reveal-btn:hover,
.agents-page__reveal-btn:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  outline: none;
}

.agents-page__email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #8e44ad !important;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.agents-page__email-link:hover,
.agents-page__email-link:focus {
  background: #f5eef8;
  color: #8e44ad !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.agents-page__hidden {
  display: none;
}

.agents-page__hidden.revealed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.agents-page__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
}

.agents-page__note a {
  color: #7cb3f0;
}

.agents-page__back-link {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Agents page focus indicators - WCAG 2.2 AA compliance */
.agents-page :focus {
  outline: 3px solid #8e44ad;
  outline-offset: 2px;
}

.agents-page :focus:not(:focus-visible) {
  outline: none;
}

.agents-page :focus-visible {
  outline: 3px solid #8e44ad;
  outline-offset: 2px;
}

/* Focus on dark backgrounds (CTA and highlight sections) */
.agents-page__cta :focus-visible,
.agents-page__highlight :focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Button and reveal button focus */
.agents-page .button:focus-visible,
.agents-page__reveal-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  .agents-page,
  .agents-page * {
    animation: none !important;
    transition: none !important;
  }
  
  .agents-page__benefit:hover,
  .agents-page__profile:hover {
    transform: none;
  }
}

/* ===== AGENTS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
  .agents-page__title {
    font-size: 2rem;
  }

  .agents-page__section h2 {
    font-size: 1.5rem;
  }

  .agents-page__benefits,
  .agents-page__requirements,
  .agents-page__profiles {
    grid-template-columns: 1fr;
  }

  .agents-page__commission-amount {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .agents-page__title {
    font-size: 1.6rem;
  }

  .agents-page {
    padding: 20px 10px;
  }

  .agents-page__section {
    padding: 20px;
  }

  .agents-page__email-link {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .agents-page__comparison-table {
    font-size: 0.85rem;
  }

  .agents-page__comparison-table th,
  .agents-page__comparison-table td {
    padding: 8px 10px;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
/*
 * High contrast overrides for accessibility and e-ink devices.
 * Applied when .high-contrast class is on <html> element.
 */
.high-contrast .agents-page {
  background: #ffffff;
}

.high-contrast .agents-page a:not(.button) {
  color: #000000;
  text-decoration: underline;
}

.high-contrast .agents-page__header {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .agents-page__title {
  color: #ffffff;
}

.high-contrast .agents-page__subtitle {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .agents-page__highlight {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .agents-page__highlight h2,
.high-contrast .agents-page__highlight h3 {
  color: #ffffff;
}

.high-contrast .agents-page__highlight p {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .agents-page__commission-card {
  background: #ffffff;
  border: 2px solid #ffffff;
}

.high-contrast .agents-page__commission-amount {
  color: #000000;
}

.high-contrast .agents-page__commission-label {
  color: #000000;
  opacity: 1;
}

.high-contrast .agents-page__section {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .agents-page__section h2,
.high-contrast .agents-page__section h3 {
  color: #000000;
  border-bottom-color: #000000;
}

.high-contrast .agents-page__section h4 {
  color: #000000;
}

.high-contrast .agents-page__section p {
  color: #000000;
}

.high-contrast .agents-page__section ul,
.high-contrast .agents-page__section ol,
.high-contrast .agents-page__section li {
  color: #000000;
}

.high-contrast .agents-page__benefit {
  background: #ffffff;
  border: 2px solid #000000;
  border-top-width: 4px;
}

.high-contrast .agents-page__benefit:hover {
  transform: none;
}

.high-contrast .agents-page__benefit h4 {
  color: #000000;
}

.high-contrast .agents-page__benefit p {
  color: #000000;
}

.high-contrast .agents-page__requirement {
  background: #ffffff;
  border: 2px solid #000000;
  border-left-width: 4px;
}

.high-contrast .agents-page__requirement h4 {
  color: #000000;
}

.high-contrast .agents-page__requirement p {
  color: #000000;
}

.high-contrast .agents-page__profile {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .agents-page__profile:hover {
  transform: none;
  box-shadow: none;
}

.high-contrast .agents-page__profile-photo {
  background: #000000;
  color: #ffffff;
}

.high-contrast .agents-page__profile-name {
  color: #000000;
}

.high-contrast .agents-page__profile-districts {
  color: #000000;
}

.high-contrast .agents-page__profile-contact {
  color: #000000;
}

.high-contrast .agents-page__profile-contact p {
  color: #000000;
}

.high-contrast .agents-page__profile--placeholder {
  border: 2px dashed #000000;
  background: #ffffff;
}

.high-contrast .agents-page__profile--placeholder .agents-page__profile-photo {
  background: #333333;
}

.high-contrast .agents-page__comparison-table th {
  background: #f0f0f0;
  border-bottom-color: #000000;
  color: #000000;
}

.high-contrast .agents-page__comparison-table td {
  color: #000000;
  border-bottom-color: #000000;
}

.high-contrast .agents-page__comparison-table tr:nth-child(even) {
  background: #f5f5f5;
}

.high-contrast .agents-page__comparison-table tr:hover {
  background: #e8e8e8;
}

.high-contrast .agents-page__cta {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .agents-page__cta h3 {
  color: #ffffff;
}

.high-contrast .agents-page__cta p {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .agents-page__cta a {
  color: #ffffff;
  text-decoration: underline;
}

.high-contrast .agents-page__reveal-btn {
  background: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
}

.high-contrast .agents-page__reveal-btn:hover,
.high-contrast .agents-page__reveal-btn:focus {
  background: #f0f0f0;
  color: #000000;
}

.high-contrast .agents-page__email-link {
  background: #ffffff;
  color: #000000 !important;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .agents-page__email-link:hover,
.high-contrast .agents-page__email-link:focus {
  background: #f0f0f0;
  color: #000000 !important;
  transform: none;
}

.high-contrast .agents-page__note {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .agents-page__note a {
  color: #ffffff;
  text-decoration: underline;
}

/* High contrast focus indicators */
.high-contrast .agents-page :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

.high-contrast .agents-page__cta :focus-visible,
.high-contrast .agents-page__highlight :focus-visible,
.high-contrast .agents-page__header :focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}
