/* Techserve - High-Impact Executive Blue Palette Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* High-Impact Executive Blue Palette Theme:
     - Deep Tech Obsidian: #020617 / #040E29 (luxury deep high-contrast command center)
     - Deep Royal Sapphire: #0B2FB8 (authoritative corporate blue)
     - Vivid Imperial Sapphire: #0F3FE6 (commanding, radiant primary blue)
     - Electric Sky Accent: #2563EB / #38BDF8 (luminous edge lighting & glow)
     - Pure Porcelain White: #FFFFFF (crisp, elevated card surfaces)
     - Distinct Ice-Blue Canvas: #E0EDFB (rich visible blue atmosphere)
     - Soft Azure Section: #E0EDFB (contrasting alternating section tone)
     - Clean Blue Hairline Border: #C8DCF5 (crisp, razor-sharp architectural framing)
  */
  --prism-glacier: #E0EDFB;
  --prism-mist: #E0EDFB;
  --prism-tint: #D4E5FA;
  --prism-card: #FFFFFF;
  --prism-card-hover: #FFFFFF;
  --prism-card-border: #C8DCF5;

  --prism-navy: #040E29;
  --prism-dark: #020718;
  --prism-sapphire: #0B2FB8;
  --prism-cobalt: #0F3FE6;
  --prism-cyan: #0F3FE6;
  --prism-royal: #0F3FE6;
  --prism-sky: #2563EB;
  --prism-accent: #38BDF8;

  --prism-text-dark: #040E29;
  --prism-text-body: #1E293B;
  --prism-text-muted: #475569;
  --prism-button-text: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #E0EDFB;
  color: var(--prism-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background-color: #E0EDFB;
  color: var(--prism-text-body);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Prevent iOS Safari auto-zoom on input focus while maintaining crisp styling */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Custom Scrollbar in Luxury Imperial Sapphire */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #E0EDFB;
}

::-webkit-scrollbar-thumb {
  background: #0B2FB8;
  border-radius: 9999px;
  border: 2px solid #E0EDFB;
}

::-webkit-scrollbar-thumb:hover {
  background: #0F3FE6;
}

/* High-Impact Deep Tech Sapphire Hero Canvas */
.bg-prism-hero {
  background-color: #030A21;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(15, 63, 230, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 25%, rgba(37, 99, 235, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 85%, rgba(6, 23, 71, 0.70) 0%, transparent 65%),
    linear-gradient(145deg, #020617 0%, #040E29 35%, #082168 75%, #0F3FE6 100%);
  color: #FFFFFF;
  position: relative;
}

.bg-prism-gradient {
  background-color: #E0EDFB;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(15, 63, 230, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #E0EDFB 0%, #D4E5FA 100%);
}

.bg-glacier-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(200, 220, 245, 0.95);
  box-shadow: 0 1px 3px 0 rgba(4, 14, 41, 0.04), 0 6px 18px -2px rgba(15, 63, 230, 0.05);
}

/* State-of-the-Art Bright Luminous Jewel Gradient Headings */
.text-gradient-primary,
.text-gradient-cyan,
.text-gradient-bright {
  background: linear-gradient(135deg, #38BDF8 0%, #7DD3FC 40%, #BAE6FD 75%, #FFFFFF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.45));
}

/* Glassmorphism Navigation with Frosted Blur & Sticky Behavior */
.glass-nav,
#site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(200, 220, 245, 0.95) !important;
  box-shadow: 0 4px 20px -4px rgba(4, 14, 41, 0.05) !important;
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(180, 210, 245, 1) !important;
  box-shadow: 0 10px 30px -4px rgba(4, 14, 41, 0.12), 0 4px 12px -2px rgba(15, 63, 230, 0.08) !important;
}

/* Clean Navbar Underline Hover & Active with Jewel Glow */
.nav-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #1E293B;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-underline::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2.5px;
  background: linear-gradient(90deg, #0B2FB8 0%, #0F3FE6 55%, #38BDF8 100%);
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
  box-shadow: 0 1px 8px rgba(15, 63, 230, 0.45);
  pointer-events: none;
}

.nav-underline:hover {
  color: #0F3FE6 !important;
}

.nav-underline:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-underline:hover #services-dropdown-arrow {
  color: #0F3FE6;
}

.nav-underline.active {
  color: #0B2FB8 !important;
  font-weight: 800 !important;
}

.nav-underline.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Services Dropdown (Desktop & Touch Support) */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .dropdown-container:hover .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .dropdown-container:hover #services-dropdown-arrow {
    transform: rotate(180deg);
    color: #0F3FE6;
  }

  .dropdown-container:hover .nav-underline::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .dropdown-container:hover .nav-underline {
    color: #0F3FE6 !important;
  }
}

