/* ==========================================================================
   Publicitate24.ro — 2026 Theme (Complete Redesign)
   All classes prefixed with p24- to avoid conflicts with legacy CSS.
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --p24-primary: #0891b2;
  --p24-primary-dark: #0e7490;
  --p24-primary-light: #e0f7fa;
  --p24-accent: #16a34a;
  --p24-accent-dark: #15803d;
  --p24-accent-light: #dcfce7;
  --p24-dark: #0f172a;
  --p24-dark-mid: #1e293b;
  --p24-gray-900: #111827;
  --p24-gray-700: #374151;
  --p24-gray-500: #6b7280;
  --p24-gray-400: #9ca3af;
  --p24-gray-200: #e5e7eb;
  --p24-gray-100: #f3f4f6;
  --p24-gray-50: #f9fafb;
  --p24-white: #ffffff;
  --p24-radius: 12px;
  --p24-radius-sm: 8px;
  --p24-radius-pill: 50px;
  --p24-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --p24-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --p24-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --p24-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --p24-transition: 0.2s ease;
}

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Base resets scoped to theme --- */
.p24-body {
  font-family: var(--p24-font) !important;
  -webkit-font-smoothing: antialiased;
  color: var(--p24-gray-700);
}

.p24-body h1, .p24-body h2, .p24-body h3, .p24-body h4, .p24-body h5, .p24-body h6 {
  font-family: var(--p24-font) !important;
  color: var(--p24-gray-900);
  font-weight: 700;
}

.p24-body a { transition: color var(--p24-transition), opacity var(--p24-transition); }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.p24-topbar {
  background: var(--p24-dark);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--p24-gray-400);
}

.p24-topbar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.p24-topbar a:hover { color: #fff; }

.p24-topbar i {
  margin-right: 0.3rem;
  font-size: 0.78rem;
  opacity: 0.7;
}

.p24-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.p24-topbar-left, .p24-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.p24-topbar-right {
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.p24-navbar {
  background: var(--p24-white) !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid var(--p24-gray-200) !important;
  position: relative;
  z-index: 100;
}

.p24-navbar.rt-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--p24-shadow) !important;
  background: var(--p24-white) !important;
  animation: p24SlideDown 0.3s ease;
}

@keyframes p24SlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.p24-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.p24-logo img {
  height: 42px;
  width: auto;
}

.p24-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.p24-nav-menu li a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--p24-gray-700) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--p24-radius-sm);
  transition: background var(--p24-transition), color var(--p24-transition);
}

.p24-nav-menu li a:hover {
  color: var(--p24-primary) !important;
  background: var(--p24-primary-light);
}

.p24-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--p24-accent) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--p24-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  border: none !important;
  transition: background var(--p24-transition), transform var(--p24-transition);
  white-space: nowrap;
}

.p24-cta-btn:hover {
  background: var(--p24-accent-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.p24-cta-btn i { font-size: 0.8rem; }

/* ==========================================================================
   NEWSPAPER SELECTOR SLIDER
   ========================================================================== */
.p24-newspaper-slider {
  background: var(--p24-gray-50);
  border-bottom: 1px solid var(--p24-gray-200);
  padding: 1rem 0;
}

.p24-newspaper-slider-title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p24-gray-500);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.p24-newspaper-slide {
  text-align: center;
}

.p24-newspaper-slide a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--p24-radius);
  text-decoration: none;
  transition: background var(--p24-transition), transform var(--p24-transition), box-shadow var(--p24-transition);
}

.p24-newspaper-slide a:hover {
  background: var(--p24-white);
  box-shadow: var(--p24-shadow);
  transform: translateY(-2px);
}

.p24-newspaper-slide img {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(30%) opacity(0.85);
  transition: filter var(--p24-transition);
}

.p24-newspaper-slide a:hover img {
  filter: none;
}

.p24-newspaper-slide-name {
  font-size: 0.72rem;
  color: var(--p24-gray-500);
  font-weight: 500;
  line-height: 1.2;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p24-newspaper-slide a:hover .p24-newspaper-slide-name {
  color: var(--p24-primary);
}

.p24-newspaper-slide-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p24-gray-700);
  padding: 0.5rem 1rem;
  background: var(--p24-white);
  border-radius: var(--p24-radius-sm);
  border: 1px solid var(--p24-gray-200);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.p24-hero {
  background: linear-gradient(135deg, var(--p24-gray-50) 0%, #ecfeff 50%, var(--p24-primary-light) 100%);
  padding: 4rem 0 3.5rem;
}

.p24-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--p24-accent-light);
  color: var(--p24-accent-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--p24-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.p24-hero-badge i { font-size: 0.7rem; }

.p24-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--p24-gray-900);
  margin-bottom: 1.25rem;
}

