@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* MRSS Primary Palette */
  --mrss-orange: #F26A21;
  --mrss-orange-hover: #D85611;
  --mrss-orange-light: #FF8F52;
  --mrss-dark: #121416;
  --mrss-dark-card: #1C1F22;
  --mrss-grey: #F8F9FA;
  --mrss-silver: #8A929A;
  
  /* Priority Urgent Red Palettes */
  --mrss-red: #DC3545;
  --mrss-red-hover: #BD2130;
  --mrss-red-light: #FF6B6B;
}

/* Base resets & layouts */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--mrss-grey);
  color: var(--mrss-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar CSS 3 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--mrss-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--mrss-silver);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mrss-orange);
}

/* Global components overrides */
.bg-brand-dark {
  background-color: var(--mrss-dark) !important;
}

.text-brand-orange {
  color: var(--mrss-orange) !important;
}

.bg-brand-orange {
  background-color: var(--mrss-orange) !important;
}

.bg-brand-orange:hover {
  background-color: var(--mrss-orange-hover) !important;
}

/* Glassmorphism navigation overlay */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 224, 230, 0.4);
  transition: all 0.3s ease-in-out;
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Glowing online dot */
.online-indicator {
  display: inline-flex;
  position: absolute;
  top: -2px;
  left: 0;
  height: 10px;
  width: 10px;
}

.online-dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: #28a745;
  opacity: 0.75;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.online-dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 10px;
  width: 10px;
  background-color: #28a745;
}

/* Custom Hero Layout */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(18,20,22,0.98) 0%, rgba(18,20,22,0.9) 50%, rgba(18,20,22,0.6) 100%),
              url('https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&q=80&w=1920') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* UK DVLA style vehicle plate container CSS3 */
.uk-plate-container {
  border: 4px solid #FFD43B;
  background-color: #FFD43B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  display: flex;
  position: relative;
}

.uk-plate-left-badge {
  background-color: #0055A5; /* EU blue marker */
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 8px;
  user-select: none;
}

.uk-plate-input {
  background-color: #ffffff;
  color: #121416;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 3px;
  border: none;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  padding: 12px 10px;
  outline: none;
}

.uk-plate-input::placeholder {
  color: rgba(18, 20, 22, 0.2);
}

/* Specialist Service Cards Accordion design */
.service-accordion-card_wrapped {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0,0,0,0.08) !important;
  background-color: rgb(255, 255, 255);
}

.service-accordion-card_wrapped:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.service-card-active {
  border-color: var(--mrss-orange) !important;
  box-shadow: 0 12px 35px rgba(242, 106, 33, 0.08) !important;
  transform: translateY(-2px);
}

.service-card-active:hover {
  transform: translateY(-2px);
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(242, 106, 33, 0.08);
  color: var(--mrss-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(242, 106, 33, 0.15);
  transition: all 0.3s ease;
}

.service-accordion-card_wrapped:hover .service-icon-box {
  background-color: var(--mrss-orange);
  color: #ffffff;
  transform: scale(1.05);
}

/* Tab controls and visual sections */
.btn-mrss-outline {
  border: 1.5px solid var(--mrss-orange);
  color: var(--mrss-orange);
  font-weight: 700;
  transition: all 0.25s ease-in-out;
  border-radius: 10px;
}

.btn-mrss-outline:hover {
  background-color: var(--mrss-orange);
  color: #ffffff;
}

.custom-nav-tabs .nav-link {
  font-weight: 700;
  color: var(--mrss-silver);
  border: none;
  background: none;
  padding: 12px 24px;
  border-radius: 10px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.custom-nav-tabs .nav-link.active {
  background-color: var(--mrss-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(242, 106, 33, 0.2);
}

/* Urgent Emergency Interactive Design Transformation classes */
.emergency-urgent-theme {
  border-color: var(--mrss-red) !important;
  box-shadow: 0 0 25px rgba(220, 53, 69, 0.15) !important;
}

.emergency-urgent-theme .form-control {
  border-color: rgba(220, 53, 69, 0.3) !important;
}

.emergency-urgent-theme .form-control:focus {
  border-color: var(--mrss-red) !important;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.2) !important;
}

/* Floating mobile trigger bottom bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 12px 16px;
  background: rgba(18, 20, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid rgba(242, 106, 33, 0.2);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateY(100%);
  opacity: 0;
}

.mobile-bottom-bar.show-active {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Testimonial Card Design */
.testimonial-card-item {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  height: 100%;
}

.star-rating {
  color: #FFC107;
  font-size: 16px;
}

/* Stats counting container hover lift */
.stat-metric-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  border-color: var(--mrss-orange);
}

/* Search suggestions dynamic results animation */
.suggestion-fade-item {
  animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}