/* ═══════════════════════════════════════════════════════════════════════════
   TEF Neon — premium visual layer
   Load AFTER tef-tokens.css, AFTER style.css/cards.css.
   Purely additive: does not modify existing selectors — only adds new ones.
   Every animation is gated with prefers-reduced-motion: no-preference.
   Every backdrop-filter is gated with @supports.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. GOOGLE FONTS: add Montserrat 800 weight ─────────────────────────── */
/* Already loaded in header — just ensure 800 weight is used by headings */

/* ── 2. DARK BAND CONTEXT ──────────────────────────────────────────────── */
/* Applied to: hero section, testimonials section, any dark panel */

.tef-dark-band {
  background: linear-gradient(160deg, var(--tef-dark-surface) 0%, var(--tef-dark-rich) 55%, #133c55 100%);
  color: rgba(255,255,255,.85);
  position: relative;
  overflow: hidden;
}

/* Animated grid overlay — signals AI/tech without images */
.tef-dark-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .tef-dark-band::before {
    animation: grid-drift 24s linear infinite;
  }
  @keyframes grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 56px 56px; }
  }
}

/* Radial neon bloom behind content */
.tef-dark-band::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 30%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(0,200,255,.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.tef-dark-band > * { position: relative; z-index: 1; }
.tef-dark-band .container { position: relative; z-index: 1; }

/* Text inside dark band */
.tef-dark-band h1,
.tef-dark-band h2:not(.tef-section-sub) {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.tef-dark-band h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.tef-dark-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* Neon-coloured span inside hero headings */
.tef-dark-band h1 span,
.tef-dark-band h2 span {
  color: var(--tef-neon);
  text-shadow: 0 0 24px rgba(0,200,255,.5), 0 0 48px rgba(0,200,255,.2);
}

.tef-dark-band p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.65; }

/* Slider tabs inside dark band */
.tef-dark-band .slider-nav a      { color: rgba(255,255,255,.55); }
.tef-dark-band .slider-nav a:hover { color: #fff; background: rgba(0,200,255,.1); }
.tef-dark-band .slider-nav a.active {
  color: var(--tef-neon);
  background: rgba(0,200,255,.14);
  font-weight: 700;
}

/* CTA button inside dark band: neon style */
.tef-dark-band .btn-submit {
  background: var(--tef-neon);
  border-color: var(--tef-neon);
  color: var(--tef-dark-surface);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0,200,255,.4), 0 4px 16px rgba(0,0,0,.3);
  transition: box-shadow .25s, transform .25s, background .2s;
}
@media (prefers-reduced-motion: no-preference) {
  .tef-dark-band .btn-submit:hover {
    background: rgba(0,200,255,.85);
    border-color: transparent;
    color: var(--tef-dark-surface);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0,200,255,.65), 0 8px 24px rgba(0,0,0,.3);
  }
}

/* Hero image in dark context */
.tef-dark-band .img-container img {
  filter: drop-shadow(0 0 32px rgba(0,200,255,.22));
}


/* ── 3. NEON SECTION HEADINGS ───────────────────────────────────────────── */

.tef-section-heading {
  font-family: var(--tef-font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.tef-section-sub {
  font-size: 15px;
  color: var(--tef-muted);
  margin-bottom: 36px;
}

/* ── 4. SCROLL REVEAL ───────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .6s ease, transform .6s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: .1s; }
  .reveal:nth-child(3) { transition-delay: .2s; }
  .reveal:nth-child(4) { transition-delay: .3s; }
}
/* Always show if motion disabled */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ── 5. 3D CARD LIFT ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .card-3d {
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
    will-change: transform;
  }
  .card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
      var(--tef-neon-glow),
      0 24px 48px rgba(0,0,0,.12) !important;
  }
}


/* ── 6. GLASS CARD ──────────────────────────────────────────────────────── */

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card-glass {
    background: var(--tef-glass-bg) !important;
    border: 1px solid var(--tef-glass-border) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255,255,255,.85);
  }
  .card-glass h3,
  .card-glass h4 { color: #fff; }
  .card-glass p  { color: rgba(255,255,255,.7); }
}

/* Fallback for no backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card-glass {
    background: rgba(13,31,56,.85) !important;
    border: 1px solid rgba(0,200,255,.2) !important;
  }
}


/* ── 7. NEON BORDER CARDS (for offering cards) ──────────────────────────── */

.tef-offer-card {
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
@media (prefers-reduced-motion: no-preference) {
  .tef-offer-card:hover {
    box-shadow: 0 0 0 1.5px var(--tef-neon), var(--tef-neon-glow-sm), 0 8px 32px rgba(0,0,0,.1) !important;
    transform: translateY(-4px);
  }
}

.tef-offer-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tef-brand) 0%, var(--tef-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: var(--tef-neon-glow-sm);
}

.tef-offer-title { font-size: 1rem; font-weight: 700; color: var(--tef-dark); margin-bottom: 8px; }
.tef-offer-desc  { font-size: 14px; color: var(--tef-muted); margin-bottom: 14px; line-height: 1.6; }
.tef-offer-price { font-size: 13px; font-weight: 800; color: var(--tef-brand); }


/* ── 8. OFFERINGS SECTION GRID ──────────────────────────────────────────── */

