/* =========================================================
   TalentHire v2 – ADDITIONAL CSS
   Paste this whole file into:
   WordPress > Appearance > Customize > Additional CSS
   Only things Elementor/Tailwind cannot do natively live here.
   Add the class names in Elementor > Advanced > CSS Classes.
   ========================================================= */

:root {
  --th-navy-900: #06173f;
  --th-navy-700: #0b2a6f;
  --th-blue: #0b5ed7;
  --th-sky: #4da3ff;
  --th-blue-100: #dce9fb;
  --th-blue-50: #eaf2ff;
  --th-ink: #0f1b3d;
  --th-muted: #5b6b8c;
  --th-line: #d6e2f7;
  --th-wa1: #1fb33f;
  --th-wa2: #0c8a2e;
  --th-chat: #17a34a;
  --th-rec: #e5393a;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--th-ink); }

/* ---- Cards: class "th-card" ------------------------------------------------ */
.th-card {
  background: #fff; border: 1px solid var(--th-line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 94, 215, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.th-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11, 94, 215, .18); }
.th-card.th-static:hover { transform: none; box-shadow: 0 8px 24px rgba(11, 94, 215, .12); }

/* ---- Buttons: class "th-btn" -------------------------------------------------- */
.th-btn { transition: transform .25s ease, filter .25s ease; }
.th-btn:hover { transform: translateY(-2px); filter: brightness(.92); }

/* ---- Hero band: class "th-hero-band" (gradient + faint streaks) ------------- */
.th-hero-band {
  background: linear-gradient(120deg, #06173f 0%, #0b2a6f 55%, #0b5ed7 100%);
  position: relative; overflow: hidden;
}
.th-hero-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 46px, rgba(255, 255, 255, .05) 46px 48px, rgba(255, 255, 255, 0) 48px 110px);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}

/* ---- WhatsApp gradient buttons: class "th-wa" ---------------------------------- */
.th-wa { background: linear-gradient(180deg, var(--th-wa1), var(--th-wa2)); }

/* ---- Header / nav --------------------------------------------------------------- */
.th-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(6, 23, 63, .08); }
.th-nav a { position: relative; padding-bottom: 6px; color: var(--th-ink); font-weight: 500; }
.th-nav a.is-active, .th-nav .elementor-item-active { color: var(--th-blue); }
.th-nav a.is-active::after, .th-nav .elementor-item-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--th-blue); }

