/* ===== EXPERTISE PAGE ===== */

/* ── Service Sections ───────────────────────────────────────── */
.service-section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.service-section:nth-child(even) {
  background: var(--color-surface-2);
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.service-layout.reverse {
  direction: rtl;
}
.service-layout.reverse > * {
  direction: ltr;
}

/* Service Icon + Label */
.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
}

.service-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.service-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 50ch;
}

/* Bullet list */
.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.service-bullets li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-palm);
}

/* Process inline steps inside service cards */
.service-process {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.service-process-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.service-process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-process-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.step-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Service Visual Panel */
.service-visual {
  position: sticky;
  top: calc(64px + var(--space-6));
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.service-card-panel {
  background: linear-gradient(135deg, #0e3a4d 0%, #1a7fa0 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-card-panel.buy-panel {
  background: linear-gradient(135deg, #0e3a4d 0%, #1a7fa0 55%, #4a9e6e 100%);
}

.service-card-panel.sell-panel {
  background: linear-gradient(135deg, #3d1505 0%, #c4541a 55%, #e07b4c 100%);
}

.service-card-panel.rent-panel {
  background: linear-gradient(135deg, #0e2a4d 0%, #1a4fa0 55%, #5eb8d4 100%);
}

.service-card-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.service-card-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.panel-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.panel-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.panel-sub {
  font-size: var(--text-sm);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.panel-stat-row {
  display: flex;
  gap: var(--space-6);
}

.panel-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.panel-stat-label {
  font-size: var(--text-xs);
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Track Record Banner (Sell section) ──────────────────────── */
.track-record-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-palm-light);
  border: 1px solid rgba(74, 158, 110, 0.25);
  border-left: 3px solid var(--color-palm);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}

.track-record-banner svg {
  flex-shrink: 0;
  color: var(--color-palm);
}

.track-record-banner p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.track-record-banner strong {
  color: var(--color-palm);
}

/* ── Why Pembroke Pines Section ──────────────────────────────── */
.why-pp-section {
  background: var(--color-surface);
}

.why-pp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.why-pp-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.why-pp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-pp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.why-pp-icon.ocean { background: var(--color-ocean-light); color: var(--color-ocean); }
.why-pp-icon.palm  { background: var(--color-palm-light);  color: var(--color-palm);  }
.why-pp-icon.sand  { background: #fdf6e3;                  color: #b8860b;            }
.why-pp-icon.sky   { background: #eaf6fb;                  color: var(--color-sky);   }
.why-pp-icon.sunset{ background: #fff1eb;                  color: var(--color-sunset);}

.why-pp-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.why-pp-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Why PP map callout */
.why-pp-location {
  margin-top: var(--space-10);
  background: linear-gradient(135deg, #0e3a4d, #1a7fa0);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-12);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.why-pp-location-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.why-pp-location-text p {
  font-size: var(--text-base);
  opacity: 0.85;
  line-height: 1.7;
  max-width: 50ch;
}

.why-pp-distances {
  display: flex;
  gap: var(--space-8);
  flex-shrink: 0;
}

.distance-item {
  text-align: center;
}

.distance-val {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  display: block;
}

.distance-label {
  font-size: var(--text-xs);
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Process Section ─────────────────────────────────────────── */
.process-section {
  background: var(--color-surface-2);
}

.process-intro {
  max-width: 54ch;
  margin-bottom: var(--space-12);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Connector line between steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-sky));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.process-step:hover .process-step-num {
  background: var(--color-primary);
  color: #fff;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 22ch;
  margin-inline: auto;
}

/* ── Page CTA Section ────────────────────────────────────────── */
.expertise-cta {
  background: linear-gradient(135deg, #0e3a4d 0%, #1a7fa0 50%, #2a8aaa 100%);
  color: #fff;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0;
  text-align: center;
}

.expertise-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.expertise-cta p {
  font-size: var(--text-base);
  opacity: 0.85;
  max-width: 50ch;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.expertise-cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-layout.reverse {
    direction: ltr;
  }

  .service-visual {
    position: static;
  }

  .why-pp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-pp-location {
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .why-pp-distances {
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: center;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .why-pp-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .panel-stat-row {
    gap: var(--space-5);
  }
}