.dropdown-container.is-open .dropdown-menu {
  display: block !important;
  animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-container.is-open #services-dropdown-arrow {
  transform: rotate(180deg) !important;
  color: #0F3FE6 !important;
}

.dropdown-container.is-open .nav-underline::after {
  transform: scaleX(1);
  opacity: 1;
}

.dropdown-container.is-open .nav-underline {
  color: #0F3FE6 !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Universal Delicate Luxury Cards Override */
.border-2.border-brand-cardborder {
  border-width: 1px !important;
  border-color: rgba(224, 234, 250, 0.95) !important;
}

.border-brand-cardborder {
  border-color: rgba(224, 234, 250, 0.95) !important;
}

.bg-brand-card {
  background: #FFFFFF !important;
  box-shadow: 0 1px 3px 0 rgba(4, 14, 41, 0.03), 0 6px 18px -3px rgba(15, 63, 230, 0.04);
}

.glass-card-crystal {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(224, 234, 250, 0.95) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 63, 230, 0.06);
}

/* Refined Multi-Tier Card Hover */
.card-hover-crystal {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-hover-crystal:hover {
  transform: translateY(-5px);
  background-color: #FFFFFF !important;
  box-shadow:
    0 16px 36px -4px rgba(4, 14, 41, 0.08),
    0 4px 16px -2px rgba(15, 63, 230, 0.10),
    0 0 0 1px rgba(15, 63, 230, 0.22) !important;
  border-color: rgba(15, 63, 230, 0.40) !important;
}

/* High-Impact Executive Blue Hover Effect for Pillar Cards */
.card-hover-blue {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

.card-hover-blue:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(145deg, #041442 0%, #082A82 50%, #0F3FE6 100%) !important;
  border-color: #38BDF8 !important;
  box-shadow:
    0 18px 42px -4px rgba(15, 63, 230, 0.45),
    0 0 30px -2px rgba(56, 189, 248, 0.35),
    0 4px 12px 0 rgba(4, 14, 41, 0.25) !important;
}

.card-hover-blue:hover h3 {
  color: #FFFFFF !important;
}

.card-hover-blue:hover p {
  color: #DBEAFE !important;
}

.card-hover-blue:hover .pillar-badge,
.card-hover-blue:hover span[class*="font-mono"] {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.40) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6) !important;
}

/* Ensure post-reveal scroll engine preserves hover lift */
html.reveal-enabled .reveal-done.card-hover-blue:hover {
  transform: translateY(-6px) scale(1.02) !important;
}

/* Center pillar number badges and card content on mobile devices only (< 640px) */
@media (max-width: 639.98px) {
  .pillar-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .card-hover-blue {
    text-align: center !important;
  }
}

/* Primary Button - Tactile Beveled Imperial Sapphire with Specular Highlight */
.btn-prism-primary {
  position: relative;
  background: linear-gradient(180deg, #1847ED 0%, #0B2FB8 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    0 1px 2px 0 rgba(4, 14, 41, 0.12),
    0 8px 24px -2px rgba(15, 63, 230, 0.40);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-prism-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-prism-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2555F5 0%, #0F3FE6 100%) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    0 4px 14px 0 rgba(4, 14, 41, 0.18),
    0 14px 36px -4px rgba(15, 63, 230, 0.55);
}

.btn-prism-primary:hover::before {
  left: 100%;
}

.btn-prism-primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 4px 14px -2px rgba(15, 63, 230, 0.35);
}

/* Secondary Button - Crisp Porcelain White with Delicate Sapphire Border */
.btn-prism-secondary {
  position: relative;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 63, 230, 0.22) !important;
  color: #0B2FB8 !important;
  font-weight: 700;
  box-shadow:
    0 1px 2px 0 rgba(4, 14, 41, 0.04),
    0 4px 16px -2px rgba(15, 63, 230, 0.06);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-prism-secondary:hover {
  transform: translateY(-2px);
  background: #FFFFFF !important;
  border-color: #0F3FE6 !important;
  color: #0F3FE6 !important;
  box-shadow:
    0 2px 4px 0 rgba(4, 14, 41, 0.06),
    0 10px 28px -2px rgba(15, 63, 230, 0.18);
}

.btn-prism-secondary:active {
  transform: translateY(0);
}

/* Tactile Interactive Card Action Button with Jewel Hover Effect */
.btn-card-action {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 3.75rem !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  background: #F0F6FE !important;
  color: #0B2FB8 !important;
  border: 1px solid rgba(15, 63, 230, 0.20) !important;
  box-shadow: 0 1px 2px 0 rgba(4, 14, 41, 0.04) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  position: relative !important;
  cursor: pointer !important;
}

.btn-card-action .btn-arrow-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.625rem !important;
  height: 1.625rem !important;
  border-radius: 9999px !important;
  background: rgba(15, 63, 230, 0.10) !important;
  color: #0B2FB8 !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  margin-left: 0.5rem !important;
}

