/* ============================================================
   Protevix Infosec — v5 Homepage Stylesheet
   Loaded ONLY on the front page (see functions.php).
   Ported verbatim from the Claude Design export, with one
   change: scroll-reveal is gated behind `html.js` so content
   is never hidden if JS is off OR if LiteSpeed UCSS strips the
   reveal rule. The actual reveal is applied as INLINE style by
   home.js (unstrippable), with .is-visible kept as a fallback.
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #06091A; color: #EAF0FF; font-family: 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
input, textarea, button { font-family: inherit; }
::selection { background: rgba(123,91,245,0.34); }

/* === ANIMATIONS === */
@keyframes pvxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* === SCROLL REVEAL (JS-gated: safe if JS off or UCSS strips rules) === */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* === IMAGE PLACEHOLDERS === */
.img-ph {
  background-color: rgba(255,255,255,0.025);
  background-image: repeating-linear-gradient(45deg, rgba(120,150,220,0.06) 0px, rgba(120,150,220,0.06) 1px, transparent 1px, transparent 10px);
  display: flex; align-items: center; justify-content: center;
  color: #8A93B8; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  text-align: center; padding: 20px; letter-spacing: 0.05em; line-height: 1.5;
}

/* === HEADER === */
.nav-link { font-size: 14.5px; color: #C5D2EE; transition: color 0.2s; }
.nav-link:hover { color: #FFFFFF; }

.btn-nav { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg,#5B8CFF,#7B5BF5); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; box-shadow: 0 8px 22px rgba(110,92,245,0.36); transition: filter 0.2s; }
.btn-nav:hover { filter: brightness(1.08); }

.burger-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(120,150,220,0.18); border-radius: 10px; cursor: pointer; padding: 0; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px 20px 20px; border-top: 1px solid rgba(120,150,220,0.12); }
.mobile-menu.open { display: flex; }
.mobile-nav-link { display: block; padding: 14px 8px; border-radius: 8px; font-size: 16px; transition: background 0.2s; }
.mobile-nav-link:hover { background: rgba(255,255,255,0.05); }
.btn-mobile-cta { margin-top: 8px; text-align: center; display: block; background: linear-gradient(135deg,#5B8CFF,#7B5BF5); color: #fff; font-weight: 600; padding: 14px; border-radius: 10px; transition: filter 0.2s; }
.btn-mobile-cta:hover { filter: brightness(1.08); }

/* === CTA BUTTONS === */
.btn-primary { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg,#5B8CFF,#7B5BF5); color: #fff; font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 14px 34px rgba(110,92,245,0.4); transition: filter 0.2s, transform 0.2s; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-secondary { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.04); border: 1px solid rgba(150,175,235,0.28); color: #EAF0FF; font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 12px; transition: background 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.btn-teal { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg,#34E3D0,#1FB6A8); color: #042020; font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 14px 34px rgba(52,227,208,0.3); transition: filter 0.2s; }
.btn-teal:hover { filter: brightness(1.06); }

/* === SERVICE CARDS === */
.service-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(120,150,220,0.14); border-radius: 16px; padding: 26px; transition: border-color 0.25s ease, background 0.25s ease; }
.service-card:hover { border-color: rgba(91,140,255,0.45); background: rgba(91,140,255,0.06); }

/* === CONTACT === */
.contact-link { display: flex; align-items: center; gap: 14px; transition: opacity 0.2s; }
.contact-link:hover { opacity: 0.85; }

/* === FORM === */
.form-input { background: rgba(255,255,255,0.04); border: 1px solid rgba(120,150,220,0.22); border-radius: 10px; padding: 13px 14px; color: #EAF0FF; font-size: 15px; font-family: 'IBM Plex Sans', sans-serif; outline: none; width: 100%; transition: border-color 0.2s; }
.form-input:focus { border-color: #7B5BF5; }
textarea.form-input { resize: vertical; }

.btn-submit { margin-top: 4px; background: linear-gradient(135deg,#5B8CFF,#7B5BF5); color: #fff; font-weight: 600; font-size: 16px; padding: 15px; border: none; border-radius: 12px; cursor: pointer; box-shadow: 0 12px 30px rgba(110,92,245,0.36); width: 100%; transition: filter 0.2s; }
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:disabled { filter: grayscale(0.3) brightness(0.85); cursor: not-allowed; }

/* === FOOTER === */
.footer-link { color: #A9BAE0; font-size: 14px; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
.footer-contact-link { color: #8FB2FF; }
.footer-contact-link:hover { text-decoration: underline; }

/* === BACK TO TOP === */
.back-top { position: fixed; bottom: 22px; right: 22px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(123,91,245,0.45); background: rgba(12,18,42,0.88); backdrop-filter: blur(8px); color: #EAF0FF; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.2s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); border-color: rgba(91,140,255,0.8); }

/* === RESPONSIVE === */
@media (max-width: 879px) {
  .desktop-nav { display: none !important; }
  .burger-btn { display: flex !important; }
  .pvx-float { left: 12px !important; right: auto !important; bottom: -14px !important; }
  .pvx-hero-sub { display: none !important; }
}

/* ============================================================
   WPFORMS DARK-THEME OVERRIDE
   Scoped to the #contact section only, so it doesn't affect
   WPForms usage anywhere else (e.g. inside wp-admin previews).
   ============================================================ */
#contact .wpforms-container { margin: 0 !important; }
#contact .wpforms-form label.wpforms-field-label {
  font-size: 13px; color: #9DB0D6; font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em; margin-bottom: 7px; text-transform: uppercase;
}
#contact .wpforms-form input.wpforms-field-medium,
#contact .wpforms-form textarea.wpforms-field-medium,
#contact .wpforms-form select.wpforms-field-medium {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(120,150,220,0.22) !important;
  border-radius: 10px !important;
  padding: 13px 14px !important;
  color: #EAF0FF !important;
  font-size: 15px !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  width: 100% !important;
}
#contact .wpforms-form input:focus,
#contact .wpforms-form textarea:focus { border-color: #7B5BF5 !important; outline: none !important; }
#contact .wpforms-form textarea { resize: vertical !important; }
#contact .wpforms-field { padding: 0 !important; margin-bottom: 16px !important; }
#contact .wpforms-submit-container { margin-top: 4px !important; }
#contact .wpforms-submit {
  background: linear-gradient(135deg,#5B8CFF,#7B5BF5) !important;
  color: #fff !important; font-weight: 600 !important; font-size: 16px !important;
  padding: 15px !important; border: none !important; border-radius: 12px !important;
  cursor: pointer !important; width: 100% !important;
  box-shadow: 0 12px 30px rgba(110,92,245,0.36) !important;
  transition: filter 0.2s !important;
}
#contact .wpforms-submit:hover { filter: brightness(1.08) !important; }
#contact .wpforms-confirmation-container-full {
  background: transparent !important; border: none !important; color: #EAF0FF !important;
  text-align: center !important; padding: 40px 10px !important;
}
#contact .wpforms-error-container,
#contact .wpforms-field-label-error {
  color: #FF8A9B !important; font-size: 13px !important;
}

