﻿/* MudiaTech Brand Styles */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Subtle card hover lift */
.hover\:-translate-y-1:hover {
  transform: translateY(-4px);
}

/* Form input autofill dark override */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #171717 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
}

/* Smooth page fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: fadeIn 0.4s ease-out;
}

#siteNav {
  backdrop-filter: saturate(120%) blur(0px);
}

#siteNav.nav-scrolled {
  background: rgba(11, 11, 11, 0.92);
  border-bottom-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(130%) blur(6px);
}

.service-card {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(212, 175, 55, 0.14) inset;
}

.work-card {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.work-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.16) inset,
    0 22px 34px rgba(0, 0, 0, 0.36),
    0 0 32px rgba(212, 175, 55, 0.12);
}

.featured-demo-shell {
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
}

.featured-demo-card {
  transform: scale(1);
}

.featured-demo-shell:hover .featured-demo-card {
  transform: scale(1.01);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.34),
    0 0 38px rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.25);
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .service-card,
  .work-card {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Sticky CTA: hide when user is near top of page (handled by JS) */
#stickyCTA {
  will-change: transform, opacity;
}

/* Enhanced form input focus glow */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

/* Trust strip separators hide on very small screens */
@media (max-width: 480px) {
  .sticky-cta-label {
    display: none;
  }
}