.p24-hero h1 span {
  color: var(--p24-primary);
}

.p24-hero-subtitle {
  font-size: 1.15rem;
  color: var(--p24-gray-500);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.p24-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.p24-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--p24-accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--p24-radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background var(--p24-transition), transform var(--p24-transition), box-shadow var(--p24-transition);
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}

.p24-hero-cta:hover {
  background: var(--p24-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.35);
}

.p24-hero-phone {
  color: var(--p24-gray-500);
  font-size: 0.9rem;
  text-decoration: none;
}

.p24-hero-phone:hover { color: var(--p24-primary); }
.p24-hero-phone i { margin-right: 0.3rem; }

.p24-hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.p24-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--p24-gray-500);
}

.p24-hero-trust-item i {
  color: var(--p24-accent);
  font-size: 0.75rem;
}

.p24-hero-visual {
  position: relative;
}

.p24-hero-visual-card {
  background: var(--p24-white);
  border-radius: var(--p24-radius);
  box-shadow: var(--p24-shadow-lg);
  padding: 2.5rem;
  text-align: center;
}

.p24-hero-visual-card i {
  font-size: 4rem;
  color: var(--p24-primary);
  margin-bottom: 1rem;
  display: block;
}

.p24-hero-visual-card .p24-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--p24-gray-900);
}

.p24-hero-visual-card .p24-stat-label {
  font-size: 0.9rem;
  color: var(--p24-gray-500);
}

@media (max-width: 991px) {
  .p24-hero { padding: 2.5rem 0 2rem; }
  .p24-hero h1 { font-size: 2rem; }
  .p24-hero-subtitle { font-size: 1rem; }
}

@media (max-width: 575px) {
  .p24-hero h1 { font-size: 1.65rem; }
}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */
.p24-section {
  padding: 4rem 0;
}

.p24-section-alt {
  background: var(--p24-gray-50);
}

.p24-section-dark {
  background: var(--p24-dark);
  color: var(--p24-gray-400);
}

.p24-section-primary {
  background: var(--p24-primary);
  color: #fff;
}

.p24-section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--p24-gray-900);
}

.p24-section-dark .p24-section-title { color: #fff; }
.p24-section-primary .p24-section-title { color: #fff; }

.p24-section-desc {
  text-align: center;
  color: var(--p24-gray-500);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.p24-section-dark .p24-section-desc { color: var(--p24-gray-400); }

@media (max-width: 767px) {
  .p24-section { padding: 2.5rem 0; }
  .p24-section-title { font-size: 1.5rem; }
}

/* ==========================================================================
   CUM FUNCTIONEAZA (STEPS)
   ========================================================================== */
.p24-step-card {
  background: var(--p24-white);
  border-radius: var(--p24-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--p24-shadow-sm);
  border: 1px solid var(--p24-gray-200);
  transition: transform var(--p24-transition), box-shadow var(--p24-transition);
  height: 100%;
}

.p24-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p24-shadow);
}

.p24-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--p24-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.p24-step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.p24-step-card p {
  font-size: 0.9rem;
  color: var(--p24-gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   POPULAR CATEGORIES
   ========================================================================== */
.p24-cat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--p24-white);
  border-radius: var(--p24-radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none !important;
  color: var(--p24-gray-900) !important;
  border: 1px solid var(--p24-gray-200);
  transition: transform var(--p24-transition), box-shadow var(--p24-transition), border-color var(--p24-transition);
  height: 100%;
}

.p24-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p24-shadow);
  border-color: var(--p24-primary);
  color: var(--p24-gray-900) !important;
}

.p24-cat-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--p24-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p24-primary);
  font-size: 1.25rem;
}

.p24-cat-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.p24-cat-card p {
  font-size: 0.82rem;
  color: var(--p24-gray-500);
  margin: 0;
}

/* ==========================================================================
   COVERAGE
   ========================================================================== */
.p24-coverage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.p24-coverage-list li {
  padding: 0.4rem 0;
  font-size: 1rem;
  color: var(--p24-gray-700);
}

.p24-coverage-list li i {
  color: var(--p24-accent);
  margin-right: 0.5rem;
  width: 18px;
}

.p24-coverage-visual {
  background: var(--p24-white);
  border-radius: var(--p24-radius);
  box-shadow: var(--p24-shadow);
  padding: 2.5rem;
  text-align: center;
}

.p24-coverage-visual i {
  font-size: 3.5rem;
  color: var(--p24-primary);
  margin-bottom: 1rem;
  display: block;
}

