/* ========================================
   PAGES — Page-Specific Styles
   Mobile-first (375px base)
   ======================================== */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 1rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(200, 164, 110, .05), transparent 60%);
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--f1);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold3);
  margin-top: .6rem;
  max-width: 500px;
  line-height: 1.55;
}

/* Pace theme overrides */
.pace-theme .section-label { color: var(--pace3); }
.pace-theme h1 em,
.pace-theme h2 em,
.pace-theme h3.pace-accent { color: var(--pace); }
.pace-theme .quote { color: var(--pace); border-color: rgba(58, 158, 92, .12); }
.pace-theme .tag { color: var(--pace); background: rgba(58, 158, 92, .08); }
.pace-theme .elevated { background: rgba(58, 158, 92, .02); border: 1px solid rgba(58, 158, 92, .06); }
.pace-theme .disclaimer { border-color: rgba(58, 158, 92, .1); }
.pace-theme .disclaimer-title { color: var(--pace); }

.pace-theme .btn-primary {
  background: var(--pace);
  color: #fff;
}

.pace-theme .btn-primary:hover {
  background: var(--pace2);
  color: #fff;
}

.pace-theme .btn-secondary {
  border-color: var(--pace3);
  color: var(--pace);
}

.pace-theme .btn-secondary:hover {
  border-color: var(--pace);
  background: rgba(58, 158, 92, .03);
  color: var(--pace);
}

/* Services: featured tag */
.tag-gold {
  color: var(--gold);
  background: rgba(200, 164, 110, .07);
}

/* Contact email link */
.contact-email {
  font-size: .95rem;
  color: var(--gold);
  margin-top: .8rem;
}

/* Legal */
.legal-text {
  font-size: .75rem;
  color: var(--text3);
  margin-top: .4rem;
}

/* Hero subtitle for inner pages */
.page-header {
  padding: 7rem 1rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Responsive hero */
@media (min-width: 900px) {
  .hero { padding: 58px 1.5rem 2rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
}

/* ── Live indicator dot ── */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--pace2);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}

/* ── Pace header direct links ── */
.pace-direct-links {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ── Pace live stats bar ── */
.pace-live-bar {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(45, 139, 70, .06);
  border: 1px solid rgba(45, 139, 70, .15);
  border-radius: var(--r);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-around;
}

.pace-live-stat {
  flex: 1;
  min-width: 110px;
  text-align: center;
}

.pace-live-value {
  display: block;
  font-family: var(--f1);
  font-size: 2rem;
  font-weight: 300;
  color: var(--pace2);
  line-height: 1;
}

.pace-live-label {
  display: block;
  font-size: .72rem;
  color: var(--text3);
  font-family: var(--f3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: .35rem;
}

/* ── Brèves grid ── */
.breves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .9rem;
}

.breve-card {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--bg3);
  border: 1px solid rgba(45, 139, 70, .08);
  border-radius: var(--r2);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.breve-card:hover {
  border-color: rgba(45, 139, 70, .35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.breve-card-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
}

.breve-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  flex-shrink: 0;
}

.breve-source {
  font-size: .72rem;
  font-family: var(--f3);
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breve-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.42;
  margin-bottom: .45rem;
  color: var(--text);
}

.breve-commentary {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.5;
}

/* Skeleton loading state */
.breve-skeleton {
  min-height: 100px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: skeletonSlide 1.6s ease-in-out infinite;
  border-color: transparent !important;
  pointer-events: none;
}

@keyframes skeletonSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.breves-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text2);
  font-size: .9rem;
}

.breves-empty a { color: var(--pace2); }

/* ── Inline pace link inside cards ── */
.pace-link {
  display: inline-block;
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--pace2);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

.pace-link:hover { color: var(--pace); text-decoration: underline; }

/* ── Social proof row ── */
.pace-social-proof {
  display: flex;
  gap: .8rem 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.4rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(200, 164, 110, .06);
}

.pace-social-proof-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--text2);
}

.pace-social-proof-item::before {
  content: '✓';
  color: var(--pace2);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ── Home: Pace proof mini-section ── */
.home-pace-proof {
  margin: 0 auto 1rem;
  max-width: var(--max-w);
  padding: 2rem 1rem 0;
  text-align: center;
}

.home-pace-stats {
  display: flex;
  gap: 1.5rem 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .8rem;
}

.home-pace-stats .stat-value {
  display: block;
  font-family: var(--f1);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.home-pace-stats .stat-label {
  display: block;
  font-size: .72rem;
  color: var(--text3);
  font-family: var(--f3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: .25rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pace-direct-links { flex-direction: column; }
  .pace-live-bar { gap: 1.2rem; }
  .breves-grid { grid-template-columns: 1fr; }
  .pace-social-proof { flex-direction: column; align-items: flex-start; padding-left: .5rem; }
  .home-pace-stats { gap: 1.2rem 2rem; }
}
