/* ==========================================================================
   Printer Worldwide — Enterprise Support Portal Design System
   Inspired by: HP Customer Support (support.hp.com/printer)
   Palette: HP Cyan Blue (#0096D6), HP Deep Blue (#007DB8),
            Midnight Navy (#0B2545), Slate (#1E293B), Tech Gray (#F8F9FA)
   Typography: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS & VARIABLES ---------- */
:root {
  /* HP Brand Palette */
  --hp-blue:         #0096D6; /* Signature HP Digital Cyan */
  --hp-blue-hover:   #007DB8;
  --hp-blue-dark:    #006798;
  --hp-blue-50:      #f0f9ff;
  --hp-blue-100:     #e0f2fe;
  --hp-blue-200:     #bae6fd;
  --hp-blue-500:     #0096d6;
  --hp-blue-600:     #0284c7;
  --hp-blue-700:     #0369a1;

  /* Neutral Dark / Midnight Navy */
  --navy-900:        #071527;
  --navy-800:        #0B2545; /* Deep corporate navy */
  --navy-700:        #13335C;
  --slate-900:       #0f172a;
  --slate-800:       #1e293b; /* High-contrast text */
  --slate-700:       #334155;
  --slate-600:       #475569;
  --slate-500:       #64748b; /* Secondary body text */
  --slate-400:       #94a3b8;
  --slate-300:       #cbd5e1;
  --slate-200:       #e2e8f0; /* Crisp border */
  --slate-100:       #f1f5f9;
  --slate-50:        #f8fafc;

  /* Technical Light Surfaces */
  --bg-canvas:       #ffffff;
  --bg-subtle:       #f8f9fa;
  --bg-subtle-alt:   #f3f4f6;

  /* Status Colors */
  --emerald-600:     #059669;
  --emerald-100:     #d1fae5;
  --amber-600:       #d97706;
  --amber-100:       #fef3c7;

  /* Elevation Shadows */
  --shadow-hp-sm:    0 1px 3px 0 rgba(11, 37, 69, 0.06), 0 1px 2px -1px rgba(11, 37, 69, 0.04);
  --shadow-hp-md:    0 4px 14px -2px rgba(11, 37, 69, 0.07), 0 2px 6px -1px rgba(11, 37, 69, 0.03);
  --shadow-hp-lg:    0 12px 28px -4px rgba(11, 37, 69, 0.09), 0 4px 10px -2px rgba(11, 37, 69, 0.04);
  --shadow-blue-glow: 0 10px 25px -4px rgba(0, 150, 214, 0.22);

  /* Geometry */
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       14px;
  --radius-pill:     9999px;
}

/* ---------- 2. BASE & RESET ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: var(--hp-blue-100);
  color: var(--hp-blue-dark);
}

/* Accessible HP Blue focus ring */
:focus-visible {
  outline: 2px solid var(--hp-blue);
  outline-offset: 2px;
  border-radius: 4px;
}



.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. HP SUPPORT STYLE TILES & CARDS ---------- */
.hp-tile {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hp-sm);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.hp-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.24s ease;
}

.hp-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hp-md);
  border-color: var(--hp-blue-200);
}

.hp-tile:hover::before {
  background-color: var(--hp-blue);
}

/* HP Blue Primary Button */
.btn-hp-primary {
  background-color: var(--hp-blue);
  color: #ffffff;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-hp-primary:hover {
  background-color: var(--hp-blue-hover);
  box-shadow: var(--shadow-blue-glow);
}
.btn-hp-primary:active {
  transform: scale(0.98);
}

/* HP Secondary Outlined Button */
.btn-hp-secondary {
  background-color: #ffffff;
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn-hp-secondary:hover {
  border-color: var(--hp-blue);
  color: var(--hp-blue);
  background-color: var(--hp-blue-50);
}

/* HP Search Input */
.hp-search-box {
  background: #ffffff;
  border: 2px solid var(--slate-300);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-search-box:focus-within {
  border-color: var(--hp-blue);
  box-shadow: 0 0 0 4px rgba(0, 150, 214, 0.15);
}

/* HP Interactive Inputs */
.hp-input {
  background-color: #ffffff;
  border: 1px solid var(--slate-300);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-input:focus {
  outline: none;
  border-color: var(--hp-blue);
  box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.14);
}

/* ---------- 5. SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- 6. HEADER & NAVBAR RESILIENCY (100% Single-Line, Zero Wrapping) ---------- */
.header-nav {
  display: none;
}
@media (min-width: 1024px) {
  .header-nav {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
}
@media (min-width: 1280px) {
  .header-nav {
    gap: 1.75rem;
  }
}

.header-nav-link {
  white-space: nowrap !important;
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: #334155;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
@media (min-width: 1280px) {
  .header-nav-link {
    font-size: 0.875rem; /* 14px */
  }
}
.header-nav-link:hover {
  color: #0096D6;
}
.header-nav-link.active {
  color: #0096D6;
  border-bottom: 2px solid #0096D6;
  padding-bottom: 2px;
}

.header-actions-group {
  display: none;
}
@media (min-width: 640px) {
  .header-actions-group {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap !important;
    flex-shrink: 0;
    margin-left: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .header-actions-group {
    margin-left: 2rem; /* Generous spacing between Contact and buttons */
  }
}
@media (min-width: 1280px) {
  .header-actions-group {
    margin-left: 2.75rem;
  }
}

.header-phone-pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #f8fafc;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
  text-decoration: none;
}
@media (min-width: 1280px) {
  .header-phone-pill {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}
.header-phone-pill:hover {
  background-color: #ffffff;
  border-color: #bae6fd;
  color: #0096D6;
  box-shadow: var(--shadow-hp-sm);
}

.header-cta-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
}
@media (min-width: 1280px) {
  .header-cta-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1.125rem;
  }
}

/* Ensure no anchor tag in header navigation ever wraps */
header nav a, header .header-nav a {
  white-space: nowrap !important;
}

/* ---------- 7. RESEARCH INSIGHTS & FAQ ACCORDION ---------- */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.faq-item:hover {
  border-color: var(--hp-blue-200);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-800);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq-question:hover {
  color: var(--hp-blue);
}
.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--slate-400);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--hp-blue);
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-600);
  border-top: 1px dashed var(--slate-100);
  margin-top: -0.25rem;
  padding-top: 0.875rem;
}
.faq-item.is-open .faq-answer {
  display: block;
}

/* Form pulse animation on CTA jump */
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 150, 214, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 150, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 150, 214, 0); }
}
.pulse-highlight {
  animation: ctaPulse 1.2s ease-out 2;
  border-color: var(--hp-blue) !important;
}



/* On-Display Interactive Chat Modal */
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
@media (max-width: 640px) {
  .chat-modal-overlay {
    padding: 16px;
    align-items: flex-end;
    justify-content: center;
  }
}
.chat-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.chat-modal-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -8px rgba(11, 37, 69, 0.3);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-modal-overlay.is-active .chat-modal-card {
  transform: translateY(0) scale(1);
}