.p24-coverage-visual h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.p24-coverage-visual p {
  color: var(--p24-gray-500);
  margin: 0;
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.p24-benefit {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.p24-benefit-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--p24-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p24-primary);
  font-size: 1rem;
}

.p24-benefit h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.p24-benefit p {
  font-size: 0.88rem;
  color: var(--p24-gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   TRUST / STATS
   ========================================================================== */
.p24-trust-stat {
  text-align: center;
  padding: 1.5rem;
}

.p24-trust-stat .p24-trust-num {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.p24-trust-stat p {
  color: rgba(255,255,255,0.8);
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.p24-section-primary .p24-trust-stat .p24-trust-num {
  color: #fff;
}

.p24-trust-contact {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.p24-trust-contact p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.p24-trust-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.75rem;
}

.p24-trust-contact a:hover {
  text-decoration: underline;
  color: #fff;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.p24-faq-accordion .card {
  border: 1px solid var(--p24-gray-200) !important;
  border-radius: var(--p24-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: none;
}

.p24-faq-accordion .card-header {
  background: var(--p24-white) !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.p24-faq-accordion .card-header button,
.p24-faq-accordion .card-header a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--p24-gray-900);
  text-decoration: none !important;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.p24-faq-accordion .card-header button:hover,
.p24-faq-accordion .card-header a:hover {
  color: var(--p24-primary);
}

.p24-faq-accordion .card-header .p24-faq-chevron {
  transition: transform 0.2s ease;
  color: var(--p24-gray-400);
  font-size: 0.85rem;
}

.p24-faq-accordion .card-header a.collapsed .p24-faq-chevron {
  transform: rotate(0deg);
}

.p24-faq-accordion .card-header a:not(.collapsed) .p24-faq-chevron {
  transform: rotate(180deg);
}

.p24-faq-accordion .card-body {
  padding: 0 1.25rem 1rem !important;
  font-size: 0.95rem;
  color: var(--p24-gray-500);
  line-height: 1.7;
}

/* ==========================================================================
   SUPORT / CTA SECTION
   ========================================================================== */
.p24-suport {
  background: linear-gradient(135deg, var(--p24-primary) 0%, var(--p24-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.p24-suport-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.p24-suport-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.p24-suport-card {
  background: rgba(255,255,255,0.12);
  border-radius: var(--p24-radius);
  padding: 1.5rem;
  text-align: center;
  transition: background var(--p24-transition);
  height: 100%;
}

.p24-suport-card:hover {
  background: rgba(255,255,255,0.2);
}

.p24-suport-card i {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.p24-suport-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.p24-suport-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.p24-suport-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.p24-suport-card a:hover {
  text-decoration: underline;
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.p24-footer {
  background: var(--p24-dark) !important;
  color: var(--p24-gray-400);
  padding: 3rem 0 0;
}

.p24-footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.p24-footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--p24-gray-400);
  max-width: 280px;
}

.p24-footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.p24-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p24-footer-links li { margin-bottom: 0.45rem; }

.p24-footer-links a {
  color: var(--p24-gray-400);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--p24-transition);
}

.p24-footer-links a:hover { color: #fff; }

.p24-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.p24-footer-contact-item i {
  color: var(--p24-primary);
  margin-top: 0.15rem;
  width: 16px;
  flex-shrink: 0;
}

.p24-footer-contact-item a {
  color: var(--p24-gray-400);
  text-decoration: none;
}

.p24-footer-contact-item a:hover { color: #fff; }

.p24-footer-bottom {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.82rem;
  color: var(--p24-gray-500);
}

.p24-footer-bottom a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.p24-footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   UTILITY
   ========================================================================== */
.p24-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--p24-primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: var(--p24-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  transition: background var(--p24-transition), transform var(--p24-transition);
}

.p24-btn-primary:hover {
  background: var(--p24-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.p24-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--p24-primary);
  padding: 0.55rem 1.4rem;
  border-radius: var(--p24-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--p24-primary);
  transition: all var(--p24-transition);
}

.p24-btn-outline:hover {
  background: var(--p24-primary);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .p24-topbar { font-size: 0.75rem; }
  .p24-topbar-inner { justify-content: center; }
  .p24-topbar-right { display: none; }

  .p24-navbar-inner { flex-wrap: wrap; }
  .p24-nav-menu { display: none; }

  .p24-newspaper-slide img { height: 40px; }
}

@media (max-width: 767px) {
  .p24-hero-actions { flex-direction: column; align-items: flex-start; }
  .p24-hero-trust { gap: 0.75rem; }
}
