/* PATIL & SON - Precision Engineering Custom Styles */

@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
    background-color: #F8FAFC;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
  }
}

/* Precision Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0D12;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #DC2626;
}

/* Engineering Blueprint Background Matrices */
.blueprint-grid {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.blueprint-grid-dark {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Mechanical Chamfer Cuts */
.chamfer-corner {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.chamfer-badge {
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #DC2626 !important;
  outline-offset: 2px;
}

/* Navigation Dropdown Menus & Solid Dark Header */
.nav-dropdown-menu {
  background-color: #0A0D12 !important;
  background: #0A0D12 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 25px 50px -5px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(51, 65, 85, 0.8) !important;
}

.nav-dropdown-menu a:hover {
  background-color: #161D2A !important;
}

header.sticky {
  background-color: #0A0D12 !important;
  background: #0A0D12 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
