/* =============================================
   Main Ranking Page — real-estate-seo-agency.css
   ============================================= */

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lime-dim);
  color: var(--lime);
  border: 1px solid var(--lime-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

.section--surface {
  background: var(--surface);
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  background: var(--navy);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section__intro {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

/* ---- Methodology Criteria Grid ---- */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .criteria-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.criteria-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--white);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.criteria-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--lime-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.criteria-card__body strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.criteria-card__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.methodology-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.methodology-note a {
  color: var(--navy);
  font-weight: 600;
}

/* ---- Comparison Table ---- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 700px;
}

.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.comparison-table th:first-child {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.comparison-table th:nth-child(2) {
  min-width: 160px;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.comparison-table td:first-child {
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: var(--surface);
}

.comparison-table tr:nth-child(odd) td {
  background: var(--white);
}

/* LeadCraft #1 row highlight */
.comparison-table tbody tr:first-child td {
  background: rgba(181, 255, 60, 0.04) !important;
  border-left: none;
}

.comparison-table tbody tr:first-child td:first-child {
  border-left: 3px solid var(--lime);
}

.comparison-table tbody tr:first-child td {
  font-weight: 500;
}

.table-agency-name {
  font-weight: 600;
  color: var(--navy);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.rating-badge--verified {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

/* ---- Agency Review Cards ---- */
.reviews-section {
  padding: 4rem 0;
}

.agency-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.agency-card:hover {
  box-shadow: 0 4px 20px rgba(12, 27, 51, 0.08);
}

/* #1 agency — featured */
.agency-card--featured {
  border-color: rgba(181, 255, 60, 0.4);
  background: linear-gradient(to bottom right, rgba(181, 255, 60, 0.03), var(--white));
}

.agency-card__rank {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--navy);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-card--featured .agency-card__rank {
  background: var(--lime);
  color: var(--navy);
}

.agency-card h2 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.25rem;
  padding-right: 80px;
}

.agency-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.agency-card__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.agency-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tag--highlight {
  background: var(--lime-dim);
  border-color: var(--lime-border);
  color: var(--navy);
  font-weight: 500;
}

/* ---- What to Look For ---- */
.criteria-h3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .criteria-h3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.callout-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}

.callout-card__icon {
  width: 44px;
  height: 44px;
  background: var(--lime-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.callout-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.callout-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- Pricing Tiers ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  background: var(--white);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--lime);
  box-shadow: 0 4px 32px rgba(181, 255, 60, 0.12);
}

.pricing-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-card--featured .pricing-card__label {
  color: var(--navy);
}

.pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.pricing-card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
  background: var(--navy);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  top: 4px;
  line-height: 1;
}

.pricing-card__best-for {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.pricing-note {
  margin-top: 1.5rem;
  padding: 1.125rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Local SEO Tactics Grid ---- */
.tactics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .tactics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tactic-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tactic-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--lime-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactic-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.tactic-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- 2026 Trends ---- */
.trends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .trends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trend-block {
  border-left: 4px solid var(--lime);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}

.trend-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.trend-block h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.trend-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- FAQ Section ---- */
.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

.faq-section summary {
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-section summary:hover {
  background: var(--surface);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.faq-section details[open] summary::after {
  content: '−';
}

.faq-section summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  font-family: 'DM Sans', sans-serif;
}

.faq-section .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-section .faq-answer p {
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.faq-section .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.faq-more-link:hover {
  color: var(--text-muted);
}