.btn-card-action:hover {
  background: linear-gradient(135deg, #1847ED 0%, #0B2FB8 100%) !important;
  color: #FFFFFF !important;
  border-color: #0F3FE6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px -3px rgba(15, 63, 230, 0.40), 0 2px 6px 0 rgba(4, 14, 41, 0.08) !important;
}

.btn-card-action:hover .btn-arrow-circle {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

.btn-card-action:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px -2px rgba(15, 63, 230, 0.25) !important;
}

.btn-card-action-inline {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: auto !important;
  gap: 0.75rem !important;
  padding: 0.65rem 1.25rem !important;
  white-space: normal !important;
  text-align: left !important;
}

/* Secondary Button inside Deep Blue Hero */
.bg-prism-hero .btn-prism-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bg-prism-hero .btn-prism-secondary:hover {
  background: #FFFFFF !important;
  color: #0B2FB8 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 8px 24px -2px rgba(255, 255, 255, 0.35);
}

/* Shimmering Hero Heading Gradient on Deep Blue Canvas */
.bg-prism-hero .text-gradient-cyan,
.bg-prism-hero .text-gradient-primary {
  background: linear-gradient(135deg, #7DD3FC 0%, #BAE6FD 45%, #FFFFFF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  filter: drop-shadow(0 2px 20px rgba(56, 189, 248, 0.55));
}

.bg-prism-hero .pulse-indicator {
  background-color: #38BDF8 !important;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8) !important;
  animation: pulseLogoSky 2s infinite !important;
}

@keyframes pulseLogoSky {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Pulsing Badge Indicator in Imperial Sapphire */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0F3FE6;
  box-shadow: 0 0 0 0 rgba(15, 63, 230, 0.7);
  animation: pulseLogoBlue 2s infinite;
}

@keyframes pulseLogoBlue {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(15, 63, 230, 0.75);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(15, 63, 230, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(15, 63, 230, 0);
  }
}

/* Optical Grid Pattern with Subtle Ambient Vignette */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(4, 14, 41, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 14, 41, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 60%, transparent 100%);
}

/* Executive Midnight Navy Footer with Jewel Edge */
footer.bg-brand-navy {
  background: linear-gradient(180deg, #040E29 0%, #020718 100%) !important;
  border-top: 1px solid rgba(15, 63, 230, 0.35) !important;
  position: relative;
}

footer.bg-brand-navy::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), rgba(15, 63, 230, 0.95), rgba(59, 130, 246, 0.7), transparent);
  pointer-events: none;
}

/* ========================================================
   Responsive Brand Logo Sizing (Techserve HD Hero + Compact Prism)
   ======================================================== */
.brand-logo-main {
  height: 42px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 16, 74, 0.08));
}