/* ---- Form fields ---------------------------------------------------------------- */
.th-field input, .th-field select, .th-field textarea {
  width: 100%; background: #fff; border: 1px solid var(--th-line); border-radius: 8px;
  padding: 11px 14px; font-size: 15px; color: var(--th-ink); font-family: inherit;
}
.th-field.has-icon input, .th-field.has-icon select { padding-left: 40px; }
.th-field select { appearance: none; -webkit-appearance: none; padding-right: 38px; }
.th-field input:focus, .th-field select:focus, .th-field textarea:focus { outline: none; border-color: var(--th-blue); box-shadow: 0 0 0 3px rgba(11, 94, 215, .18); }
.th-error { color: #d32f2f; font-size: 13px; margin-top: 4px; display: none; }
.is-invalid .th-error { display: block; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #d32f2f; }

/* ---- Scroll areas ------------------------------------------------------------------ */
.th-scroll { max-height: 250px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9fb3d9 transparent; }
.th-scroll::-webkit-scrollbar { width: 7px; }
.th-scroll::-webkit-scrollbar-thumb { background: #9fb3d9; border-radius: 8px; }

/* ---- Interview demo -------------------------------------------------------------------- */
.th-listening { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.th-listening i { width: 3px; background: var(--th-blue); border-radius: 2px; animation: th-bars 1s ease-in-out infinite; }
.th-listening i:nth-child(2) { animation-delay: .15s; } .th-listening i:nth-child(3) { animation-delay: .3s; } .th-listening i:nth-child(4) { animation-delay: .45s; }
@keyframes th-bars { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.th-listening.is-idle i { animation: none; height: 4px; background: #9fb3d9; }
.th-rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--th-rec); }
.th-rec-dot.is-live { animation: th-blink 1.2s infinite; }
@keyframes th-blink { 50% { opacity: .25; } }

/* ---- FAQ accordion ------------------------------------------------------------------------ */
.th-faq-item { background: var(--th-blue-50); border: 1px solid var(--th-line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.th-faq .elementor-accordion-item { background: var(--th-blue-50); border: 1px solid var(--th-line) !important; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.th-faq-btn { font-weight: 600; color: var(--th-ink); }

/* ---- Live chat popup: bottom-right, class "th-chat" ----------------------------------------- */
.th-chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 340px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--th-line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(6, 23, 63, .30); animation: th-chat-in .22s ease-out; }
.th-chat[hidden] { display: none; }
@keyframes th-chat-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.th-chat-log { height: 300px; overflow-y: auto; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.th-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.th-msg.bot { align-self: flex-start; background: #eef1f6; color: var(--th-ink); border-bottom-left-radius: 4px; }
.th-msg.user { align-self: flex-end; background: var(--th-blue); color: #fff; border-bottom-right-radius: 4px; }
.th-msg a { color: var(--th-blue); text-decoration: underline; font-weight: 500; }
.th-msg time { display: block; margin-top: 3px; font-size: 10.5px; opacity: .65; text-align: right; }
.th-botrow { display: flex; gap: 8px; align-items: flex-end; }
.th-botrow img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.th-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.th-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb3d9; animation: th-typing 1s infinite ease-in-out; }
.th-typing i:nth-child(2) { animation-delay: .15s; } .th-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes th-typing { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.th-chip { border: 1px solid var(--th-blue); color: var(--th-blue); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; transition: background .2s, color .2s; }
.th-chip:hover { background: var(--th-blue); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1023px) {
  .th-chat { left: 8px; right: 8px; bottom: 78px; width: auto; max-width: none; }
  .th-chat-log { height: min(52vh, 360px); }
}

/* ---- Mobile bottom tab bar + floating WhatsApp: classes "th-tabbar", "th-wa-float" ----------- */
.th-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--th-line); box-shadow: 0 -4px 16px rgba(6, 23, 63, .08); padding-bottom: env(safe-area-inset-bottom, 0); }
.th-tabbar a, .th-tabbar button { color: var(--th-muted); }
.th-tabbar .is-active { color: var(--th-blue); }
.th-wa-float { position: fixed; right: 16px; bottom: 86px; z-index: 65; animation: th-pulse 2.4s infinite; }
@keyframes th-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 179, 63, .5); } 70% { box-shadow: 0 0 0 16px rgba(31, 179, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 179, 63, 0); } }

/* ---- Toast ----------------------------------------------------------------------------------------- */
.th-toast { position: fixed; top: 92px; right: 20px; z-index: 100; max-width: 340px; background: #fff; border-left: 4px solid var(--th-blue); border-radius: 10px; padding: 14px 18px; box-shadow: 0 12px 30px rgba(6, 23, 63, .22); transform: translateX(130%); transition: transform .35s ease; }
.th-toast.is-show { transform: translateX(0); }

/* ---- Footer dividers --------------------------------------------------------------------------------- */
.th-footer-links a + a { border-left: 1px solid rgba(255, 255, 255, .25); margin-left: 14px; padding-left: 14px; }

:focus-visible { outline: 3px solid var(--th-sky); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .th-chat, .th-typing i, .th-listening i, .th-wa-float, .th-rec-dot { animation: none; }
  .th-card:hover, .th-btn:hover { transform: none; }
}

/* ---- Elementor patch (only when the page is built in Elementor) ----------------------------------------
   Elementor buttons wrap text/icon in spans; keep the floating WhatsApp button round. */
.th-wa-float .elementor-button { border-radius: 999px !important; }
