/* ==========================================================================
   IRONWOOD CONTRACTORS - CUSTOM STYLES
   Aesthetic: Deep Charcoal, Raw Timber, Concrete Grey, Architectural Precision
   ========================================================================== */

/* Custom Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Custom Selection Colors */
::selection {
  background-color: #C48B54;
  color: #1A1D20;
}

/* Drafting Grid Background Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-grid-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(26, 29, 32, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 29, 32, 0.05) 1px, transparent 1px);
}

/* Blueprint Dots Pattern */
.bg-blueprint-dots {
  background-image: radial-gradient(rgba(196, 139, 84, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #141719;
}

::-webkit-scrollbar-thumb {
  background: #2E343A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C48B54;
}

/* Timber Accent Border Shimmer */
.timber-border-glow {
  position: relative;
}

.timber-border-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, rgba(196, 139, 84, 0.4), transparent);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timber-border-glow:hover::after {
  opacity: 1;
}

/* Industrial Corner Markers */
.industrial-frame {
  position: relative;
}

.industrial-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 2px solid #C48B54;
  border-left: 2px solid #C48B54;
  pointer-events: none;
}

.industrial-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid #C48B54;
  border-right: 2px solid #C48B54;
  pointer-events: none;
}

/* Native Dialog Backdrop Styling */
dialog::backdrop {
  background: rgba(10, 12, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Subtle image scale on project card hover */
.project-card-image {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

/* Form floating focus glow */
.input-field:focus {
  border-color: #C48B54 !important;
  box-shadow: 0 0 0 1px #C48B54, 0 0 12px rgba(196, 139, 84, 0.2);
}

/* Subtle Pulsing Status Dot */
.pulsing-dot {
  position: relative;
}

.pulsing-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background-color: #10B981;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