.tef-offerings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tef-offer-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  scroll-snap-align: start;
  min-width: 260px;
}
.tef-offer-link {
  display: block; padding: 28px 24px;
  text-decoration: none; height: 100%;
}
@media (max-width: 768px) {
  .tef-offerings {
    grid-template-columns: repeat(4, 80vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .tef-offerings::-webkit-scrollbar { display: none; }
}
@media (min-width: 769px) and (max-width: 991px) {
  .tef-offerings { grid-template-columns: repeat(2, 1fr); }
}


/* ── 9. TESTIMONIALS SECTION ────────────────────────────────────────────── */

.tef-testimonials {
  background: var(--tef-dark-surface);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.tef-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.tef-testimonials .tef-section-heading { color: #fff; text-align: center; }
.tef-testimonials .tef-section-sub { color: rgba(255,255,255,.45); text-align: center; }

.tef-testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,200,255,.14);
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s, box-shadow .3s;
}
@media (prefers-reduced-motion: no-preference) {
  .tef-testimonial-card:hover {
    border-color: rgba(0,200,255,.4);
    box-shadow: 0 0 24px rgba(0,200,255,.12), 0 4px 16px rgba(0,0,0,.3);
  }
}
.tef-testimonial-stars { color: #fbbf24; font-size: 13px; letter-spacing: 2px; }
.tef-testimonial-quote {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.tef-testimonial-credit strong { color: #fff; font-size: 14px; display: block; font-style: normal; }
.tef-testimonial-credit span   { color: rgba(255,255,255,.4); font-size: 12px; font-style: normal; }


/* ── 10. STAT NUMBERS: neon accent ─────────────────────────────────────── */

.count-box span {
  background: linear-gradient(135deg, var(--tef-brand), var(--tef-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Fallback: solid colour */
@supports not (-webkit-background-clip: text) {
  .count-box span { color: var(--tef-brand) !important; }
}

.stats-container i {
  transition: text-shadow .3s;
}
.stats-container i:hover {
  text-shadow: var(--tef-neon-glow-sm);
}


/* ── 11. SECTION DIVIDER: neon line ─────────────────────────────────────── */

.tef-neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tef-neon), transparent);
  border: none;
  margin: 0;
  opacity: .35;
}


/* ── 12. HOW-IT-WORKS STEP CIRCLES ─────────────────────────────────────── */

.tef-step-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tef-brand), var(--tef-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--tef-neon-glow-sm);
  flex-shrink: 0;
}


/* ── 13. MESSAGE-INFO UPGRADE ────────────────────────────────────────────── */

.message-info.message-info-neon {
  background: linear-gradient(135deg, var(--tef-dark-rich) 0%, #133C55 100%);
  border-left: none;
  position: relative;
  overflow: hidden;
}
.message-info.message-info-neon::before {
  content: '\201C';
  position: absolute;
  left: 5%;
  top: -20px;
  font-size: 12rem;
  color: rgba(0,200,255,.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.message-info.message-info-neon h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.4;
}
.message-info.message-info-neon h2 span {
  color: var(--tef-neon);
  text-shadow: 0 0 20px rgba(0,200,255,.4);
}


/* ── 14. FOOTER DARK THEME ───────────────────────────────────────────────── */

footer.tef-dark-footer {
  background: var(--tef-dark-surface) !important;
  color: rgba(255,255,255,.65);
}
footer.tef-dark-footer h2 {
  color: rgba(255,255,255,.35);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
footer.tef-dark-footer ul li a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
footer.tef-dark-footer ul li a:hover { color: var(--tef-neon); }
footer.tef-dark-footer p { color: rgba(255,255,255,.4); }
footer.tef-dark-footer .contact-info a {
  color: rgba(255,255,255,.55);
}
footer.tef-dark-footer .contact-info a:hover { color: var(--tef-neon); }
footer.tef-dark-footer .contact-info a i {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
}
footer.tef-dark-footer .contact-info a:hover i {
  background: var(--tef-neon);
  border-color: var(--tef-neon);
  color: var(--tef-dark-surface);
}
footer.tef-dark-footer .social-info a {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
footer.tef-dark-footer .social-info a:hover {
  background: var(--tef-neon);
  border-color: var(--tef-neon);
  color: var(--tef-dark-surface);
  box-shadow: var(--tef-neon-glow-sm);
}

.footer-bottom.tef-dark-footer-bottom {
  background: rgba(0,0,0,.35) !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
}
.footer-bottom.tef-dark-footer-bottom p,
.footer-bottom.tef-dark-footer-bottom a {
  color: rgba(255,255,255,.35);
}
.footer-bottom.tef-dark-footer-bottom a:hover { color: var(--tef-neon); }


/* ── 15. ADMIN PORTAL: minimal neon accent ──────────────────────────────── */

/* Added to admin/index.php only — not global */
.admin-kpi-neon { border-top: 3px solid var(--tef-neon) !important; }
.admin-kpi-neon .kpi-value.money {
  background: linear-gradient(135deg, var(--tef-brand), var(--tef-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@supports not (-webkit-background-clip: text) {
  .admin-kpi-neon .kpi-value.money { color: var(--tef-brand); }
}


/* ── 16. GENERIC UTILITY: pulse-neon animation ──────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @keyframes pulse-neon {
    0%, 100% { box-shadow: 0 0 8px rgba(0,200,255,.3); }
    50%       { box-shadow: 0 0 24px rgba(0,200,255,.7), 0 0 48px rgba(0,200,255,.25); }
  }
  .pulse-neon { animation: pulse-neon 2.5s ease-in-out infinite; }
}