.brand-logo-secondary {
  height: 17px;
  width: auto;
  max-width: 82px;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.brand-logo-secondary:hover {
  opacity: 1;
}

@media (max-width: 380px) {
  .header-logo-link {
    gap: 0.35rem !important;
  }
  .brand-logo-main {
    height: 36px !important;
    max-width: 130px !important;
  }
  .brand-logo-secondary {
    height: 15px !important;
    max-width: 70px !important;
  }
}

@media (max-width: 330px) {
  .header-logo-link {
    gap: 0.25rem !important;
  }
  .brand-logo-main {
    height: 30px !important;
    max-width: 110px !important;
  }
  .brand-logo-secondary {
    height: 13px !important;
    max-width: 58px !important;
  }
}

@media (min-width: 480px) {
  .brand-logo-main {
    height: 52px;
    max-width: 190px;
  }

  .brand-logo-secondary {
    height: 20px;
    max-width: 100px;
  }
}

@media (min-width: 640px) {
  .brand-logo-main {
    height: 58px;
    max-width: 215px;
  }

  .brand-logo-secondary {
    height: 21px;
    max-width: 105px;
  }
}

@media (min-width: 1024px) {
  .brand-logo-main {
    height: 66px;
    max-width: 250px;
  }

  .brand-logo-secondary {
    height: 23px;
    max-width: 112px;
  }
}

.brand-logo-drawer {
  height: 42px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
}

.brand-logo-drawer-secondary {
  height: 18px;
  width: auto;
  max-width: 85px;
  object-fit: contain;
  opacity: 0.85;
}

/* Footer Logos - Synchronized to match Navbar size exactly */
.brand-logo-footer-main {
  height: 46px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.brand-logo-footer-secondary {
  height: 18px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  opacity: 0.88;
}

@media (min-width: 480px) {
  .brand-logo-footer-main {
    height: 52px;
    max-width: 190px;
  }

  .brand-logo-footer-secondary {
    height: 20px;
    max-width: 100px;
  }
}

@media (min-width: 640px) {
  .brand-logo-footer-main {
    height: 58px;
    max-width: 215px;
  }

  .brand-logo-footer-secondary {
    height: 21px;
    max-width: 105px;
  }
}

@media (min-width: 1024px) {
  .brand-logo-footer-main {
    height: 66px;
    max-width: 250px;
  }

  .brand-logo-footer-secondary {
    height: 23px;
    max-width: 112px;
  }
}

/* ========================================================
   Eliminate Click / Focus Blue Outline on Logos
   ======================================================== */
.header-logo-link,
.header-logo-link:focus,
.header-logo-link:active,
.header-logo-link:focus-visible,
.brand-logo-main,
.brand-logo-secondary {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
}

/* Clean Porcelain Badge for Official Logo in Footer (No Glow / No Shining Background Shade) */
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  max-width: 100%;
  width: fit-content;
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease;
  position: relative;
  text-decoration: none;
}

.footer-logo-badge:hover,
.footer-logo-badge:focus,
.footer-logo-badge:active {
  transform: none !important;
  border-color: #FFFFFF !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 0.96;
}

.brand-logo-footer-light {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .brand-logo-footer-light {
    height: 48px;
    max-width: 225px;
  }
}

/* ========================================================
   Executive Widescreen Container (Refined Margins)
   Eliminates the giant 350px side void on desktop/ultrawide
   while maintaining a sleek, proportional ~100px "little gap"
   ======================================================== */
.max-w-7xl {
  max-width: 1720px !important;
}

/* ========================================================
   Mobile & Tablet Responsiveness Enhancements (320px - 1024px)
   ======================================================== */

/* Prevent iOS Safari auto-zoom on input focus */
@media (max-width: 767px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Ergonomic touch targets for mobile navigation */
  .btn-prism-primary,
  .btn-prism-secondary,
  .btn-prism-outline,
  header button,
  footer a.inline-flex {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* Compact Mobile Devices (<= 380px: iPhone SE, Galaxy S compacts) */
@media (max-width: 380px) {
  .brand-logo-header {
    height: 34px !important;
    max-width: 135px !important;
  }
}

/* Tablet Portrait & Landscape (768px - 1024px: iPad Mini, iPad Air, Galaxy Tab) */
@media (min-width: 768px) and (max-width: 1023px) {
  #site-header .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Global media responsiveness safeguard */
img,
svg,
video,
canvas {
  max-width: 100%;
}

/* ==========================================================================
   High-Performance Scroll-Driven Content Reveal System (All Pages)
   ========================================================================== */

/* Hidden initial states only when reveal engine is enabled */
html.reveal-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.reveal-enabled .reveal-fade {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

html.reveal-enabled .reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.reveal-enabled .reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.reveal-enabled .reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed States */
html.reveal-enabled .reveal-on-scroll.is-revealed,
html.reveal-enabled .reveal-fade.is-revealed,
html.reveal-enabled .reveal-left.is-revealed,
html.reveal-enabled .reveal-right.is-revealed,
html.reveal-enabled .reveal-scale.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Post-reveal cleanup: once settled, restore full hover interactivity */
html.reveal-enabled .reveal-done {
  will-change: auto !important;
  transform: none !important;
}

/* Preserve card hover transitions after reveal */
html.reveal-enabled .reveal-done.card-hover-crystal:hover {
  transform: translateY(-5px) !important;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

  html.reveal-enabled .reveal-on-scroll,
  html.reveal-enabled .reveal-fade,
  html.reveal-enabled .reveal-left,
  html.reveal-enabled .reveal-right,
  html.reveal-enabled .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* ==========================================================================
   Mobile Drawer & Strict Background Scroll Isolation
   ========================================================================== */
html.drawer-open,
body.drawer-open {
  overflow: hidden !important;
  touch-action: none !important;
}

body.drawer-open {
  position: fixed !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

#drawer-wrapper {
  overscroll-behavior: contain;
}

#mobile-drawer {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#mobile-drawer .drawer-scroll-area {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* ==========================================================================
   Global Contact Form Modal (Pop-up without scrolling)
   ========================================================================== */
html.contact-modal-open,
body.contact-modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

#contact-modal {
  touch-action: pan-y;
}

#contact-modal-backdrop {
  will-change: opacity;
}

#contact-modal-dialog {
  will-change: transform, opacity;
  box-shadow: 0 25px 60px -15px rgba(4, 14, 41, 0.4), 0 0 0 1px rgba(200, 220, 245, 0.7);
}

.modal-scroll-body {
  scrollbar-width: thin;
  scrollbar-color: #C8DCF5 transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-scroll-body::-webkit-scrollbar {
  width: 5px;
}

.modal-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll-body::-webkit-scrollbar-thumb {
  background: #C8DCF5;
  border-radius: 9999px;
}

.modal-scroll-body::-webkit-scrollbar-thumb:hover {
  background: #0F3FE6;
}