/* ==========================================================================
   UNIVERSAL CNC TOOLING PRELOADER (0% - 100%) & AUDIT MODAL
   Self-contained stylesheet so preloader & modal styling always loads cleanly.
   ========================================================================== */
.topbar {
  display: none !important;
}

.cnc-preloader-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.cnc-reticle-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cnc-spindle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 115, 72, 0.45);
  animation: cncRingSpin 8s linear infinite;
}

.cnc-spindle-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: #D97348;
  border-right-color: #E38B64;
  animation: cncInnerSpin 0.9s linear infinite;
}

.cnc-endmill-svg {
  width: 36px;
  height: 36px;
  color: #D97348;
  filter: drop-shadow(0 0 10px rgba(217, 115, 72, 0.35));
  animation: cncToolPulse 1.6s ease-in-out infinite;
}

@keyframes cncRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cncInnerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cncToolPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.07); opacity: 1; }
}

.cnc-percent-readout {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cnc-percent-readout span {
  color: #D97348;
  font-size: 0.62em;
  margin-left: 3px;
}

.cnc-progress-track {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.cnc-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #D97348, #E38B64);
  border-radius: 999px;
  transition: width 0.06s linear;
}

.cnc-status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #9FA7AF;
  text-transform: uppercase;
}

/* Universal Light Audit Modal & Form Controls */
.audit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.65);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.audit-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.audit-modal-box {
  background: #FFFFFF;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(28px, 4vw, 38px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s ease;
}
.audit-modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E38B64 0%, #D97348 100%);
}
.audit-modal-backdrop.open .audit-modal-box {
  transform: scale(1) translateY(0);
}
.audit-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F4F5F7;
  border: 1px solid #E2E4E8;
  color: #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.audit-modal-close:hover {
  background: #E2E4E8;
  transform: rotate(90deg);
  color: #111;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 115, 72, 0.10);
  border: 1px solid rgba(217, 115, 72, 0.28);
  color: #B85830;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 22px;
}
.clean-form-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
  font-weight: 600;
  color: #111315;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.clean-form-subtitle {
  font-size: 13.5px;
  color: #64707D;
  margin-bottom: 18px;
  line-height: 1.45;
}
.clean-form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.progress-segment {
  height: 4px;
  flex: 1;
  background: #ECEEF1;
  border-radius: 999px;
  transition: background 0.3s ease;
}
.progress-segment.active {
  background: #D97348;
}
.clean-step-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #B85830;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.clean-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.clean-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #2D3748;
  letter-spacing: 0.2px;
}
.clean-input-group input,
.clean-input-group select {
  height: 44px;
  background: #F7F8FA;
  border: 1px solid #E2E5E9;
  border-radius: 8px;
  padding: 0 14px;
  color: #111315;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.clean-input-group input:focus,
.clean-input-group select:focus {
  background: #FFFFFF;
  border-color: #D97348;
  box-shadow: 0 0 0 3px rgba(217, 115, 72, 0.16);
}
.clean-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .clean-input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.clean-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #64707D;
  cursor: pointer;
  user-select: none;
}
.clean-checkbox-row input {
  accent-color: #D97348;
  cursor: pointer;
  width: 15px;
  height: 15px;
}
.theme-btn.lime-btn,
.site-header .audit-modal-trigger,
.mobile-menu-drawer .lime-btn {
  background-color: #C76238 !important;
  border-color: #C76238 !important;
  color: #FFFFFF !important;
}

.theme-btn.lime-btn:hover,
.site-header .audit-modal-trigger:hover,
.mobile-menu-drawer .lime-btn:hover {
  background-color: #B85830 !important;
  border-color: #B85830 !important;
  color: #FFFFFF !important;
}

.clean-btn-primary {
  width: 100%;
  height: 48px;
  background: #C76238;
  color: #FFFFFF;
  border: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: var(--font-display);
  box-shadow: 0 3px 10px rgba(199, 98, 56, 0.18);
}
.clean-btn-primary:hover {
  background: #B85830;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(199, 98, 56, 0.24);
}
.clean-btn-primary:active {
  transform: translateY(0);
}
.clean-btn-secondary {
  background: transparent;
  border: 1px solid #D2D6DC;
  color: #4A5568;
  height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clean-btn-secondary:hover {
  background: #F4F5F7;
  color: #111;
}
.form-btn-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-btn-actions .clean-btn-primary {
  flex: 1;
}

/* ==========================================================================
   UNIVERSAL FOOTER POLISH (All Pages)
   ========================================================================== */
.footer-wrapper .footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111315;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-wrapper .footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2.5px;
  background: #D97348;
  border-radius: 2px;
}

.footer-wrapper .footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-wrapper .footer-nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #555E68;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-wrapper .footer-nav-list li a::before {
  content: "›";
  color: #D97348;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.footer-wrapper .footer-nav-list li a:hover {
  color: #D97348;
  transform: translateX(3px);
}

.footer-wrapper .footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-wrapper .footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #555E68;
  line-height: 1.5;
}

.footer-wrapper .footer-contact-row svg {
  width: 18px;
  height: 18px;
  color: #D97348;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-wrapper .footer-contact-row a {
  color: #111315;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-wrapper .footer-contact-row a:hover {
  color: #D97348;
}

/* ==========================================================================
   CASE STUDIES SECTION REFINEMENTS (Clean Images, Lighter Headings, Light Arrow)
   ========================================================================== */
.case-study-wrapper {
  padding-top: 56px !important;
}

.case-study-wrapper .section-title-wrap h2,
.case-study-wrapper .case-shop-name {
  font-weight: 600 !important;
}

.case-card-thumb .case-sector-badge {
  display: none !important;
}

.case-arrow-btn {
  background-color: #D97348 !important;
  color: #FFFFFF !important;
}

.single-case-item:hover .case-arrow-btn {
  background-color: #C76238 !important;
  color: #FFFFFF !important;
}

