/* ==========================================================================
   static-pages.css
   Shared styles for static pages (about, contact, faq, terms, privacy).
   Replaces inline styles from about.php, contact.php, faq.php, etc.
   ========================================================================== */

/* Page wrapper */
.sp-section { padding: calc(0.75rem + 52px + 3rem) 0 3rem; }
.sp-container { max-width: 800px; }
.sp-breadcrumb { margin-bottom: 1.5rem; }

/* Page header (centered) */
.sp-header { text-align: center; margin-bottom: 2.5rem; }
.sp-header__title { font-size: 1.75rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.5rem; }
.sp-header__subtitle { color: var(--text-muted); font-size: 0.9375rem; max-width: 560px; margin: 0 auto; }

/* Stats grid (2x2) */
.sp-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.sp-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem; text-align: center;
}
.sp-stat-card__value { font-size: 1.75rem; font-weight: 700; }
.sp-stat-card__value--cta { color: var(--cta); }
.sp-stat-card__value--info { color: var(--info); }
.sp-stat-card__value--success { color: var(--success); }
.sp-stat-card__value--warning { color: var(--warning); }
.sp-stat-card__label { font-size: 0.8125rem; color: var(--text-muted); }

/* CTA box */
.sp-cta-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center; margin-top: 2rem;
}
.sp-cta-box__text { font-size: 1rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.75rem; }
.sp-cta-box__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Company info card */
.sp-company-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem;
}
.sp-company-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.sp-company-card__name { font-weight: 700; color: var(--text-heading); }
.sp-company-card__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem; font-size: 0.8125rem; color: var(--text-muted);
}
.sp-company-card__item { display: flex; align-items: flex-start; gap: 0.5rem; }
.sp-company-card__item svg { flex-shrink: 0; margin-top: 2px; }
.sp-company-card__item a { color: var(--cta); }

/* Contact form card */
.sp-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.sp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* FAQ sections */
.sp-faq-section { margin-bottom: 2rem; }
.sp-faq-section__title {
  font-size: 1.125rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--cta);
}

/* ==========================================================================
   Homepage-specific classes
   ========================================================================== */

/* Section header with "Vezi toate" link */
.hp-section-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.hp-section-header--sm { margin-bottom: 1rem; }
.hp-section-header__left { display: flex; align-items: center; gap: 0.5rem; }
.hp-section-header__subtitle { color: var(--text-muted); font-size: 0.875rem; }
.hp-section-header__subtitle--lg { font-size: 0.9375rem; }
.hp-section-header__link { color: var(--cta); font-weight: 600; font-size: 0.9375rem; }
.hp-section-header__link--sm { font-size: 0.875rem; }
.hp-section-header__title--flush { margin-bottom: 0; }
.hp-section-header__cat-title { font-size: 1.125rem; font-weight: 700; color: var(--text-heading); }

/* Promoted carousel card wrapper */
/* Promoted carousel: show exactly 4 cards visible */
.carousel-row--4col {
  grid-auto-columns: calc((100% - 3 * 1rem) / 4);
}
.hp-promo-card { display: flex; }
.hp-promo-card .product-card { width: 100%; height: 100%; }

@media (max-width: 1023px) {
  .carousel-row--4col { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 767px) {
  .carousel-row--4col { grid-auto-columns: 260px; }
}

/* VAT label inline */
.hp-vat-label { font-size: 0.625rem; color: var(--text-muted); font-weight: 400; margin-left: 2px; }

/* How it works */
.hp-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }

@media (max-width: 767px) {
  .hp-steps-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hp-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
.hp-step { text-align: center; }
.hp-step__icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.hp-step__label {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.hp-step__title { font-weight: 700; margin-bottom: 0.5rem; color: var(--text-heading); font-size: 1rem; }
.hp-step__text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
.hp-how-subtitle { color: var(--text-muted); text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }

/* CTA section */
.hp-cta { text-align: center; }
.hp-cta__subtitle { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.25rem; }
.hp-cta__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.hp-cta__badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600;
}
.hp-cta__badge--products { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2); color: var(--success); }
.hp-cta__badge--contact { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #3B82F6; }
.hp-cta__badge--promotion { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2); color: var(--cta); }

/* Category card CTA variant */
.category-card--cta .category-card__name { color: var(--cta); }

/* ==========================================================================
   Error pages
   ========================================================================== */
.error-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 2rem;
}
.error-page__inner { max-width: 480px; }
.error-page__code { font-size: 5rem; font-weight: 800; color: var(--cta); margin-bottom: 0.5rem; line-height: 1; margin-top: 4rem; }
.error-page__title { font-size: 1.5rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.75rem; }
.error-page__text { color: var(--text-muted); margin-bottom: 1rem; }
.error-page__countdown { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 2rem; }
.error-page__countdown strong { font-weight: 700; color: var(--cta); }
.error-page__progress { width: 100%; height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 1.5rem; overflow: hidden; }
.error-page__progress-fill { height: 100%; background: var(--cta); width: 0%; transition: width 1s linear; border-radius: 2px; }
.error-page__search { max-width: 360px; margin: 0 auto 1.5rem; }
.error-page__search form { display: flex; gap: 0.5rem; }
.error-page__links { display: flex; gap: 1rem; justify-content: center; }
.error-page__links a { font-weight: 600; text-decoration: none; }
.error-page__links a:first-child { color: var(--cta); }
.error-page__links a:last-child { color: var(--text-muted); }
