/* ThePerfectSEO — Shared Header & Footer
   All classes prefixed tps- to avoid conflicts with any framework */

/* ── TOP BAR ── */
.tps-top-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative; /* sits inside fixed #tps-header */
  z-index: 101;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: 'Manrope', sans-serif;
  transition: height .3s, opacity .3s;
}
.tps-top-bar-inner {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 6vw;
  height: 38px;
  gap: 1.6rem;
  width: 100%;
  box-sizing: border-box;
}
.tps-top-bar-item {
  display: flex; align-items: center; gap: .4rem;
  text-decoration: none;
  color: rgba(255,255,255,.82);
  transition: color .2s;
  white-space: nowrap;
}
.tps-top-bar-item:hover { color: #ff5c35; }
.tps-top-bar-item svg { flex-shrink: 0; }
.tps-top-bar-divider {
  width: 1px; height: 16px;
  background: rgba(255,255,255,.15);
}
@media (max-width: 640px) {
  .tps-top-bar-inner { justify-content: center; gap: 1rem; }
  .tps-top-bar-label { display: none; }
  .tps-top-bar-divider:nth-child(4) { display: none; }
  .tps-top-bar-item:nth-child(5) { display: none; }
}

/* ── SMART STICKY HEADER WRAPPER ── */
#tps-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  will-change: transform;
}
/* Hide entire header (top-bar + nav) on scroll down */
#tps-header.hdr-hidden {
  transform: translateY(-100%);
}
/* Elevated shadow once user has scrolled away from top */
#tps-header.hdr-scrolled .tps-nav {
  box-shadow: 0 4px 24px rgba(10,15,30,.13);
}
/* Hide top-bar once scrolled — only nav shows on return */
#tps-header.hdr-scrolled .tps-top-bar {
  display: none;
}

/* ── SCROLL PROGRESS BAR ── */
#tps-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff5c35 0%, #f59e0b 100%);
  z-index: 1001;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── NAV ── */
.tps-nav {
  position: relative; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-family: 'Manrope', sans-serif;
  transition: box-shadow .3s;
}
.tps-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  height: 68px;
  width: 100%;
}
.tps-nav-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: #0a0f1e; text-decoration: none; letter-spacing: -.5px;
  flex-shrink: 0;
}
.tps-nav-logo span { color: #ff5c35; }
.tps-nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.tps-nav-links a {
  font-size: .92rem; font-weight: 500;
  color: #1e2640; text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.tps-nav-links a:hover,
.tps-nav-links a.tps-active { color: #ff5c35; }
.tps-nav-cta {
  background: linear-gradient(135deg, #ff5c35 0%, #ffa500 100%);
  color: #fff;
  padding: .55rem 1.4rem; border-radius: 50px;
  font-size: .88rem; font-weight: 600;
  text-decoration: none; letter-spacing: .2px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(255,92,53,.35);
  white-space: nowrap; flex-shrink: 0;
}
.tps-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,92,53,.45); }

/* Hamburger */
.tps-nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 4px;
  flex-shrink: 0;
}
.tps-nav-hamburger span {
  display: block; height: 2px; width: 24px;
  background: #0a0f1e; border-radius: 2px;
  transition: all .3s ease;
}
.tps-nav-hamburger.tps-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tps-nav-hamburger.tps-open span:nth-child(2) { opacity: 0; }
.tps-nav-hamburger.tps-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.tps-nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 1.2rem 6vw 1.6rem;
  gap: .2rem;
  font-family: 'Manrope', sans-serif;
}
.tps-nav-mobile.tps-open { display: flex; }
.tps-nav-mobile a {
  font-size: .97rem; font-weight: 500;
  color: #1e2640; text-decoration: none;
  padding: .65rem 0;
  border-bottom: 1px solid #f0f2f7;
  transition: color .2s;
}
.tps-nav-mobile a:last-child { border-bottom: none; }
.tps-nav-mobile a:hover { color: #ff5c35; }
.tps-nav-cta-mobile {
  display: inline-block; margin-top: .8rem;
  background: linear-gradient(135deg, #ff5c35 0%, #ffa500 100%);
  color: #fff;
  padding: .75rem 1.6rem; border-radius: 50px;
  font-size: .93rem; font-weight: 600;
  text-decoration: none; text-align: center;
  box-shadow: 0 4px 18px rgba(255,92,53,.35);
}

@media (max-width: 900px) {
  .tps-nav-links,
  .tps-nav-cta { display: none; }
  .tps-nav-hamburger { display: flex; }
}

/* ── FOOTER ── */
.tps-footer {
  background: #060b17;
  color: #8899bb;
  padding: 4rem 6vw 2.5rem;
  font-family: 'Manrope', sans-serif;
}
.tps-footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.tps-footer-brand p {
  font-size: .88rem; line-height: 1.7; max-width: 240px;
  color: #8899bb; margin-top: .6rem;
}
.tps-footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: .9rem;
  color: #fff; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.tps-footer-col ul { list-style: none; }
.tps-footer-col ul li { margin-bottom: .5rem; }
.tps-footer-col ul a {
  color: #8899bb; text-decoration: none;
  font-size: .88rem; transition: color .2s;
}
.tps-footer-col ul a:hover { color: #ff5c35; }
.tps-footer-bottom {
  border-top: 1px solid #1a2235;
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
}

/* ── WHATSAPP FLOAT ── */
.tps-wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 12px 20px 12px 14px; border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
  font-family: 'Manrope', sans-serif;
  font-size: .9rem; font-weight: 700;
  transition: transform .25s, box-shadow .25s;
}
.tps-wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(37,211,102,.55);
}
.tps-wa-icon { width: 26px; height: 26px; flex-shrink: 0; }
.tps-wa-label { white-space: nowrap; }
.tps-wa-pulse {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: #ff5c35; border-radius: 50%;
  border: 2px solid #fff;
  animation: tpsWaPulse 2s ease-in-out infinite;
}
@keyframes tpsWaPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: .7; }
}

@media (max-width: 900px) {
  .tps-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tps-footer-top { grid-template-columns: 1fr; }
  .tps-wa-float { bottom: 20px; right: 16px; padding: 12px; border-radius: 50%; }
  .tps-wa-label { display: none; }
  .tps-wa-icon { width: 28px; height: 28px; }
}
